Constructive Circuit Amplification: Improving Math Reasoning in LLMs via Targeted Sub-Network Updates

Nikhil Prakash, Donghao Ren, Dominik Moritz, Yannick Assogba

TL;DR

Large Language Models (LLMs) often fail at math not because they lack the underlying knowledge, but because internal "noisy" circuits override correct reasoning paths. This paper introduces Constructive Circuit Amplification (CCA), a method that pinpoints exactly where a model's logic derails, identifies the sparse subnetwork responsible for the correct path, and updates only those components. This surgical approach boosts math accuracy by up to 11.4% while modifying less than 2% of the model and keeping general capabilities perfectly intact.

What Problem Does This Paper Address?

Multi-step reasoning tasks like mathematics remain a major hurdle for LLMs, where a single minor logical misstep can ruin the entire answer. Standard fixes like full fine-tuning or LoRA modify large portions of the network, which can be data-hungry and risk degrading the model's general knowledge (catastrophic forgetting).

Recent work in mechanistic interpretability shows that specific skills are often controlled by sparse subnetworks ("circuits"), and that different internal mechanisms often compete during text generation. The authors address a fundamental question: Can we fix reasoning errors by surgically amplifying the "good" circuits while leaving the rest of the model untouched?

Methods

CCA works in three distinct stages:

  1. Token Localization: The authors generate pairs of correct and incorrect reasoning traces for a given problem. They introduce a Branching Method (iterative greedy decoding with partial prefixes) to find the "pivotal token"—the exact point where an incorrect path irreversibly diverges from a correct one. The token immediately preceding this is designated as the "intervention token."
  2. Model Component Localization: Using a technique called Desiderata-based Component Masking (DCM), they learn a sparse binary mask over attention heads and MLP neurons. This mask identifies which specific components are trying to push the model toward the correct token rather than the incorrect one.
  3. Targeted Parameter Updates: Finally, they apply gradient updates exclusively to these localized components, amplifying their signal while keeping the rest of the network frozen.
Overview of the CCA framework showing token localization, component masking, and targeted updates.

Datasets

The primary evaluation benchmark is GSM-Symbolic, a dataset featuring templates derived from the classic GSM8K grade-school math dataset. For general knowledge and safety checks, the authors evaluate the models on MMLU (split into STEM and Humanities subsets), TriviaQA, and TruthfulQA.

Key Insights and Ideas

  • The capacity is already there: LLMs often possess the latent ability to solve a math problem correctly but get derailed by internal "noise" or competing sub-networks.
  • Surgical precision beats sledgehammers: You don't need to retrain millions of parameters to fix a reasoning flaw. Updating as little as 0.17% to 1.59% of the model's components can yield massive performance gains.
  • Logical vs. Textual divergence: Simply looking at where two text strings differ (the Prefix Method) is a poor way to find a reasoning error. The proposed Branching Method proves that the true logical turning point often happens much later in the reasoning trace than the first superficial character difference (e.g., a comma vs. a period).

Key Results

  • Substantial Math Gains: CCA achieved absolute accuracy improvements on GSM-Symbolic of up to +11.4% for Gemma-2-2B-Instruct and +7.4% for Gemma-2-9B-Instruct.
  • Extreme Sparsity: These gains were achieved by modifying a tiny fraction of the network—just 0.17% of components for Gemma-2-9B and 1.59% for Gemma-2-2B.
  • Zero Side Effects: Unlike broader fine-tuning methods, CCA demonstrated virtually zero degradation on general knowledge benchmarks like MMLU and TriviaQA, confirming that targeted updates preserve overall model capabilities.

Limitations and Future Work

  • Domain Scope: The method was only validated on mathematical reasoning; its efficacy on other complex domains like code generation or scientific problem-solving remains unproven.
  • Data Generation Cost: Constructing the error-localization dataset requires generating multiple counterfactual reasoning traces, which can be computationally expensive.
  • Continual Learning: The study only looks at a single fine-tuning stage, leaving open the question of how these sparse updates behave over multiple sequential rounds of training.
  • Future Directions: The authors suggest automating the error-localization process using frontier LLMs and exploring more sophisticated optimization techniques beyond naive gradient descent.

Summary updated

BibTeX
@inproceedings{prakash2026constructive,
  author = {Nikhil Prakash and Donghao Ren and Dominik Moritz and Yannick Assogba},
  title = {{Constructive Circuit Amplification: Improving Math Reasoning in LLMs via Targeted Sub-Network Updates}},
  booktitle = {Re-Align @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=svl8yOdHzn},
}
Figure