Knowledge-based Visual Question Answer with Multimodal Processing, Retrieval and Filtering

Yuyang Hong, Jiaqi Gu, Qi Yang, Lubin Fan, Yue Wu, Ying Wang, Kun Ding, Shiming Xiang, Jieping Ye

Abstract

Knowledge-Based Visual Question Answering (KB-VQA) requires models to integrate complex visual understanding with external factual retrieval. We present Wiki-PRF, a three-stage framework that enhances KB-VQA by dynamically invoking visual tools and filtering retrieved information. By leveraging a Visual Language Model (VLM) trained via Group Relative Policy Optimization (GRPO), Wiki-PRF generates precise multimodal queries and distills noisy search results into task-relevant knowledge. Our approach achieves state-of-the-art performance on InfoSeek, E-VQA, and OK-VQA benchmarks.

Introduction

Knowledge-Based Visual Question Answering (KB-VQA) is a "double-black-diamond" task for AI: the model must not only understand complex visual scenes but also retrieve and integrate specific external facts. Current Retrieval-Augmented Generation (RAG) methods face two major hurdles: coarse queries, where the entire image is used for retrieval regardless of the question's focus, and information overload, where the model is overwhelmed by irrelevant text in retrieved documents.

Comparison between Vanilla RAG and the proposed Wiki-PRF framework.

The Wiki-PRF Framework

To address these challenges, the authors propose Wiki-PRF, a three-stage pipeline consisting of Processing, Retrieval, and Filtering.

1. Processing Stage

Instead of a one-shot search, the VLM acts as an agent. It analyzes the question and decides which "tools" to use—such as Grounding (cropping the image to a specific object), Captioning (generating a detailed text description), or Flipping (to handle angular variations). This creates a high-quality, multimodal query that significantly improves the precision of the subsequent search.

2. Retrieval Stage

The system performs a multimodal search using EVA-CLIP embeddings and the Faiss library to find the most relevant Wikipedia articles and sections. By using the refined queries from the processing stage, the recall of correct articles is improved from 45.56% to 54.89%.

3. Filtering Stage

This is a critical component of the architecture. A VLM (based on Qwen2.5-VL) is trained to read the retrieved "wall of text" and extract only the specific facts needed for the answer. This prevents "hallucinations" or "I don't know" responses caused by context distraction.

Detailed architecture of the Wiki-PRF pipeline and the reinforcement learning training process.

Training via Reinforcement Learning

A key innovation in Wiki-PRF is the use of Group Relative Policy Optimization (GRPO) for training. Unlike standard Supervised Fine-Tuning (SFT), which helps models imitate patterns, RL helps the model understand the underlying principles of relevance. The model is rewarded for Answer Accuracy and Format Consistency (following the <think>, <tool>, and <answer> structure).

An important finding was that RL training caused the model to become more concise. As training progressed, the number of tokens in the "filtered knowledge" stage decreased while accuracy increased, demonstrating that "less is more" when feeding context to the final answer generator.

Experimental Results

Wiki-PRF achieved state-of-the-art (SOTA) performance across three major benchmarks:

  • InfoSeek: Reached an accuracy of 42.8, outperforming previous SOTA models like ReflectiVA (40.1) and GPT-4V (14.6 in zero-shot).
  • E-VQA: Achieved 36.0, a significant jump over vanilla RAG methods.
  • OK-VQA: Set a new SOTA score of 77.8.

Conclusion and Future Work

Wiki-PRF demonstrates that a multi-stage, agentic approach to RAG can significantly improve KB-VQA performance. While the current framework is limited to three specific visual tools and faces inference latency challenges (approx. 6-8 seconds per sample), it provides a robust foundation for future multimodal RAG systems. Future work will explore a wider array of specialized tools and methods to scale the knowledge base without performance degradation.

Summary updated

BibTeX
@inproceedings{hong2025knowledge,
  author = {Yuyang Hong and Jiaqi Gu and Qi Yang and Lubin Fan and Yue Wu and Ying Wang and Kun Ding and Shiming Xiang and Jieping Ye},
  title = {{Knowledge-based Visual Question Answer with Multimodal Processing, Retrieval and Filtering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=h0LzGQq6uO},
}
Figure