Abstract
Explainable AI (XAI) often faces a trade-off between the spatial precision of "where" a model looks and the semantic clarity of "what" it is looking for. While prototype-based networks offer high interpretability, they typically require architectural changes and retraining that degrade performance. We present the first post-hoc part-prototype network, a framework that decomposes a pre-trained model's classification logic into interpretable visual parts without retraining. Our method guarantees 100% performance parity with the original black-box model while providing superior global and local interpretability.
The Interpretability-Performance Trade-off
In computer vision, popular post-hoc methods like Grad-CAM identify regions of interest (the "where") but fail to articulate the specific features (the "what") driving a classification. Conversely, intrinsic "Part-prototype Networks" (e.g., ProtoPNet) use learned prototypes for comparison, but these often suffer from a "performance gap"—they are less accurate than the black-box models they replace and require expensive retraining.
The fundamental challenge addressed here is whether we can achieve the semantic richness of prototype-based explanations post-hoc, while maintaining the original model's accuracy.
Methodology: Decomposing the Black Box
The proposed approach decomposes a trained classification head into a set of interpretable part-prototypes through a three-step process:
- Initial Prototype Discovery: Non-negative Matrix Factorization (NMF) is applied to feature maps of specific classes. NMF’s non-negativity constraint naturally encourages "parts-based" representations, isolating semantic components like a bird's head or wing.
- Prototype Scaling: Using convex optimization, the system determines the optimal linear combination of these prototypes to approximate the original classification head's weight vector.
- Prototype Refinement: To achieve perfect reconstruction, the "residual" (approximation error) is calculated and distributed back into the prototypes. A dynamic optimization constraint ensures that these refined prototypes remain visually and perceptually consistent with the original features.
This refinement process is critical: it ensures the model perfectly reconstructs the original classification logic, thereby guaranteeing 100% performance parity while keeping the prototypes semantically meaningful.
Experimental Evaluation
The method was rigorously tested on fine-grained classification benchmarks including CUB-200-2011 (birds), Stanford Cars, and Stanford Dogs, as well as the large-scale ImageNet dataset.
Performance and Scalability
On ImageNet, the method achieved 75.1% accuracy, matching the ResNet34 backbone exactly. In contrast, prior prototype methods like ProtoDeform saw accuracy drops to 63.4% or failed due to memory constraints. This demonstrates that the "performance gap" in interpretable modeling is optional, not inherent.
Interpretability and Faithfulness
The framework satisfies four key explainability axioms: Sensitivity, Completeness, Linearity, and Symmetry. Quantitative evaluations showed significant improvements in:
- Consistency: A +9.4% improvement on CUB-200-2011, indicating prototypes more reliably point to the same semantic parts.
- Stability: A +12% improvement in robustness to input noise compared to previous state-of-the-art prototype models.
Human-in-the-Loop Intervention
A unique advantage of this linear decomposition is the ability for human intervention. Since the final prediction is a weighted sum of part-prototypes, a user can "zero out" a misleading prototype (e.g., a "long thin pipe" feature causing a flute to be misclassified as a rifle) to correct the model's output at test time without retraining.
Conclusion
Post-hoc Part-prototype Networks bridge the gap between black-box performance and white-box interpretability. By treating the classification head as a vector to be decomposed rather than a layer to be replaced, this research proves that high-fidelity, part-based explanations can be extracted from any standard CNN or ViT without sacrificing a single percentage point of accuracy.
Summary updated