Skip to main content
QUICK REVIEW

[Paper Review] Overthinking the Truth: Understanding how Language Models Process False Demonstrations

Danny Halawi, Jean-Stanislas Denain|arXiv (Cornell University)|Jul 18, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper investigates how language models incorrectly imitate false demonstrations in few-shot learning, identifying two key phenomena: 'overthinking,' where models worsen performance after a critical layer when given incorrect examples, and 'false induction heads'—specific attention heads in late layers that copy erroneous patterns. Ablating these heads reduces harmful imitation by 38.9% on average across 14 datasets without harming performance on correct demonstrations.

ABSTRACT

Modern language models can imitate complex patterns through few-shot learning, enabling them to complete challenging tasks without fine-tuning. However, imitation can also lead models to reproduce inaccuracies or harmful content if present in the context. We study harmful imitation through the lens of a model's internal representations, and identify two related phenomena: "overthinking" and "false induction heads". The first phenomenon, overthinking, appears when we decode predictions from intermediate layers, given correct vs. incorrect few-shot demonstrations. At early layers, both demonstrations induce similar model behavior, but the behavior diverges sharply at some "critical layer", after which the accuracy given incorrect demonstrations progressively decreases. The second phenomenon, false induction heads, are a possible mechanistic cause of overthinking: these are heads in late layers that attend to and copy false information from previous demonstrations, and whose ablation reduces overthinking. Beyond scientific understanding, our results suggest that studying intermediate model computations could be a promising avenue for understanding and guarding against harmful model behaviors.

Motivation & Objective

  • To understand how language models reproduce inaccuracies from false few-shot demonstrations.
  • To investigate the internal mechanisms causing harmful context-following in LLMs.
  • To localize when and where incorrect imitations emerge during model inference.
  • To identify specific attention heads responsible for propagating false patterns.
  • To evaluate whether removing these heads can reduce harmful imitation without degrading performance on correct tasks.

Proposed method

  • Contrastive analysis of model behavior using correct vs. incorrect few-shot demonstrations across multiple NLP tasks.
  • Decoding from intermediate residual stream layers to track how prediction accuracy evolves during inference.
  • Identifying a 'critical layer' where performance diverges sharply between correct and incorrect demonstrations.
  • Using activation patching and attention head ablation to isolate and test the impact of specific heads on model behavior.
  • Measuring calibrated accuracy across layers to quantify overthinking and the effect of interventions.
  • Validating findings across 14 diverse datasets, including SST-2, Financial-Phrasebank, and TweetEval.

Experimental results

Research questions

  • RQ1At what stage of inference do models begin to diverge in performance when given correct vs. incorrect demonstrations?
  • RQ2What internal model components are responsible for propagating false patterns from demonstrations?
  • RQ3Can early-layer interventions or attention head ablation reduce harmful imitation without affecting performance on correct examples?
  • RQ4How does the model's internal representation of correctness evolve across layers during inference?
  • RQ5To what extent can identifying and removing 'false induction heads' mitigate overthinking and improve robustness?

Key findings

  • Models exhibit 'overthinking'—performance on incorrect demonstrations degrades after a critical layer, while performance on correct demonstrations improves, indicating a late-stage failure to correct errors.
  • The critical layer, where performance diverges, occurs after early representations have already formed, suggesting that early processing is robust to demonstration quality.
  • False induction heads—attention heads in late layers that attend to and copy false information from demonstrations—are a primary mechanistic cause of overthinking.
  • Ablating just 5 such heads (1% of total heads) reduced the accuracy gap between correct and incorrect demonstrations by 38.9% on average across 14 datasets.
  • The same intervention had negligible negative impact on performance when given correct demonstrations, indicating targeted mitigation of harmful behavior.
  • The findings suggest that intermediate model computations are a viable target for interpretability and safety interventions, with follow-up work already applying these insights to detect prompt injection attacks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.