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 · DOI

Abstract

End-to-end Vision-Language Models (VLMs) often struggle with complex, multi-step reasoning tasks in zero-shot settings. We present IdealGPT, a modular framework that introduces an iterative "divide-and-conquer" approach to visual reasoning. By decoupling the process into distinct agents—a Questioner (LLM), an Answerer (VLM), and a Reasoner (LLM)—IdealGPT allows for the incremental gathering of visual evidence. This iterative loop enables the system to refine its understanding until it reaches a confident conclusion, significantly boosting zero-shot performance on challenging benchmarks like VCR and SNLI-VE.

Introduction

While modern Vision-Language Models such as BLIP-2, LLaVA, and MiniGPT-4 demonstrate impressive capabilities in general image understanding, they frequently fail on tasks requiring deep commonsense reasoning. For instance, determining the social relationship between two people in a photo requires identifying individuals, analyzing body language, and applying social context. Current end-to-end models often attempt to bridge these steps in a single pass, leading to "hallucinated" guesses when the underlying evidence is insufficient.

Previous attempts to address this via compositional "divide-and-conquer" methods relied on task-specific sub-question generators and forced a final answer in one pass. IdealGPT addresses these limitations by creating a generalized, zero-shot system that can recognize its own uncertainty and iteratively seek more information before making a final decision.

The IdealGPT Framework

IdealGPT mimics human reasoning by decomposing the task into three specialized, modular agents:

  1. The Questioner (LLM): Since the LLM cannot directly "see" the image, it is provided with a basic image caption generated by a VLM. Based on the main question and this initial context, the Questioner generates targeted sub-questions (e.g., "What is the expression on the person's face?").
  2. The Answerer (VLM): A pre-trained, frozen VLM acts as the "eyes" of the system, providing specific answers to the sub-questions generated by the Questioner.
  3. The Reasoner (LLM): This agent analyzes the accumulated evidence from the sub-questions and answers to determine if a final conclusion can be reached.

The Iterative Reasoning Loop

The core novelty of IdealGPT is its iterative process. If the Reasoner determines that the current evidence is insufficient, it outputs a status of "We are not sure" along with an analysis of what information is missing. This feedback is sent back to the Questioner, which then generates supplementary sub-questions. This loop continues until the Reasoner is confident or a maximum iteration limit is reached. In practice, ChatGPT is utilized for the LLM roles, while various models can be swapped in for the VLM Answerer.

Experimental Evaluation

The framework was evaluated in a zero-shot setting using 5,000 samples from two rigorous benchmarks:

  • Visual Commonsense Reasoning (VCR): Requires multi-step reasoning and social knowledge.
  • Visual Entailment (SNLI-VE): Requires determining if an image entails, contradicts, or is neutral toward a text hypothesis.

Key Results

IdealGPT demonstrated substantial improvements over state-of-the-art zero-shot baselines:

  • VCR Performance: IdealGPT achieved 50.7% accuracy, outperforming MiniGPT-4 (40.6%) by approximately 10%.
  • SNLI-VE Performance: IdealGPT reached 55.3% accuracy, a 15% improvement over LLaVA (40.3%).
  • Impact of Iteration: Ablation studies showed that moving from a single-pass approach to a multi-pass iterative approach (up to 4 iterations) improved accuracy from 49.2% to 55.8% on a VCR subset. On average, the model required 1.8 passes to reach a confident answer.

Discussion and Insights

Hallucination vs. Brevity

A surprising finding was that the older BLIP-2 model often outperformed newer instruction-tuned models like LLaVA when acting as the "Answerer." The authors observed that newer models tend to generate longer, more descriptive responses that are more prone to hallucinations. These errors can mislead the LLM Reasoner. In contrast, BLIP-2’s shorter, more factual answers provided a more reliable foundation for reasoning.

Modularity and Flexibility

Because IdealGPT is decoupled, it is highly flexible. Any component can be replaced as better models emerge—such as upgrading the LLM to GPT-4 or integrating more advanced VLMs—without the need for task-specific fine-tuning.

Conclusion and Future Work

IdealGPT demonstrates that iterative decomposition is a powerful strategy for complex visual reasoning. By allowing a model to "ask follow-up questions," we can mitigate the hallucination issues prevalent in end-to-end VLMs. Future work may focus on improving the initial context provided to the Questioner through dense captioning and automating the optimization of prompts for the LLM agents.

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