We explore the Iterative Inference Hypothesis (IIH) within the context of transformer-based language models, aiming to understand how a model's latent representations are progressively refined and whether observable differences are present between correct and incorrect generations. Our findings provide empirical support for the IIH, showing that the nth token embedding in the residual stream follows a trajectory of decreasing loss. Additionally, we observe that the rate at which residual embeddings converge to a stable output representation reflects uncertainty in the token generation process. Finally, we introduce a method utilizing cross-entropy to detect this uncertainty and demonstrate its potential to distinguish between correct and incorrect token generations on a dataset of idioms.
Uncovering More Shallow Heuristics: Probing the Natural Language Inference Capacities of Transformer-Based Pre-Trained Language Models Using Syllogistic Patterns
U-Space: Uncovering When and Why Uncertainty Arises in Language Models
Technische Universität Darmstadt(达姆施塔特工业大学);University College London(伦敦大学学院);Universität zu Lübeck(吕贝克大学);Mila – Quebec Artificial Intelligence Institute(米拉-魁北克人工智能研究所);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Transformer Uncertainty Estimation with Hierarchical Stochastic Attention
University of Amsterdam(阿姆斯特丹大学);Amazon Development Center Germany GmbH(亚马逊德国开发中心有限公司)
Transformers在广泛的NLP任务中是最先进的,也已应用于许多现实世界的产品。了解Transformer模型预测的可靠性和确定性对于构建可信的机器学习应用程序至关重要,例如,医学诊断虽然最近已经提出了许多Transformer扩展,Transformer模型的不确定性估计的研究是欠探索。在这项工作中,我们提出了一种新的方法,使Transformers具有不确定性估计的能力,同时,保持原来的预测性能。这是通过学习一个分层的随机自我注意力,分别出席值和一组可学习的质心。然后,使用Gumbel-Softmax技巧,用采样质心的混合物形成新的注意力头部。我们从理论上证明了从Gumbel分布采样的自注意近似是有界的。我们经验性地评估我们的模型在两个文本分类任务与域内(ID)和域外(OOD)数据集。实验结果表明:(1)在比较的方法中,该方法具有最好的预测性能和不确定性权衡;(2)在ID数据集上表现出非常有竞争力的(在大多数情况下,提高了)预测性能;(3)在OOD数据集上的不确定性估计中与Monte Carlo dropout和集成方法相当。
Layer by Layer: Uncovering Hidden Representations in Language Models
University of Kentucky(肯塔基大学);Mila-Quebec AI Institute(魁北克AI研究所);University of Montreal(蒙特利尔大学);New York University(纽约大学);University of California, Los Angeles(加州大学洛杉矶分校);Meta FAIR
What Gets Activated: Uncovering Domain and Driver Experts in MoE Language Models
Guangdong University of Technology(广东工业大学);Soochow University(苏州大学);University of Copenhagen(哥本哈根大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
ELLIS Institute Tübingen(图宾根埃利斯研究所);LIONS, EPFL(日内瓦理工学院LIONS实验室);University of Freiburg(弗赖堡大学);Max-Planck-Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);Prior Labs(Prior实验室)