Submitted:
21 October 2025
Posted:
24 October 2025
You are already at the latest version
Abstract
Large language models (LLMs) suffer from hallucinations—confidently generating false information when uncertain. Here we demonstrate that hallucinations stem primarily from the constraint that models must always select a token from a fixed vocabulary, with no mechanism to express uncertainty. We propose and test a simple solution: we add a single ABSTAIN token to the vocabulary and train models to predict it using corruption augmentation—a scalable data augmentation technique where corrupted inputs are mapped back to the abstain token. In a simple feedforward network tasked with single-token prediction, this approach eliminated hallucinations on unseen data (hallucination rate 95% down to 0%) while maintaining perfect accuracy on known examples. The same principle also scaled to a real question-answering (QA) model: a distilled BERT, fine-tuned on SQuAD abstained on 95% of nonsense questions at the optimal corruption level without suffering a catastrophic reduction in accuracy.
Keywords:
1. Introduction
- Reduces hallucinations
- Does not cause a catastrophic loss of accuracy on known examples
- Exhibits appropriate uncertainty on rare examples
- Requires no architectural changes or post-hoc alignment
- Generates training data automatically and scalably
2. Background and Related Work
3. Method
3.1. The Abstain Token
3.2. Corruption Augmentation
- Token shuffling: Randomly permute tokens in the context window
- Token substitution: Replace tokens with random vocabulary items
- Noise injection: Add random offsets to token embeddings
- Generates training data automatically
- Scales to any dataset size
- Requires no human annotation
- Applies to any domain
4. Experiments
4.1. Experimental Setup
- Common (20 pairs, seen 100×): High-frequency knowledge
- Rare (20 pairs, seen 1×): Singleton examples
- Unseen (20 pairs, seen 0×): Never in training (hallucination test)
- Accuracy: Fraction of correct predictions (excluding abstentions)
- Hallucination rate: Fraction of confident (prob ) but incorrect predictions
- Abstention rate: Fraction of predictions that are ABSTAIN
- Accuracy on held-out SQuAD validation questions
- Abstention rate on held-out SQuAD questions
- Abstention rate on nonsense questions
4.2. Results
- Hallucinations eliminated. On unseen data, the hallucination rate dropped from 95% to 0% with the model abstaining rather than hallucinating.
- Perfect performance maintained on common data. Accuracy remained 100% with 0% abstention on frequently-seen examples. The model confidently answered when it knew.
- Appropriate uncertainty on rare data. For singletons (seen once), the model abstained 45% of the time. When it did answer (55%), it was always correct, demonstrating calibrated uncertainty.
-
Perfect calibration. The model exhibited ideal behavior:
- High frequency → confident correct answers
- Low frequency → selective abstention
- No frequency → always abstain
5. Discussion
5.1. Comparison to Existing Approaches
- Multi-token sequences must be learned as complex patterns
- Post-training required after pretraining completes
- Expensive alignment with human feedback
- Fragile to prompt variations
- Single token directly optimized in loss
- During pretraining (or any training phase)
- Automatic data generation via corruption
- Robust architectural primitive
5.2. From Toy Models to LLMs
5.3. Limitations and Future Work
- Adaptive corruption rates based on data frequency
- Multiple abstention tokens (“probably don’t know” vs “definitely don’t know”)
- Confidence-weighted abstention during inference
- Efficient corruption strategies for long contexts
- Integration with existing tokenization schemes
- Evaluation on real-world hallucination benchmarks
- Context-aware shuffling that preserves some local structure
- Adversarial corruption that maximally confuses the model
- Curriculum learning: start with heavy corruption, gradually reduce
6. Conclusion
Data Availability Statement
Acknowledgments
References
- Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Yejin Bang, Andrea Madotto, and Pascale Fung. Survey of hallucination in natural language generation. ACM Computing Surveys 2023, 55, 1–38.
- Adam Tauman Kalai, Ofir Nachum, Santosh S. Vempala, and Edwin Zhang. Why language models hallucinate. arXiv preprint arXiv:2509.04664, 2025; arXiv:2509.04664.
- Vikas Raunak and Matt Post. The curious case of hallucinations in neural machine translation. arXiv preprint arXiv:2104.06683, 2021; arXiv:2104.06683.
- Anna Rohrbach, Lisa Anne Hendricks, Kaylee Burns, Trevor Darrell, and Kate Saenko. Object hallucination in image captioning. EMNLP, 2018.
- OpenAI. GPT-4 technical report. arXiv preprint arXiv:2303.08774, 2023; arXiv:2303.08774.
- Ziwei Xu, Sanjay Jain, and Mohan Kankanhalli. Hallucination is inevitable: An innate limitation of large language models. arXiv preprint arXiv:2401.11817, 2024; arXiv:2401.11817.
- Chi-Keung Chow. On optimum recognition error and reject tradeoff. IEEE Transactions on Information Theory 1970, 16, 41–46. [CrossRef]
- Yonatan Geifman and Ran El-Yaniv. Selective classification for deep neural networks. NeurIPS, 2017.
- Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. ICLR, 2023.
- Potsawee Manakul, Adian Liusie, and Mark JF Gales. SelfCheckGPT: Zero-resource black-box hallucination detection for generative large language models. EMNLP, 2023.
- Songhua Lin, Aditi Raghunathan, Percy Liang. Mitigating LLM hallucinations via conformal abstention. arXiv preprint arXiv:2405.01563, 2024; arXiv:2405.01563.
- Shangbin Feng, Weijia Shi, Yike Wang, Wenxuan Ding, Vidhisha Balachandran, Yulia Tsvetkov. Don’t hallucinate, abstain: Identifying LLM knowledge gaps via multi-LLM collaboration. arXiv preprint arXiv:2402.00367, 2024; arXiv:2402.00367.
- Yiming Zhang, Jianglue Wang, Qinying Chen, Zhihan Wang, Jiang Bian, and David Wipf. R-tuning: Teaching large language models to refuse unknown questions. arXiv preprint, 2024.
- Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221, 2022; arXiv:2207.05221.
| 1 | Code available at https://github.com/bariskanber/allyouneedisABSTAIN
|

| Baseline | With ABSTAIN | |||||
|---|---|---|---|---|---|---|
| ACC (%) | HAL (%) | ABS (%) | ACC (%) | HAL (%) | ABS (%) | |
| Common | 100 | 0 | — | 100 | 0 | 0 |
| Rare | 100 | 0 | — | 55 | 0 | 45 |
| Unseen | 0 | 95 | — | 0 | 0 | 100 |
| Unseen | Unseen | Rare | Rare | Common | Common | |
|---|---|---|---|---|---|---|
| p | HAL (%) | ABS (%) | ACC (%) | ABS (%) | ACC (%) | ABS (%) |
| 0.05 | 0 | 100 | 60 | 40 | 100 | 0 |
| 0.10 | 0 | 100 | 55 | 45 | 100 | 0 |
| 0.15 | 0 | 100 | 50 | 50 | 100 | 0 |
| 0.20 | 0 | 100 | 55 | 45 | 100 | 0 |
| 0.25 | 0 | 100 | 55 | 45 | 100 | 0 |
| 0.30 | 0 | 100 | 50 | 50 | 100 | 0 |
| Corruption p | Accuracy (%) | Normal Abstain (%) | Nonsense Abstain (%) |
|---|---|---|---|
| 57.8 ± 1.4 | 0.3 ± 0.1 | 0 ± 0 | |
| 56.0 ± 1.6 | 2.3 ± 0.3 | 55.5 ± 21.0 | |
| 55.0 ± 1.0 | 3.2 ± 0.6 | 89.0 ± 7.8 | |
| 55.2 ± 2.4 | 8.5 ± 1.1 | 94.5 ± 7.8 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).