Implicit Reasoning in Transformers is Reasoning through Shortcuts

Tianhe Lin, Jian Xie, Siyu Yuan, Deqing Yang

Abstract

While Transformers are capable of performing complex multi-step reasoning internally, they often default to "shortcuts" that fail to generalize. This paper identifies the "Variable as Subtrahend Plight," a phenomenon where models trained on disordered data resort to chaining numbers rather than tracking variables. This flaw persists even in state-of-the-art models like GPT-4o and Claude 3.5, highlighting a fundamental challenge in achieving robust implicit reasoning.

Introduction

Explicit reasoning techniques, such as Chain-of-Thought (CoT), have significantly improved Large Language Model (LLM) performance but come at a high computational cost due to the generation of intermediate tokens. Implicit reasoning—computing answers entirely within hidden states—offers a faster alternative but consistently underperforms. This study investigates why advanced reasoning fails to emerge implicitly, focusing on whether models perform internal stepwise calculations or rely on heuristics that break under out-of-distribution (OOD) conditions.

The Variable as Subtrahend Plight

The researchers identified a core failure mode termed the "Variable as Subtrahend Plight." When training data is shuffled (unfixed pattern), models often abandon stepwise reasoning for a "shortcut": chaining all numbers together. While effective for commutative operations like addition, this fails for subtraction when a variable is the subtrahend (the value being subtracted, e.g., $z = 11 - m$).

Figure 1: The Variable as Subtrahend Plight. Shortcut reasoners fail when variables are subtracted because they rely on simple number chaining rather than tracking variable values through steps.

Mechanistic Insights

Using mechanistic interpretability techniques like activation patching and attention masking, the authors mapped internal information flow within a GPT-2 model. They found that in models trained on ordered data, information propagates diagonally across layers and steps, indicating true sequential processing. Conversely, shortcut-reliant models lack this diagonal flow. The study also determined that attention layers primarily move intermediate results between steps, while MLP layers handle arithmetic feature processing.

Generalization and Results

The study highlights a stark contrast in generalization between stepwise and shortcut models. Models trained on fixed patterns maintained high accuracy even as the number of reasoning steps increased. In contrast, models trained on unfixed patterns saw accuracy plummet on OOD tasks, demonstrating that their internal "shortcuts" do not scale.

Figure 2: Accuracy vs. Training Steps. Models using shortcuts fail to generalize to out-of-distribution (OOD) tasks with more reasoning steps, whereas stepwise models remain robust.

Performance of Frontier Models

The "Subtrahend Plight" is not limited to small synthetic models. Frontier models like GPT-4o and Claude 3.5 exhibit similar vulnerabilities. For instance, GPT-4o's accuracy on 3-step problems dropped from ~100% to ~30% when variables were placed in the subtrahend position, suggesting a heavy reliance on implicit shortcuts even at the scale of state-of-the-art systems.

Conclusion

Implicit reasoning in Transformers is often a facade for simple heuristics. Achieving robust, human-like internal reasoning requires moving beyond standard training paradigms that allow models to "cheat" with shortcuts. Future research into training strategies like "internalized CoT" may be necessary to incentivize true stepwise internal logic.

Summary updated

BibTeX
@inproceedings{lin2025implicit,
  author = {Tianhe Lin and Jian Xie and Siyu Yuan and Deqing Yang},
  title = {{Implicit Reasoning in Transformers is Reasoning through Shortcuts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure