ExoViP: Step-by-step Verification and Exploration with Exoskeleton Modules for Compositional Visual Reasoning

Yuxuan Wang, Alan L. Yuille, Zhuowan Li, Zilong Zheng · OpenReview

Abstract

Compositional visual reasoning methods, which translate a complex query into a structured composition of feasible visual tasks, have exhibited a strong potential in complicated multi-modal tasks. Empowered by recent advances in large language models (LLMs), this multi-modal challenge has been brought to a new stage by treating LLMs as few-shot/zero-shot planners, i.e., vision-language (VL) programming. Such methods, despite their numerous merits, suffer from challenges due to LLM planning mistakes or inaccuracy of visual execution modules, lagging behind the non-compositional models. In this work, we devise a "plug-and-play" method, ExoViP, to correct errors in both the planning and execution stages through introspective verification. We employ verification modules as "exoskeletons" to enhance current VL programming schemes. Specifically, our proposed verification module utilizes a mixture of three sub-verifiers to validate predictions after each reasoning step, subsequently calibrating the visual module predictions and refining the reasoning trace planned by LLMs. Experimental results on two representative VL programming methods showcase consistent improvements on five compositional reasoning tasks on standard benchmarks.

Introduction: The Fragility of Open-Loop Reasoning

Recent breakthroughs in Large Language Models (LLMs) have birthed a new paradigm called Vision-Language (VL) Programming (e.g., VisProg, ViperGPT). In this setup, an LLM acts as a "planner," breaking down a complex query into a sequence of simpler visual tasks (e.g., locate table -> locate TV -> check spatial relation).

However, these systems are fragile, suffering from two primary failure modes: Planning Errors (~30% of failures), where the LLM fails to parse the query into a logical program, and Module Errors (>40% of failures), where the underlying visual experts provide incorrect intermediate results.

Comparison between standard Visual Programming and ExoViP, highlighting how ExoViP corrects planning and prediction errors.

Existing methods are mostly "open-loop"—they execute the plan and hope for the best. ExoViP addresses this by introducing a "closed-loop" introspective verification process.

Methodology: The ExoViP Framework

ExoViP enhances VL programming through three main components:

1. The "Exoskeleton" Verification Modules

ExoViP uses a mixture of three off-the-shelf sub-verifiers to validate the output of every reasoning step:

  • Image-Text Matching (CLIP): Measures the semantic similarity between the visual result and the target label.
  • Image Captioning (BLIP): Generates a description of the visual result to see if it matches the intended concept.
  • Visual Question Answering (VQA): Asks a targeted question (e.g., "Is there a nightstand in this box?") to confirm the module's output.

To make these scores reliable, the authors use Negative Sampling, comparing the candidate answer against its semantic opposite to calibrate the confidence score.

2. Tree-based Reasoning Trace Searching (TRS)

Rather than following a single linear path, ExoViP treats reasoning as a search problem. It uses Beam Search to explore multiple potential programs (traces). The search is guided by the verification scores, allowing the system to "backtrack" or pivot if a particular reasoning path yields low-confidence results.

Tree-based Reasoning Trace Searching (TRS) using verification modules to guide the search for the correct reasoning path.

3. Post-hoc Self-correction (PSC)

When verification scores are too close to call, ExoViP leverages the LLM’s own ranking capabilities. It presents the top-ranked reasoning traces back to the LLM, which then selects the most logical path based on the original query.

Experimental Evaluation

The authors evaluated ExoViP across six distinct tasks to prove its generalizability, including GQA (Compositional VQA), RefCOCO (Referring expressions), and MagicBrush (Image editing).

Key Results

  • GQA Accuracy: ExoViP boosted VisProg from 57.41% to 61.49%, surpassing larger models like BLIP2 and InstructBLIP.
  • RefCOCO: Improved the Intersection-over-Union (IoU) from 27.28 to 31.50.
  • Error Reduction: The study shows that ExoViP reduced planning errors by 42.35% and module errors by 28.87% on the GQA dataset compared to the baseline VisProg.
  • Generalization: The framework successfully improved ViperGPT's performance on GQA, proving it works across different programming paradigms.

Conclusion and Future Work

ExoViP demonstrates that verification is a "plug-and-play" superpower for compositional reasoning. By acting as a wrapper, it can be applied to different DSLs or Python-based planners. While it significantly improves accuracy, the primary drawback is inference latency due to tree searching and multiple API calls. Future work will focus on local LLM deployments to reduce latency and integrating more advanced segmentation models.

Summary updated

BibTeX
@inproceedings{wang2024exovip,
  author = {Yuxuan Wang and Alan L. Yuille and Zhuowan Li and Zilong Zheng},
  title = {{ExoViP: Step-by-step Verification and Exploration with Exoskeleton Modules for Compositional Visual Reasoning}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=6U1FEKP7Ar},
}
Figure