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

Yuxuan Wang, Alan Yuille, Zhuowan Li, Zilong Zheng · Submission to ICLR 2024 · Rejected

TL;DR

ExoViP introduces a plug-and-play verification "exoskeleton" for vision-language programming frameworks (like VisProg and ViperGPT). By combining multi-angle verification modules with tree-based reasoning search and LLM self-correction, it systematically rectifies both execution errors in vision models and logical mistakes in LLM-generated plans across diverse multimodal tasks.

What Problem Does This Paper Address?

Vision-Language (VL) programming methods use Large Language Models (LLMs) as zero- or few-shot planners to decompose complex multimodal queries into executable sub-programs (e.g., object detection, cropping, visual question answering). While modular and interpretable, these methods frequently lag behind end-to-end models.

A failure analysis of VisProg on the GQA benchmark revealed two dominant failure modes:

  1. Module Execution Errors (>40%): Pre-trained vision modules fail to detect objects or accurately answer sub-questions.
  2. LLM Planning Errors (~30%): The LLM constructs flawed, unfaithful, or unexecutable programs.

Because intermediate results lack supervision and feedback, errors cascade downstream. ExoViP addresses this by introducing introspective, step-by-step verification without requiring extra pre-trained models.

Methods

ExoViP acts as a wrapper around existing visual programming pipelines via two core mechanisms:

  • "Exoskeleton" Verification Modules: At each reasoning step, candidate outputs are evaluated using an ensemble of three off-the-shelf sub-verifiers already native to the toolset:
  • Image-Text Matching (ITM) using CLIP image-text similarity.
  • Image Captioning using BLIP captions compared against candidate descriptions via Sentence-BERT embeddings.
  • Visual Question Answering (VQA) using BLIP probability differences between "yes" and "no" responses.
  • Negative Sampling for Calibration: Raw verification scores across diverse answer types often suffer from scale miscalibration. ExoViP computes the final score by contrasting the candidate against its "semantic opposite" (the lowest cosine similarity text embedding in CLIP), calibrating candidate probabilities before thresholding.
  • Tree-Based Reasoning Trace Searching (TRS): To fix planning errors, ExoViP constructs a search tree of candidate programs by perturbing in-context prompt demonstrations. It searches this space using beam search guided by intermediate verification scores.
  • Post-Hoc Self-Correction (PSC): When verification scores between the top-$K$ candidate traces are too close to differentiate reliably, an LLM is prompted to rank the rationales based on cause-and-effect consistency.
       [ Input Query + Image ]
                 │
                 ▼
      [ LLM Program Generation ] ◄── (TRS Beam Search & PSC Ranking)
                 │
                 ▼
       [ Vision Module Exec ]
                 │
                 ▼
    [ Exoskeleton Verification ] ──► (ITM + Caption + VQA Verifiers - Neg. Samples)
                 │
                 ▼
     [ Calibrated Prediction ]

Datasets

ExoViP was evaluated across six multimodal benchmarks spanning image and video modalities:

  • GQA: Compositional visual question answering.
  • RefCOCO, RefCOCO+, RefCOCOg: Referring expression comprehension / visual grounding (evaluated via IoU).
  • NLVR2: Natural language visual reasoning requiring joint reasoning over dual-image inputs.
  • KILOGRAM: Abstract visual reasoning on tangram puzzles (evaluated via text-to-image retrieval accuracy).
  • MagicBrush: Instruction-guided image editing (evaluated using CLIP-I and DINO similarity).
  • AGQA 2.0: Spatio-temporal video question answering.

Key Insights and Ideas

  • Verification Needs Semantic Contrast: Naively adding verification modules actually degraded GQA performance (dropping VisProg accuracy from 57.41% to 57.11%). Calibrating against semantic opposites via negative sampling was critical, raising accuracy to 58.53%.
  • Symbiosis of Tree Search and Introspection: Trace searching (TRS) and LLM self-correction (PSC) reinforce each other. Verification scores steer the beam search away from dead ends, while LLM ranking resolves score ties, pushing overall GQA accuracy to 61.49%.
  • Smarter, Shorter Plans: Beyond boosting accuracy, trace exploration shortened the average number of planning steps from 5.92 to 4.77 and reduced unexecutable plans from 5.84% to 3.82%.

Key Results

  • Compositional VQA (GQA): ExoViP boosted VisProg accuracy from 57.41% to 61.49%, outperforming monolithic baselines like BLIP-2 (49.20%) and InstructBLIP (55.39%). On ViperGPT, it improved accuracy from 45.47% to 46.84%.
  • Error Reduction: In a 100-sample manual audit, ExoViP reduced vision module errors by 28.87% and planning errors by 42.35%.
  • Visual Grounding & Editing:
  • RefCOCO IoU increased from 27.28 to 31.50.
  • MagicBrush editing metrics improved from 90.82 to 91.27 (CLIP-I) and 82.70 to 83.40 (DINO).
  • Abstract Reasoning (KILOGRAM): Accuracy improved from 24.46% to 26.22%.

Limitations and Future Work

  • VQA Bottleneck: Tasks heavily dependent on chained VQA steps (such as NLVR2 and AGQA) showed only marginal improvements (+0.30% on NLVR2, +0.12% on AGQA). Errors in the base VQA module accumulate faster than the verifier can compensate.
  • Inference Latency: Beam search and repeated API calls increase latency significantly. On GQA, total inference time jumped from 1.59s to 4.32s, with planning time via the OpenAI API accounting for 3.64s. Deploying local LLMs and increasing submodule parallelism are highlighted as necessary next steps.
  • New Errors Introduced: Verifier false positives can occasionally derail a correct execution trace, highlighting the need for richer expert verifiers and better calibration strategies.

Summary updated

BibTeX
@inproceedings{wang2024exovip,
  author = {Yuxuan Wang and Alan 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