Research map / Vision-language and multimodal / Visual question answering
Modular Visual Question Answering via Code Generation
Sanjay Subramanian, Medhini Narasimhan, Kushal Khangaonkar, Kevin Yang, Arsha Nagrani, Cordelia Schmid, Andy Zeng, Trevor Darrell, Dan Klein
University of California, Berkeley · Google
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- GQA leaderboard accuracy (test-dev) 49 · rank 23 of 30 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| generate Python programs composing visual primitives instead of single-prompt captioning | Few-shot PnP-VQA · COVR test | accuracy: 45.8 -> 50.7 | Improved |
| generate Python programs composing visual primitives | Few-shot PnP-VQA · GQA testdev | accuracy: 46.6 -> 49.0 | Improved |
| generate Python programs composing visual primitives | Few-shot PnP-VQA · NLVR2 test-public | accuracy: 63.4 -> 64.0 | Improved |
| use embedding-based instead of random in-context example retrieval (ablation) | CodeVQA · GQA val (2000) | accuracy: 50.7 -> 55.3 (code-davinci-002) | Improved |
| program generation for multi-image questions | CodeVQA · COVR val, 4-5 images | accuracy: 47.0 -> 53.2 (4 images); 46.9 -> 53.4 (5 images) | Improved |
| program generation on single-image COVR instances | CodeVQA · COVR val, 1 image | accuracy: 91.7 -> 75.0 | Hurt |
| vary number of in-context examples (8, 12, 16) (ablation) | CodeVQA · GQA val (2000) | accuracy: 55.1, 55.3, 55.4 | No clear effect |
| use text-davinci-003 instead of code-davinci-002 as QA LM (ablation) | CodeVQA · GQA val (2000) | accuracy: 55.3 -> 52.5 | Hurt |
| add find_object (object detector) for counting (ablation) | CodeVQA · VQAv2 / NLVR2 | accuracy: VQAv2 66.63 vs PnP 66.84; NLVR2 64.0 -> 66.0 | Mixed |
| add knowledge_query primitive (ablation) | CodeVQA · OK-VQA val | accuracy: 53.5 vs Few-shot PnP-VQA 54.1 | No clear effect |
| program generation on left/right or top/bottom position questions | CodeVQA · GQA | accuracy: roughly 30% | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- ViperGPT — ViperGPT: Visual Inference via Python Execution for Reasoning (ICCV 2023) · better on 1 of 1 shared result
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in universal VQA models
How can VQA data, judges and benchmarks be made trustworthy and broad enough to show what models really can do?
- Training data and scores rest on LLM output that nobody verified. · 9 papers state it
- Datasets are limited to English or a few languages. · 7 papers state it
- Chart and table benchmarks cover only a few chart types and layouts. · 6 papers state it
Closest papers by meaning
- VQ-VA World: Towards High-Quality Visual Question-Visual Answering (CVPR 2026 · similarity 0.92)
- Answer Them All! Toward Universal Visual Question Answering Models (CVPR 2019 · similarity 0.92)
- VQA: Visual Question Answering (IJCV 2016 · similarity 0.92)
- Discovering the Unknown Knowns: Turning Implicit Knowledge in the Dataset into Explicit Training Examples for Visual Question Answering (EMNLP 2021 · similarity 0.92)
- Revisiting Visual Question Answering Baselines (ECCV 2016 · similarity 0.92)
- When Open-Vocabulary Visual Question Answering Meets Causal Adapter: Benchmark and Approach (AAAI 2025 · similarity 0.91)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.