paper-with-me

홈 › Papers

Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Models

2023-09-26 · Mert Yuksekgonul, Varun Chandrasekaran, Erik Jones, Suriya Gunasekar, Ranjita Naik, Hamid Palangi, Ece Kamar, Besmira Nushi

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.

📄 PDF Abstract BibTeX arXiv:2309.15098

Code (1)

microsoft/mechanistic-error-probe 공식 구현 pytorch

Similar Papers 제목 키워드 기반

KITAB: Evaluating LLMs on Constraint Satisfaction for Information Retrieval

2023-10-24 · Marah I Abdin, Suriya Gunasekar, Varun Chandrasekaran, Jerry Li 외

We study the ability of state-of-the art models to answer constraint satisfaction queries for information retrieval (e.g., 'a list of ice cream shops in San Diego'). In the past, such queries were considered to be tasks …

Information RetrievalRetrieval

Finding Counterfactual Explanations through Constraint Relaxations

2022-04-07 · Sharmi Dev Gupta, Begum Genc, Barry O'Sullivan

Interactive constraint systems often suffer from infeasibility (no solution) due to conflicting user constraints. A common approach to recover infeasibility is to eliminate the constraints that cause the conflicts in the…

counterfactualCounterfactual Explanation

Counterfactual Explanations for Neural Recommenders

2021-05-11 · Khanh Hiep Tran, Azin Ghazimatin, Rishiraj Saha Roy

Understanding why specific items are recommended to users can significantly increase their trust and satisfaction in the system. While neural recommenders have become the state-of-the-art in recent years, the complexity …

Collaborative Filteringcounterfactual

Transformers satisfy

2021-01-01 · Feng Shi, Chen Li, Shijie Bian, Yiqiao Jin 외

The Propositional Satisfiability Problem (SAT), and more generally, the Constraint Satisfaction Problem (CSP), are mathematical questions defined as finding an assignment to a set of objects that satisfies a series of co…

Robust Constraint Satisfaction in Data-Driven MPC

2020-03-15 · Julian Berberich, Johannes Köhler, Matthias A. Müller, Frank Allgöwer

We propose a purely data-driven model predictive control (MPC) scheme to control unknown linear time-invariant systems with guarantees on stability and constraint satisfaction in the presence of noisy data. The scheme pr…

Model Predictive Control