mlsanityData to 14 Oct 2026

Uncertainty-Aware Transformers: Conformal Prediction for Language Models

arXiv 2604.08885 ↗First posted 10 Apr 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformers have had a profound impact on the field of artificial intelligence, especially on large language models and their variants. However, as was the case with neural networks, their black-box nature limits trust and deployment in high-stakes settings. For models to be genuinely useful and trustworthy in critical applications, they must provide more than just predictions: they must supply users with a clear understanding of the reasoning that underpins their decisions. This article presents an uncertainty quantification framework for transformer-based language models. This framework, called CONFIDE (CONformal prediction for FIne-tuned DEep language models), applies conformal prediction to the internal embeddings of encoder-only architectures, like BERT and RoBERTa, while enabling hyperparameter tuning. CONFIDE uses either [CLS] token embeddings or flattened hidden states to construct class-conditional nonconformity scores, enabling statistically valid prediction sets with instance-level explanations. Empirically, CONFIDE improves test accuracy by up to 4.09% on BERT-tiny and achieves greater correct efficiency (i.e., the expected size of the prediction set conditioned on it containing the true label) compared to prior methods, including NM2 and VanillaNN. We show that early and intermediate transformer layers often yield better-calibrated and more semantically meaningful representations for conformal prediction. In resource-constrained models and high-stakes tasks with ambiguous labels, CONFIDE offers robustness and interpretability where softmax-based uncertainty fails. We position CONFIDE as a framework for practical diagnostic and efficiency/robustness improvement over prior conformal baselines.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 38 references that are in the map. First posted on arXiv 10 Apr 2026.

Builds on

24 of 38 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  7. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  8. 2019Attention is not Explanationcited by 929
  9. 2021A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantificationcited by 792
  10. 2019Attention is not not Explanationcited by 636
  11. 2020Classification with Valid and Adaptive Coveragecited by 396
  12. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
12 more
  1. 2016Least Ambiguous Set-Valued Classifiers with Bounded Error Levelscited by 272
  2. 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 207
  3. 2023The BigScience ROOTS Corpus: A 1.6TB Composite Multilingual Datasetcited by 148
  4. 2024On the Societal Impact of Open Foundation Modelscited by 65
  5. 2021Understanding Softmax Confidence and Uncertaintycited by 63
  6. 2016Criteria of efficiency for conformal predictioncited by 36
  7. 2021Conformal prediction for text infilling and part-of-speech predictioncited by 22
  8. 2023On the Expected Size of Conformal Prediction Setscited by 13
  9. 2024Transformer Conformal Prediction for Time Seriescited by 7
  10. 2024CONFINE: Conformal Prediction for Interpretable Neural Networkscited by 5
  11. 2023On the Relationship Between Interpretability and Explainability in Machine Learningcited by 3
  12. 2025Explorations of the Softmax Space: Knowing When the Neural Network Doesn't Knowcited by 2

Built on by

Not cited yet.