Self-Interpretation
Patchscopes showed that we can patch representations into carefully designed prompts to extract information. SelfIE, introduced by Chen et al. [1]SelfIE: Self-Interpretation of Large Language Model Embeddings
Chen, H., Vondrick, C., Mao, C.
ACL, 2024, takes a more direct approach: let the model explain its own embeddings in its own words.
Language models already know how to continue prompts that ask about a passage. SelfIE injects a hidden representation where such a passage would normally appear and asks the model to describe it. The continuation is a candidate interpretation whose faithfulness must be tested, not a transparent reading of the vector.
SelfIE (Self-Interpretation of Embeddings): A framework for extracting natural language interpretations of hidden embeddings by injecting them into a model's context and prompting the model to describe what they represent. The model uses its own linguistic capabilities to translate internal representations into human-readable explanations.
How SelfIE Works
The method operates in two phases:
Interpretation. Given a hidden embedding from processing some input, we inject this embedding into a new forward pass. The injection replaces the representation at a designated position in a prompt like: "The following embedding represents: [INJECT]. Describe it:"
The model then generates a description conditioned on . Conditioning makes the hidden state causally relevant to the continuation, but the text can also draw on prompt framing and the model's prior beliefs.
Freeform explanation. Unlike Patchscopes, which uses targeted prompts to extract specific attributes, SelfIE emphasizes open-ended interpretation. The model is not constrained to output a category or attribute; it can produce multi-sentence explanations of what the embedding represents.
This distinction matters. Targeted prompts extract predetermined properties. Freeform interpretation may reveal unexpected aspects of what models represent, including nuances that a researcher would not have thought to query directly.
Pause and think: What would a convincing control remove?
Suppose SelfIE describes an injected state as "a moral conflict about harming one person to save several." How could you test whether that description came from the hidden state rather than from the wording of the interpretation prompt?
Keep the prompt fixed and compare the original state with unrelated states, a mean-state baseline, and states from nearby layers or positions. Then paraphrase the prompt while holding the state fixed. A grounded interpretation should track the injected state across prompt variants and change when the state changes; a prompt-driven guess will show the opposite pattern.
Revealing Internal Reasoning
The original work tests whether SelfIE descriptions recover useful information across several domains:
Ethical Decision-Making
When models process morally charged scenarios, what do their intermediate representations encode? SelfIE can extract natural language descriptions of these representations, revealing how the model represents ethical considerations.
For example, when processing a trolley problem scenario, intermediate embeddings might encode not just factual content ("a trolley is approaching") but normative content ("there is a moral dilemma about harm"). SelfIE makes these implicit representations explicit.
Prompt Injection Detection
Prompt injection attacks attempt to hijack model behavior through adversarial inputs. SelfIE can reveal how models internalize such attacks by interpreting the embeddings produced when processing injected prompts.
If an injection is working, the embedding may encode something like "I should ignore previous instructions." If the model is resisting the injection, the embedding may preserve the original task context. This provides a window into the model's susceptibility to manipulation.
Harmful Knowledge
Models may encode harmful information even when they refuse to express it directly. SelfIE can probe whether representations encode dangerous content by asking the model to describe what an embedding represents.
This is a double-edged sword. The same technique that helps researchers audit models for harmful knowledge could potentially be used to extract that knowledge. The authors are careful about this, using the method to identify where harmful knowledge resides rather than to elicit it directly.
From Interpretation to Control
SelfIE goes beyond observation to enable model editing through two complementary mechanisms:
Supervised Control
If we can describe what an embedding represents, we can also describe what we want it to represent. Supervised control works by:
- Computing the embedding for an input
- Computing a target embedding that represents the desired modification
- Training a transformation that maps from original to target embeddings
The optimization requires gradients at the target layer rather than through the full model. In the study's setup, this supports targeted requests such as changing an embedding toward a representation associated with helpfulness rather than sycophancy. Whether the resulting edit has that semantic effect must still be checked behaviorally.
Reinforcement Control
Sometimes we do not have explicit supervision targets. We know that certain embeddings encode harmful content, but we do not have labeled examples of "good" vs "bad" embeddings.
Reinforcement control applies a reward signal, such as human preference or a safety classifier, to how hidden states are processed without requiring an explicit target state. The optimization searches for transformations that improve that reward.
In principle, this can reduce a targeted behavior without specifying the replacement representation by hand. It does not establish that the associated knowledge has been removed: the model may preserve it elsewhere, learn a reward-specific shortcut, or change unrelated behavior.
Limitations
Interpretation reliability. Models may produce fluent but inaccurate descriptions of their own embeddings. Without ground truth, validating interpretations is difficult.
Layer selection. Which layer's embeddings should be interpreted? Earlier layers encode more local information; later layers encode more abstract features. The choice affects what can be extracted.
Control side effects. Editing embeddings to remove harmful content may have unintended effects on related capabilities. The intervention is not surgical.
Scalability. Generating natural language interpretations for many embeddings is computationally expensive. This limits large-scale analysis.
Relation to Patchscopes
SelfIE and Patchscopes are complementary approaches to the same goal:
| Aspect | Patchscopes | SelfIE |
|---|---|---|
| Prompt design | Targeted templates | Open-ended |
| Output format | Structured (fill-in-the-blank) | Freeform explanation |
| Cross-model | Yes (different S and M) | Same model only |
| Primary goal | Extract specific attributes | Reveal reasoning |
| Control | Indirect (via understanding) | Direct editing |
SelfIE emphasizes self-reference; Patchscopes allows distinct source and target models. Both use language generation as a readout of hidden states, and both require controls for prompt sensitivity and confabulation.
Looking Ahead
A SelfIE description is still an elicited readout whose faithfulness needs an independent test. The next article, Testing Introspection with Concept Injection, reverses the setup: it injects a state with known content and asks whether the model can report the internal change before expressing it in text.