Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Models
Yuksekgonul, Mert, Chandrasekaran, Varun, Jones, Erik, Gunasekar, Suriya, Naik, Ranjita, Palangi, Hamid, Kamar, Ece, Nushi, Besmira
–arXiv.org Artificial Intelligence
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 model interacts internally with factual constraints. Specifically, we discover a strong positive relation between the model's attention to constraint tokens and the factual accuracy of its responses. In our curated suite of 11 datasets with over 40,000 prompts, we 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 self-attention patterns, that can predict constraint satisfaction and factual errors, and allows early error identification. The approach and findings demonstrate how using the mechanistic understanding of factuality in LLMs can enhance reliability.
arXiv.org Artificial Intelligence
Sep-26-2023
- Country:
- Asia > Middle East
- Republic of Türkiye > Zonguldak Province > Zonguldak (0.04)
- Europe
- Austria > Vienna (0.04)
- France > Provence-Alpes-Côte d'Azur
- Bouches-du-Rhône > Marseille (0.04)
- Germany
- Bavaria > Middle Franconia
- Nuremberg (0.04)
- Berlin (0.04)
- Bavaria > Middle Franconia
- Lithuania > Telšiai County
- Telšiai (0.04)
- Montenegro > Podgorica
- Podgorica (0.04)
- Serbia > Vojvodina
- Central Banat District > Zrenjanin (0.04)
- Spain > Galicia
- Madrid (0.04)
- North America
- Dominican Republic (0.04)
- United States
- California > Santa Clara County
- Palo Alto (0.04)
- Illinois > Champaign County
- Urbana (0.04)
- California > Santa Clara County
- Asia > Middle East
- Genre:
- Personal > Honors
- Award (0.47)
- Research Report > New Finding (0.66)
- Personal > Honors
- Industry:
- Leisure & Entertainment > Sports
- Basketball (0.94)
- Soccer (0.68)
- Media (1.00)
- Leisure & Entertainment > Sports