Introduction
Prototypical parts-based networks, such as ProtoPNet, are designed to provide "interpretable by design" classifications. Instead of acting as a black box, these models justify their predictions by identifying specific image regions that resemble learned prototypes (e.g., "this is a Wood Warbler because this part looks like a prototypical beak"). However, this paper identifies a critical flaw in these systems: spatial misalignment. While the model highlights a specific region, the underlying neural network often relies on pixels outside that region to generate the explanation.
The Problem: Spatial Misalignment
Similarity maps and bounding boxes are typically calculated in the penultimate layer of deep convolutional networks. Due to the large receptive fields in these deep layers, neurons responsible for identifying a specific part (like a beak or a wing) may actually be influenced by distant pixels, such as the background or other body parts.
If a model's confidence in a specific part drops when the background changes, the explanation is "dishonest." The user is shown a visual reason that does not capture the full set of features the model actually used for its decision.
Methodology
To address this, the authors propose a two-part solution involving a new benchmark and a compensation training strategy.
1. The Interpretability Benchmark
The benchmark measures misalignment using adversarial attacks (Projected Gradient Descent) to modify pixels strictly outside the highlighted explanation region. Three key metrics are introduced:
- Prototypical part Location Change (PLC): Measures if the explanation box shifts when the background is altered.
- Prototypical part Activation Change (PAC): Measures the drop in similarity scores when the background is modified.
- Prototypical part Rank Change (PRC): Measures if the relative importance of a part changes due to background noise.
2. Misalignment Compensation
The authors introduce a spatially-aligned training strategy to force models to be more faithful to their visual outputs:
- Spatially-aligned Loss ($L_{align}$): The model is penalized if the similarity map generated from a full image differs from one generated where everything outside the prototypical region is masked.
- Masking Augmentation: Randomly masking rectangular regions during training forces the model to focus on local, atomic features rather than global context.
Key Results
The proposed methods were evaluated on the CUB-200-2011 (birds) and Stanford Cars datasets across architectures like ProtoPNet, TesNet, and ProtoTree.
- Significant Reduction in Misalignment: The compensation method drastically improved benchmark scores. In ProtoPNet, the PAC (Activation Change) dropped from approximately 20% to 5%, making the explanations far more independent of the background.
- Accuracy Preservation: Crucially, fixing the spatial alignment did not degrade classification accuracy. In several cases, accuracy slightly improved, demonstrating that models do not need to rely on misaligned context to perform well.
- Architecture Insights: The study found that TesNet is naturally more robust to misalignment than ProtoPNet, likely due to its use of latent space projection rather than $L^2$ distance for similarity calculations.
Conclusion and Future Work
This research highlights that "interpretable" models can be deceptive if their internal mechanics do not match their visual justifications. By steering models toward learning local features through the $L_{align}$ loss, researchers can create more trustworthy AI. Future work will focus on reducing the computational overhead of this training—which currently increases training time by roughly 40%—and exploring how spatial misalignment affects Vision Transformers (ViTs).
Summary updated