PropTest: Automatic Property Testing for Improved Visual Programming

Jaywon Koo, Ziyan Yang, Paola Cascante-Bonilla, Baishakhi Ray, Vicente Ordonez
3/25/2024
cs.CV

No official code found. Best implementation: uvavision/PropTest (6 stars, last commit 2024-11-22).

Abstract

Visual Programming has recently emerged as an alternative to end-to-end black-box visual reasoning models. This type of method leverages Large Language Models (LLMs) to generate the source code for an executable computer program that solves a given problem. This strategy has the advantage of offering an interpretable reasoning path and does not require finetuning a model with task-specific data. We propose PropTest, a general strategy that improves visual programming by further using an LLM to generate code that tests for visual properties in an initial round of proposed solutions. Our method generates tests for data-type consistency, output syntax, and semantic properties. PropTest achieves comparable results to state-of-the-art methods while using publicly available LLMs. This is demonstrated across different benchmarks on visual question answering and referring expression comprehension. Particularly, PropTest improves ViperGPT by obtaining 46.1\% accuracy (+6.0\%) on GQA using Llama3-8B and 59.5\% (+8.1\%) on RefCOCO+ using CodeLlama-34B.

View on arXivView PDF

Code Implementations(1)

uvavision/PropTestCommunity62%

Code for "PropTest: Automatic Property Testing for Improved Visual Programming"

60Shell, PythonMar 20, 20241 years ago

Similar Papers

Cite this paper

@article{koo2024proptest,
  title  = {PropTest: Automatic Property Testing for Improved Visual Programming},
  author = {Jaywon Koo and Ziyan Yang and Paola Cascante-Bonilla and Baishakhi Ray and Vicente Ordonez},
  year   = {2024},
  eprint = {2403.16921},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.16921v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.16921.svg)](https://codeofpaper.com/paper/2403.16921)

Discussion