arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.02952cs.AI
收藏

UAT-LITE:推理时间不确定性感知注意力用于预训练变换器

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

University of Central Florida(佛罗里达大学中央分校);University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校);Meharry Medical College(梅哈里医学院);University of Southern Queensland(昆士兰南方大学);New York University(纽约大学)

Elias Hossain, Shubhashis Roy Dipta, Subash Neupane, Rajib Rana, Ravid Shwartz-Ziv, Ivan Garibay, Niloofar Yousefi

AI总结:

UAT-LITE通过在预训练变换器中引入不确定性感知的自注意力机制,提升模型在不确定情况下的预测能力,减少校准误差,提高选择性预测效果。

摘要:

神经自然语言处理模型往往存在校准不当和过度自信的问题,会将错误预测赋予高置信度,并在内部证据聚合过程中无法表达不确定性。这会破坏选择性预测和高风险部署。事后校准方法调整输出概率但不改变内部计算,而集成和贝叶斯方法则通过显著的训练或存储成本来提高不确定性。我们提出了UAT-LITE,这是一种推理时间框架,通过蒙特卡罗dropout在预训练变换器分类器中使自注意力不确定性感知。与输出级校准(如TS)不同,UAT-LITE将epistemic不确定性直接注入注意力,使在上下文化过程中能够进行不确定性感知路由,并在token层面产生超越全局logit重缩放的诊断信号。token层面的epistemic不确定性是从随机前向传递中估计的,并在上下文化过程中用于调节自注意力,而无需修改预训练权重或训练目标。我们还引入了一层方差分解,以诊断预测不确定性如何在变换器深度中累积。在SQuAD 2.0可回答性、MNLI和SST-2上,UAT-LITE相比微调的BERT-base基线平均相对ECE减少约20%,同时保持准确性,并在分布偏移下产生更具信息量的不确定性行为。

英文摘要:

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 prediction and high-stakes deployment. Post-hoc calibration methods adjust output probabilities but leave internal computation unchanged, while ensemble and Bayesian approaches improve uncertainty at substantial training or storage cost. We propose UAT-LITE, an inference-time framework that makes self-attention uncertainty-aware via Monte Carlo dropout in pretrained transformer classifiers. Unlike output-level calibration (e.g., TS), UAT-LITE injects epistemic uncertainty directly into attention, enabling uncertainty-aware routing during contextualization and token-level diagnostic signals beyond global logit rescaling. Token-level epistemic uncertainty is estimated from stochastic forward passes and used to modulate self-attention during contextualization, without modifying pretrained weights or training objectives. We additionally introduce a layer-wise variance decomposition to diagnose how predictive uncertainty accumulates across transformer depth. Across SQuAD 2.0 answerability, MNLI, and SST-2, UAT-LITE achieves an average relative ECE reduction of approximately 20% compared with a fine-tuned BERT-base baseline while preserving accuracy, and yields more informative uncertainty behavior for selective prediction under distribution shift.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑