Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

ViperGPT: Visual Inference via Python Execution for Reasoning

About

Answering visual queries is a complex task that requires both visual processing and reasoning. End-to-end models, the dominant approach for this task, do not explicitly differentiate between the two, limiting interpretability and generalization. Learning modular programs presents a promising alternative, but has proven challenging due to the difficulty of learning both the programs and modules simultaneously. We introduce ViperGPT, a framework that leverages code-generation models to compose vision-and-language models into subroutines to produce a result for any query. ViperGPT utilizes a provided API to access the available modules, and composes them by generating Python code that is later executed. This simple approach requires no further training, and achieves state-of-the-art results across various complex visual tasks.

D\'idac Sur\'is, Sachit Menon, Carl Vondrick• 2023

Related benchmarks

TaskDatasetResultRank
Referring Expression ComprehensionRefCOCO (testA)--
333
Visual Question AnsweringOK-VQA (test)
Accuracy51.9
296
Referring Expression ComprehensionRefCOCO+ (testA)--
207
Video Question AnsweringNExT-QA (test)--
204
Visual Question AnsweringGQA (test-dev)
Accuracy48.1
178
Video Question AnsweringNExT-QA (val)
Overall Acc60
176
Visual Question AnsweringA-OKVQA
Acc49.9
175
Visual Question AnsweringGQA (test)
Accuracy37.9
119
Massive Multi-discipline Multimodal UnderstandingMMMU
Accuracy54
88
Video Question AnsweringEgoSchema 500-question subset
Accuracy15.8
50
Showing 10 of 31 rows

Other info

Code

Follow for update