# Matryoshka attribution: Learning to attribute language model outputs to representations and weights

- **ID:** 1033
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.25518
- **Authors:** Aryaman Arora, Kirill Acharya, Nathan Hu, Yanzhe Zhang, Noah Goodman, Dan Jurafsky, Christopher Potts
- **Venue:** arXiv / Stanford University
- **Publisher:** arXiv / Stanford University
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** https://arxiv.org/abs/2609.25518 ; https://arxiv.org/pdf/2609.25518 ; https://arxiv.org/html/2609.25518 ; https://github.com/aryamanarora/matryoshka-attribution ; https://huggingface.co/aryaman/mattr-mib-circuits
- **License:** arXiv preprint; code license not stated in captured README
- **License family:** Other (auto-classified)
- **Tags:** matryoshka-attribution, mattr, mechanistic-interpretability, circuit-localization, attribution, sigmoid-top-k, mask-learning, causal-intervention, integrated-gradients, mib, llm, refusal, grpo, parameter-attribution, stanford
- **Topics:** mechanistic interpretability; attribution; circuit localization; causal interventions; language models; refusal auditing
- **Added:** 2026-09-24
- **Verified:** 2026-09-29
- **Research status:** verified
- **Needs deep evaluation:** yes
- **Page:** https://papers.projxon.ai/entries/1033

## Summary

MAttr learns a single nested attribution ordering over model internals by optimizing a differentiable sigmoid top-k soft interchange-intervention mask while sampling k across sparsities; it avoids a separately tuned sparsity penalty and supports nodes, edges, neurons, SAE features, and weight deltas. On the official private/secret MIB Circuit Localization leaderboard, the live entry “MAttr (edge, 5k steps)” averages 5.6 versus 1.95 for the runner-up (~2.9×), with per-cell values captured in the local dump; the paper reports this official score while its figures report public-test results. A GRPO parameter-level application finds that restoring 1% of Llama-3.1-8B-Instruct parameters (2% for 1B) to base removes refusals while retaining capabilities. Primary links: arXiv abs https://arxiv.org/abs/2609.25518; PDF https://arxiv.org/pdf/2609.25518; X post https://x.com/aryaman2020/status/2102800933659000846; code https://github.com/aryamanarora/matryoshka-attribution; parameter code https://github.com/aryamanarora/matryoshka-attribution-parameters; HF circuits https://huggingface.co/aryaman/mattr-mib-circuits; author https://aryaman.io/; MIB leaderboard https://mib-bench-leaderboard.hf.space/; MIB project https://mib-bench.github.io/.

## Attributes

- **Purpose:** Learn nested, task-optimised attribution orderings over language-model representations and weight changes with differentiable mask learning
- **Scale:** 10-page main text / 58-page total preprint; MIB 12 task-model pairs across GPT-2, Qwen2.5-0.5B, Gemma-2-2B, Llama-3.1-8B; MIB+ bases and Llama refusal case
- **Domain:** mechanistic interpretability; attribution; circuit localization; causal interventions; language models; refusal auditing
- **Used for:** Mechanistic interpretability evaluation; circuit discovery; sparse attribution; transfer analysis; alignment/refusal auditing
- **Time period:** arXiv v1 2026-09-22; X announcement 2026-09-23; MIB leaderboard checked 2026-09-24
- **Author type:** academic

## From the source (fetched 2026-10-03)

- **Published:** Sep 22, 2026 (arXiv)
- **arXiv categories:** cs.CL, cs.LG (arXiv)
- **Author comment:** 10 pages main text, 58 pages total; preprint (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 0 (Semantic Scholar)

## Abstract

Attributing language model outputs to their internal computations is an open problem in interpretability. Existing methods, which use causal interventions, gradients, or learnable masks, either are infeasibly expensive or struggle to identify actual causally-important internal computations. We propose framing attribution as the problem of identifying nested subsets of internal components which minimise a downstream loss. To learn this task, we introduce Matryoshka Attribution (MAttr), a mask learning method that parametrises the mask with a simple differentiable sigmoid top-$k$ operator. We supervise training over all sparsities simultaneously by randomising $k$ over training, resulting in a learned ordering of components by attribution score. MAttr achieves number 1 on the official leaderboard of the Mechanistic Interpretability Benchmark (Mueller et al., 2025); our method identifies sparse and task-transferrable circuits across varying circuit bases. As a practical application, we show that MAttr can be trained with reinforcement learning to identify weight changes responsible for downstream behaviours in LLM finetuning. We train MAttr on refusal judge scores and find that restoring $1\%$ of Llama 3.1 8B Instruct's weights to their base model state is sufficient to remove refusals while maintaining capabilities. We view MAttr as a successful formulation of interpretability into a learnable objective that we can tackle with gradient descent, and encourage future work along these lines.

## Research notes

- Verified from downloaded arXiv abs/PDF/text, arXiv HTML/API, X JSON, official code README, HF circuit card, author page, and live MIB leaderboard. Authors and Stanford University affiliation: Aryaman Arora; Kirill Acharya; Nathan Hu; Yanzhe Zhang; Noah Goodman; Dan Jurafsky; Christopher Potts. Method: learn one scalar score per variable; each step samples k, constructs sigmoid-top-k scores summing to k by bisection, applies soft interchange intervention, and backpropagates downstream loss, giving nested rankings usable across sparsities. MIB coverage: 12 task-model pairs across GPT-2 small, Qwen2.5-0.5B, Gemma-2-2B, and Llama-3.1-8B; MIB+ adds MLP, MLP+attention, and SAE bases. Verified MIB claim: official private/secret leaderboard average 5.6 for edge MAttr (5k steps) versus 1.95 runner-up (~2.87×); paper states 45.9%–343.0% per model-benchmark gains and statistically significant public-test wins over tested baselines. Parameter application: GRPO on StrongREJECT for Llama-3.2-1B-Instruct and Llama-3.1-8B-Instruct; 2% and 1% restored-to-base deltas respectively, with capabilities retained. Links: arXiv abs https://arxiv.org/abs/2609.25518; PDF https://arxiv.org/pdf/2609.25518; HTML https://arxiv.org/html/2609.25518; X https://x.com/aryaman2020/status/2102800933659000846; X JSON https://api.fxtwitter.com/status/2102800933659000846; official code https://github.com/aryamanarora/matryoshka-attribution; parameter repo https://github.com/aryamanarora/matryoshka-attribution-parameters; MIB fork https://github.com/aryamanarora/MIB-circuit-track; learning-to-attribute https://github.com/aryamanarora/learning-to-attribute; HF artifacts https://huggingface.co/aryaman/mattr-mib-circuits; author https://aryaman.io/; MIB leaderboard https://mib-bench-leaderboard.hf.space/; MIB project https://mib-bench.github.io/; MIB HF org https://huggingface.co/mib-bench; MIB leaderboard source https://huggingface.co/spaces/mib-bench/leaderboard; MIB paper https://arxiv.org/abs/2504.13151; StrongREJECT https://huggingface.co/qylu4156/strongreject-15k-v1. Local dump: /workspace/curator/research/mattr-2609.25518/.
- Discord midlink filled pass-20260929-1627 (alphaxiv 2609.25518).

## Similar entries

- [Verbalizable Representations Form a Global Workspace in Language Models](https://papers.projxon.ai/entries/1093) (paper, #1093)
- [Circuit Oracle: Automating Attribution Graph Analysis via Natural-Language Queries](https://papers.projxon.ai/entries/1536) (paper, #1536)
- [Bridging Singular Learning Theory and Mechanistic Interpretability at the Billion-Parameter Scale](https://papers.projxon.ai/entries/1539) (paper, #1539)
- [Nonconformal Distortion and Local Orientation Reversal in the Fourier Circuit of a Modular-Addition Transformer](https://papers.projxon.ai/entries/1535) (paper, #1535)
- [From Representation to Readout: Mechanistic Analysis of Membership Signals in Language Models](https://papers.projxon.ai/entries/1481) (paper, #1481)
- [Building Social World Models with Large Language Models](https://papers.projxon.ai/entries/490) (dataset, #490)
