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$.
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:
- Scoring: Units are ranked based on their task-margin attribution score.
- 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.
- 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.
- 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