Skip to content

Partially rewriting Transformers with natural languagePartially Rewriting a Transformer in Natural Language

arXiv· arXiv:2501.18838· Gonçalo Paulo, Nora BelroseEleutherAIIndexed by this site · 2026-10-14· Originally publishedAlignment

Translation in progress — untranslated text is omitted.

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe paper attempts to partially rewrite a large language model using natural language. The authors first approximate a feedforward network in the LLM using a transcoder, then use an automated interpretability pipeline to generate explanations for these sparse activated neurons, and replace the first layer of this sparse MLP with an LLM-based simulator that predicts each neuron's activation from explanations and context. Measurement results show that the loss increase caused by the rewrite is statistically comparable to directly replacing the sparse MLP output with a zero vector; repeating the same protocol on the residual stream of the same layer with a sparse autoencoder yields similar results. The authors therefore argue that more detailed explanations are needed to significantly surpass the zero-ablation baseline.

Questions
Mechanistic interpretability hopes to rewrite networks into more understandable forms while preserving behavior. The question here is: how much does simulating transcoder or SAE latent activations with natural language explanations and splicing back distort Pythia 160M's output.
Methods
Train a transcoder with k=32 (with skip) on the layer 6 MLP, and a skip-free SAE on the same-layer residual stream. An automated pipeline writes one-sentence explanations; Llama 3 Instruct 8B predicts last-token activations, applies quantile normalization, then TopK, and reconstructs along decoder directions to splice back.
Experiments and results
Next-token cross-entropy measured on Pile text blocks. After replacing all latents with simulations, the authors say the loss matches a checkpoint trained on only 10–15% of the data, and is close to zeroing the MLP. The abstract says statistically similar to zeroing, the introduction says only slightly lower. Random replacement and non-normalization are worse; on SAE the authors say results are similar.
Limitations and future work
The authors state that the explanations are not specific enough; quantile normalization improves specificity but reduces sensitivity, and still does not exceed zeroing; they suggest writing more specific explanations using contrastive samples of similar features. The experiments cover the transcoder and SAE of layer 6 of Pythia 160M, with the simulator being Llama 3 Instruct 8B.
Read originalarxiv.org