From Outcome to Representation: Tracing Reasoning Mechanisms through Integrated Policy Gradient

Changming Li, Kaixing Zhang, Yingdong Shi, Haoyun Xu, Zheng Zhang, Kaitao Song, Kan RenNeurIPS 2026

TL;DR

Large Language Models (LLMs) can solve complex, multi-step problems, yet how their internal circuits execute long-term reasoning remains a mystery. This paper introduces Integrated Policy Gradient (IPG), a training-free method that traces final outcomes—like whether a math answer is ultimately right or wrong—backward through an entire chain of thought to pinpoint the exact neurons and features driving reasoning. Beyond just peeking inside the black box, IPG lets you turn those internal "reasoning dials" up or down to make models smarter or more concise on the fly.

What Problem Does This Paper Address?

Mechanistic interpretability—the science of reverse-engineering neural networks—works fairly well when a model predicts the very next word. Multi-step reasoning, however, unfolds over hundreds of tokens. A subtle logical setup in step two might determine whether the final answer in step ten succeeds or fails.

Existing interpretability tools stumble over these long horizons for two main reasons:

  1. Superficial correlations: Many approaches hunt for internal components that fire alongside specific text patterns, like the word "Wait!", or rely on hand-crafted pairs of "good" and "bad" prompts. They catch surface-level habits rather than the underlying machinery of logic.
  2. Myopia: Standard gradient-based attribution methods look at immediate, single-token effects. Meanwhile, the gold standard for true cause-and-effect—Causal Mediation Analysis (systematically turning components off and re-running the prompt to see what breaks)—is computationally impossible across thousands of neurons and long reasoning chains. Plus, final outcomes like "correctness" are discrete (1 or 0), meaning you can't just take a standard derivative through them.
Figure 1: Interpretability paradigms for reasoning in LLMs, regarding (i) our proposed Integrated Policy Gradient method that attributes outcome-level behavioral signals. t is the reasoning time step; (ii) text-pattern methods that associate high activations with special tokens (e.g., “Wait”); and (iii) control-vector methods that rely on human-craft contrastive input pairs.

Methods

To bridge the gap between a non-differentiable final outcome and internal representations, the authors borrow a classic tool from reinforcement learning: policy gradients (specifically using GRPO).

Normally, policy gradients update a model's weights so it gets higher rewards. Here, the model stays completely frozen. Instead, the authors project policy gradients into representation space—routing an outcome signal (such as binary task correctness or total response length) backward through every generated token to the hidden states—either individual neurons or disentangled features from a Sparse Autoencoder (SAE).

Because raw gradients at a single point can be noisy, the authors combine this with path integration (inspired by Integrated Gradients). For each step, they smoothly scale a component's activation from a zero baseline up to its actual value, accumulating the policy gradients along that path. Averaging these scores over a small set of questions yields a clean, global importance ranking for every component—functioning as a fast, tractable linear approximation of Causal Mediation Analysis. Once the top components are found, you can steer the model during inference simply by multiplying their activations by a scaling factor.

Datasets

The authors do not introduce new benchmarks, instead evaluating across a diverse suite of existing ones:

  • Math & Science Reasoning: GSM8K, MATH-500, AIME2024, AIME2025, and GPQA-Diamond.
  • Cross-Domain & Non-Reasoning: HumanEval (coding), CommonsenseQA (CSQA), and AlpacaEval (general instruction-following, used as a control).

Key Insights and Ideas

  • Reasoning lives in specialized, universal circuits: Components isolated using math problems don't just memorize arithmetic—amplifying them boosts coding and commonsense reasoning too, while silencing them tanks math scores without hurting general chat abilities.
  • Capability and verbosity are separable: By changing the outcome signal from correctness to sequence length, IPG uncovers distinct knobs. You can dial down a model's "reasoning strength" (making its chain-of-thought much shorter) without sacrificing accuracy.
  • An assembly line in time and space: Influential reasoning components cluster heavily in middle-to-late network layers. Looking through SAEs reveals a temporal division of labor: "planning" features fire early in generation, "calculation" features peak in the middle, and "summarization" features take over at the end.
  • Distillation amplifies existing pathways: When the authors took reasoning neurons found in a standard model (Qwen2.5-Math-1.5B) and boosted those exact same neurons inside its distilled cousin (DeepSeek-R1-Distill-Qwen-1.5B) without re-running IPG, performance jumped dramatically—proving distillation strengthens pre-existing base circuits rather than inventing new ones from scratch.
Figure 2: SAE feature activation frequency across reasoning and non-reasoning domains with IPG- selected features (red) and all features (gray).

Key Results

  • Surgical Ablation: Zeroing out top IPG features on MATH-500 caused accuracy to plummet from 63.00% to 28.80%, whereas AlpacaEval barely budged (12.11% to 10.81%).
  • Performance Boosts: Amplifying IPG-SAE features lifted Qwen2.5-Math-1.5B from 24.75% to 35.35% on GPQA and doubled AIME2024 accuracy (10.00% to 20.00%). On Llama3.1-8B, AIME2024 tripled from 6.67% to 20.00%.
  • Cross-Domain Transfer: Math-localized neurons transferred directly to coding (MATH-500 $\rightarrow$ HumanEval), nearly doubling accuracy from 11.58% to 21.34%.
  • Distillation Transfer: Boosting base-model IPG neurons inside DeepSeek-R1-Distill-Qwen-1.5B pushed AIME2024 from 16.67% to 30.00% and AIME2025 from 13.33% to 30.00%.
  • Fixing Logic, Not Just Answers: Qualitative traces show that amplifying IPG components repairs intermediate logical missteps (like properly rounding up a break-even inequality) rather than brute-forcing a lucky guess.
Example showing how enhancing IPG-identified components fixes an intermediate mathematical inequality error to reach the right answer.

Limitations and Future Work

While the main text does not dedicate a standalone section to limitations, two practical constraints are apparent from the setup: IPG acts as a linear approximation rather than exact causal mediation, and computing attribution still requires an external verifier (a rule function or reward model) alongside trajectory rollouts and path integration steps—though this cost is paid only once per model. Looking ahead, the authors suggest extending IPG beyond logic and math to explore softer domains like creativity, safety, and emotional intelligence, while developing finer-grained ways to steer localized components beyond simple multiplicative scaling.

Summary updated

Abstract

Large Language Models (LLMs) demonstrate remarkable reasoning capabilities, yet the internal mechanisms driving these multi-step processes remain opaque. Existing mechanistic interpretability approaches often rely on superficial text-pattern co-occurrences or capture only short-term effects, struggling to trace the long-horizon, outcome-driven influence of internal components such as neurons or sparse features in multi-step reasoning. In this paper, we introduce Integrated Policy Gradient (IPG), a novel, training-free framework that brings policy-based attribution into mechanistic interpretability for LLM reasoning. Grounded in *outcome-oriented* and *sequential-influence-aware* principles, it backpropagates outcome-level, non-differentiable behavioral signals (e.g., reasoning outcome correctness) through entire inference trajectories, utilizing path integration to isolate outcome-relevant mediators at component level for reliable attribution. This provides a linear approximation of Causal Mediation Analysis (CMA) in reasoning. Empirical evaluations demonstrate that IPG achieves precise localization and reveals mechanistic insights by identifying sparse, concentrated subsets of internal components associated with specific reasoning behaviors. Our method also enables modulation of reasoning capabilities, offering a powerful and reliable framework for understanding LLM reasoning.
BibTeX
@inproceedings{li2026from,
  author = {Changming Li and Kaixing Zhang and Yingdong Shi and Haoyun Xu and Zheng Zhang and Kaitao Song and Kan Ren},
  title = {{From Outcome to Representation: Tracing Reasoning Mechanisms through Integrated Policy Gradient}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=yutHGESj05},
}
Figure