Weight Patching: Toward Source-Level Mechanistic Localization in LLMs
Chenghao Sun, Chengsheng Zhang, Guanzheng Qin, Rui Dai, Xinmei Tian

TL;DR
This paper introduces Weight Patching, a source-level intervention method for mechanistic interpretability in large language models, enabling precise localization of capabilities within model parameters.
Contribution
It proposes a novel parameter-space intervention technique that improves source-oriented analysis and model merging by replacing weights in specialized models.
Findings
Reveals a hierarchy of source components from shallow to downstream modules.
Guides mechanism-aware model merging for better selective fusion.
Provides external validation of source localization through component scores.
Abstract
Mechanistic interpretability seeks to localize model behavior to the internal components that causally realize it. Prior work has advanced activation-space localization and causal tracing, but modules that appear important in activation space may merely aggregate or amplify upstream signals rather than encode the target capability in their own parameters. To address this gap, we propose Weight Patching, a parameter-space intervention method for source-oriented analysis in paired same-architecture models that differ in how strongly they express a target capability under the inputs of interest. Given a base model and a behavior-specialized counterpart, Weight Patching replaces selected module weights from the specialized model into the base model under a fixed input. We instantiate the method on instruction following and introduce a framework centered on a vector-anchor behavioral…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
