Overview
MiCLIP is a novel framework designed to make the internal workings of vision models human-understandable. By aligning a model's hidden representations with semantic concepts using contrastive learning, MiCLIP bridges the gap between opaque neural activations and interpretable human language. By evaluating both the input image and the model's final prediction, MiCLIP provides more accurate interpretations than previous methods and allows researchers to "steer" model behavior by manipulating specific internal features.
The Problem: Flaws in Current Mechanistic Interpretability
Despite the immense power of modern vision models like Vision Transformers (ViTs) and ResNets, they remain notorious "black boxes." The emerging field of Mechanistic Interpretability (MI) attempts to solve this by decoding what individual neurons or features actually do.
However, current MI methods suffer from two major flaws:
- The Activation-Magnitude Assumption: Most existing methods assume that if a neuron fires strongly, it must be important. In reality, a neuron’s causal role in the final decision is far more complex; sometimes low or even negative activations are crucial to the network's logic.
- Input-Centricity: Existing tools usually only look at what is present in the input image. This fails to explain why a model might make a mistake. For instance, if a model misclassifies a "dog" as a "cat," an input-centric method might still highlight the "dog" features it sees, rather than revealing the "cat" mechanisms that actually drove the incorrect output.
The MiCLIP Approach
MiCLIP (Mechanism-Interpretability via Contrastive Learning) adapts the popular CLIP architecture to the task of internal model interpretation.
- The Core Idea: Instead of just matching images to text, MiCLIP learns to map a model's internal activations into the same shared embedding space used by CLIP.
- Dual Grounding: The researchers use a contrastive loss function that aligns internal units with two things simultaneously: the input image semantics and the output predicted concepts. This "dual grounding" ensures the interpretation is faithful to the model's actual decision-making trajectory.
- Trainable Neuron Encoder ($E_n$): While the standard CLIP image and text encoders remain frozen, MiCLIP trains a small, dedicated encoder to project internal activations—either raw neurons or features from a Sparse Autoencoder (SAE)—into the semantic space.
- Versatility: The framework is architecture-agnostic, working across different models (ResNet, ViT) and different "units" of representation, including individual neurons and disentangled SAE features.
Key Insights and Capabilities
Tracking the "Semantic Trajectory"
One of the most striking applications of MiCLIP is the ability to plot how an image's representation evolves layer-by-layer. By measuring the similarity of a layer's output to the "Ground Truth" versus a "Misclassification," researchers can pinpoint the exact layer where the model's reasoning "went off the rails."
Bypassing Heuristics
Unlike previous state-of-the-art methods like CLIP-Dissect, which rely on handcrafted similarity formulas, MiCLIP learns the mapping. This learned approach makes it significantly more robust and accurate across diverse scenarios.
Disentanglement Matters
By pairing MiCLIP with Sparse Autoencoders (SAEs), the authors demonstrate the ability to separate "polysemantic" neurons—neurons that might fire for multiple, unrelated concepts—into clean, interpretable, and distinct features.
Key Results
MiCLIP was rigorously evaluated using datasets like ImageNet-1k and the Describing Textures Dataset (DTD), alongside open-vocabulary concept sets (Common-3k, 10k, and 20k English words).
- Superior Description Accuracy: On ImageNet-1k, MiCLIP achieved 100% accuracy in identifying the ground-truth function of neurons in the final layer, significantly outperforming the leading baseline, CLIP-Dissect (95.6%).
- Spatial Precision: Visualization via attention maps showed that MiCLIP-identified features are much more spatially precise and relevant than those found by baseline methods.
- Model Steering: The authors demonstrated they could actively "steer" models by intervening on the features MiCLIP identified. For example, by "amplifying" neurons associated with a specific class in ResNet-50, they increased classification accuracy for that class by 5.32%.
- Human Preference: In a user study, 76.92% of participants preferred MiCLIP’s explanations over the leading baseline, confirming that its outputs are highly aligned with human reasoning.
Limitations and Future Work
While powerful, MiCLIP has a few limitations. Its "vocabulary" is inherently limited by the pre-trained CLIP embedding space; if CLIP has a bias or lacks a specific concept, MiCLIP will inherit those blind spots. Additionally, while inference is fast (processing 100k images in about 2 minutes), it does require a one-time training phase for the neuron encoder, unlike purely heuristic-based methods.
Currently, the framework is validated primarily on discriminative classifiers. However, the authors suggest that extending this dual-grounding contrastive approach to generative models—like Diffusion models or Large Language Models (LLMs)—is a highly promising next step for the field of mechanistic interpretability.
Summary updated