Deformable ProtoPNet: An Interpretable Image Classifier Using Deformable Prototypes
Abstract
Deep neural networks are often criticized as "black boxes" due to their lack of transparency. While the ProtoPNet architecture introduced case-based reasoning by matching image patches to learned prototypes, its rigid spatial structure limits performance on objects with significant pose variations. We propose Deformable ProtoPNet, which utilizes flexible prototypes composed of independently movable parts. This approach allows the model to account for geometric transformations, achieving state-of-the-art accuracy on fine-grained classification benchmarks while providing intuitive, part-based explanations.
Introduction
Interpretability is crucial for deploying deep learning in sensitive fields like medicine or criminal justice. ProtoPNet (Prototypical Part Network) provides transparency by explaining classifications through similarity: "this part of the input looks like this prototypical part of a training image." However, the original architecture used spatially rigid prototypes. If an object's pose differs from the prototype—such as a bird stretching its wing—the rigid match fails to capture the semantic correspondence effectively.
Deformable ProtoPNet addresses this by predicting offsets for prototypical parts, allowing them to adapt to the input's geometry and pose.
Methods
The core of Deformable ProtoPNet is the ability for prototypes to deform through several novel components:
- Deformable Prototypes and Offset Prediction: A dedicated sub-network predicts offsets for each part of a prototype, enabling them to shift and find the best match in the feature space.
- $L^2$ Norm-Preserving Interpolation: To handle fractional offsets without degrading feature quality, the authors introduce a novel interpolation method that preserves the magnitude of feature vectors, maintaining their position on a mathematical hypersphere.
- Advanced Loss Functions: The model employs Subtractive Margin Cross Entropy to enhance class discriminability and Orthogonality Loss to ensure that different parts of a prototype capture distinct, non-redundant features.
Results
Evaluation on the CUB-200-2011 (birds) and Stanford Dogs datasets demonstrates the effectiveness of the deformable approach.
- Accuracy: Deformable ProtoPNet achieved 87.8% accuracy on CUB-200-2011, significantly surpassing the original ProtoPNet (84.8%) and other interpretable models like ProtoTree (82.2%).
- Interpretability: The model produces more semantically meaningful explanations. As shown in Figure 3, the deformable parts accurately track specific features like the eye, wing, and tail across different poses, providing a more "honest" explanation than the rigid grid of the baseline.
Conclusion
By introducing deformability into prototypical part networks, this research bridges the gap between high-performance black-box models and interpretable architectures. Deformable ProtoPNet not only improves classification accuracy but also provides more robust and human-understandable evidence for its predictions. Future work will focus on allowing independent offsets for individual prototypes and methods to further enforce semantic consistency across matches.
Summary updated