VDebugger: Harnessing Execution Feedback for Debugging Visual Programs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wu, Xueqing, Lin, Zongyu, Zhao, Songyan, Wu, Te-Lin, Lu, Pan, Peng, Nanyun, Chang, Kai-Wei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914963924189184
author Wu, Xueqing
Lin, Zongyu
Zhao, Songyan
Wu, Te-Lin
Lu, Pan
Peng, Nanyun
Chang, Kai-Wei
author_facet Wu, Xueqing
Lin, Zongyu
Zhao, Songyan
Wu, Te-Lin
Lu, Pan
Peng, Nanyun
Chang, Kai-Wei
contents Visual programs are executable code generated by large language models to address visual reasoning problems. They decompose complex questions into multiple reasoning steps and invoke specialized models for each step to solve the problems. However, these programs are prone to logic errors, with our preliminary evaluation showing that 58% of the total errors are caused by program logic errors. Debugging complex visual programs remains a major bottleneck for visual reasoning. To address this, we introduce VDebugger, a novel critic-refiner framework trained to localize and debug visual programs by tracking execution step by step. VDebugger identifies and corrects program errors leveraging detailed execution feedback, improving interpretability and accuracy. The training data is generated through an automated pipeline that injects errors into correct visual programs using a novel mask-best decoding technique. Evaluations on six datasets demonstrate VDebugger's effectiveness, showing performance improvements of up to 3.2% in downstream task accuracy. Further studies show VDebugger's ability to generalize to unseen tasks, bringing a notable improvement of 2.3% on the unseen COVR task. Code, data and models are made publicly available at https://github.com/shirley-wu/vdebugger/
format Preprint
id arxiv_https___arxiv_org_abs_2406_13444
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle VDebugger: Harnessing Execution Feedback for Debugging Visual Programs
Wu, Xueqing
Lin, Zongyu
Zhao, Songyan
Wu, Te-Lin
Lu, Pan
Peng, Nanyun
Chang, Kai-Wei
Computation and Language
Computer Vision and Pattern Recognition
Visual programs are executable code generated by large language models to address visual reasoning problems. They decompose complex questions into multiple reasoning steps and invoke specialized models for each step to solve the problems. However, these programs are prone to logic errors, with our preliminary evaluation showing that 58% of the total errors are caused by program logic errors. Debugging complex visual programs remains a major bottleneck for visual reasoning. To address this, we introduce VDebugger, a novel critic-refiner framework trained to localize and debug visual programs by tracking execution step by step. VDebugger identifies and corrects program errors leveraging detailed execution feedback, improving interpretability and accuracy. The training data is generated through an automated pipeline that injects errors into correct visual programs using a novel mask-best decoding technique. Evaluations on six datasets demonstrate VDebugger's effectiveness, showing performance improvements of up to 3.2% in downstream task accuracy. Further studies show VDebugger's ability to generalize to unseen tasks, bringing a notable improvement of 2.3% on the unseen COVR task. Code, data and models are made publicly available at https://github.com/shirley-wu/vdebugger/
title VDebugger: Harnessing Execution Feedback for Debugging Visual Programs
topic Computation and Language
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2406.13444