BuboGPT: Enabling Visual Grounding in Multi-Modal LLMs

Yang Zhao, Zhijie Lin, Daquan Zhou, Zilong Huang, Jiashi Feng, Bingyi KangarXiv 2023

Abstract

LLMs have demonstrated remarkable abilities at interacting with humans through language, especially with the usage of instruction-following data. Recent advancements in LLMs, such as MiniGPT-4, LLaVA, and X-LLM, further enlarge their abilities by incorporating multi-modal inputs, including image, video, and speech. Despite their effectiveness at generating precise and detailed language understanding of the given modality signal, these LLMs give up the ability to ground specific parts of inputs, thus only constructing a coarse-grained mapping. However, explicit and informative correspondence between text and other modalities will not only improve the user experience but also help to expand the application scenario of multi-modal LLMs. Therefore, we propose BuboGPT, a multi-modal LLM with visual grounding that can perform cross-modal interaction between vision, audio and language, providing fine-grained understanding of visual objects and other given modalities. As a result, BuboGPT is able to point out the specific location of an object in the image, when it is generating response or description for that object. Our contributions are two-fold: 1) An off-the-shelf visual grounding module based on SAM that extracts entities in a sentence and find corresponding masks in the image. 2) A two-stage training scheme and instruction dataset to endow joint text-image-audio understanding. Our experiments show that BuboGPT achieves impressive multi-modality understanding and visual grounding abilities during the interaction with human. It performs consistently well when provided by arbitrary modality combinations (either aligned or unaligned).

Introduction

While recent multi-modal Large Language Models (LLMs) have shown an impressive ability to describe images or videos, they generally lack fine-grained visual grounding. They can describe a scene—for instance, noting a cat on a mat—but they cannot point to the specific pixels representing those objects. This "coarse-grained" understanding limits their utility in complex reasoning tasks or interactive scenarios where explicit correspondence between text and visual objects is required.

Furthermore, most existing models struggle with joint understanding across more than two modalities and often fail to recognize when different inputs (like an image and a separate audio clip) are unrelated. This often leads to "hallucinations" where the model forces a connection between mismatched inputs. BuboGPT addresses these gaps by bridging high-level description with precise localization.

Methodology

BuboGPT employs a modular architecture designed to treat language as the "universal glue" for multi-modal reasoning.

BuboGPT System Architecture and Sound Localization Pipeline

Architecture

The system uses Vicuna (a LLaMA-based LLM) as its central reasoning engine. Visual inputs are processed via a BLIP-2 encoder (Q-Former + ViT), while audio inputs are handled by ImageBind, which maps multiple modalities into a shared space. Linear projection layers align these features into the LLM’s word embedding space, allowing the model to perform cross-modal grounding without a specialized joint-modality architecture.

Visual Grounding Pipeline

Instead of training grounding from scratch, BuboGPT utilizes an "off-the-shelf" pipeline to achieve fine-grained understanding:

  1. Tagging: The Recognize Anything Model (RAM) generates semantic tags for the image.
  2. Grounding: Grounding DINO identifies bounding boxes for those tags, and the Segment Anything Model (SAM) converts those boxes into precise masks.
  3. Entity Matching: An LLM (GPT-4) acts as a reasoning bridge to match the entities mentioned in BuboGPT’s response with the tags and masks generated by the grounding module.

Datasets and Training

The model undergoes a two-stage training strategy: Alignment, which learns to map vision and audio features to language using large-scale captioning datasets, and Instruction Tuning, which fine-tunes the model on high-quality multi-modal instruction data.

To improve robustness, the authors introduced several novel refinements:

  • Clotho-Detail: Expanded short audio captions into rich, descriptive paragraphs using GPT-4.
  • Audio-Image-Text: Based on VGGSS, providing positive pairs where audio is directly linked to a visual object.
  • Negative Pairs: Crucially, the authors introduced mismatched image-audio pairs to train the model to recognize when modalities are irrelevant to one another. This significantly reduced false reasoning and improved the model's ability to handle arbitrary modality combinations.

Key Results

BuboGPT demonstrates impressive multi-modality understanding and visual grounding abilities during human interaction.

Example of BuboGPT's Fine-Grained Visual Grounding in a Chat Interface
  • Fine-Grained Grounding: The model successfully points to specific objects with numbered masks while generating descriptions, as seen in complex scenes involving multiple entities.
  • Sound Localization: The model can accurately identify which object in an image is the source of a specific sound (e.g., identifying a dog as the source of a "barking" audio clip).
  • Robustness: The model performs consistently well whether provided with just an image, just audio, or both—even if the two are unaligned. It can correctly identify when audio does not match the visual content, avoiding the hallucinations common in earlier models.

Conclusion

BuboGPT demonstrates that combining specialized, pre-trained "expert" models like SAM and Vicuna is an effective path toward fine-grained multi-modal understanding. While limitations like language hallucination from the underlying LLM persist, the integration of explicit visual grounding significantly enhances the interpretability and utility of multi-modal systems. Future work will explore directly incorporating spatial coordinates into the LLM's input to further enhance spatial reasoning.

Summary updated

BibTeX
@misc{zhao2023bubogpt,
  author = {Yang Zhao and Zhijie Lin and Daquan Zhou and Zilong Huang and Jiashi Feng and Bingyi Kang},
  title = {{BuboGPT: Enabling Visual Grounding in Multi-Modal LLMs}},
  year = {2023},
  eprint = {2307.08581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.08581},
}
Figure