Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models

Chuofan Ma, Yi Jiang, Jiannan Wu, Zehuan Yuan, Xiaojuan Qi

Abstract

Groma is a novel Multimodal Large Language Model (MLLM) designed to bridge the gap between holistic image understanding and precise visual grounding. By integrating a "perceive-then-understand" philosophy, Groma utilizes a localized visual tokenization mechanism that converts regions of interest into dedicated tokens. This architecture allows the model to outperform existing benchmarks in object localization and spatial reasoning without the computational burden of traditional coordinate regression.

Introduction

While current MLLMs like LLaVA or GPT-4V excel at describing images globally, they often struggle with fine-grained localization—the ability to "point" to specific objects or interpret user-defined regions. Existing approaches typically rely on either computationally expensive coordinate regression (forcing the LLM to output text-based coordinates) or external modules like Segment Anything, which decouple localization from the model's internal reasoning.

Groma demonstrates diverse grounding capabilities, from locating reflections to providing detailed scene descriptions.

Groma addresses these challenges by moving localization into the visual tokenizer. By treating specific image regions as first-class "region tokens," the model can reason about "where" things are as naturally as it understands "what" they are.

The "Perceive-then-Understand" Architecture

Groma's architecture is built on four pillars designed to decouple perception from semantic reasoning:

  1. Image Encoder: Utilizing DINOv2, Groma captures fine-grained spatial features that are often lost in standard CLIP-based encoders.
  2. Region Proposer: A class-agnostic detector (based on Deformable DETR) identifies potential regions of interest (ROIs) within the high-resolution input.
  3. Region Encoder: Using ROIAlign, features are cropped and mapped into dedicated region tokens.
  4. Large Language Model (Vicuna-7B): The LLM processes both global image tokens and these specific region tokens.

A key innovation is the use of "proxy tokens" (e.g., <r1>, <r2>) within the text stream. These tokens act as pointers to continuous region embeddings, creating a seamless link between linguistic concepts and spatial coordinates.

Groma's output aligns text descriptions with specific image regions using colored highlights to represent grounded tokens.

Training and Benchmarking

Groma was trained in three stages: detection pretraining on large-scale datasets (COCO, Objects365, SA1B), alignment pretraining (ShareGPT-4V, RefCOCO), and instruction finetuning.

To facilitate high-quality training, the authors introduced Groma Instruct, a dataset of 30k conversations generated via GPT-4V using visual prompting. Furthermore, they established LVIS-Ground, a challenging benchmark designed to test a model's ability to ground multiple, diverse, and small objects—a common failure point for existing MLLMs.

Key Results and Insights

Groma consistently outperforms generalist models like Shikra and Ferret on standard benchmarks (RefCOCO series). Notably, on the LVIS-Ground benchmark, Groma achieved a 28.8 Average Recall (AR), a 10% improvement over the previous state-of-the-art.

The success of Groma highlights several key insights:

  • Decoupling Perception and Reasoning: Offloading localization to the tokenizer allows the LLM to focus on high-level semantics, increasing efficiency.
  • Token-based Representation: Learned embeddings for regions are more intuitive for LLMs than raw text coordinates.
  • Backbone Selection: DINOv2's spatial awareness provides a significant advantage (approx. 6.5 AP) over CLIP for grounding tasks.

Conclusion and Future Directions

Groma represents a significant step toward MLLMs with true spatial awareness. While currently limited to rectangular bounding boxes, future iterations aim to incorporate mask-based proposers (e.g., Mask2Former) to enable pixel-level segmentation. Scaling up vision-language alignment pretraining also remains a promising avenue for closing the gap in complex reasoning tasks.

Summary updated

BibTeX
@inproceedings{ma2024groma,
  author = {Chuofan Ma and Yi Jiang and Jiannan Wu and Zehuan Yuan and Xiaojuan Qi},
  title = {{Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72658-3\_24},
}
Figure