Scaling Reasoning Hop Exposes Weaknesses: Demystifying and Improving Hop Generalization in Large Language Models
Zhaoyi Li, Jiatong Li, Gangwei Jiang, Linqi Song, Defu Lian, Ying Wei
TL;DR
The paper investigates why chain-of-thought reasoning in large language models collapses as the number of reasoning hops increases. By adopting an error-centric view and residual-stream analysis, the authors reveal a competition mechanism where erroneous processing heads (ep heads) can bias intermediate reasoning away from correct trajectories, which are mediated by cp heads and aw heads. They show that errors concentrate on a small set of token-level error types and that deleting specific ep heads often restores correct predictions, allowing a lightweight test-time intervention, TCR, to dynamically deactivate these heads during decoding. TCR uses a head selector to identify candidate ep heads and an entropy-based detector to trigger interventions, yielding consistent improvements across seven tasks and four open-source LLMs, with larger gains when error localization is precise (TCR-gold). Overall, the work identifies actionable internal mechanisms behind hop-generalization failures and proposes a practical, generalizable remedy to improve long-horizon reasoning in LLMs.
Abstract
Chain-of-thought (CoT) reasoning has become the standard paradigm for enabling Large Language Models (LLMs) to solve complex problems. However, recent studies reveal a sharp performance drop in reasoning hop generalization scenarios, where the required number of reasoning steps exceeds training distributions while the underlying algorithm remains unchanged. The internal mechanisms driving this failure remain poorly understood. In this work, we conduct a systematic study on tasks from multiple domains, and find that errors concentrate at token positions of a few critical error types, rather than being uniformly distributed. Closer inspection reveals that these token-level erroneous predictions stem from internal competition mechanisms: certain attention heads, termed erroneous processing heads (ep heads), tip the balance by amplifying incorrect reasoning trajectories while suppressing correct ones. Notably, removing individual ep heads during inference can often restore the correct predictions. Motivated by these insights, we propose test-time correction of reasoning, a lightweight intervention method that dynamically identifies and deactivates ep heads in the reasoning process. Extensive experiments across different tasks and LLMs show that it consistently improves reasoning hop generalization, highlighting both its effectiveness and potential.
