Research map / Large language models / Language, safety and interpretability
Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes Patchscopes, a framework that decodes hidden representations by patching them into a target inference pass of an LLM (same or larger model) with a prompt designed to elicit the desired information, unifying logit lens, tuned lens, future lens, and causal tracing as special cases.
Problem
Existing interpretability methods for LLM hidden representations (probing, vocabulary projection, causal interventions) are limited: probes need supervised training over predefined classes, vocabulary projections fail in early layers, and none give expressive natural-language explanations.
Approach
Decode a representation by patching it into a separate inference pass on a designed target prompt (possibly on a different or larger model), so the model itself verbalizes the information; this unifies prior inspection methods as configurations and enables training-free, expressive, layer-robust inspection.
Key results
- Few-shot token identity Patchscope outperforms logit lens and tuned lens for next-token prediction from layer 10 onward, with gains up to 98% in layers 18-22.
- Zero-shot feature extraction Patchscope significantly beats logistic regression probing on 6 of 12 tasks (p<1e-5) without training data.
- On multi-hop error correction, the CoT Patchscope reaches 50% accuracy versus 35.71% for chain-of-thought and 19.57% for vanilla generation (Vicuna-13B, 46 samples).
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use zero-shot feature extraction Patchscope instead of a logistic regression probe | GPT-J 6B · Fruit outside color | accuracy: 35.5 ± 3.1 -> 71.0 ± 13.3 | Helped |
| Use zero-shot feature extraction Patchscope instead of a logistic regression probe | GPT-J 6B · Substance phase | accuracy: 73.8 ± 3.7 -> 91.9 ± 1.7 | Helped |
| Use zero-shot feature extraction Patchscope instead of a logistic regression probe | GPT-J 6B · Task done by tool | accuracy: 10.1 ± 3.2 -> 48.1 ± 13.2 | Helped |
| Use zero-shot feature extraction Patchscope instead of a logistic regression probe | GPT-J 6B · Company CEO | accuracy: 5.0 ± 2.6 -> 47.8 ± 13.9 | Helped |
| Use zero-shot feature extraction Patchscope instead of a logistic regression probe | GPT-J 6B · Country currency | accuracy: 17.7 ± 2.2 -> 51.0 ± 8.9 | Helped |
| Use zero-shot feature extraction Patchscope instead of a logistic regression probe | GPT-J 6B · Food from country | accuracy: 5.1 ± 3.7 -> 63.8 ± 11.3 | Helped |
| Use logistic regression probe instead of zero-shot feature extraction Patchscope | GPT-J 6B · Object superclass | accuracy: 65.6 ± 10.5 -> 54.8 ± 11.3 | Hurt |
| Use Chain-of-Thought Patchscope instead of chain-of-thought prompting | Vicuna 13B · Multi-hop factual and commonsense reasoning | accuracy: 35.71% -> 50% | Helped |
| Use Chain-of-Thought Patchscope instead of vanilla generation | Vicuna 13B · Multi-hop factual and commonsense reasoning | accuracy: 19.57% -> 50% | Helped |
| Use token identity Patchscope rather than vocabulary projection methods | Next-token prediction estimation across LLaMA2, Vicuna, GPT-J, and Pythia · Pile evaluation set | Precision@1: gain of up to 98% | Helped |
| Use token identity Patchscope rather than logit lens and tuned lens in the first 10 layers | Next-token prediction estimation · Pile evaluation set | Precision@1 | Mixed |
| Replace the multi-token identity demonstrations with a position-matched single-token prompt (ablation) | Token identity Patchscope on LLaMA2 13B · Next-token prediction estimation | Precision@1 | Hurt |
Surprising findings
- Patching representations from a smaller model (Vicuna-7B) into a larger one (Vicuna-13B) improves entity-resolution inspection, while for Pythia the smaller model outperformed the larger one, so cross-model patching was less effective there.
- Feature extraction Patchscope underperforms probing in later layers, attributed to representations shifting toward next-token prediction.
Limitations
- Evaluation focuses on autoregressive Transformer LLMs; generality to other architectures untested.
- Placeholder token contamination can degrade results when patching later layers in multi-token generation.
- Multi-hop evaluation uses a small set (46 samples) and manually exploits known query structure.
Experimental setup
Datasets: The Pile PopQA WikiText-103 Commonsense and factual relation dataset (Hernandez et al. 2023)
Benchmarks: The Pile evaluation set Commonsense and factual relation tasks (5 commonsense, 7 factual) PopQA Multi-hop factual and commonsense queries (46 evaluated)
Metrics: Precision@1 Surprisal Accuracy RougeL Rouge1 Sentence-BERT similarity t-test with Bonferroni correction
Baselines: Logit Lens Tuned Lens Logistic regression probe Chain-of-thought prompting Vanilla generation
Builds on: logit lens tuned lens future lens causal tracing activation patching
Closest papers by meaning
- Training Language Models to Explain Their Own Computations (NeurIPS 2026 · similarity 0.89)
- Potemkin Understanding in Large Language Models (ICML 2025 · similarity 0.89)
- Sparsity-Guided Holistic Explanation for LLMs with Interpretable Inference-Time Intervention (AAAI 2024 · similarity 0.89)
- Automated Assessment of Fidelity and Interpretability: An Evaluation Framework for Large Language Models’ Explanations (Student Abstract) (AAAI 2024 · similarity 0.88)
- metabench - A Sparse Benchmark of Reasoning and Knowledge in Large Language Models (ICLR 2025 · similarity 0.88)
- Calibrating Reasoning in Language Models with Internal Consistency (NeurIPS 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
