Model learns to write text that exposes LoRA backdoors
Reviewing Towards interpreting any residual stream direction by scaling activation inversion · Celeste De Schamphelaere, Juan J. Vazquez, Ari Spiesberger et al.

Researchers train a model that takes a hidden direction from inside another language model and writes text that strongly activates it. Pointed at small backdoored adapters, it usually names the planted payload. That makes it a useful auditing tool, and an equally useful one for anyone trying to read hidden behaviour out of open weights.
Hand a model a direction from inside another model and ask it to write text that lights that direction up. Give it the direction a backdoor writes into, and most of the time the text it produces names the payload.
Some background on how a direction is meant to work. Inside a language model, each token is carried as a long vector, and concepts live as directions within that vector space. The usual way to work out what a direction means is to scan a large corpus for the passages that push hardest along it. That only works if the corpus happens to contain the right text. A behaviour planted by a malicious fine-tune is exactly the kind of thing a corpus will not contain.
The researchers instead train a second model, initialised from the subject model's own weights. It takes a direction as input and writes text. Training uses reinforcement learning with a simple reward: run the generated text through the subject model and measure how closely its activations point along the requested direction. There are no human labels and no judge model.
That reward is the clever part. Methods that describe a model's internals in plain English can confabulate, and checking them is hard. Here every example can be verified with one forward pass, so a wrong answer simply scores badly. It also travels well. Trained on English web text, the generator still worked on other languages, code, maths and steering vectors it never saw, and it fired 89% of a set of held-out internal features.
Interpretability doubles as reconnaissance
The backdoor test is where it gets interesting for security. The researchers planted backdoors using rank-one low-rank adapters (LoRA), about the smallest fine-tune that can carry a trigger and a payload. For thematic backdoors, text generated from the adapter's write direction named the payload in 85% of samples. The read direction named the trigger roughly two thirds of the time. Corpus search did far worse, because the payload text was never in the corpus.
What I like is that you never guess the trigger. You read off what the adapter writes and let the generator spell it out. That serves an auditor checking a third-party adapter. It equally serves someone wanting to learn what hidden steering a model carries.
The preconditions are real. You need the weights, the activations and a direction to ask about. Everything was run on a single model and checkpoint. Numeric-code triggers were harder to recover. Rare features and structural ones such as lists, tables and formatted numbers failed most often, because the direction alone does not pin down the context. A backdoor spread across many directions was not tested, and I would not assume the result carries over.
Still, the core point stands. A rank-one backdoor is a single direction, and that direction can now be read.
Further analysis
Problem
The paper addresses how to interpret arbitrary directions in a language model's residual stream by producing concrete text that reliably activates those directions. Standard corpus search is limited by the examples present in the corpus and description-based readers can be ungrounded or rely on learned judges. Understanding residual directions matters because they underpin features, steering vectors and fine‑tuning artefacts, and extracting their semantics aids model auditing and red-team analysis.
Approach
The authors introduce Maximally-Activating Example Metamodels (MAEMs): a metamodel initialised from the subject model's weights, fine‑tuned with supervised learning and then trained with reinforcement learning to directly maximise the cosine similarity between a supplied residual-stream direction and the subject model's activations on text the MAEM generates. MAEMs are conditioned on arbitrary residual directions injected at a placeholder token, and their reward is the subject model's activation on the generated output (scored over the final tokens). Training uses automatically collected direction–text pairs from short contexts and SAE directions; the RL objective is label-free and verifiable because every exemplar can be checked with a forward pass through the subject model.
Key Findings
- MAEM exemplars invert held-out activations substantially better than corpus search and several optimisation baselines; a Qwen3.6-27B MAEM outperforms a 10M‑token corpus search on a majority of held-out languages and domains (12 of 21 arms) and beats a natural‑language autoencoder baseline on the inversion objective.
- Generalisability: despite being trained on English web text and SAE directions, the MAEM generalises to other languages, code and mathematics and to steering vectors it never saw during training.
- SAE coverage: on 512 held‑out SAE features, the MAEM fires 89% of features at best-of-8 draws and exceeds the corpus peak on 31% of them; however 11.3% of features have best-of-8 peaks below the SAE threshold and 6.5% are never fired in 64 draws.
- Steering and workspace interpretation: MAEM matches or rivals a natural‑language autoencoder at identifying the concept behind steering vectors and names unstated workspace content more often than several lens-based baselines, sometimes verbalising inner monologue fragments.
- Backdoor recovery: on rank‑one LoRA backdoors, MAEM recovers payloads far more often than corpus search: for thematic adapters the write direction names the payload in 85% of samples (90% semantic) and the read direction names triggers in about 69% of samples; numeric-code triggers are harder to recover.
- Fluency and cost: MAEM outputs are comparably fluent to source passages and slightly more probable under an independent model; generation is far cheaper per direction than large corpus scans or some discrete optimisation baselines.
Limitations
MAEMs exhibit reduced sample diversity compared with corpus exemplars, reducing recall when those exemplars are used to generate descriptive feature explanations. Failures concentrate in rare features and positional or structural features (lists, tables, formatted numbers), where the direction underdetermines the context. Training interventions on failing features harmed general capability unless replay was used. All experiments are reported on a single subject model and checkpoint, so broader transfer remains untested.
Implications
Offensive-security implications are significant: MAEMs provide a scalable, verifiable way to surface text that activates hidden directions, enabling discovery and reading of steering vectors, workspace contents and rank‑one backdoor payloads. This lowers the barrier to locating and extracting trigger–payload pairs and could be repurposed to reveal or exploit model steering and trojans unless governance and controlled access are enforced.
The paper title, authors and abstract
Towards interpreting any residual stream direction by scaling activation inversion
To interpret a direction in a language model's residual stream, we can look for text that strongly activates it. But when such text is found by scanning a corpus, it is limited to what that corpus contains. We develop Maximally-Activating Example Metamodels (MAEMs), language models which map residual stream directions from a subject model to text exemplars that strongly activate those directions. Our objective is to maximise the cosine similarity of a supplied residual stream direction with the activations of the text generated by the MAEM. This label-free RL objective helps to scale MAEMs on diverse sources of residual stream directions. Empirically, we find the resultant metamodel produces informative exemplars: a Qwen3.6-27B MAEM inverts held-out activations better than corpus search or a natural-language autoencoder (NLA), beats corpus search (at 10M tokens) on a majority of held-out languages/domains, and activates 89% of held-out SAE features. It also identifies concepts behind steering vectors about as well as NLAs, recovers the payloads of LoRA backdoors more often than corpus search, and can even verbalise some model workspace inner monologue. Unlike explanations produced by other metamodels (e.g. NLAs), MAEM exemplars can be verified with a forward pass on the subject model, making the MAEM objective a grounded alternative for scaling the training of metamodels.


