Method that ranks an AI’s inner parts tops a public leaderboard
Matryoshka attribution: Learning to attribute language model outputs to representations and weights
TL;DR On a leaderboard’s hidden test of tracing AI answers to inner parts, the new method averaged 5.6, against 1.95 for the next-best entry. That gives researchers a better tool for checking what inside a model causes a behavior, such as refusing harmful requests.
Words to know
- mask
- A filter that keeps some parts of an AI model working and switches the others off.
- benchmark
- A fixed set of tests that lets researchers compare methods on the same tasks.
- weights
- The internal numbers that an AI model adjusts during training and uses to produce answers.
- preprint
- A research paper shared publicly before other experts have formally reviewed it.
The problem
Say you want to know which parts inside an AI make it refuse a request. Existing tools each have a flaw, the team explains. Testing parts one at a time works but can cost far too much computing. Fast shortcuts based on the model’s internal math can miss the parts that truly matter. Methods that learn a mask, a filter that switches parts off, need heavy tuning and a fresh mask for every set size.
The idea
The team learns one ranking that serves every set size. Picture a hiker who ranks her gear. Before each practice hike, a random pack size sets how many top items she carries. She then reorders the list based on how the hike went. MAttr, the authors’ method, does this with a model’s inner parts. Each training step keeps the top-ranked parts within a random budget. It swaps the rest for their values on a contrasting prompt. The ranking shifts toward parts that keep the model’s original answer. The authors say it works because it trains directly for that goal, with no extra size penalty to tune.
What they showed
- Top of the leaderboard. The benchmark score rewards parts that, kept alone, produce the model’s answers, so higher is better. On the hidden test, MAttr averaged 5.6, against 1.95 for the next entry.
- Refusals undone with few weights. In the larger of two Llama chat models, the team ranked the weights that chat training had changed. Resetting 1% of them to their earlier values removed refusals and kept other skills. Rivals did as well but changed over a quarter of the weights.
- A shortcut fell short. In the refusal test, a shortcut method chose the same share of weights but hurt the model’s other skills.
Why it matters
People who audit AI models for safety are the clearest audience. The authors warn their results show a risk in releasing an unguarded starting model beside its safety-trained version. Anyone with both could undo refusals by resetting a small slice of weights. For you, that means the safety training in openly shared models may sit in a small, findable set of weights.
The catch
The leaderboard score has a flaw the authors name themselves. It mostly rewards large sets of parts, so it can miss how well small sets work. On the authors’ own measure for small sets, MAttr led or ran close behind an older method. The refusal training used an AI judge’s scores, so those results depend on that judge. The paper is a preprint without outside review, and the weight tests cover only Llama models.
Who wrote it
Aryaman Arora is first author of this seven-person team from Stanford University, which includes Noah Goodman, Dan Jurafsky and Christopher Potts. Arora and Potts co-authored ReFT: Representation Finetuning for Language Models (2024).