TL;DR
This paper applies Sparse Autoencoders (SAEs)—a popular tool for interpreting large language models—to probe the internal representations of the DINOv2 vision foundation model. The authors discover that the model's class token contains virtually no semantic information in early layers, but progressively builds a structured, implicit representation of the ImageNet/WordNet taxonomy in later layers.
What Problem Does This Paper Address?
While deep vision models achieve remarkable performance on visual tasks, understanding how they organize and internalize semantic concepts remains a major challenge in model explainability. Humans naturally categorize the world using hierarchical taxonomies (e.g., a Pembroke Corgi is a type of Corgi, which is a type of Dog).
While Sparse Autoencoders (SAEs) have successfully disentangled high-dimensional representations into monosemantic (single-concept) features in Large Language Models (LLMs), their utility in uncovering visual hierarchies in vision foundation models has been largely unexplored. This paper investigates whether the internal features learned by an unsupervised vision model naturally align with structured human ontologies like ImageNet.
Methods
The authors train a series of ReLU Sparse Autoencoders (SAEs) on the intermediate activations of the class ([CLS]) token across all 40 layers of a pre-trained DINOv2 model. To evaluate how well the extracted sparse features align with the WordNet taxonomy underlying ImageNet, they introduce two novel hierarchical metrics:
- Lowest Common Hypernym (LCH) Height: Measures the average path distance between the specific classes an SAE head activates on and their lowest common ancestor in the taxonomy tree. This indicates the feature's level of abstraction.
- Ontological Coverage: Measures the proportion of sub-classes within a taxonomic branch that actually trigger the SAE head. A coverage of 1.0 means the head perfectly and completely captures a higher-order concept.
Additionally, they utilize Relevancy Maps (gradient-weighted attention propagation) to visually ground the spatial regions of an image that cause specific hierarchical SAE features to activate.
Datasets
The experiments are conducted using the standard ImageNet-1k dataset, leveraging its inherent hierarchical structure derived from the WordNet ontology (1,000 leaf classes structured under broader hypernym concepts).
Key Insights and Ideas
- Early Layers are Semantic Deserts: Surprisingly, the class token in the early layers of DINOv2 contains almost zero classification utility. It is incredibly easy for an SAE to auto-encode these layers using a minimal number of active latents, implying that the token does not store complex visual features early on.
- Layer-by-Layer Information Accumulation: Information is progressively pumped into the class token as it passes through the network. As classification accuracy climbs in later layers, the representations become more complex and harder for the SAE to compress cleanly without higher reconstruction errors.
- Emergence of Abstract Concepts: In later layers (specifically layers 32 to 36), SAE heads transition from tracking single, isolated leaf classes to cleanly activating across entire semantic branches (e.g., grouping all sharks/rays or all warships together), demonstrating an implicit grasp of abstract categories.
Key Results
- The Information Inversion: As shown in the layer-by-layer analysis, linear probe validation accuracy remains near 0% until around layer 15, before sharply rising to ~80% by layer 35. This directly mirrors the rise in SAE reconstruction error (MSE) and activation counts ($L_0, L_1$), proving that unsupervised SAE metrics can act as a proxy for tracking information density without needing labels.
- Taxonomic Alignment: At layer 24, SAE heads mostly activate on single classes or random assortments. By layer 36, the network yields 90 distinct multi-class SAE heads with a perfect Ontological Coverage of 1.0, cleanly capturing higher-order groups like whales or woodwind instruments.
- Visual Grounding: Relevancy maps confirm that these hierarchical SAE features are grounded in meaningful image regions. For instance, a "whale" SAE head correctly highlights the distinctive physical features of both Orcas and Grey Whales across entirely different contexts.
Limitations and Future Work
The authors note several limitations to their current study:
- Single Model Constraint: The analysis is restricted to DINOv2; it remains unclear if these hierarchical properties hold across different architectures (like CNNs) or alternative training paradigms (like supervised learning or CLIP).
- Taxonomy Scope: The study relies strictly on the ImageNet/WordNet hierarchy, which may not capture all nuances of how vision models represent the visual world.
- SAE Artifacts: Enforcing sparsity can sometimes introduce feature redundancy or artificial constraints that complicate interpretation.
For future directions, the authors suggest expanding this framework to diverse models and human perception datasets, utilizing causal interventions to verify feature behavior, and exploring applications in hierarchical classification and concept-based model editing.
Summary updated