SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.05392 · ACL · 2023

Modular Visual Question Answering via Code Generation

U Berkeley, Dan Klein, Kevin Yang, Trevor Darrell, Cordelia Schmid, Arsha Nagrani, Medhini Narasimhan, Andy Zeng, Sanjay Subramanian, Kushal Khangaonkar

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2306.05392")
get_code_for_paper("2306.05392")
have("2306.05392")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2306.05392.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2306.05392.svg)](https://syntology.ai/paper/2306.05392)

Connect an agent — have() is free.