Patchscopes

Patchscopes is a general framework for inspecting and intervening on LLM internals by "patching" hidden representations into a second inference pass.
Ask this paper
Patch-and-decode: Takes a hidden state from one forward pass, patches it into a second LLM call with an auxiliary prompt, and reads back natural-language descriptions of what that state encodes.
Unifies prior methods: Subsumes a wide range of existing interpretability techniques (logit lens, activation patching, probing) as special cases of its patching/decoding pattern.
Answers computational questions: Can answer questions about the role of specific layers, attribute representations, or the flow of information within the model.
Fixes latent reasoning: Demonstrates that patching in corrected intermediate representations can actually fix latent multi-hop reasoning errors at inference time - interpretability moving into a practical intervention.
Abstract
Understanding the internal representations of large language models (LLMs) can help explain models' behavior and verify their alignment with human values. Given the capabilities of LLMs in generating human-understandable text, we propose leveraging the model itself to explain its internal representations in natural language. We introduce a framework called Patchscopes and show how it can be used to answer a wide range of questions about an LLM's computation. We show that many prior interpretability methods based on projecting representations into the vocabulary space and intervening on the LLM computation can be viewed as instances of this framework. Moreover, several of their shortcomings such as failure in inspecting early layers or lack of expressivity can be mitigated by Patchscopes. Beyond unifying prior inspection techniques, Patchscopes also opens up new possibilities such as using a more capable model to explain the representations of a smaller model, and multihop reasoning error correction.