mlsanityData to 14 Oct 2026

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

arXiv 2308.11295 ↗First posted 22 Aug 2023cs.LGcited by 8

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  3. 2013Intriguing properties of neural networkscited by 5,155
  4. 2017On Calibration of Modern Neural Networkscited by 4,960
  5. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  6. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  7. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  8. 2017What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?cited by 2,352
  9. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  10. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  11. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
  12. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
18 more
  1. 2018Neural Network Acceptability Judgmentscited by 958
  2. 2017Selective Classification for Deep Neural Networkscited by 852
  3. 2020Hands-on Bayesian Neural Networks -- a Tutorial for Deep Learning Userscited by 338
  4. 2018Why ReLU networks yield high-confidence predictions far away from the training data and how to mitigate the problemcited by 323
  5. 2019Revealing the Dark Secrets of BERTcited by 301
  6. 2018Learning Confidence for Out-of-Distribution Detection in Neural Networkscited by 245
  7. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  8. 2016Diachronic Word Embeddings Reveal Statistical Laws of Semantic Changecited by 221
  9. 2017An introduction to Topological Data Analysis: fundamental and practical aspects for data scientistscited by 172
  10. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
  11. 2021Understanding Softmax Confidence and Uncertaintycited by 63
  12. 2021Artificial Text Detection via Examining the Topology of Attention Mapscited by 49
  13. 2021Manifold Topology Divergence: a Framework for Comparing Data Manifoldscited by 31
  14. 2020GPU-Accelerated Computation of Vietoris-Rips Persistence Barcodescited by 27
  15. 2019Mitigating Uncertainty in Document Classificationcited by 22
  16. 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
  17. 2021A Differentiable Language Model Adversarial Attack on Text Classifierscited by 9
  18. 2022ScaleFace: Uncertainty-aware Deep Metric Learningcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 3; 2025: 3; 2026: 1.

8 papers.