TL;DR
This paper introduces Neuro-Activated Vision Explanations (NAVE), a novel method for understanding what information vision model encoders learn by clustering their feature activations. NAVE reveals how training data, supervision levels, and architectural choices impact concept learning, offering insights beyond traditional prediction explanations.
What Problem Does This Paper Address?
Explainable AI (XAI) is crucial for deploying AI in sensitive domains like healthcare. While many XAI methods focus on explaining why a model makes a specific prediction (e.g., using saliency maps), this paper tackles a different, yet equally important, question: what information does the model's feature encoder actually learn and how does this learning process (training data, supervision, architecture) influence it? Existing methods for understanding learned features often rely on linking them to predictions or require complex analysis. The authors aim to provide a more direct and interpretable way to visualize and analyze the internal representations of vision models, independent of their final predictions.
Methods
The core of the paper is the Neuro-Activated Vision Explanations (NAVE) method. NAVE works by:
- Extracting Feature Activations: For a given input image, NAVE passes it through the vision model (which is kept frozen) and collects the feature activations from various layers.
- Clustering Activations: These activations, often reshaped and normalized, are then clustered using a standard algorithm like k-means. Each cluster is hypothesized to represent a distinct semantic concept learned by the model.
- Generating Segmentations: The cluster assignments are then mapped back to the input image, effectively creating a segmentation where each segment corresponds to a learned concept.
This approach differs from saliency methods by directly segmenting the image based on learned features, rather than highlighting pixels important for a specific prediction. It's also unsupervised, meaning it doesn't require additional training or labels for the explanation itself.
Datasets
The paper uses a variety of datasets for training and evaluation:
- Object Localization Tasks:
- VOC07
- VOC12
- COCO 20k
- Influence of Training Data:
- Chest-X-RAY (for COVID prediction)
- STL-10
- ImageNet1K
- Qualitative Examples:
- STL-10 (for bird class examples)
- Chest-X-RAY (for augmentation/watermarking examples)
No new benchmarks are introduced; instead, existing datasets are used to evaluate NAVE's ability to reveal insights about model training.
Key Insights and Ideas
- Training Matters, A Lot: NAVE clearly demonstrates that the training dataset and supervision level significantly impact what concepts a model learns. Models trained on diverse, large-scale datasets like ImageNet1K learn more robust and generalizable concepts compared to those trained on smaller or out-of-domain datasets.
- Self-Supervised Learning is Competitive: Surprisingly, self-supervised methods like DINOv2 can achieve performance comparable to fully supervised methods on object localization tasks, even without explicit labels, highlighting their effectiveness in learning rich representations.
- Architecture Trade-offs: Larger models (like ViT-Base) don't always mean better learned concepts for explanation. NAVE reveals that sometimes, overly complex models can learn spurious concepts, making it harder to extract meaningful semantics.
- Clever Hans is Real and Detectable: NAVE can visualize how models might exploit dataset biases or "shortcuts" (Clever Hans effect). For instance, it shows how watermarks can be learned as a concept, sometimes at the expense of learning other important image features.
- ViT Registers: A Mixed Bag: While registers in Vision Transformers (ViTs) can sometimes improve concept separation, their impact isn't universally positive and can depend on the model size (ViT-Small vs. ViT-Base).
Key Results
- Object Localization Performance: NAVE, when used with object extraction strategies, achieves competitive performance on VOC07, VOC12, and COCO20k datasets, often outperforming traditional segmentation methods like SLIC. For example, NAVE with DINOv2-ViTS/14 achieved 74.3% AP@50% on VOC07 (outer-box), compared to SLIC's 53.3%.
- Qualitative Visualizations: Figures and examples throughout the paper showcase NAVE's ability to segment images into meaningful regions corresponding to learned concepts, such as parts of birds, people, or even watermarks.
- Impact of Training Data: Models trained on ImageNet1K consistently showed better concept extraction (higher AP@50%) than those trained on STL-10 or Chest-X-RAY, especially for detecting specific objects like "person."
- Augmentation and Watermarking: Experiments on the Chest-X-RAY dataset showed that augmentation can lead to more complex explanations, and watermarking can cause models to overfit to the watermark itself, sometimes ignoring other relevant image features.
Limitations and Future Work
- k-means Limitations: The authors acknowledge that k-means clustering, while simple and efficient, can introduce variability due to initialization and might lack expressiveness for highly complex learned representations. Hierarchical clustering is suggested as an alternative but comes with higher computational costs.
- Complexity of Models: For very complex models, NAVE's current implementation might struggle to fully capture all learned semantics, potentially limiting its performance.
- Future Work: The paper suggests exploring more advanced clustering techniques and applying NAVE to a wider range of vision tasks and architectures to further understand learned representations. The authors also hint at a potential implementation release.
Summary updated