Large Language Models are Visual Reasoning Coordinators

Liangyu Chen, Bo Li, Sheng Shen, Jingkang Yang, Chunyuan Li, Kurt Keutzer, Trevor Darrell, Ziwei Liu

Introduction

Visual reasoning is fundamentally a "two-body problem," requiring both sharp visual perception—the ability to identify objects and their attributes—and robust cognition—the ability to reason about the relationships and context of those objects. Current Vision-Language Models (VLMs), such as BLIP and OFA, often excel in one area while struggling in another. For instance, a model might be adept at object identification but fail to grasp complex spatial relationships or lack the common-sense knowledge required for nuanced questions.

Traditionally, researchers have attempted to combine these models through ensembling, typically by averaging prediction scores. However, this "dumb" averaging fails to capture the qualitative reasons why a specific model might be correct or incorrect. To address this, we introduce Cola (Coordinative Language Models), a framework that positions a Large Language Model (LLM) as a "coordinator" or judge that listens to multiple VLM experts to make a final, informed decision.

The Cola Framework

The core innovation of Cola is the transformation of a visual reasoning task into a natural language conversation between specialized agents. The process follows three primary steps:

  1. Expert Input: For a given image and question, multiple "homogeneous" VLMs (e.g., OFA, BLIP) act as expert witnesses. Each expert provides two pieces of information: a natural language caption describing the scene and a plausible answer to the question.
  2. Natural Language Fusion: These disparate inputs are aggregated into a structured text prompt. This prompt presents the LLM with the context of what each expert "saw" and what they "concluded." For example: "OFA's description: [caption], BLIP's description: [caption], Q: [question], OFA's answer: [answer], BLIP's answer: [answer]."
  3. The Coordinator: This fused text is fed into an LLM (such as FLAN-T5 or Vicuna). The LLM acts as the central brain, using its vast internal knowledge and the provided visual descriptions to resolve conflicts between experts and select the most logical answer.

The authors evaluate two primary iterations of this framework:

  • Cola-FT: An instruction-tuned version where the coordinator LLM undergoes a single epoch of finetuning to learn the specific strengths and weaknesses of the VLMs it manages.
  • Cola-Zero: A zero-shot or few-shot version that utilizes the emergent in-context learning capabilities of large LLMs, requiring no additional training.

Experimental Evaluation

Cola was tested across a diverse array of visual reasoning benchmarks to assess its versatility:

  • Knowledge-Based VQA: A-OKVQA and OK-VQA, which require "outside knowledge" beyond the image pixels.
  • Spatial Reasoning: VSR (Visual Spatial Reasoning), focusing on positional relationships (e.g., "left of," "under").
  • Visual Entailment: e-SNLI-VE, determining if a statement is supported by an image.
  • Compositional Reasoning: GQA and CLEVR, involving complex, multi-step logic.

Key Insights

The research yielded several critical insights into the nature of model coordination:

  • LLMs as Social Agents: Much like models designed for strategic games, LLMs demonstrate a "social" ability to negotiate between different agents. They can learn the "personalities" of experts—for example, recognizing that one model is reliable for color detection while another is superior at counting.
  • The Value of Candidate Answers: Ablation studies showed that the candidate answers provided by VLMs are often more useful to the coordinator than the image captions themselves. While captions provide context, the candidate answers give the LLM a concrete set of hypotheses to evaluate.
  • Scaling the "Meeting": Performance generally scales with the number of experts involved. The study found that adding up to five VLMs improved results, though diminishing returns occur as the prompt length approaches the LLM's context window limits.
  • Emergent Coordination: While finetuning (Cola-FT) provides the best results by tailoring the coordinator to specific experts, larger LLMs (Cola-Zero) exhibit an emergent ability to coordinate experts without any training, simply by following instructions.

Results and Performance

Cola-FT achieved State-of-the-Art (SOTA) results on several major benchmarks, often outperforming models with significantly more parameters:

  • A-OKVQA: Reached 77.7% accuracy, surpassing much larger and more complex specialized architectures.
  • VSR: Achieved 67.0%, a notable improvement over the previous best of 63.2%.
  • Efficiency: By training only the coordinator for a single epoch, Cola-FT remains highly efficient compared to end-to-end training of massive multi-modal models.
  • Qualitative Reasoning: In several instances, the LLM was able to derive the correct answer even when all VLM experts provided the wrong answer, by synthesizing the correct information from the experts' descriptive captions.

Limitations and Future Directions

Despite its success, Cola faces challenges regarding prompt length, as the context window of the LLM limits the number of experts and the detail of their descriptions. Additionally, the framework currently performs best on multiple-choice formats; open-ended direct answering remains a more difficult coordination task.

Future work aims to extend Cola to coordinate non-parametric tools, such as web search engines, and apply the framework to active tasks like robotic action planning and image generation. The authors also intend to improve the interpretability of the coordination process, allowing users to understand why the LLM favored one expert's opinion over another.

Summary updated

BibTeX
@inproceedings{chen2023large,
  author = {Liangyu Chen and Bo Li and Sheng Shen and Jingkang Yang and Chunyuan Li and Kurt Keutzer and Trevor Darrell and Ziwei Liu},
  title = {{Large Language Models are Visual Reasoning Coordinators}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=1q0feiJ2i4},
}
Figure