Modular Visual Question Answering via Code Generation

16Citations
Citations of this article
33Readers
Mendeley users who have this article in their library.

Abstract

We present a framework that formulates visual question answering as modular code generation. In contrast to prior work on modular approaches to VQA, our approach requires no additional training and relies on pre-trained language models (LMs), visual models pre-trained on image-caption pairs, and fifty VQA examples used for in-context learning. The generated Python programs invoke and compose the outputs of the visual models using arithmetic and conditional logic. Our approach improves accuracy on the COVR dataset by at least 3% and on the GQA dataset by 2% compared to the few-shot baseline that does not employ code generation.

References Powered by Scopus

Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotations

3843Citations
N/AReaders
Get full text

Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization

3488Citations
N/AReaders
Get full text

GQA: A new dataset for real-world visual reasoning and compositional question answering

1104Citations
N/AReaders
Get full text

Cited by Powered by Scopus

ViperGPT: Visual Inference via Python Execution for Reasoning

87Citations
N/AReaders
Get full text

Open-Ended Instructable Embodied Agents with Memory-Augmented Large Language Models

4Citations
N/AReaders
Get full text

PYRAMID CODER: HIERARCHICAL CODE GENERATOR FOR COMPOSITIONAL VISUAL QUESTION ANSWERING

2Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Subramanian, S., Narasimhan, M., Khangaonkar, K., Yang, K., Nagrani, A., Schmid, C., … Klein, D. (2023). Modular Visual Question Answering via Code Generation. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 2, pp. 747–761). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.acl-short.65

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 8

57%

Researcher 4

29%

Lecturer / Post doc 2

14%

Readers' Discipline

Tooltip

Computer Science 16

80%

Engineering 2

10%

Medicine and Dentistry 1

5%

Mathematics 1

5%

Save time finding and organizing research with Mendeley

Sign up for free