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

Visual Programming: Compositional visual reasoning without training

About

We present VISPROG, a neuro-symbolic approach to solving complex and compositional visual tasks given natural language instructions. VISPROG avoids the need for any task-specific training. Instead, it uses the in-context learning ability of large language models to generate python-like modular programs, which are then executed to get both the solution and a comprehensive and interpretable rationale. Each line of the generated program may invoke one of several off-the-shelf computer vision models, image processing routines, or python functions to produce intermediate outputs that may be consumed by subsequent parts of the program. We demonstrate the flexibility of VISPROG on 4 diverse tasks - compositional visual question answering, zero-shot reasoning on image pairs, factual knowledge object tagging, and language-guided image editing. We believe neuro-symbolic approaches like VISPROG are an exciting avenue to easily and effectively expand the scope of AI systems to serve the long tail of complex tasks that people may wish to perform.

Tanmay Gupta, Aniruddha Kembhavi• 2022

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringGQA (test-dev)
Accuracy50.5
178
Visual ReasoningNLVR2 (test)
Accuracy62.4
44
Visual ReasoningNLVR2 v2 (dev)
Accuracy60.8
20
Visual Question AnsweringV*Bench
Accuracy41.36
17
3D Spatial ReasoningOmni3D-Bench (test)
Yes/No Acc54.7
11
Image ClassificationCamelyon 17 (test)
Accuracy50.4
10
Image ClassificationISIC-BM (test)
AUC50
10
Image ClassificationISIC-MN (test)
AUC50
10
Abstract ReasoningCLEVR-RPM (test)
Accuracy51
7
Multi-step ReasoningCLEVR-Puzzle (test)
Accuracy27
7
Showing 10 of 18 rows

Other info

Code

Follow for update