Fact Grounded Attention: Eliminating Hallucination in Large Language Models Through Attention Level Knowledge Integration
Not on the map. Why?
Abstract (arXiv)
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge." Large Language Models have conquered natural language but remain prisoners of their own probabilistic nature--confidently hallucinating facts they never truly knew. We present Fact Grounded Attention (FGA), a novel architectural modification that transforms unreliable language models into deterministic truth tellers by injecting verifiable knowledge directly into the attention mechanism. Unlike existing approaches that patch hallucinations after generation or prepend retrieved text, FGA intervenes at the mathematical heart of the transformer--the pre-softmax attention scores--creating a model that cannot hallucinate when facts exist in its knowledge base. Our experiments across 1,107 technical queries spanning smartphones, laptops, and electric vehicles demonstrate a transformation from 6.3% accuracy in vanilla Llama 3.2 to 99.7% accuracy with FGA. More critically, knowledge updates occur in under one second without retraining, compared to hours for parameter editing approaches. FGA doesn't just reduce hallucination--it eliminates it entirely for verifiable facts, marking a fundamental shift from probabilistic approximation to deterministic precision in neural language generation.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 22 references that are in the map. First posted on arXiv 27 Sep 2025.
Builds on
17 of 22 references.
References · 17
- 2017Attention Is All You Needcited by 60,361
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
5 more
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2021Fast Model Editing at Scalecited by 498
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
- 2020LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attentioncited by 326
Built on by
Not cited yet.