MicroLens: Read, Trace, and Rewire the Residual Stream with Two Lenses
Nika ZahediFangyi ZhuAnna Wu
Nika Zahedi
Fangyi Zhu
Anna Wu
+3
We present an interactive viewer that reads, traces, and edits the residual stream on a single layers-by-tokens grid. Each cell is decoded with two lenses: the logit lens, whose word direction sets what a token outputs, and the Jacobian lens (J-lens), whose direction changes what later tokens read, while tracing contributions back to source tokens and rerunning edits on the spot. On Gemma-3-4B-it, the tool reveals that in two-hop trivia, the country is readable at the city token from layer 7, where swapping redirects answers 92–98% of the time, though unused at the answer position; retrieval answers often appear before reasoning, with J-lens reading them one or two layers earlier, though ordering puzzles only emerge in the final reasoning steps.

arXiv ·
· November 9, 2026