Who Reasons in the Large Language Models?
Jie Shao, Jianxin Wu
TL;DR
The paper tackles the question of where reasoning emerges in large language models and proposes that the output projection $o_{proj}$ within the Transformer’s MHSA is the key driver. It introduces Stethoscope for Networks (SfN), a diagnostic framework with Delta, Merge, Freeze, and Destruction gadgets to localize reasoning to $o_{proj}$ and distinguish it from conversational capabilities governed by other modules. Empirical evidence includes per-module weight shifts $ orm{w_X(B) - w_X(A)}_{\, orm{2}}$ dominated by $o_{proj}$, a bimodal distribution for $o_{proj}$, and successful level IV reasoning when merging $o_{proj}$ from reasoning models into base models (e.g., on AIME), while other module merges often degrade performance. The work discusses implications for faster, modular, domain-specific LLMs via targeted $o_{proj}$ finetuning and cautions about limitations, generalization, and risks of targeted manipulation, marking a step toward more interpretable and efficient LLM design.
Abstract
Despite the impressive performance of large language models (LLMs), the process of endowing them with new capabilities--such as mathematical reasoning--remains largely empirical and opaque. A critical open question is whether reasoning abilities stem from the entire model, specific modules, or are merely artifacts of overfitting. In this work, we hypothesize that the reasoning capabilities in well-trained LLMs are primarily attributed to the output projection module (oproj) in the Transformer's multi-head self-attention (MHSA) mechanism. To support this hypothesis, we introduce Stethoscope for Networks (SfN), a suite of diagnostic tools designed to probe and analyze the internal behaviors of LLMs. Using SfN, we provide both circumstantial and empirical evidence suggesting that oproj plays a central role in enabling reasoning, whereas other modules contribute more to fluent dialogue. These findings offer a new perspective on LLM interpretability and open avenues for more targeted training strategies, potentially enabling more efficient and specialized LLMs.
