Multi-Scale Grouped Prototypes for Interpretable Semantic Segmentation

Hugo Porta, Emanuele Dalsasso, Diego Marcos, Devis Tuia

TL;DR

ScaleProtoSeg is a new framework that makes semantic segmentation—the task of labeling every pixel in an image—interpretable by comparing image parts to a set of "prototypes" (real patches from training data). By explicitly learning these prototypes at multiple scales and organizing them into sparse, logical groups, the model achieves state-of-the-art accuracy for explainable AI while providing human-readable justifications for its predictions.

What Problem Does This Paper Address?

Deep learning models for semantic segmentation are incredibly powerful, but they are usually "black boxes." In high-stakes fields like autonomous driving or medical imaging, we need to know why a model decided a group of pixels is a "pedestrian" or a "tumor."

Existing "interpretable-by-design" methods, such as ProtoSeg, use prototypes—representative patches of objects—to explain their decisions. However, these methods often struggle with scale. An object like a car looks very different when it's five feet away versus fifty feet away. Previous models either ignored this or ended up with redundant, cluttered explanations. Furthermore, there was often a significant "interpretability tax"—a drop in accuracy compared to standard, non-interpretable models.

Methods

The authors introduce ScaleProtoSeg, which uses two novel mechanisms to handle scale and complexity:

  1. Multi-Scale Prototype Layer: Instead of a single pool of prototypes, the model learns scale-specific prototypes. It leverages a modified Atrous Spatial Pyramid Pooling (ASPP) module to extract features at different resolutions. This allows the model to "see" both fine-grained textures (small scale) and global object shapes (large scale) simultaneously.
  2. Sparse Grouping Mechanism: To prevent the user from being overwhelmed by hundreds of prototypes, the model learns to group them. For each class (e.g., "Car"), it identifies a few sparse groups (e.g., "wheels," "windows," "body"). This is achieved using a weighted geometric mean and entropy regularization, which forces the model to rely on a small, distinct set of prototype combinations for its final decision.

The training happens in two stages: first, the model learns the multi-scale prototypes and projects them onto real training patches; second, it learns how to group these prototypes while keeping the prototypes themselves fixed to maintain interpretability.

Datasets

The model was evaluated on three major computer vision benchmarks:

  • Pascal VOC 2012: A classic dataset for object segmentation.
  • Cityscapes: Focused on urban street scenes, where scale variation (near vs. far cars) is a primary challenge.
  • ADE20K: A complex dataset with 150 different semantic classes.
  • Additional Tests: The authors also demonstrated the model's versatility by testing it on the COCO-Stuff dataset and a medical imaging dataset (ISBI 2012 EM).

Key Insights and Ideas

  • Scale Disentanglement: The model naturally learns that different scales capture different information. Small-scale prototypes often focus on textures (like the wool of a sheep), while larger scales capture the structural "parts" of an object.
  • Closing the Performance Gap: One of the most impressive findings is that ScaleProtoSeg narrows—and in the case of ADE20K, actually eliminates—the performance gap between interpretable models and their "black-box" counterparts.
  • Quasi-Equivariance: The researchers found that the model often learns "pairs" of prototypes across scales. For example, it recognizes a "car wheel" at Scale 1 and a "car wheel" at Scale 2 as related, even though they contain different amounts of surrounding context.
  • Sparsity as Clarity: By forcing the model to use fewer active prototypes per decision, the resulting "explanation graph" is much cleaner and easier for a human to audit.

Key Results

  • Accuracy: ScaleProtoSeg outperformed the previous state-of-the-art interpretable model (ProtoSeg) by ~1.5% mIoU (mean Intersection over Union) on Cityscapes and a massive ~4.5% on ADE20K.
  • Interpretability Metrics: The model showed higher consistency (the same parts are identified across different images) and stability (small changes in the image don't wildly flip the explanation) than previous methods.
  • Efficiency: Through its grouping and thresholding mechanism, ScaleProtoSeg reduced the number of active prototypes by over 50% on Cityscapes compared to the baseline, making the "reasoning" much more concise.

Limitations and Future Work

  • Inference Speed: Currently, ScaleProtoSeg is slower at inference time than the non-interpretable baseline. The authors attribute this to a lack of parallelization in their grouping code rather than an inherent architectural flaw.
  • Training Overhead: The multi-stage training and diversity losses (used to ensure prototypes don't all look the same) add computational complexity during the development phase.
  • Texture Confusion: Like many prototype-based models, it can still be "fooled" by textures. For instance, a model might misidentify a cow as a sheep if the prototype focuses too heavily on a "wool-like" patch of fur. The authors suggest integrating human-in-the-loop feedback to help the model "forget" these misleading prototypes.

Summary updated

BibTeX
@inproceedings{porta2025multi,
  author = {Hugo Porta and Emanuele Dalsasso and Diego Marcos and Devis Tuia},
  title = {{Multi-Scale Grouped Prototypes for Interpretable Semantic Segmentation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00284},
}
Figure