[Paper Review] System 2 Attention (is something you might need too)
System 2 Attention (S2A) uses instruction-tuned LLMs to rewrite the input context so that only relevant information is attended to, improving factuality and reducing sycophancy across QA, math word problems, and longform generation.
Soft attention in Transformer-based Large Language Models (LLMs) is susceptible to incorporating irrelevant information from the context into its latent representations, which adversely affects next token generations. To help rectify these issues, we introduce System 2 Attention (S2A), which leverages the ability of LLMs to reason in natural language and follow instructions in order to decide what to attend to. S2A regenerates the input context to only include the relevant portions, before attending to the regenerated context to elicit the final response. In experiments, S2A outperforms standard attention-based LLMs on three tasks containing opinion or irrelevant information, QA, math word problems and longform generation, where S2A increases factuality and objectivity, and decreases sycophancy.
Motivation & Objective
- Motivate and address failures of soft attention in transformers due to irrelevant context and sycophancy.
- Leverage LLMs as natural-language reasoners to rewrite and filter the input context before generation.
- Explore a two-step process: regenerate context with an instruction prompt, then generate the final answer from the regenerated context.
- Show that S2A increases factuality and objectivity while reducing influence of opinionated or irrelevant context.
Proposed method
- Model: LLaMA-2-70B-chat as the base LLM.
- Two-step S2A process: (1) regenerate context x' from input x via a zero-shot prompt P_S2A; (2) generate y ~ LLM(x').
- Implementation uses instruction-tuned LLMs to perform the regeneration as natural-language reasoning.
- Variants include options like separating context and question, keeping original context, and instructed prompting to modulate debiasing.
- Experiments use decoding settings (temperature 0.6, top-p 0.9) and compare baseline, oracle (unopinionated), and S2A.
- Tasks include factual QA with opinion-injected prompts, longform argument generation with opinion prompts, and GSM-IC math word problems with distractors.
Experimental results
Research questions
- RQ1Does System 2 Attention improve factual accuracy in QA when the prompt includes opinionated cues or distractors?
- RQ2Does S2A increase objectivity and reduce sycophancy in longform generation with opinion-based contexts?
- RQ3Can S2A mitigate the impact of irrelevant or distracting sentences in math word problems?
- RQ4How do various S2A variants (e.g., separating context, keeping original, instructed prompting) affect performance?
- RQ5What are the trade-offs in computational cost versus accuracy gains for S2A?
Key findings
- On modified TriviaQA with opinions, accuracy rises from 62.8% (baseline) to 80.3% with S2A, approaching the oracle 82.0%.
- In longform argument generation, S2A yields higher objectivity (3.82) than baseline or oracle prompts (2.23 and 3.0 respectively).
- For GSM-IC math problems with distractors, S2A improves accuracy from 51.7% (baseline) to 61.3%.
- Ablations show sharp context-level attention is important; keeping original context or using CoT prompts provides less benefit than S2A.
- S2A reduces susceptibility to sycophancy and opinion-induced errors across tasks while maintaining high overall quality of responses.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.