paper-with-me

Papers

Transformer Uncertainty Estimation with Hierarchical Stochastic Attention

2021-12-27 · Jiahuan Pei, Cheng Wang, György Szarvas

Transformers are state-of-the-art in a wide range of NLP tasks and have also been applied to many real-world products. Understanding the reliability and certainty of transformer model predictions is crucial for building trustable machine learning applications, e.g., medical diagnosis. Although many recent transformer extensions have been proposed, the study of the uncertainty estimation of transformer models is under-explored. In this work, we propose a novel way to enable transformers to have the capability of uncertainty estimation and, meanwhile, retain the original predictive performance. This is achieved by learning a hierarchical stochastic self-attention that attends to values and a set of learnable centroids, respectively. Then new attention heads are formed with a mixture of sampled centroids using the Gumbel-Softmax trick. We theoretically show that the self-attention approximation by sampling from a Gumbel distribution is upper bounded. We empirically evaluate our model on two text classification tasks with both in-domain (ID) and out-of-domain (OOD) datasets. The experimental results demonstrate that our approach: (1) achieves the best predictive performance and uncertainty trade-off among compared methods; (2) exhibits very competitive (in most cases, improved) predictive performance on ID datasets; (3) is on par with Monte Carlo dropout and ensemble methods in uncertainty estimation on OOD datasets.

📄 PDF Abstract BibTeX arXiv:2112.13776

Code (1)

amzn/sto-transformer 공식 구현 pytorch

Tasks

Medical Diagnosistext-classificationText Classification

Methods 이 논문이 사용한 방법론

Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Monte Carlo Dropout 설명 없음

Similar Papers 제목 키워드 기반

Uncertainty-Aware Decision Transformer for Stochastic Driving Environments

2023-09-28 · Zenan Li, Fan Nie, Qiao Sun, Fang Da 외

Offline Reinforcement Learning (RL) enables policy learning without active interactions, making it especially appealing for self-driving tasks. Recent successes of Transformers inspire casting offline RL as sequence mode…

Autonomous DrivingOffline RLReinforcement Learning (RL)

Kinematic-aware Hierarchical Attention Network for Human Pose Estimation in Videos

2022-11-29 · Kyung-Min Jin, Byoung-Sung Lim, Gun-Hee Lee, Tae-Kyung Kang 외

Previous video-based human pose estimation methods have shown promising results by leveraging aggregated features of consecutive frames. However, most approaches compromise accuracy to mitigate jitter or do not sufficien…

2D Pose Estimation3D Human Pose Estimation3D Pose EstimationDecoder+1

Pose-Oriented Transformer with Uncertainty-Guided Refinement for 2D-to-3D Human Pose Estimation

2023-02-15 · Han Li, Bowen Shi, Wenrui Dai, Hongwei Zheng 외

There has been a recent surge of interest in introducing transformers to 3D human pose estimation (HPE) due to their powerful capabilities in modeling long-term dependencies. However, existing transformer-based methods t…

3D Human Pose EstimationPose EstimationPosition

Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matrices

2023-08-22 · Elizaveta Kostenok, Daniil Cherniavskii, Alexey Zaytsev

Transformer-based language models have set new benchmarks across a wide range of NLP tasks, yet reliably estimating the uncertainty of their predictions remains a significant challenge. Existing uncertainty estimation (U…

text-classificationText ClassificationText DetectionTopological Data Analysis

UAT-LITE: Inference-Time Uncertainty-Aware Attention for Pretrained Transformers

2026-02-03 · Elias Hossain, Shubhashis Roy Dipta, Subash Neupane, Rajib Rana 외 arxiv

Neural NLP models are often miscalibrated and overconfident, assigning high confidence to incorrect predictions and failing to express uncertainty during internal evidence aggregation. This undermines selective predictio…