Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matrices
Not on the map. Why?
Abstract (arXiv)
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 (UE) techniques often fall short in classification tasks, either offering minimal improvements over basic heuristics or relying on costly ensemble models. Moreover, attempts to leverage common embeddings for UE in linear probing scenarios have yielded only modest gains, indicating that alternative model components should be explored. We tackle these limitations by harnessing the geometry of attention maps across multiple heads and layers to assess model confidence. Our approach extracts topological features from attention matrices, providing a low-dimensional, interpretable representation of the model's internal dynamics. Additionally, we introduce topological features to compare attention patterns across heads and layers. Our method significantly outperforms existing UE techniques on benchmarks for acceptability judgments and artificial text detection, offering a more efficient and interpretable solution for uncertainty estimation in large-scale language models.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 30 of its 50 references that are in the map. First posted on arXiv 22 Aug 2023.
Builds on
30 of 50 references.
References · 30
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2013Intriguing properties of neural networkscited by 5,155
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2017What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?cited by 2,352
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
18 more
- 2018Neural Network Acceptability Judgmentscited by 958
- 2017Selective Classification for Deep Neural Networkscited by 852
- 2020Hands-on Bayesian Neural Networks -- a Tutorial for Deep Learning Userscited by 338
- 2018Why ReLU networks yield high-confidence predictions far away from the training data and how to mitigate the problemcited by 323
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2018Learning Confidence for Out-of-Distribution Detection in Neural Networkscited by 245
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2016Diachronic Word Embeddings Reveal Statistical Laws of Semantic Changecited by 221
- 2017An introduction to Topological Data Analysis: fundamental and practical aspects for data scientistscited by 172
- 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
- 2021Understanding Softmax Confidence and Uncertaintycited by 63
- 2021Artificial Text Detection via Examining the Topology of Attention Mapscited by 49
- 2021Manifold Topology Divergence: a Framework for Comparing Data Manifoldscited by 31
- 2020GPU-Accelerated Computation of Vietoris-Rips Persistence Barcodescited by 27
- 2019Mitigating Uncertainty in Document Classificationcited by 22
- 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
- 2021A Differentiable Language Model Adversarial Attack on Text Classifierscited by 9
- 2022ScaleFace: Uncertainty-aware Deep Metric Learningcited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 3; 2026: 1.
8 papers.
- 2025Hallucination Detection in LLMs with Topological Divergence on Attention Graphscited by 19
- 2025Semantic Energy: Detecting LLM Hallucination Beyond Entropycited by 18
- 2024Mapping the Multiverse of Latent Representationscited by 5
- 2024Topological Data Analysis Applications in Natural Language Processing: A Surveycited by 2
- 2023Correcting sampling biases via importance reweighting for spatial modelingcited by 0
- 2024Expert-aware uncertainty estimation for quality control of neural-based blood typingcited by 0
- 2025A Multi-target Bayesian Transformer Framework for Predicting Cardiovascular Disease Biomarkers during Pandemicscited by 0
- 2026Sound Probabilistic Safety Bounds for Large Language Modelscited by 0
- 2026Sound Probabilistic Safety Bounds for Large Language Models22 Jul 2026
- 2025A Multi-target Bayesian Transformer Framework for Predicting Cardiovascular Disease Biomarkers during Pandemics1 Sep 2025
- 2025Semantic Energy: Detecting LLM Hallucination Beyond Entropy20 Aug 2025
- 2025Hallucination Detection in LLMs with Topological Divergence on Attention Graphs14 Apr 2025
- 2024Topological Data Analysis Applications in Natural Language Processing: A Survey15 Nov 2024
- 2024Expert-aware uncertainty estimation for quality control of neural-based blood typing15 Jul 2024
- 2024Mapping the Multiverse of Latent Representations2 Feb 2024
- 2023Correcting sampling biases via importance reweighting for spatial modeling9 Sep 2023