IdealGPT: Iteratively Decomposing Vision and Language Reasoning via Large Language Models

Haoxuan You, Rui Sun, Zhecan Wang, Long Chen, Gengyu Wang, Hammad A. Ayyubi, Kai-Wei Chang, Shih-Fu Chang

Abstract

Vision-Language Models (VLMs) often struggle with complex reasoning tasks that require multi-step visual analysis and common-sense knowledge. We present IdealGPT, a framework that decomposes complex visual reasoning into an iterative "divide-and-conquer" process. By employing a Large Language Model (LLM) to generate sub-questions and a VLM to provide factual answers, IdealGPT allows a secondary LLM "Reasoner" to synthesize information and request further details if needed. Our results demonstrate that IdealGPT significantly outperforms state-of-the-art end-to-end models like LLaVA, achieving up to a 32.6% improvement in zero-shot accuracy on challenging benchmarks.

Introduction

Current end-to-end Vision-Language Models (VLMs) typically attempt to map image pixels directly to a final answer in a single pass. While effective for simple recognition, this approach often leads to hallucinations or reliance on superficial biases when faced with complex, multi-step reasoning tasks (e.g., "Why is the person in the background surprised?"). Previous decomposition methods were often domain-specific or limited to a single round of questioning. IdealGPT addresses these shortcomings by introducing an iterative, model-agnostic decomposition framework that mimics human-like visual problem-solving.

Methodology: The Three-Agent Framework

IdealGPT operates through a collaborative loop involving three specialized agents:

  1. The Questioner (LLM): Given the main question and an initial, potentially imperfect image caption, this agent generates targeted sub-questions focusing on specific visual details.
  2. The Answerer (VLM): Acting as the system's "eyes," this agent answers the sub-questions by inspecting the original image. The framework is model-agnostic, allowing the use of various VLMs like BLIP-2 or LLaVA.
  3. The Reasoner (LLM): This agent evaluates the accumulated sub-questions and answers to solve the main query. If the Reasoner lacks confidence (e.g., outputting "We are not sure"), it triggers a new iteration, prompting the Questioner to seek more specific information.
Overview of the IdealGPT framework compared to standard end-to-end VLMs.

This modular design allows for easy upgrades; as more powerful LLMs or VLMs become available, they can be integrated into the framework without additional training.

Experimental Evaluation

We evaluated IdealGPT on three benchmarks requiring deep reasoning: Visual Commonsense Reasoning (VCR), Visual Entailment (SNLI-VE), and Augmented Outside Knowledge VQA (A-OKVQA).

Key Results

IdealGPT achieved substantial gains in zero-shot performance, demonstrating that decoupling perception from reasoning is highly effective:

  • VCR: 50.7% accuracy, surpassing MiniGPT4 by 10.1%.
  • SNLI-VE: 55.3% accuracy, outperforming LLaVA by 15%.
  • A-OKVQA: Outperformed MiniGPT4 by 13.2% and LLaVA by 32.6%.

The Power of Iteration

A critical finding of our study is the impact of the iterative loop. Accuracy improves significantly as the model gathers more information over multiple rounds.

Ablation study showing the impact of the number of iterations on model accuracy.

As shown in the ablation study, increasing the maximum number of iterations from one to seven results in a nearly 8% absolute improvement in accuracy, demonstrating the effectiveness of the "I don't know" exit and subsequent refinement.

Discussion and Limitations

IdealGPT's strength lies in its modularity and its ability to recognize information gaps. However, this iterative process introduces higher latency compared to single-pass models due to multiple API calls. Additionally, the system remains sensitive to prompt engineering and the perceptual accuracy of the underlying VLM; if the Answerer provides a hallucinated sub-answer, it can lead the Reasoner astray. Future work will focus on optimizing prompts automatically and incorporating denser initial captions to streamline the first round of questioning.

Summary updated

BibTeX
@inproceedings{you2023idealgpt,
  author = {Haoxuan You and Rui Sun and Zhecan Wang and Long Chen and Gengyu Wang and Hammad A. Ayyubi and Kai-Wei Chang and Shih-Fu Chang},
  title = {{IdealGPT: Iteratively Decomposing Vision and Language Reasoning via Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.755},
}
Figure