ProtoVQA: An Adaptable Prototypical Framework for Explainable Fine-Grained Visual Question Answering

Xingjian Diao, Weiyi Wu, K.‐l. Kong, Peijun Qing, Xiaogang Xu, Ming Cheng, Soroush Vosoughi, Jiang Gui

Abstract

Visual Question Answering (VQA) is increasingly used in diverse applications ranging from general visual reasoning to safety-critical domains such as medical imaging and autonomous systems, where models must provide not only accurate answers but also explanations that humans can easily understand and verify. Prototype-based modeling has shown promise for interpretability by grounding predictions in semantically meaningful regions for purely visual reasoning tasks, yet remains underexplored in the context of VQA. We present ProtoVQA, a unified prototypical framework that (i) learns question-aware prototypes that serve as reasoning anchors, connecting answers to discriminative image regions, (ii) applies spatially constrained matching to ensure that the selected evidence is coherent and semantically relevant, and (iii) supports both answering and grounding tasks through a shared prototype backbone. To assess explanation quality, we propose the Visual-Linguistic Alignment Score (VLAS), which measures how well the model's attended regions align with ground-truth evidence. Experiments on Visual7W show that ProtoVQA yields faithful, fine-grained explanations while maintaining competitive accuracy, advancing the development of transparent and trustworthy VQA systems.

Introduction: The Need for Explainable VQA

As VQA systems are deployed in safety-critical fields like medical diagnosis and autonomous driving, the "black-box" nature of traditional deep learning models becomes a significant liability. Users need to understand why a model reached a specific conclusion to trust its output. While traditional interpretability methods like attention maps provide some insight, they often fail to faithfully represent internal decision-making.

Prototype-based learning—matching image parts to learned concepts—offers a path toward inherent interpretability. However, applying this to VQA is challenging due to the semantic gap between text and images and the need for dynamic reasoning. A fixed set of visual prototypes is insufficient when the relevant visual cues change based on the question asked.

Methods: The ProtoVQA Framework

ProtoVQA addresses these challenges through three primary innovations designed to bridge the gap between visual features and linguistic queries.

The ProtoVQA architecture illustrating the flow from question-aware prototypes to spatially constrained matching.

1. Question-Aware Prototypes

Unlike standard models with a fixed library of visual concepts, ProtoVQA generates prototypes dynamically. It utilizes a DeBERTa text encoder to extract embeddings from the question, which are then reshaped into $m$ prototypes. This ensures that the "anchors" used for reasoning are always semantically aligned with the specific query.

2. Spatially Constrained Greedy Matching

To identify visual evidence, the model processes images via a DeiT vision transformer and employs a greedy algorithm to match image patches to the dynamic prototypes. To ensure the selected evidence is human-interpretable, a spatial constraint is applied: once an initial patch is selected for a prototype, subsequent patches must fall within a defined radius. This prevents the selection of disjointed pixels and instead favors coherent, contiguous object parts.

3. Visual–Linguistic Alignment Score (VLAS)

To better evaluate explanation quality, the authors introduced VLAS. Unlike standard metrics like Intersection-over-Union (IoU), which can be overly sensitive to scale, VLAS measures the proportion of QA pairs where the model’s attended region aligns with ground-truth evidence above a specific threshold, providing a more robust measure of faithfulness.

Datasets and Evaluation

The framework was rigorously tested on the Visual7W dataset, a premier benchmark for grounded VQA. Visual7W includes over 327,000 question-answer pairs across 47,300 images, featuring rich object-level groundings for over 561,000 objects. This granularity allows for a precise evaluation of whether the model is focusing on the correct visual evidence.

Key Results and Insights

ProtoVQA demonstrates that interpretability does not have to come at the cost of performance.

  • Faithful Explanations: On the VLAS metric, ProtoVQA achieved a score of 0.4103, representing a 66.4% improvement over the Bi-CMA baseline (0.2466). This indicates that the model's internal reasoning is significantly more aligned with human-annotated evidence.
  • Competitive Accuracy: ProtoVQA maintained an accuracy of 70.23% on Visual7W, performing comparably to state-of-the-art Transformer-based architectures, which typically range between 65% and 73%.
  • Fine-Grained Grounding: Qualitative results highlight the model's ability to pinpoint specific, small-scale features. For instance, it can accurately ground a query about a giraffe's ear, demonstrating the effectiveness of the spatially constrained matching process.
Qualitative example of ProtoVQA grounding a question about a giraffe's ear.

Conclusion and Future Directions

ProtoVQA represents a significant step toward transparent VQA systems. By grounding reasoning in dynamic, question-aware prototypes, it provides verifiable evidence for its predictions.

Future work will focus on closing the small accuracy gap with the most advanced fine-tuned black-box models through joint optimization. Additionally, the authors aim to explore domain-specific prototype vocabularies for specialized fields like medicine and extend the prototypical reasoning framework to generative, free-form VQA tasks.

Summary updated

BibTeX
@misc{diao2025protovqa,
  author = {Xingjian Diao and Weiyi Wu and K.‐L. Kong and Peijun Qing and Xiaogang Xu and Ming Cheng and Soroush Vosoughi and Jiang Gui},
  title = {{ProtoVQA: An Adaptable Prototypical Framework for Explainable Fine-Grained Visual Question Answering}},
  year = {2025},
  eprint = {2509.16680},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.16680},
}
Figure