LLaVA-Plus: Learning to Use Tools for Creating Multimodal Agents

Shilong Liu, Hao Cheng, Haotian Liu, Hao Zhang, Feng Li, Tianhe Ren, Xueyan Zou, Jianwei Yang, Hang Su, Jun Zhu, Lei Zhang, Jianfeng Gao, Chunyuan Li

Introduction

Large Multimodal Models (LMMs) have demonstrated remarkable capabilities in general image understanding and natural language interaction. However, they often operate as "closed systems," restricted by the knowledge and skills embedded within their static weights. This limitation becomes apparent in tasks requiring high-precision outputs, such as pixel-level segmentation, accurate Optical Character Recognition (OCR), or complex image generation.

Overview of LLaVA-Plus visual skills across generation, interaction, and understanding.

LLaVA-Plus (Large Language and Vision Assistants that Plug and Learn to Use Skills) addresses these constraints by transforming the LMM into a general-purpose agent capable of orchestrating a repository of external specialist tools. Unlike previous "tool-chaining" approaches that rely on text-only managers, LLaVA-Plus maintains active visual grounding throughout the reasoning process, leading to more robust planning and execution.

System Architecture and Methodology

The LLaVA-Plus framework consists of a backbone LMM integrated with a dynamic Skill Repository. This repository includes state-of-the-art specialist models such as Grounding DINO for detection, SAM for segmentation, and Stable Diffusion for image generation.

Unified Prediction Format

To facilitate tool interaction, the model adopts a structured output format inspired by the "ReAct" framework. For any given query, the model generates a sequence of reasoning and execution steps:

  1. Thought: Internal reasoning regarding the necessity and selection of a tool.
  2. Action: A JSON-formatted API call specifying the tool and its parameters.
  3. Value: A synthesized final response that integrates the tool's output with the original context.
A detailed example of the LLaVA-Plus dialogue flow, showcasing the Thought-Action-Value cycle for a complex segmentation task.

Visual Instruction Tuning

The core of LLaVA-Plus's intelligence lies in its training. Rather than relying solely on few-shot prompting, the authors performed end-to-end visual instruction tuning on a massive dataset of tool-use dialogues. This dataset was curated by using GPT-4 to simulate assistant behavior based on rich image metadata, allowing the model to learn the specific nuances and failure modes of its available tools.

Datasets and Evaluation

The training pipeline utilized the original LLaVA-158K dataset supplemented by over 50,000 new tool-use samples. These samples cover both individual skills (e.g., OCR, retrieval) and composed workflows where multiple tools are used sequentially, such as segmenting an object to generate a specific social media post.

Performance was evaluated across several key benchmarks:

  • ViSiT-Bench: A real-world instruction benchmark where LLaVA-Plus outperformed the baseline LLaVA by over 100 ELO points.
  • MM-Vet: Significant gains were observed in OCR and spatial reasoning, with the 7B model's OCR score jumping from 13.3 to 23.6.
  • LLaVA-Bench (Tool Use): A new benchmark specifically designed to test grounding and tool-execution accuracy.

Key Insights

A primary takeaway from LLaVA-Plus is the efficacy of the "Society of Mind" approach. By acting as a central planner for specialist models, the system becomes highly extensible; new capabilities can be added by simply updating the Skill Repository and providing relevant instruction-tuning examples. Furthermore, the results suggest that learning to use tools through training is significantly more effective than prompting a model to use them, as it allows for deeper integration of visual features and tool outputs.

Conclusion and Future Directions

LLaVA-Plus represents a significant step toward autonomous multimodal agents. While the system shows state-of-the-art performance, challenges remain regarding tool output hallucinations and the computational overhead of running multiple models. Future research will focus on optimizing tool selection efficiency and expanding the skill set to include temporal domains like video processing and web navigation.

Summary updated

BibTeX
@inproceedings{liu2024llava,
  author = {Shilong Liu and Hao Cheng and Haotian Liu and Hao Zhang and Feng Li and Tianhe Ren and Xueyan Zou and Jianwei Yang and Hang Su and Jun Zhu and Lei Zhang and Jianfeng Gao and Chunyuan Li},
  title = {{LLaVA-Plus: Learning to Use Tools for Creating Multimodal Agents}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72970-6\_8},
}
Figure