TL;DR
Q-SENN (Quantized Self-Explaining Neural Network) bridges the gap between high-performance "black box" models and interpretable AI by using sparse, ternary weights to link images to human-understandable concepts. It maintains the accuracy of dense models on complex datasets like ImageNet while providing clear, grounded explanations that are remarkably robust to spurious correlations.
What Problem Does This Paper Address?
Deep Learning models are notoriously opaque. While we often use "saliency maps" (heatmaps) to see where a model is looking, these are frequently unfaithful to the model's actual logic. The original Self-Explaining Neural Network (SENN) framework was proposed to solve this by building models as linear combinations of interpretable concepts. However, early versions were only accurate on simple datasets like MNIST and struggled to scale.
The challenge is achieving three "desiderata" simultaneously:
- Fidelity: The explanation must actually represent the model's logic (and the model must stay accurate).
- Diversity: The concepts used should not overlap (e.g., not having five different features for "wing").
- Grounding: The features should correspond to things humans recognize (e.g., "pointy beak" rather than abstract textures).
Methods
Q-SENN introduces a novel pipeline to satisfy these requirements:
- Sparse Ternary Quantization: Instead of arbitrary continuous weights, Q-SENN uses a final decision layer where weights are quantized to $\{-\alpha, 0, \alpha\}$. This means a feature's relationship to a class is strictly positive, negative, or neutral. This "ternary" structure forces the model to learn binary, human-friendly features.
- Iterative Fine-Tuning: The model doesn't just train once. It iteratively calculates the sparse quantized layer and then fine-tunes the feature extractor to adapt to those fixed assignments. This process helps the model discard "spurious correlations" (like identifying a bird based on the background grass) in favor of robust physical attributes.
- Extreme Sparsity: Following "Miller’s Law" (that humans can effectively process about 7 items at once), Q-SENN is restricted to using an average of only 5 features per class.
- Zero-Shot Feature Alignment: To make the learned features "verbalizable," the authors use CLIP (a multimodal model from OpenAI) to automatically align the learned image features with natural language concepts (e.g., "yellow belly") without needing manual annotations.
Datasets
The authors evaluated Q-SENN on several challenging benchmarks:
- CUB-2011: Fine-grained bird classification.
- Stanford Cars & FGVC-Aircraft: Fine-grained vehicle and plane classification.
- ImageNet-1K: The gold standard for large-scale image recognition.
- TravelingBirds: A specialized version of CUB-2011 designed to test spurious correlations (where backgrounds are intentionally misleading).
Key Insights and Ideas
- Quantization as a Regularizer: Surprisingly, forcing weights to be ternary ($+1, -1, 0$) doesn't just help interpretability; it acts as a powerful regularizer. It prevents the model from "overfitting" on tiny, non-generalizable details.
- Robustness to Spurious Correlations: Because Q-SENN is forced to share a small pool of features across many classes, it can't afford to waste a feature on a specific background found in only one training image. It is forced to learn "grounded" features (like beaks or wings) that appear across many different images.
- The "Aha" Moment on Grounding: The paper shows that by using CLIP, we can identify what a feature represents (e.g., "this feature triggers on red wings") without ever showing the model a text label during training. This makes the "black box" talk in human language.
Key Results
- Accuracy: On ImageNet-1K, Q-SENN achieved 74.3% accuracy, maintaining over 97% of the performance of a standard "black box" ResNet50 (76.1%), while being significantly more interpretable than previous self-explaining models.
- Robustness: On the TravelingBirds dataset (designed to trick models with misleading backgrounds), Q-SENN achieved 67.3% accuracy, vastly outperforming the dense baseline (39.4%) and the previous state-of-the-art SLDD-Model (64.1%).
- Interpretability: Q-SENN achieved the highest "Diversity" and "Grounding" scores across all tested models, proving that its features are both non-redundant and highly aligned with human attributes.
Limitations and Future Work
- Human-in-the-loop: While the metrics for interpretability are strong, the authors note that actual human-subject experiments are needed to confirm how much these explanations truly help users in real-world tasks.
- CLIP Dependency: The automated alignment method relies on the quality of the underlying CLIP model. If CLIP has biases or lacks specific domain knowledge (e.g., very niche medical features), the alignment might be less accurate.
- Task Expansion: Currently focused on classification, the authors suggest extending this "quantized explanation" logic to more complex tasks like semantic segmentation.
Summary updated