Abstract
Modern deep learning models often operate as "black boxes," providing accurate predictions without transparent reasoning. COMiX introduces an "interpretable-by-design" framework that explains image classification by decomposing inputs into conceptual parts and matching them to training prototypes. By leveraging the B-cos architecture, COMiX ensures that its explanations are a literal map of its decision-making process rather than post hoc approximations. This approach yields a 48.82% improvement in fidelity scores on ImageNet while maintaining competitive accuracy across various benchmarks.
Introduction: The Need for Ante Hoc Interpretability
The opacity of state-of-the-art neural networks poses significant challenges for trust and safety in AI. Traditional post hoc explanation methods, such as Grad-CAM, attempt to explain a model's decision after the fact by generating heatmaps. However, these methods often suffer from low fidelity, highlighting regions that may not have actually influenced the model's output.
COMiX addresses this by proposing an ante hoc (interpretable-by-design) model. Instead of guessing why a decision was made, COMiX's architecture is built so that the explanation is the decision. It mimics human reasoning: identifying a "cat" because its ears and eyes resemble those of previously seen cats.
Methodology: Compositional Reasoning via Prototypes
The COMiX framework is built upon the B-cos architecture, which replaces standard non-linearities with linear transformations for any specific input. This transparency allows the model to be decomposed into a series of logical steps.
The COMiX Pipeline
The process of classifying an image involves five distinct stages:
- Feature Extraction: The input image is processed through a B-cos encoder to generate high-level feature maps.
- Pseudo-labeling: The model generates an initial class hypothesis by finding the nearest neighbor in the training embedding space.
- Feature Selection: It identifies the most significant Class Defining Features (CDFs)—specific semantic concepts like a bird's wing or a cat's ear—that support the hypothesized class.
- Prototype Matching: For each selected feature, the model retrieves the $K$ most similar patches from the training dataset.
- Majority Voting: The final classification is determined by a majority vote among these retrieved training prototypes.
The culmination of this process is the COMiX panel, a visualization that provides a clear, evidence-based explanation for the model's choice.
Experimental Evaluation
The researchers tested COMiX on several standard datasets, including CIFAR-10/100, CUB-200-2011 (birds), Stanford Cars, Oxford-IIIT Pets, and the large-scale ImageNet (ILSVRC 2012).
Key Results
- Superior Fidelity: On ImageNet, COMiX achieved a C-insertion score of 0.7365. This represents a 48.82% improvement over the state-of-the-art baseline, Abs-CAM. This metric confirms that the regions identified by COMiX are truly critical to its performance.
- Competitive Accuracy: Despite the inherent constraints of an interpretable architecture, COMiX remains highly accurate. On the Oxford-IIIT Pets dataset, it reached 87.73% accuracy, nearly matching the 90.32% achieved by a standard Vision Transformer (ViT).
- Zero-Shot Generalization: COMiX demonstrated an impressive ability to generalize to new datasets without fine-tuning, achieving near-state-of-the-art performance by simply matching features against a new training set.
Discussion and Future Directions
COMiX represents a significant step toward transparent AI. By using compositional reasoning, the model can handle complex objects where different parts contribute to the final label. Furthermore, its ability to provide "counterfactual" explanations—showing what would need to change to alter a classification—offers deep diagnostic value.
However, limitations remain. The "pseudo-label bottleneck" means that an incorrect initial guess can lead to an explanation focused on the wrong class. Additionally, the computational cost of searching large training sets for nearest neighbors is higher than standard inference. Future work may extend this logic to image segmentation, potentially allowing users to interactively "edit" a model's reasoning by selecting or deselecting specific image regions.
Summary updated