MicroLens: Read, Trace, and Rewire the Residual Stream with Two Lenses
New in Mechanistic interpretability; no direction yet. Mechanistic interpretability
Abstract (arXiv)
Lenses that decode hidden states into words are a popular way to look inside language models, but a heatmap of decoded words only shows what a vector reads as and cannot distinguish whether, or how much, the model uses the information. We present an interactive viewer that puts reading, tracing and editing on the same layers-by-tokens grid of the residual stream. In the viewer, every cell can be decoded with two lenses, the logit lens and the Jacobian lens (J-lens), traced back to the tokens it drew from, and edited, with the rest of the model rerun on the spot. We demonstrate three usage scenarios on Gemma-3-4B-it, backed by sweeps over a few hundred prompts, to show what this tool can discover. First, the two lenses give different directions to write with, each suiting a different edit: the logit lens's word direction sets what a token outputs, while the J-lens's direction changes what later tokens read. Second, in two-hop trivia questions (the capital of the state or country containing a given city), the state or country is readable at the city token from as early as layer 7, and swapping it there can redirect the answer 92-98% of the time; however, at the answer position, the state or country information is not used. Third, when a chat model answers questions with a step-by-step reasoning prompt, the correct answer is often already the top word in the residual stream before any reasoning is written: for 89-92% of retrieval questions and 39-63% of multi-hop and serial ones, far above their respective distractors (at most 5%). However, ordering puzzles are an exception, as the model works them out only once it writes its final reasoning steps. Furthermore, for answers that are visible in the residual stream, the J-lens reads them a layer or two earlier than the logit lens across the different types of question.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Builds on 17 of its 23 references that are in the map. Submitted 9 Nov 2026.
Builds on
17 of 23 references.
References · 17
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2025Gemma 3 Technical Reportcited by 2,058
- 2020Quantifying Attention Flow in Transformerscited by 828
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 713
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 578
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 425
- 2023Function Vectors in Large Language Modelscited by 353
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 307
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 300
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 273
- 2024How to use and interpret activation patchingcited by 252
- 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 191
5 more
- 2018Visual Analytics in Deep Learning: An Interrogative Survey for the Next Frontierscited by 119
- 2026Verbalizable Representations Form a Global Workspace in Language Modelscited by 112
- 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 95
- 2022LM-Debugger: An Interactive Tool for Inspection and Intervention in Transformer-Based Language Modelscited by 29
- 2024LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Modelscited by 18
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025LogitLens4LLMs: Extending Logit Lens Analysis to Modern Large Language Models
- 2026The Elephant in the Question: Unified Models Picture the Concepts Behind Their Answers
- 2025ParaScopes: What do Language Models Activations Encode About Future Text?
- 2026Contrastive Projection: Reading Transformer Internals by Differencing Logit Lenses
- 2026Logit Lens Supervision for Patch-Level Explanations in Vision-Language Models
- 2025See the Text: From Tokenization to Visual Reading
- 2024Reasoning to Attend: Try to Understand How <SEG> Token Works
- 2026Let a Small Model Read First: Faster Prefill for Long Interleaved Image-Text Inputs