Interpretable Object Recognition by Semantic Prototype Analysis

Qiyang Wan, Ruiping Wang, Xilin ChenWACV 2024

Abstract

People can usually give reasons for recognizing a particular object as a specific category, using various means such as body language (by pointing out) and natural language (by telling). This inspires us to develop a recognition model with such principles to explain the recognition process to enhance human trust. We propose Semantic Prototype Analysis Network (SPANet), an interpretable object recognition approach that enables models to explicate the decision process more lucidly and comprehensibly to humans by "pointing out where to focus" and "telling about why it is" simultaneously. With the proposed method, some part prototypes with semantic concepts will be provided to elaborate on the classification together with a group of visualized samples to achieve both part-wise and semantic interpretability. The results of extensive experiments demonstrate that SPANet is able to recognize objects almost as well as the non-interpretable models, at the same time generating intelligible explanations for its decision process.

Introduction

In the field of Explainable AI (XAI), a persistent trade-off exists between a model's performance and its transparency. Most current interpretable models are either prototype-based, showing image patches without semantic context, or concept-based, providing attribute lists without spatial grounding. Humans, however, explain recognition by doing both: pointing at a specific feature and describing what it represents. This research introduces SPANet to bridge this gap, creating a model that uses "semantic prototypes" to provide a unified visual and textual explanation.

Methods

The SPANet architecture consists of three primary components designed to mimic human reasoning:

The SPANet architecture, illustrating the Semantic Attachment and Reconstruction modules for unified visual and textual explanations.
  • Semantic Attachment Module: Utilizing a vision-language model (CLIP), SPANet maps visual features and textual concepts (e.g., "pointed ear") into a shared embedding space. This allows the model to align local image regions with human-understandable labels.
  • Prototype Recognition Module: The model learns representative visual patterns (prototypes) for each category. Classification is based on the similarity between input image patches and these learned prototypes.
  • Reconstruction Module: To visualize prototypes faithfully, the model retrieves the most similar real-world image patch from the training set. This retrieval-based approach avoids the "hallucination" issues common in generative models.

Training involves a two-stage process: a "warm-up" phase for prototype optimization and a "joint-training" phase where the CLIP backbone is fine-tuned using both global image-text pairs and local image-concept pairs.

Results and Evaluation

SPANet was evaluated on fine-grained recognition benchmarks including CUB-200-2011 (birds) and Stanford Cars. On the CUB dataset, SPANet achieved 87.2% accuracy, remarkably close to the 89.4% achieved by non-interpretable "black-box" counterparts.

An example of SPANet's recognition output, providing a probability score alongside specific visual and semantic justifications.

Beyond accuracy, user studies confirmed the model's superior interpretability. Participants preferred SPANet's explanations 43% of the time, compared to 37% for purely visual methods like ProtoPNet. The model demonstrated that combining spatial heatmaps with grounded text labels significantly enhances human trust and understanding.

Conclusion

SPANet demonstrates that high-performance object recognition does not have to come at the cost of interpretability. By integrating "pointing" and "telling," the model provides human-centric explanations that are both spatially grounded and semantically meaningful. Future work will focus on refining the quality of concept lists and improving the accuracy of semantic attachments to further bolster user trust.

Summary updated

BibTeX
@inproceedings{wan2024interpretable,
  author = {Qiyang Wan and Ruiping Wang and Xilin Chen},
  title = {{Interpretable Object Recognition by Semantic Prototype Analysis}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=ZED5TjdHYG},
}
Figure