TL;DR
This paper introduces a novel framework to extract "concept circuits" from Vision Transformers (ViTs) using Cross-Layer Transcoders (CLTs). By mapping internal representations into directed graphs of human-interpretable concepts, it reveals both the global "world knowledge" stored in model weights and the specific pathways used for individual predictions, enabling the automatic discovery and removal of spurious correlations.
What Problem Does This Paper Address?
While Vision Transformers (ViTs) excel at visual tasks, they operate largely as black boxes. Traditional interpretability methods like saliency maps highlight where a model looks in an image, but fail to explain how the model internally composes and reasons about concepts across its layers.
Mechanistic interpretability approaches, such as Sparse Autoencoders (SAEs), have emerged to decompose complex neural activations into interpretable features. However, SAEs primarily capture input-dependent behaviors. To get a global, input-invariant view of how a model structures its knowledge, researchers typically have to average activations over massive datasets—a process that is computationally expensive and prone to statistical artifacts. This paper tackles the challenge of directly reading a model's foundational "world knowledge" and specific decision-making pathways directly from its internal mechanisms.
Methods
The authors adapt Cross-Layer Transcoders (CLTs)—originally designed for language models—to vision data. CLTs are sparse cross-layer dictionaries trained to approximate the Multi-Layer Perceptron (MLP) computations of a transformer by encoding the residual stream into sparse feature activations and reconstructing downstream outputs.
To successfully port CLTs to vision models, the authors introduce three key modifications:
- Hyperparameter Optimization: Sweeping sparsity penalties and dictionary sizes to balance reconstruction fidelity against feature interpretability (monosemanticity).
- CLS Token Integration: Training the transcoders on both spatial image tokens and the global classification (
CLS) token. - Spatial Token Aggregation: Summing feature activations across different token positions to simplify the resulting graphs into human-interpretable circuits.
The framework extracts two complementary types of circuits:
- Global Concept Circuits: Input-invariant graphs derived directly from the CLT's learned weights. To mitigate feature interference from the residual stream, these weights are reweighted using feature co-activation statistics.
- Instance Concept Circuits: Input-dependent subgraphs extracted from a single image using attribution patching, isolating the exact pathways responsible for a specific prediction.
Datasets
The method was trained and evaluated using several standard vision benchmarks:
- ImageNet: The primary dataset used for training the CLTs and validating the functional importance of global concept circuits.
- LVIS & Visual Genome: Combined with ImageNet to create a diverse evaluation set for automatically discovering spurious correlations.
- Waterbird Dataset: A benchmark that spuriously correlates bird categories with backgrounds (e.g., waterbirds on water backgrounds vs. landbirds on land backgrounds). This was used to test the model's ability to remove shortcut dependencies.
Key Insights and Ideas
- Direct Weight Readout: Because CLTs factorize network computation into input-dependent codes and input-invariant weights, a model's global concept-to-concept relationships can be read directly from its parameters without expensive dataset-scale feature attribution.
- Supervision Paradigms Shape Internal Topology: By comparing global circuits, the authors show how training objectives alter internal structure. Contrastive learning (CLIP) builds dense interactions in deep layers to favor high-level abstract concepts. Self-supervision (DINO) forms dense connections in shallow and middle layers to focus on low-level textures and colors. Standard supervised ViTs rely heavily on adjacent-layer interactions, evolving features gradually.
- Automated Shortcut Detection: Spurious correlations can be mathematically isolated by identifying "spurious concepts"—features that boast high global weights (the model relies on them) but exhibit low co-activation frequencies with the target class in the real world (e.g., identifying a "freight car" based on the presence of "graffiti").
Key Results
- Circuit Faithfulness: Mean-ablating the top-10 important concepts in the global circuit caused CLIP's ImageNet accuracy to drop from 60% to 22%, confirming that the extracted circuits capture functionally vital pathways.
- Outperforming SAEs: On CLIP, CLT-based instance circuits outperformed equivalent SAE baselines by an average of 24.4% in faithfulness and 22.1% in completeness.
- Spurious Correlation Removal: By automatically identifying and mean-ablating background features in the instance concept circuit, the authors boosted the model's accuracy on the worst-performing group of the Waterbird dataset (waterbirds on land) to 71%. This significantly outperforms alternative methods like SpLiCE (60%) and standard SAE interventions (53%).
Limitations and Future Work
- MLP-Centric: The current CLT formulation primarily captures pathways passing through MLP blocks, meaning it only indirectly reflects the information routing handled by attention heads.
- Human-in-the-Loop Interpretation: While circuit extraction is automated, defining the semantic meaning of a given feature node still requires human inspection of its top-activating image patches.
- Causality: The global concept graphs rely on co-activation statistics over a dataset, meaning they do not fully capture pure, causal counterfactual relations.
Summary updated