Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Models
Not on the map. Why?
Abstract (arXiv)
We investigate the internal behavior of Transformer-based Large Language Models (LLMs) when they generate factually incorrect text. We propose modeling factual queries as constraint satisfaction problems and use this framework to investigate how the LLM interacts internally with factual constraints. We find a strong positive relationship between the LLM's attention to constraint tokens and the factual accuracy of generations. We curate a suite of 10 datasets containing over 40,000 prompts to study the task of predicting factual errors with the Llama-2 family across all scales (7B, 13B, 70B). We propose SAT Probe, a method probing attention patterns, that can predict factual errors and fine-grained constraint satisfaction, and allow early error identification. The approach and findings take another step towards using the mechanistic understanding of LLMs to enhance their reliability.
Key facts. Cited by 67 papers in the map (data through 7 Oct 2026). Builds on 41 of its 57 references that are in the map. First posted on arXiv 26 Sep 2023.
Builds on
41 of 57 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,259
29 more
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2022In-context Learning and Induction Headscited by 930
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2017Selective Classification for Deep Neural Networkscited by 799
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 20218-bit Optimizers via Block-wise Quantizationcited by 395
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
- 2023How Language Model Hallucinations Can Snowballcited by 310
- 2023A Stitch in Time Saves Nine: Detecting and Mitigating Hallucinations of LLMs by Validating Low-Confidence Generationcited by 202
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2023Head-to-Tail: How Knowledgeable are Large Language Models (LLMs)? A.K.A. Will LLMs Replace Knowledge Graphs?cited by 167
- 2023LM vs LM: Detecting Factual Errors via Cross Examinationcited by 155
- 2019Challenges in Building Intelligent Open-domain Dialog Systemscited by 147
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
- 2022Analyzing Transformers in Embedding Spacecited by 131
- 2023Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigationcited by 123
- 2023AI Transparency in the Age of LLMs: A Human-Centered Research Roadmapcited by 119
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
- 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 78
- 2023Beyond Confidence: Reliable Models Should Also Consider Atypicalitycited by 25
Built on by
Citing papers per year: 2023: 2; 2024: 29; 2025: 30; 2026: 6.
67 papers.
Sort:
By area:
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 230
- 2024Devils in Middle Layers of Large Vision-Language Models: Interpreting, Detecting and Mitigating Object Hallucinations via Attention Lenscited by 139
- 2024Do I Know This Entity? Knowledge Awareness and Hallucinations in Language Modelscited by 114
- 2024The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Modelscited by 87
- 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoningcited by 85
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2024Knowledge Circuits in Pretrained Transformerscited by 60
- 2024Understanding Information Storage and Transfer in Multi-modal Large Language Modelscited by 48
- 2024In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigationcited by 43
- 2024On Large Language Models' Hallucination with Regard to Known Factscited by 43
38 more
- 2024Estimating Knowledge in Large Language Models Without Generating a Single Tokencited by 39
- 2024Mechanistic Understanding and Mitigation of Language Model Non-Factual Hallucinationscited by 38
- 2024Understanding Finetuning for Factual Knowledge Extractioncited by 31
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processingcited by 25
- 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinationscited by 23
- 2025A Head to Predict and a Head to Question: Pre-trained Uncertainty Quantification Heads for Hallucination Detection in LLM Outputscited by 20
- 2024Constructing Benchmarks and Interventions for Combating Hallucinations in LLMscited by 19
- 2025Robust Hallucination Detection in LLMs via Adaptive Token Selectioncited by 19
- 2024Eureka: Evaluating and Understanding Large Foundation Modelscited by 18
- 2025SelfElicit: Your Language Model Secretly Knows Where is the Relevant Evidencecited by 18
- 2025Reasoning Models Hallucinate More: Factuality-Aware Reinforcement Learning for Large Reasoning Modelscited by 18
- 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 17
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
- 2025Probing for Arithmetic Errors in Language Modelscited by 17
- 2025Attention-guided Self-reflection for Zero-shot Hallucination Detection in Large Language Modelscited by 16
- 2025Beyond Token Probes: Hallucination Detection via Activation Tensors with ACT-ViTcited by 16
- 2024Anchored Answers: Unravelling Positional Bias in GPT-2's Multiple-Choice Questionscited by 15
- 2024Distinguishing Ignorance from Error in LLM Hallucinationscited by 14
- 2025Efficient Hallucination Detection for LLMs Using Uncertainty-Aware Attention Headscited by 14
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generationcited by 12
- 2025LLM Microscope: What Model Internals Reveal About Answer Correctness and Context Utilizationcited by 11
- 2023KITAB: Evaluating LLMs on Constraint Satisfaction for Information Retrievalcited by 10
- 2025Mass-Editing Memory with Attention in Transformers: A cross-lingual exploration of knowledgecited by 10
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2024Whispers that Shake Foundations: Analyzing and Mitigating False Premise Hallucinations in Large Language Modelscited by 9
- 2024Zero-resource Hallucination Detection for Text Generation via Graph-based Contextual Knowledge Triples Modelingcited by 9
- 2025Language Models Can Predict Their Own Behaviorcited by 8
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinationscited by 8
- 2025Tracing the Traces: Latent Temporal Signals for Efficient and Accurate Reasoningcited by 8
- 2025Do LLMs Really Know What They Don't Know? Internal States Mainly Reflect Knowledge Recall Rather Than Truthfulnesscited by 7
- 2024Attention Speaks Volumes: Localizing and Mitigating Bias in Language Modelscited by 6
- 2024BenchAgents: Multi-Agent Systems for Structured Benchmark Creationcited by 6
- 2025When Do LLMs Admit Their Mistakes? Understanding The Role Of Model Belief In Retractioncited by 6
- 2025Popular but Wrong: Understanding and Mitigating LLM Overconfidence through Knowledge Popularitycited by 6
- 2025metaTextGrad: Automatically optimizing language model optimizerscited by 6
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2025Neural Message-Passing on Attention Graphs for Hallucination Detectioncited by 5
- 2025Cross-Layer Attention Probing for Fine-Grained Hallucination Detectioncited by 4
50 most cited of 67 All 67 (JSON)
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learning29 Sep 2026
- 2026Attention-Path Fragility as an Uncertainty Signal in Large Language Models11 Aug 2026
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gating20 May 2026
- 2026Learning Evidence Highlighting for Frozen LLMs24 Apr 2026
- 2026HalluSAE: Detecting Hallucinations in Large Language Models via Sparse Auto-Encoders6 Apr 2026
- 2026Beyond Scalars: Evaluating and Understanding LLM Reasoning via Geometric Progress and Stability11 Mar 2026
- 2025Adversarial Lens: Exploiting Attention Layers to Generate Adversarial Examples for Evaluation29 Dec 2025
- 2025Rethinking Cross-lingual Gaps from a Statistical Viewpoint17 Oct 2025
- 2025Tracing the Traces: Latent Temporal Signals for Efficient and Accurate Reasoning12 Oct 2025
- 2025Do LLMs Really Know What They Don't Know? Internal States Mainly Reflect Knowledge Recall Rather Than Truthfulness10 Oct 2025
- 2025LLM Microscope: What Model Internals Reveal About Answer Correctness and Context Utilization5 Oct 2025
- 2025Beyond Token Probes: Hallucination Detection via Activation Tensors with ACT-ViT30 Sep 2025
38 more
- 2025Neural Message-Passing on Attention Graphs for Hallucination Detection29 Sep 2025
- 2025Training-free Truthfulness Detection via Sparse MLP Value Vectors22 Sep 2025
- 2025Cross-Layer Attention Probing for Fine-Grained Hallucination Detection4 Sep 2025
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinations31 Jul 2025
- 2025Probing for Arithmetic Errors in Language Models16 Jul 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Reasoning Models Hallucinate More: Factuality-Aware Reinforcement Learning for Large Reasoning Models30 May 2025
- 2025From Hallucinations to Jailbreaks: Rethinking the Vulnerability of Large Foundation Models30 May 2025
- 2025Efficient Hallucination Detection for LLMs Using Uncertainty-Aware Attention Heads26 May 2025
- 2025metaTextGrad: Automatically optimizing language model optimizers24 May 2025
- 2025Popular but Wrong: Understanding and Mitigating LLM Overconfidence through Knowledge Popularity23 May 2025
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation22 May 2025
- 2025When Do LLMs Admit Their Mistakes? Understanding The Role Of Model Belief In Retraction22 May 2025
- 2025A Head to Predict and a Head to Question: Pre-trained Uncertainty Quantification Heads for Hallucination Detection in LLM Outputs13 May 2025
- 2025Robust Hallucination Detection in LLMs via Adaptive Token Selection10 Apr 2025
- 2025FACTS&EVIDENCE: An Interactive Tool for Transparent Fine-Grained Factual Verification of Machine-Generated Text19 Mar 2025
- 2025REFIND at SemEval-2025 Task 3: Retrieval-Augmented Factuality Hallucination Detection in Large Language Models19 Feb 2025
- 2025What are Models Thinking about? Understanding Large Language Model Hallucinations "Psychology" through Model Inner State Analysis19 Feb 2025
- 2025Language Models Can Predict Their Own Behavior18 Feb 2025
- 2025SelfElicit: Your Language Model Secretly Knows Where is the Relevant Evidence12 Feb 2025
- 2025Mass-Editing Memory with Attention in Transformers: A cross-lingual exploration of knowledge4 Feb 2025
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representations22 Jan 2025
- 2025Attention-guided Self-reflection for Zero-shot Hallucination Detection in Large Language Models17 Jan 2025
- 2024Devils in Middle Layers of Large Vision-Language Models: Interpreting, Detecting and Mitigating Object Hallucinations via Attention Lens23 Nov 2024
- 2024Do I Know This Entity? Knowledge Awareness and Hallucinations in Language Models21 Nov 2024
- 2024BenchAgents: Multi-Agent Systems for Structured Benchmark Creation29 Oct 2024
- 2024Attention Speaks Volumes: Localizing and Mitigating Bias in Language Models29 Oct 2024
- 2024Distinguishing Ignorance from Error in LLM Hallucinations29 Oct 2024
- 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinations24 Oct 2024
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations3 Oct 2024
- 2024Enhancing elusive clues in knowledge learning by contrasting attention of language models26 Sep 2024
- 2024The Ability of Large Language Models to Evaluate Constraint-satisfaction in Agent Responses to Open-ended Requests22 Sep 2024
- 2024Zero-resource Hallucination Detection for Text Generation via Graph-based Contextual Knowledge Triples Modeling17 Sep 2024
- 2024Eureka: Evaluating and Understanding Large Foundation Models13 Sep 2024
- 2024An Empirical Study of Validating Synthetic Data for Formula Generation15 Jul 2024
- 2024Understanding Finetuning for Factual Knowledge Extraction20 Jun 2024
- 2024Estimating Knowledge in Large Language Models Without Generating a Single Token18 Jun 2024
50 newest of 67 All 67 (JSON)
- 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoningcited by 85
- 2025Reasoning Models Hallucinate More: Factuality-Aware Reinforcement Learning for Large Reasoning Modelscited by 18
- 2025Attention-guided Self-reflection for Zero-shot Hallucination Detection in Large Language Modelscited by 16
- 2025Language Models Can Predict Their Own Behaviorcited by 8
- 2025Tracing the Traces: Latent Temporal Signals for Efficient and Accurate Reasoningcited by 8
- 2025Rethinking Cross-lingual Gaps from a Statistical Viewpointcited by 4
- 2026Beyond Scalars: Evaluating and Understanding LLM Reasoning via Geometric Progress and Stabilitycited by 4
- 2025What are Models Thinking about? Understanding Large Language Model Hallucinations "Psychology" through Model Inner State Analysiscited by 2
- 2026Beyond Scalars: Evaluating and Understanding LLM Reasoning via Geometric Progress and Stability11 Mar 2026
- 2025Rethinking Cross-lingual Gaps from a Statistical Viewpoint17 Oct 2025
- 2025Tracing the Traces: Latent Temporal Signals for Efficient and Accurate Reasoning12 Oct 2025
- 2025Reasoning Models Hallucinate More: Factuality-Aware Reinforcement Learning for Large Reasoning Models30 May 2025
- 2025What are Models Thinking about? Understanding Large Language Model Hallucinations "Psychology" through Model Inner State Analysis19 Feb 2025
- 2025Language Models Can Predict Their Own Behavior18 Feb 2025
- 2025Attention-guided Self-reflection for Zero-shot Hallucination Detection in Large Language Models17 Jan 2025
- 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoning26 Apr 2024
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processingcited by 25
- 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 17
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generationcited by 12
- 2025REFIND at SemEval-2025 Task 3: Retrieval-Augmented Factuality Hallucination Detection in Large Language Modelscited by 3
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation22 May 2025
- 2025REFIND at SemEval-2025 Task 3: Retrieval-Augmented Factuality Hallucination Detection in Large Language Models19 Feb 2025
- 2024RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing30 Apr 2024
- 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Models11 Feb 2024
- 2024Devils in Middle Layers of Large Vision-Language Models: Interpreting, Detecting and Mitigating Object Hallucinations via Attention Lenscited by 139
- 2024Understanding Information Storage and Transfer in Multi-modal Large Language Modelscited by 48
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gatingcited by 2
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gating20 May 2026
- 2024Devils in Middle Layers of Large Vision-Language Models: Interpreting, Detecting and Mitigating Object Hallucinations via Attention Lens23 Nov 2024
- 2024Understanding Information Storage and Transfer in Multi-modal Large Language Models6 Jun 2024
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 230
- 2024Do I Know This Entity? Knowledge Awareness and Hallucinations in Language Modelscited by 114
- 2024The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Modelscited by 87
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2024Knowledge Circuits in Pretrained Transformerscited by 60
- 2024In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigationcited by 43
- 2024On Large Language Models' Hallucination with Regard to Known Factscited by 43
- 2024Estimating Knowledge in Large Language Models Without Generating a Single Tokencited by 39
- 2024Mechanistic Understanding and Mitigation of Language Model Non-Factual Hallucinationscited by 38
- 2024Understanding Finetuning for Factual Knowledge Extractioncited by 31
12 most cited of 47 All 47 (JSON)
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learning29 Sep 2026
- 2026Attention-Path Fragility as an Uncertainty Signal in Large Language Models11 Aug 2026
- 2026Learning Evidence Highlighting for Frozen LLMs24 Apr 2026
- 2026HalluSAE: Detecting Hallucinations in Large Language Models via Sparse Auto-Encoders6 Apr 2026
- 2025Adversarial Lens: Exploiting Attention Layers to Generate Adversarial Examples for Evaluation29 Dec 2025
- 2025Do LLMs Really Know What They Don't Know? Internal States Mainly Reflect Knowledge Recall Rather Than Truthfulness10 Oct 2025
- 2025LLM Microscope: What Model Internals Reveal About Answer Correctness and Context Utilization5 Oct 2025
- 2025Beyond Token Probes: Hallucination Detection via Activation Tensors with ACT-ViT30 Sep 2025
- 2025Neural Message-Passing on Attention Graphs for Hallucination Detection29 Sep 2025
- 2025Training-free Truthfulness Detection via Sparse MLP Value Vectors22 Sep 2025
- 2025Cross-Layer Attention Probing for Fine-Grained Hallucination Detection4 Sep 2025
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinations31 Jul 2025
12 newest of 47 All 47 (JSON)