NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Training Language Models to Explain Their Own Computations

Belinda Z Li, Zifan Carl Guo, Vincent Huang, Jacob Steinhardt, Jacob Andreas

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Mechanistic Interpretability · Type: new method · Keywords: language model self-explanation, interpretability, model explanations, internal computation description, generalization, explainer models

Areas: LLM Reasoning › Reasoning Mechanisms › Chain-of-Thought Reasoning; Interpretability › Mechanistic Interpretability › Attribution and Interpretability

Summary

The paper trains language models to generate natural-language explanations of their own internal computations, showing that explainer models can generalize to new queries with only tens of thousands of examples.

Explained to a 5-year-old

A big computer brain learns to talk about how it thinks. It looks at many example pictures of how it works and learns to describe them in words. Then it can explain new things it sees without needing a lot of extra training. The brain is especially good at explaining because it knows its own inner workings. This helps people understand what the brain is doing.

Explained to a 5-year-old, longer

A computer brain called a language model can think about language. Usually we don’t know how it makes its decisions. This paper teaches the brain to write its own explanations. It looks at many examples of how it works and learns to describe them. After learning, the brain can explain new sentences it hasn’t seen before. It does this using only a few thousand examples, which is not a lot. The brain is better at explaining itself than another brain that isn’t the same. Even if the other brain is more powerful, the self-explaining brain does a better job. This makes it easier for people to understand what the brain is doing. It also helps researchers improve how language models work. The new method gives us a way to get clear, human-readable descriptions of complex thinking. Overall, the brain becomes more transparent and trustworthy.

For a technical reader

The work fine-tunes existing language models on a dataset of hand-crafted explanations to teach them to output natural-language descriptions of their own internal activations. These explainer models can then generate understandable accounts of how they process new inputs, using only a modest number of examples. Experiments show that a model explaining its own computations generalizes better than a larger model explaining a different model’s behavior. This self-explanation approach provides a scalable way to add interpretability to language models without redesigning the underlying architecture. The technique could be used to produce human-readable debugging logs or to improve trust in deployed systems.

Problem

How can language models learn to describe their internal computations faithfully? Can they leverage their privileged access to their own internals to produce explanations that generalize to new queries?

Method

The approach fine-tunes language models on large sets of example explanations derived from existing interpretability techniques, training them to output descriptions of feature encodings, causal activation structures, and token influences. The models are then evaluated on new queries to assess generalization, and comparisons are made between models explaining their own computations versus other models.

Results

Explainer models generalize to new queries with only tens of thousands of examples, and self-explanation yields better performance than using a different model even when the latter is more capable.

Contributions

The paper demonstrates that language models can be fine-tuned to generate faithful natural-language explanations of their internal computations and that such self-explanations provide a scalable complement to existing interpretability methods.

Practical relevance

Provides a scalable way to obtain interpretable descriptions of language model behavior, aiding debugging and trust in deployed systems.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction