Boosting Knowledge-based Visual Question Answering with Structured Context Reasoning
Organizations: School of Computer Science, Guangdong University of Technology, Guangzhou, China · School of Artificial Intelligence, Shenzhen University, Shenzhen, China · Graduate School of Advanced Science and Engineering, Hiroshima University, Hiroshima, Japan
Abstract
Knowledge-based Visual Question Answering aims to answer questions about an image by integrating external knowledge with visual and textual information. Recent approaches often rely on in-context learning to prompt Large Language Models (LLMs) with multimodal context in a zero-shot or few-shot manner. However, we observe that directly concatenating heterogeneous visual descriptions and retrieved knowledge into long, unstructured prompts often degrades reasoning performance, due to both excessive irrelevant context and the lack of explicit relational structure. In this paper, we propose an LLM-based Structured Context Reasoning (SCoRe) framework that infers both explicit and implicit relationships for prediction. SCoRe consists of three stages: Context Acquisition, which generates diverse visual notes and retrieves explicit knowledge via an efficient two-stage multimodal retrieval strategy; Context Selection, which filters relevant visual, explicit, and implicit knowledge using LLM-guided selection; and Context Compression, which performs Relational Logic Distillation (RLD) to transform raw text into explicit entity-relation triplets. These relational triplets serve as a concise and structured prompt for final answer prediction. Extensive experiments on the OK-VQA and A-OKVQA benchmarks demonstrate that SCoRe consistently outperforms state-of-the-art methods.
Figures & tables
| Method | QA | Shot | OK-VQA | A-OKVQA |
| Model | Number | |||
| LLM-based Zero-shot Methods | ||||
| PICa [ 24 ] | GPT-3 175B | 0 | 17.1 | - |
| PNP-VQA [ 21 ] | UnifiedQA 11B | 0 | 35.9 | - |
| Img2LLM [ 6 ] | OPT 175B | 0 | 45.6 | 42.9 |
| LAMOC [ 5 ] | FLAN-T5-XXL 11B | 0 | 40.3 | 37.9 |
| VN | EKP | CS | CC | OK-VQA |
|---|---|---|---|---|
| ✓ | 47.5 | |||
| ✓ | ✓ | 49.0 | ||
| ✓ | ✓ | ✓ | 51.2 | |
| ✓ | ✓ | ✓ | ✓ | 52.1 |
| top- | =1 | =10 | =20 | =50 | =100 | =200 |
|---|---|---|---|---|---|---|
| =5 (PR@5) | 55.02 | 56.41 | 58.77 | 63.58 | 63.58 | 64.62 |
| =10 (PR@10) | 66.72 | 68.64 | 68.90 | 73.71 | 74.14 | 75.19 |
| =20 (PR@20) | 76.76 | 78.07 | 77.99 | 81.74 | 82.88 | 82.88 |
| ALL | =1 | =10 | =20 | =50 | =100 | =200 | |
|---|---|---|---|---|---|---|---|
| Num | 21,015,324 | 8,746 | 72,969 | 135,835 | 294,726 | 560,324 | 988,434 |
Knowledge-Based VQA
Knowledge-based visual question answering combines image understanding with external or learned knowledge to answer questions requiring facts beyond the image.
See all 42 papers