Multimodal Interpretability in 2024
For practitioners, the key shift is not just what multimodal models explain, but where explanation lives in the stack. The articleโs main technical value is the move from post-hoc visualization toward causal inspection of internal activations, circuits, and sparse features. That matters operationally because it changes interpretability from a reporting layer into a system property that can be tested, patched, and potentially controlled.
A second architectural implication is the dependence on representation alignment. Methods that reuse shared text-image spaces, adapters, or locked encoders can make visual models easier to inspect, but they also introduce coupling between model layers, label space, and downstream tooling. In enterprise settings, that means interpretability is no longer isolated from data pipelines, embedding stores, or model versioning; changes in any one layer can invalidate the meaning of the others.
The article also highlights a practical trade-off between mechanistic precision and deployment cost. Sparse feature circuits and activation clamping may offer finer-grained control than weight edits, but they require stronger assumptions about representational units and more rigorous causal testing. For teams building governance workflows, this suggests treating interpretability artifacts as experimental infrastructure, not as compliance outputs.
Finally, the most important operational lesson is that multimodal models are likely to need a blended toolkit: circuit discovery for causality, text-based alignment for readability, and captioning pipelines for scale. None of these is a drop-in solution. The real engineering challenge is establishing evaluation standards, gold datasets, and failure modes that let teams compare methods consistently across model families and releases.
Overview
Multimodal interpretability methods:- Circuit-based methods
- Text-image space methods
- Captioning methods
Circuit-based methods
Classical mechanistic interpretability focuses on the computational subgraph of the model as our representation. This view assumes that network’s nodes, or “neurons,” are a good enough unit of representation for the network’s behavior. Circuit-based approaches include manual methods (Wang et al, 2023), automatic circuit discovery methods (Conmy et al., 2023), and optimizations for automatic circuit discovery’s scalability, including attribution patching that employs linear approximations (Syed et al., 2023). Other methods expand the computational subgraph with sparse autoencoders (Marks et al., 2024) to deal with superposition, or when the data has more features than neuron capacity. Sparse feature circuits use sparse autoencoder (SAE) features as finer-grained units of representation than neurons. Sparse feature circuits have been used in downstream applications in language models, including removing gender-related bias from a classifier. Sparse feature circuit diagram from “Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models” (Marks et al, 2024). I like to think of sparse feature circuits as puppeteering the model’s output in activation space, which is an alternative to fine-tuning the model’s weights. You’re essentially “decompiling” a model into a sparser representation, and performing circuit discovery on your new subgraph (Sharkey, 2024). The approach can be seen as analogous to LoRA (Hu et al., 2021), in that you are constraining your model’s behavior, but in activation space instead of weight space. At present, this approach remains largely blue sky research. However, its potential applications are significant. It could allow for model customization through directly intervening on activations rather than weights, potentially reducing computational costs. Further, this method could allow us to audit our models for toxic or dangerous behaviors. One critique of circuit-based approaches is that the network’s representations may still be too distributed. Both the neurons, and even the finer-grained SAE features, may not be adequate units of representation to capture the model’s behavior. There is evidence that neurons are only deceptively representative of the model’s true behavior (Leavitt et al, 2020; Morcos et al, 2018; Amjad et al, 2019) and the same may apply to SAE features, although this hypothesis requires further testing. In the figure below, it is not obviously clear the extent that the pie-specific SAE feature impacts the classification of pie. Without causal testing, the pie feature may just be epiphenomenal and unrelated to the network’s function. However, one advantage of mechanistic interpretability is that testing the pie SAE feature’s effect on the output is relatively straightforward by ablating that neuron’s activations. Does clamping this pie SAE feature from TinyCLIP-40M causally influence its prediction? To what extent? And does it do so reliably? SAE is trained on Layer 9 of MLP out with expansion factor 32. Figure is generated by me, please cite if used. As another issue, the precise activation value of a neuron might be crucial in ways that the simple scalar multiplication of your chosen features when steering your network (i.e. “clamping”) may not properly capture. There is some evidence that the exact magnitude of neuron activation is significant for its encoding; for example, Goh et al. (2021) found a “politics neuron” that encodes for both Trump and LGBTQ values depending on its activation value. I would love to see a study on the correlation between SAE feature interpretability and its model steering efficacy when clamped, particularly across different network layers and sublayers, and at different neuron activation magnitudes. That said, I haven’t seen enough evidence that these methods won’t take us quite far. I find these methods to be deeply conceptually pretty, and I am keen to see how far we can take them. The purpose of the Prisma project (Joseph, 2023), which has been my focus for the last few months, is to provide infrastructure for circuit-based interpretability on vision and multimodal models, leading up to sparse feature circuits with SAEs. Finally, it’s still unclear to me the extent that the current circuit-based and SAE efforts are rederiving the causal inference and disentanglement literature (Komanduri et al., 2024). However, the purpose of this older literature does not seem strongly focused on controlling or auditing the model, two motivations of mechanistic interpretability, so I imagine conclusions may look quite different this time.Exploiting the shared text-image space
One technique quietly gaining popularity in multimodal interpretability is exploiting the shared text-image space of multimodal models. This technique is not prominent in classical language mechanistic interpretability. This method, primarily applicable to models trained on contrastive loss between image and text, effectively provides “free” labels for the internal components of your vision encoder. By exploiting this shared text-image space, you can interpret the vision model’s representations using the text encoder, without additional labeling.Using the embeddings from the text encoder as basis vectors for the internal activations of the vision encoder
Gandelsman et al. (2024) introduce TEXTSPAN, an algorithm that creates a text-labeled basis for the attention head outputs of CLIP’s vision encoder (Radford et al, 2021). The algorithm caches outputs for an attention head of the vision encoder, then greedily selects text embeddings from a precomputed text bank to maximize the explained variance of these outputs. The result is a set of basis vectors, each tied to a text description, which represents the behavior for each attention head of the vision encoder. This approach resembles PCA on vision encoder attention head activations, except each basis vector corresponds to a specific text concept, which makes that attention head interpretable in English. Finally, it’s worth noting that TEXTSPAN relies on the assumption that the basis vectors in the final layers are sufficiently aligned with the output space for the technique to be effective. There is some evidence that the basis vectors only start to align at around Layer 9 of a 12 layer ViT (Joseph et al., 2024). We now have English descriptions for the attention heads of CLIP’s vision encoder. From Gandelsman et al (2024). Extending the TEXTSPAN method to language mechanistic interpretability? I’d be keen to see the TEXTSPAN method applied to the attention heads of CLIP’s text encoder (instead of the vision encoder as above), and for the method to be used more broadly in language mechanistic interpretability in general. I wonder how the text descriptions that TEXTSPAN generates might relate to the circuit-based attention patterns we’ve seen in language, like induction heads (Olsson et al., 2022). Do induction heads have corresponding English descriptions, or are they a too low a level of abstraction? I am not yet aware of any work that has bridged these two methodologies. Another method that leverages the shared text-image space is CLIP-Dissect (Oikarinen et al., 2022), which focuses on individual neurons instead of attention heads.More thoughts on using text embeddings for non-language interpretability
Leveraging the shared text-image space in the methods above assumes that the model was trained contrastively with language, like CLIP. However, there are many vision models that were not trained to be so granularly aligned with language, or with language at all. A vanilla ViT (Dosovitskiy, 2021) was trained with language in a very coarse-grained way (i.e. ImageNet classification) that does not create the continuous semantic space we see in CLIP. DINOv2 (Oquab et al, 2023) was trained in a purely self-supervised way, without text labels at all. This raises a challenge: How can we apply text-based interpretation methods, like TEXTSPAN, to models such as a vanilla ViT and DINOv2, which lack aligned text embeddings? The absence of a native shared text-image space calls for additional steps. We either need to either a) train aligned text embeddings for the ViT/DINOv2 vision embeddings (Method 1 below), or b) map the ViT/DINOv2 vision embeddings to CLIP-space (Methods 2 and 3 below). We have a few options for “creating” a shared text-image space for image models that don’t have one by default: Method 1: Training a text encoder with a locked vision encoder LiT (Locked Image Tuning) (Zhai et al., 2022) takes a pretrained vision encoder and trains a text encoder from scratch while keeping the vision encoder frozen, or “locked.” Thus, you can decouple the vision encoder training method and data from those of the text encoder. I really like this method of decoupling text and vision encoder data/training for several reasons:- Computationally cheaper. LiT is cheaper than training both the image and text encoder together, as you’re only updating the text encoder.
- Possibly more accurate. Decoupling the training methods and data of the encoders from each other may make the model more accurate and flexible. For instance, if I have a bunch of unlabeled images, I can train my vision encoder on the data in a self-supervised way without the corruptions of poor labels.
- Possibly less biased. Training the vision encoder using self-supervised learning (e.g. DINOv2) may create visual representations that are less biased by all the junk in the English language. This could mitigate a lot of the bias problems we’re seeing with CLIP. Interestingly, you can also train multiple different text spaces while keeping the vision encoder locked. Thus you can cheaply train text encoders for multiple different cultures and languages and have them all share the same vision encoder.
Captioning methods
Instead of leveraging a shared text-image space, a totally different way of interpreting the function of a given neuron is to frame the task as a captioning problem. This technique identifies images that strongly activate the neuron or cause it to fire within a chosen interval, and then uses a VLM to describe these images. You can then feed the autointerp text description generated by the VLM into a diffusion model to generate synthetic data, which you feed back into the neuron. This allows for an automated way to check for the accuracy of your description. Of course, there are several issues that can arise if this is not done properly. The first is interpretability illusions (Bolukbasi et al., 2021), or descriptions being too broad or too precise. For example:- Overly Specific Interpretation: A neuron encoding for dogs in general might be mistakenly labeled as a Border Collie-specific neuron.
- Overly Broad Interpretation: Conversely, a neuron specifically tuned to Border Collies might be mistakenly labeled as a general dog neuron.
Citation
Are you referencing this blogpost elsewhere? Please cite as below. Thank you for reading!@misc{Joseph2024,
author = {Joseph, Sonia},
title = {Multimodal interpretability in 2024},
year = {2024},
howpublished = {\url{https://www.soniajoseph.ai/multimodal-interpretability-in-2024/}},
}
Acknowledgements
Thank you to everyone for the discussions. Thank you to the Prisma team, the Summer 2024 MATS cohort, and the JEPA team at FAIR. Thank you to individuals for the ongoing dialogs, including my advisor Blake Richards, Yossi Gandelsman, Cijo Jose, Koustuv Sinha, Praneet Suresh, Lee Sharkey, Neel Nanda, and Noah MacCallum. This list is incomplete!References
- Amjad, R. A., Liu, K., & Geiger, B. C. (2021). Understanding neural networks and individual neuron importance via information-ordered cumulative ablation.
- Balasubramanian, S., Basu, S., & Feizi, S. (2024). Decomposing and interpreting image representations via text in vits beyond CLIP. In ICML 2024 Workshop on Mechanistic Interpretability.
- Bolukbasi, T., Pearce, A., Yuan, A., Coenen, A., Reif, E., Viรฉgas, F., & Wattenberg, M. (2021). An interpretability illusion for bert.
- Conmy, A., Mavor-Parker, A. N., Lynch, A., Heimersheim, S., & Garriga-Alonso, A. (2023). Towards automated circuit discovery for mechanistic interpretability.
- Dosovitskiy, A., et al. (2021). An image is worth 16×16 words: Transformers for image recognition at scale.
- Gandelsman, Y., Efros, A. A., & Steinhardt, J. (2024). Interpreting CLIP’s image representation via text-based decomposition.
- Goh, G., et al. (2021). Multimodal neurons in artificial neural networks. Distill. https://distill.pub/2021/multimodal-neurons
- Hu, E. J., et al. (2021). LoRA: Low-rank adaptation of large language models.
- Joseph, S. (2023). ViT Prisma: A mechanistic interpretability library for vision transformers. https://github.com/soniajoseph/vit-prisma
- Joseph, S., & Nanda, N. (2024). Laying the foundations for vision and multimodal mechanistic interpretability & open problems. AI Alignment Forum.
- Komanduri, A., Wu, X., Wu, Y., & Chen, F. (2024). From identifiable causal representations to controllable counterfactual generation: A survey on causal generative modeling.
- Leavitt, M. L., & Morcos, A. (2020). Towards falsifiable interpretability research.
- MacCallum, N., & Joseph, S. (2024). Mindreader: Interpreting Vision Transformer Internals. Retrieved from https://mindreader-web.vercel.app/
- Marks, S., et al. (2024). Sparse feature circuits: Discovering and editing interpretable causal graphs in language models.
- Moayeri, M., Rezaei, K., Sanjabi, M., & Feizi, S. (2023). Text-to-concept (and back) via cross-model alignment.
- Morcos, A. S., Barrett, D. G. T., Rabinowitz, N. C., & Botvinick, M. (2018). On the importance of single directions for generalization.
- Oikarinen, T., & Weng, T. (2023). CLIP-Dissect: Automatic description of neuron representations in deep vision networks.
- Olsson, C., et al. (2022). In-context learning and induction heads.
- Oquab, M., et al. (2024). DINOv2: Learning robust visual features without supervision.
- Radford, A., et al. (2021). Learning transferable visual models from natural language supervision.
- Sharkey, L. (2024). Sparsify: A mechanistic interpretability research agenda. AI Alignment Forum.
- Syed, A., Rager, C., & Conmy, A. (2023). Attribution patching outperforms automated circuit discovery.
- Wang, K., et al. (2022). Interpretability in the wild: a circuit for indirect object identification in GPT-2 small.
- Zhai, X., et al. (2022). LiT: Zero-shot transfer with locked-image text tuning.
Enjoyed this article? Sign up for our newsletter to receive regular insights and stay connected.
