iLens: Decoding and Editing Large Language and Vision-Language Model Representations through Isolated Computation
Mohammadali Banayeeanzade, Hosein Hasani, Reihaneh Zohrabi, Mahdieh Soleymani Baghshah
Abstract
Readout tools play an important role in mechanistic interpretability by mapping intermediate transformer representations to interpretable concepts. Existing linear readouts may miss concepts recoverable through nonlinear computation, while unrestricted nonlinear decoding can retrieve additional information from other prompt positions. We introduce iLens, a training-free mechanistic interpretability tool for reading and editing concepts in intermediate transformer representations. By applying attention knockout to block access to other token representations in the remaining layers, iLens makes the readout depend only on the selected residual embedding while retaining the model's pretrained nonlinear transformations. This isolation strategy also supports targeted interventions that inject or suppress specified concepts through a regularized gradient update based on the first-order Taylor approximation of concept log-odds. Extensive experiments on five textual and five visual concept-decoding tasks across 18 LLMs, 12 LVLMs, and two unified vision models show that iLens improves Pass@10 and Confidence over baseline readouts, with target concepts often recoverable at earlier layers. Intervention experiments across LLMs, LVLMs, and unified vision models further demonstrate that iLens enables more effective concept editing than baseline methods.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
Related papers
Subgoals as Compass: Temporal Vision-Language Reward Modeling for Complex Tasks
Shared title terminologycs.LGHyewon Choi, Minseok Jeong, SooJean Han
Backtracking with Linear-in-Depth Search-Space Growth: Width-Limited Tree Search for Large Language Models
Shared title terminologycs.LGJiacheng Xu, Fuxiang Zhang, Chaojie Wang et al.
Learning Graph Representations via Predictive Language Supervision
Shared title terminologycs.LGJongwoo Kim, Chanjae Song, Jeongwhan Choi et al.
Symmetry Slippage in Equivariant ML: Creation, Computation, and Corrections
Shared title terminologycs.LGJacob Hume, Jacob Bamberger, Michael Bronstein
On the Dissociation of Order and Identity in Number Manifold Representations
Shared title terminologycs.LGSai Sumedh R. Hindupur, Thomas Fel, Demba Ba
Benchmarking EEG Foundation Models for Decoding Alzheimer's Disease-Relevant Neural Dynamics
Shared title terminologycs.LGKonstantinos Barmpas, Na Lee, Yannis Panagakis et al.