The Truth About Overthinking: Understanding How Language Models Process Incorrect ExamplesOverthinking the Truth: Understanding how Language Models Process False Demonstrations
Starting from the internal representations of language models, the researchers identify two phenomena, "overthinking" and "spurious induction heads," to explain why models imitate incorrect examples in context. In early layers, correct and incorrect few-shot examples elicit similar model behavior, but after a certain "critical layer" the behavior begins to diverge noticeably, and thereafter accuracy gradually declines under incorrect examples. Spurious induction heads are attention heads in later layers that attend to and copy incorrect information from earlier examples; ablating these heads can mitigate overthinking. Based on this, the authors propose that studying the intermediate-layer computation of models is a feasible direction for understanding and preventing harmful model behavior.