TL;DR
This paper introduces Cross-Layer Transcoders (CLTs) as an interpretable, sparse proxy for MLP blocks in Vision Transformers (ViTs). By reconstructing target layer activations using sparse features from all preceding layers, CLTs break down opaque embeddings into a linear, layer-resolved construction. This approach achieves high reconstruction fidelity and preserves downstream zero-shot classification performance while uncovering how different token types aggregate information across network depth.
What Problem Does This Paper Address?
Mechanistic interpretability aims to reverse-engineer neural networks into human-understandable components. A popular tool for this is the Sparse Autoencoder (SAE), which extracts interpretable features from internal activations. However, standard SAEs operate locally within a single layer.
This local focus creates a major blind spot: it fails to capture cross-layer interdependencies and cannot quantify how much each layer actually contributes to the final representation. In Vision Transformers (ViTs), where information is processed across spatial patch tokens and a global classification ([CLS]) token, understanding this deep, cross-layer transformation is critical. The authors address this gap by adapting Cross-Layer Transcoders (CLTs) to the vision domain to build a depth-aware, global proxy of ViT computations.
Methods
The authors propose using Cross-Layer Transcoders (CLTs) to replace the standard MLP blocks in a ViT.
Key components of their approach include:
- Triangular, Depth-Ordered Architecture: Instead of looking at a single layer, a CLT at a destination layer $j$ reconstructs post-MLP activations by linearly combining learned sparse codes from all preceding layers ($i \le j$). This enforces a strictly causal information flow across the model's depth.
- Sparse Feature Encoding: Activations are mapped to an overcomplete feature space using an encoder paired with a sparsity-enforcing non-linearity. The authors experiment with three variants: JumpReLU (learned thresholds), ReLU-Top-k, and Abs-Top-k.
- Cascaded Replacement: To test if the CLTs truly capture the network's underlying logic, the authors perform drop-in replacements of the original MLP blocks with the trained CLTs during inference, allowing errors to compound across layers.
- Projection-Based Attribution: They introduce a scoring metric ($C_{i \to j}^{proj}$) that projects each source layer's contribution onto the total reconstruction, quantifying exactly how much credit an early layer deserves for shaping a later representation.
Datasets
The CLTs were trained and evaluated using pre-trained CLIP ViT-B/32 and ViT-B/16 backbones across three diverse datasets:
- CIFAR-100 (Image classification)
- COCO (Object detection/context)
- ImageNet-100 (Large-scale image classification subset)
Key Insights and Ideas
- Asymmetric Processing (CLS vs. Patches): The most striking finding is how differently the network treats patch tokens versus the
[CLS]token. Patch tokens show a strongly "diagonal-dominant" attribution pattern, meaning each layer's MLP primarily explains its own output (local refinement). In contrast, the[CLS]token draws credit broadly from across the entire network depth, acting as a global aggregator of semantic signals. - Concentrated Credit: The final representation of a ViT is not evenly distributed across all layers. Instead, it is highly concentrated within a small subset of dominant layers.
- Granularity Matters: ViT-B/16 (smaller patches) proved consistently easier for CLTs to approximate than ViT-B/32. The authors hypothesize that smaller patches distribute visual information more cleanly across a larger token set, leading to simpler per-token activations.
Key Results
- High Fidelity Reconstruction: Across all datasets, CLTs achieved excellent approximation of post-MLP activations, with layer-averaged cosine similarities between 0.92 and 0.97, and $R^2$ variance-explained scores typically between 0.89 and 0.95.
- Downstream Performance Preservation: Replacing the MLP blocks for the
[CLS]token across all layers resulted in virtually no drop in zero-shot classification accuracy (e.g., 61.74% vs. the baseline 61.65% on CIFAR-100 for ViT-B/32 using ReLU-Top-k). - Pruning via Attribution: In projection-based ablation experiments on ImageNet-100, dropping the single highest-rated layer caused accuracy to plummet from 80.54% to 74.94%. Conversely, keeping only the top-4 most significant layers (and zeroing out the other 8) fully recovered the baseline performance at 80.56% accuracy.
Limitations and Future Work
- MLP-Only Pathway: Currently, the proposed CLTs only model the transformations occurring within the MLP blocks. They bypass the Multi-Head Self-Attention (MHSA) blocks, meaning token-to-token interactions are not yet captured in the cross-layer decomposition.
- Early Patch Error Accumulation: While
[CLS]token replacement is incredibly robust, cascading patch token replacements across all layers from the very beginning (layers 0–11) leads to noticeable accuracy degradation due to compounding reconstruction errors in early spatial features. - Future Directions: The authors plan to integrate attention heads into the cross-layer framework to enable end-to-end circuit analysis and extend the method toward hierarchical concept discovery and Multimodal Large Language Models (MLLMs).
Summary updated