Introduction
Mechanistic interpretability aims to reverse-engineer the internal representations of neural networks. A popular approach involves training Sparse Autoencoders (SAEs) to decompose the latent states of models, such as Vision Transformers (ViTs), into sparse, human-interpretable features. Traditionally, these features are interpreted by observing the image patches where they activate most strongly. However, this "activation-based" interpretation can be misleading due to the global information mixing inherent in self-attention mechanisms.
The Challenge: Localized vs. Non-localized Features
In Vision Transformers, information from across the image is aggregated into individual patch embeddings. This creates a discrepancy between where a feature activates and what causes it to activate.
The authors distinguish between localized features, where the activation coincides with the visual concept (e.g., a "Human Face" feature activating on a face), and non-localized features, where the feature activates on a patch that does not contain the concept it represents. For instance, a feature might fire on a background patch simply because that patch has integrated context from the rest of the scene.
Causal Feature Explanation (CaFE)
To address this, researchers developed Causal Feature Explanation (CaFE). Instead of relying on raw activation maps, CaFE identifies the Effective Receptive Field (ERF) of a feature. The process involves:
- SAE Extraction: Training SAEs on ViT patch embeddings.
- Input Attribution: Using Attention-LRP (AttnLRP) to backpropagate from the SAE neuron to the original input pixels.
- Causal Mapping: Generating a map of the input patches that actually drive the feature's activation.
By comparing these causal maps to standard activation maps, the researchers can pinpoint when a model is "reporting" a concept in a location different from where the evidence exists.
Key Insights: The "Despair" Feature and Depth Trends
A primary example of non-locality is the "Despair" feature. While this feature may activate on a seemingly irrelevant patch, such as a floor, the ERF reveals that the activation is caused by semantically rich regions like spilled pills or a distressed face elsewhere in the image.
The study found that non-locality is not uniform across the network. It is rare in early layers, which focus on local textures, but increases significantly in deeper layers. In layer 22 of the CLIP-ViT-L/14 model, approximately 14% of features were found to be non-localized. These features often represent complex, compositional concepts that require global context.
Quantitative Results and Faithfulness
Quantitative "patch insertion" tests confirmed that CaFE-based explanations are more faithful than traditional activation maps. By building an image patch-by-patch based on ERF rankings, the feature's activation is recovered much faster than when using patches ranked by activation strength. This demonstrates that the ERF accurately captures the causal drivers of model behavior.
Conclusion
The discovery of non-localized features highlights a critical pitfall in interpreting vision models: correlation does not equal causation in patch activations. The CaFE method provides a more robust framework for understanding how Vision Transformers compose complex concepts, moving the field closer to a truly causal understanding of AI "neurons."
Summary updated