Reproduce “Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Mert Yuksekgonul, Varun Chandrasekaran, Erik Jones, Suriya Gunasekar, Ranjita Naik, Hamid Palangi, Ece Kamar, Besmira Nushi
Researchers from Stanford, Microsoft Research, and other institutions investigated the internal mechanisms leading to factual errors in Large Language Models by framing factual queries as Constraint Satisfaction Problems. They developed SAT PROBE, a tool that leverages LLM attention patterns to predict factual errors with performance comparable to model confidence, demonstrating its utility for early error detection and fine-grained constraint satisfaction.
Key insights
- A robust positive correlation exists between the magnitude of an LLM's attention to constraint tokens and the factual accuracy of its generations, suggesting errors stem from a lack of attention.
- Factual accuracy is influenced by the popularity of the constraining entity and the "constrainedness" of the query, with larger LLMs (e.g., Llama-2 70B) exhibiting improved performance across these factors.
- Attention patterns in LLMs not only reflect knowledge saliency but also evolve with model scale, showing increased attention to constraints in larger, more accurate models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.