TL;DR
Peeking inside the middle layers of a transformer usually forces an uncomfortable trade-off: simple linear probes miss complex, nonlinear thoughts, while full nonlinear decoding "cheats" by reading surrounding tokens. iLens solves this by placing a chosen token’s internal state into an isolated computational tunnel—blocking outside context while letting the model’s own native, nonlinear machinery translate that raw vector into human-readable concepts (and even edit them on the fly), all with zero training required.
What Problem Does This Paper Address?
When a Large Language Model (LLM) or Vision-Language Model (LVLM) processes a prompt like "Element sixteen's color", it doesn't jump straight to "yellow." Somewhere in the middle layers, it first figures out "sulfur." Mechanistic interpretability aims to read these intermediate, high-dimensional activation vectors by mapping them into the model's vocabulary.
Existing "readout" tools fall into two camps, each with a catch:
- Linear Readouts (like Logit Lens, Tuned Lens, or Jacobian-based J-Lens): These project middle-layer vectors straight to the output vocabulary using linear approximations. They are fast, but because transformers rely heavily on nonlinear MLPs, linear lenses often miss concepts—especially in early layers—or require training custom probes for every single layer and dataset.
- Unrestricted Nonlinear Decoding (like Patchscopes): These copy an activation into a new target prompt and let the model finish running. While this preserves nonlinear power, unrestricted attention lets the token peek at other positions in the new prompt. You can't be sure if the decoded concept actually lived inside your chosen vector or was inferred from surrounding context.
How do we keep the model’s native nonlinear decoding power while guaranteeing the output comes strictly from the single representation we are inspecting?
Methods
The authors introduce iLens, a training-free, data-free framework built on isolated computation:
- Isolated Decoding via Attention Knockout: Suppose you want to inspect the hidden state $h_{\ell_0, t}$ at layer $\ell_0$ and token position $t$. Up to layer $\ell_0$, the model runs normally. From layer $\ell_0 + 1$ to the final layer $L$, iLens applies attention knockout, masking out every other token position so $t$ can only attend to itself. Because MLPs, layer norms, and skip connections remain active, the vector undergoes the model's native nonlinear transformations in complete isolation from the rest of the prompt.
- Late-Layer Attenuation: Because a transformer's final layers aggressively shift representations toward predicting the next word rather than preserving intermediate thoughts, iLens optionally dampens attention and MLP branch updates past 80% of the model's depth ($\tau = 0.8$).
- Concept Editing (ITGI): iLens also edits thoughts via Isolated Taylor Gradient Intervention. By extending the isolated path to the final prompt position and taking a first-order Taylor approximation of a target word's log-odds, iLens calculates a minimum-norm, regularized gradient nudge. This suppresses a source concept ($q^* = 0.01$) or injects a new one ($q^* = 0.99$) directly into the intermediate state before returning it to the normal model forward pass.
Datasets
Because iLens requires no training, datasets are used strictly for evaluation across 18 LLMs, 12 LVLMs, and 2 unified vision models:
- Visual Decoding & Editing: Evaluated on CLEVR (object shape and color probing, plus single-object scene interventions), COCO (object identities), and Visual Genome (visual attributes and non-spatial relations).
- Textual Decoding: Five benchmarks from prior interpretability work (Gurnee et al., 2026): Typo, Multilingual, Multihop, Order of Operations, and Dual Task.
- Textual Editing: Four intervention benchmarks from prior work: Probe Swap, Verbal Report, Flexible Generalization, and Verbal Introspection.
(Note: While no new datasets are introduced, the authors introduce a new metric called First Emergence Depth (FED)—the normalized layer index where a target concept first enters the top-10 predictions.)
Key Insights and Ideas
- Early visual representations are rich, just non-linearly encoded: Linear lenses struggle in the early layers of vision-language models, making it look like visual concepts haven't formed yet. iLens reveals that object identities, colors, and attributes ("blueberries," "dripping," "viscous") are already locked into image tokens as early as 20% into the network—they just need downstream nonlinear MLPs to unpack them into words.
- Initial concepts aren't just input-embedding echoes: A natural suspicion is that early layers just look like input token embeddings. However, the Embedding Lens (which checks cosine similarity to input embeddings) fails on early visual layers where iLens thrives, suggesting early representations are genuinely non-lexical until processed nonlinearly.
- Isolation sharpens causal steering: Calculating gradient edits through an isolated nonlinear path prevents context interference, allowing single-step edits to cleanly flip downstream model behavior (like changing how a model describes an object's color or verbally introspects on injected thoughts).
Key Results
- Visual Decoding: iLens achieves the highest average Pass@10 and Confidence, and lowest (earliest) FED across all evaluated vision models. On Qwen3-VL-8B, iLens jumps average Pass@10 from 25.12% (Patchscopes) and 21.13% (Logit Lens) to 54.66%, while cutting FED from 56.18% down to 30.63%. On Show-o2-7B, it reaches 78.96% Pass@10 at an average depth of just 16.16%.
- Textual Decoding: Across five diverse tasks, iLens wins average Pass@10 on 4 of 5 highlighted LLMs and achieves the earliest FED on all 5 (e.g., on Gemma3-12B-Instruct, reducing FED to 40.7% vs. 66.3% for Logit Lens).
- Interventions: In textual steering on Qwen3.5-9B, iLens achieves a $\Delta\text{Pass@10}$ of 27.86, nearly tripling the strongest baseline, J-Lens + ITGI (10.22). In visual CLEVR edits on OmniGen2, iLens reaches ~50% $\Delta\text{Pass@1}$ AUC compared to <10% for all baselines.
Limitations and Future Work
- Computational Overhead: Unlike linear probes—which require just a single matrix multiplication per layer—iLens runs the selected token through all remaining transformer blocks. While manageable for interpretability research, designing faster nonlinear probes is an open avenue for future work.
- Distribution Shift Caveats: Although self-only attention keeps head outputs mathematically well-behaved (within the convex hull of value vectors), blocking context still deviates from standard inference, meaning downstream activations aren't guaranteed to match ordinary full-context distributions.
- Task-Dependent Attenuation: No single late-layer attenuation schedule is optimal for every task, leaving adaptive or task-aware schedules for future exploration.
Summary updated