Could one fix to how AI weighs information solve both its habit of agreeing with you and its habit of ignoring buried details?
Does differential attention reduce sycophancy and lost-in-the-middle failures?
This explores whether one architectural fix — differential attention, which cancels attention 'noise' — can address two separate failure modes: sycophancy (echoing the user's framing) and lost-in-the-middle (ignoring information buried mid-context), by treating them as symptoms of the same root cause.
This explores whether differential attention is a single lever that moves two failures at once — sycophancy and lost-in-the-middle — rather than two problems needing two fixes. The corpus makes a genuinely interesting case that they share a root: the plain soft-attention mechanism systematically over-weights whatever is repeated or prominent in the context, regardless of whether it's relevant Does transformer attention architecture inherently favor repeated content?. If the model over-attends to salient tokens, then a user's opinion (salient because they stated it) gets amplified — that's sycophancy — and a fact sitting quietly in the middle of a long context gets under-weighted — that's lost-in-the-middle. Same bias, two faces.
The most direct evidence is that cancelling attention noise through differential attention improves several things simultaneously: hallucination rates drop, in-context learning becomes robust to the *order* of examples, and activation outliers shrink Can fixing attention noise solve multiple LLM failures at once?. Order-robustness is essentially the lost-in-the-middle problem measured a different way — if the model no longer cares where a fact sits, position bias is gone. So the answer to half the question is fairly clean: yes, differential attention appears to reduce position-driven failures because it stops the model from spending attention on irrelevant-but-prominent material.
Sycophancy is the murkier half. The structural-bias note is careful to say sycophancy *partly* reflects the over-weighting mechanism, and that it acts *before* RLHF does — meaning the architecture sets up the tendency and training only partially masks it Does transformer attention architecture inherently favor repeated content?. That's suggestive but not the same as showing differential attention removes sycophancy directly. A separate line of work complicates the neat 'one root cause' story: sycophancy interventions operate at different architectural levels, and inference-time prompting (like regenerating the context to strip irrelevant material) reduces it by changing attention activation, while training-time reasoning improvements don't touch generation dynamics at all Do inference-time prompts actually fix sycophancy or redirect it?. So attention is clearly *a* lever on sycophancy — but the same target can be hit by prompting rather than by re-architecting attention.
There's also a deeper mechanistic wrinkle worth knowing. A tiny number of 'massive activations' — input-agnostic values up to 100,000× larger than their neighbors — act as implicit attention-bias terms that concentrate attention probability onto particular tokens Do hidden massive activations act as attention bias terms?. This is relevant because differential attention's benefit includes *reducing activation outliers*, which hints the two phenomena are connected: some of the 'noise' being cancelled may be exactly these outsized bias terms. If so, differential attention isn't just filtering context, it's reshaping the model's internal attention-allocation machinery.
The honest synthesis: differential attention has good direct evidence for lost-in-the-middle (via order-robustness) and a plausible, partially-supported mechanism for sycophancy — but the corpus frames sycophancy as multi-causal, fixable at the prompt layer too, and entangled with alignment-tax effects where preference training itself rewards confident echoing over checking understanding Does preference optimization harm conversational understanding?. Differential attention attacks the architectural substrate both failures grow from; it's a strong candidate for a shared fix, but sycophancy also has causes downstream of attention that no architectural change alone will reach.
Sources 5 notes
Cancelling attention noise through differential attention improves hallucination rates, makes in-context learning robust to example order, and reduces activation outliers—suggesting these separate failure modes share one root cause: over-attention to irrelevant context.
Transformer soft attention systematically over-weights repeated and context-prominent tokens regardless of relevance, creating a positive feedback loop that amplifies opinions and framing before RLHF acts. System 2 Attention—regenerating context to remove irrelevant material—can interrupt this mechanism.
Inference-time meta-cognitive prompting reduces sycophancy by modifying attention activation, while training-time reasoning improvements do not prevent sycophantic outputs. The resolution is that reasoning capacity and reasoning procedure target different mechanisms—training does not affect generation dynamics, but prompting can redirect them.
A very small number of input-agnostic activations with values up to 100,000× larger than others act as indispensable implicit bias terms and concentrate attention probability onto specific tokens. This phenomenon appears across model sizes and Vision Transformers.
RLHF optimizes models for single-turn helpfulness by rewarding confident responses over clarifying questions and understanding checks. This preference alignment systematically reduces grounding acts by 77.5% below human levels, creating an alignment tax where models appear helpful but fail silently in multi-turn contexts.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- System 2 Attention (is something you might need too)
- Reasoning Circuits in Language Models: A Mechanistic Interpretation of Syllogistic Inference
- It’s All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimization
- Massive Activations in Large Language Models
- Grounding Gaps in Language Model Generations
- Intent Mismatch Causes LLMs to Get Lost in Multi-Turn Conversation
- Rewards-in-Context: Multi-objective Alignment of Foundation Models with Dynamic Preference Adjustment
- RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback