Sparse Weight Decomposition for Efficient Circuit Extraction

Chuanhao Yan, Xuhan Huang, Yawen Duan, Zhenfei Yin, Hang Zhao, Bryan Dai, Jie FuarXiv 2026

TL;DR

The authors introduce Sparse Weight Decomposition (SWD), a novel method for mechanistic interpretability that factorizes dense pretrained transformer weights into two sparse matrices. This approach exposes clean, human-understandable computational "circuits" directly from model weights using less than 1% of the data required by traditional methods like Transcoders, and even features a zero-data variant.

What Problem Does This Paper Address?

In mechanistic interpretability, researchers try to reverse-engineer neural networks by finding "circuits"—small, sparse subgraphs of neurons and connections responsible for specific behaviors (like subject-verb agreement or indirect object identification). However, standard pretrained transformers implement these behaviors using dense linear projections where individual neurons are highly polysemantic (responding to many unrelated concepts simultaneously).

To find cleaner features, existing approaches typically train auxiliary models like Sparse Autoencoders (SAEs) or Transcoders. While effective, these methods are computationally expensive, require massive text corpora to train, and introduce a "fidelity gap" because you are analyzing a replacement network rather than the original model. The authors ask a fundamental question: Can we extract clean circuit units directly from pretrained weights without the massive overhead of training auxiliary networks?

Methods

The core idea behind SWD is to reparameterize a dense weight matrix $W$ into the product of two sparse factor matrices, $W \approx AB$.

Figure 1: The SWD pipeline. Step 1 (factorization). A dense linear projection with weight matrix W is reparameterized by two sparse factors, W ≈AB. Each shared intermediate coordinate i is a bottleneck unit: it reads from the input through A:,i and writes to the output through Bi,:, thereby defining the fixed rank-one path A:,iBi,:. In the graph representation, each nonzero scalar matrix entry corresponds to a directed edge whose weight is that entry, while a zero entry corresponds to no edge. Specifically, a nonzero entry Api defines a read edge from input coordinate p to unit i, while a nonzero entry Biq defines a write edge from unit i to output coordinate q. For illustration, the diagram uses six bottleneck units. Step 2 (circuit extraction). These six units are scored and ranked by task attribution. The bar length represents the attribution score (longer is higher), and labels #1– #6 indicate the resulting ranking, with #1 ranked highest. The top-k units are selected for the circuit; in this illustration, k = 3, so the three highest-ranked units are retained. The activation of each unselected unit i is replaced by its mean µi.

As illustrated in Figure 1, the shared intermediate coordinates between $A$ and $B$ act as "bottleneck units." Each unit reads from the input via a sparse column of $A$ and writes to the output via a sparse row of $B$, creating a collection of isolated, rank-one computational paths.

To achieve this, the authors adapt a technique from model compression called Double Sparse Factorization (DSF), optimizing the factors using an Alternating Direction Method of Multipliers (ADMM) heuristic. SWD minimizes reconstruction error weighted by a calibration Gram matrix derived from real model activations. Crucially, the paper also introduces a zero-data variant by setting the Gram matrix to the identity matrix, allowing factorization based purely on the static geometry of the weights.

Once factorized, circuit extraction follows a standard two-step workflow:

  1. Scoring: Units are ranked based on their task-margin attribution score.
  2. Ablation: The top-$k$ units are kept intact, while the remaining unselected units are mean-ablated or zero-ablated to evaluate circuit sufficiency and necessity.

For full-model replacement where approximation errors accumulate across layers, the authors introduce SWD-FT, which performs a brief fine-tuning step on next-token cross-entropy while keeping the sparse structure (the zero/nonzero mask) strictly frozen.

Datasets

  • Language Model Data (for calibration/fine-tuning): FineWeb-Edu was used to collect calibration activations for SWD and to train baseline models. WikiText-2 was utilized for the qualitative semantic audit and targeted editing experiments.
  • Circuit Evaluation Tasks: The extracted circuits were evaluated on standard mechanistic interpretability benchmarks from public Edge-Pruning and auto-circuit datasets, including:
  • Greater-than (numerical/temporal reasoning)
  • Indirect Object Identification (IOI) (linguistic tracking)
  • Docstring (code structure tracking)
  • Gendered pronoun (coreference resolution)

Key Insights and Ideas

  • Sparsity on the Edges: Instead of enforcing activation sparsity (like SAEs), SWD enforces weight sparsity on the read/write edges. This structural constraint naturally yields highly compact circuits with fewer active connections.
  • Extreme Data Efficiency: Because SWD directly decomposes existing weights rather than learning a new representation from scratch, it requires orders of magnitude less data to achieve high behavioral fidelity.
  • Weights Contain the Circuit Structure: The success of the zero-data variant demonstrates that a significant portion of a model's task-specific circuit structure is already statically encoded within the weight matrices themselves, independent of runtime activation distributions.

Key Results

  • Fidelity with Minimal Data: Across single-matrix replacements in GPT-2 Small, SWD matches the cross-entropy (CE) fidelity of Transcoders while using less than 1% of the training tokens.
Figure 2: GPT-2 single-matrix replacement quality. SWD reaches low CE delta with far less data; VPD-KL is included for replacement-quality context and excluded from circuit extraction evalua- tion. See Appendix C.1 for companion metrics and settings.
  • More Compact Circuits: For a matched level of replacement fidelity, circuits extracted via SWD consistently require fewer active read/write edges and selected units to achieve the same sufficiency and necessity targets compared to Transcoder and VPD baselines. This advantage holds across multiple model families, including GPT-2, Qwen2.5, and Qwen3.5-27B.
Figure 3: GPT-2 single-matrix circuit results. SWD reaches the target thresholds with markedly fewer active edges than the Transcoder and VPD-Recon-CI baselines.
Figure 5: Qwen2.5 3B single-matrix circuit results. SWD reaches the same sufficiency and necessity thresholds at substantially fewer active edges. The 0.5B/1.5B results and their settings appear in Appendix C.4.
  • Scalable Full-Model Replacement: When replacing all 48 attention and MLP matrices in GPT-2 Small simultaneously, SWD-FT achieved a final cross-entropy loss (3.44) comparable to a model trained from scratch with sparse weights (3.45), while consuming less than 1% of the token budget (20.6M tokens vs. 2.88B tokens).

Limitations and Future Work

  • Local-to-Global Gap: While SWD extracts highly efficient local circuits for specific tasks, it does not provide a global, comprehensive explanation of the entire model or guarantee coverage for rare safety-critical edge cases.
  • Non-Uniqueness: Two-factor sparse matrix decomposition is inherently non-unique and sensitive to initialization, hyperparameters, and the choice of calibration data. The extracted units should be viewed as protocol-specific causal explanations rather than an absolute ground truth.
  • Scaling Verification: Full-model replacement was only evaluated on GPT-2 Small. Verifying full-model SWD performance on larger scales remains an open challenge for future work.

Summary updated

BibTeX
@misc{yan2026sparse,
  author = {Chuanhao Yan and Xuhan Huang and Yawen Duan and Zhenfei Yin and Hang Zhao and Bryan Dai and Jie Fu},
  title = {{Sparse Weight Decomposition for Efficient Circuit Extraction}},
  year = {2026},
  eprint = {2608.03913},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.03913},
}
Figure