OMG-LLaVA: Bridging Image-level, Object-level, Pixel-level Reasoning and Understanding

Tao Zhang, Xiangtai Li, Hao Fei, Haobo Yuan, Shengqiong Wu, Shunping Ji, Chen Change Loy, Shuicheng Yan

TL;DR

OMG-LLaVA is a unified multimodal large language model (MLLM) that bridges the gap between high-level reasoning and pixel-perfect image understanding. By integrating a universal segmentation method with a large language model in an end-to-end framework, it performs tasks ranging from simple image captioning to complex, prompt-based reasoning segmentation using a single encoder, decoder, and LLM.

The Problem: Isolated Camps in Computer Vision

In the current AI landscape, computer vision is split into two powerful but isolated camps. On one side, universal segmentation models (like SAM or OMG-Seg) are masters of pixels. They can outline every object in a scene with incredible precision but lack the "brains" to understand complex text instructions or reason about why they are segmenting something.

On the other side are Multimodal Large Language Models (MLLMs like LLaVA). These are the "thinkers"—they can hold a conversation about an image and reason through abstract questions. However, they are often "pixel-blind." They can tell you there is a dog in the image, but they cannot give you a precise mask of that dog, nor can they easily understand when a user points to a specific region.

Previous attempts to bridge this gap often relied on complex "agent" systems that stitched together multiple specialized models. These systems are bulky, computationally expensive, and lack the elegance of a truly unified architecture. OMG-LLaVA aims to solve this by creating a single, streamlined model that understands images at the image-level, object-level, and pixel-level simultaneously.

OMG-LLaVA Capabilities

Methods: A Unified Architecture

The researchers propose an elegant three-part architecture to achieve this unification:

  1. The Visual Perception Module: The framework uses OMG-Seg as a universal visual encoder and decoder. Crucially, this module is kept frozen to preserve its specialized pixel-level capabilities.
  2. The Brain (LLM): It employs InternLM2-7B to handle text instructions and reasoning.
  3. The Secret Sauce (Perception Prior Embedding): To help the LLM understand the "where" and "what" of objects, the authors introduce a perception prior embedding. This module takes "object queries" from the segmentation decoder and integrates them back into the visual tokens provided to the LLM, ensuring the LLM has a rich, object-centric view of the scene.

The framework treats everything as a token-to-token generation task. Whether the model is generating a text description or a segmentation mask, it is all handled within the same unified sequence. Furthermore, the model can accept "visual prompts"—users can provide points, boxes, or masks to tell the model exactly what they are interested in.

Datasets and Evaluation

The model was trained and evaluated on a diverse suite of benchmarks to test its multi-level capabilities:

  • Image-level: LLaVA-665K for general conversation and reasoning.
  • Object-level: Osprey (74K) and MDVP (200K) for region-based descriptions and point-prompt interactions.
  • Pixel-level: refCOCO, refCOCO+, and refCOCOg for referring expression segmentation (RES); COCO and VIPSeg for panoptic segmentation; and GranDf for grounded conversation generation (GCG).

Key Insights

  • Unified Architecture over Modular Agents: The paper demonstrates that a single, end-to-end trained model can match or outperform complex systems that use LLMs as "dispatchers" for multiple expert models.
  • Object Queries as Visual Language: By treating the segmentation decoder's object queries as a form of "visual vocabulary," the model effectively communicates spatial information to the LLM without needing massive amounts of new parameters.
  • Visual Prompting Flexibility: Unlike many MLLMs that only accept text, OMG-LLaVA's ability to ingest points and boxes makes it highly interactive and useful for real-world applications like photo editing or robotics.
  • Frozen Perception is a Feature: Keeping the vision encoder/decoder frozen prevents the "forgetting" of basic segmentation skills while the LLM learns to reason about those segments.

Key Results

OMG-LLaVA shows impressive performance across the board:

  • Referring Expression Segmentation (RES): On the refCOCO benchmarks, it outperformed the previous state-of-the-art (LISA) by up to 5.0 cIoU (cumulative Intersection over Union) when the decoder was unfrozen.
  • Grounded Conversation (GCG): It surpassed specialized models in both the quality of text descriptions (measured by METEOR and CIDEr) and the accuracy of the associated segmentation masks.
  • Image-Level Benchmarks: Despite its focus on pixels, it remains highly competitive on standard MLLM benchmarks like MMBench and SEED-Bench, proving that adding pixel-level "vision" doesn't compromise the model's reasoning capabilities.

Limitations and Future Work

The authors identify a few key areas for improvement:

  • Granularity Constraints: Because the model relies on OMG-Seg, it inherits its limitations—specifically, it struggles with "part-level" segmentation (e.g., segmenting just the "handle" of a mug if the base model only recognizes the whole "mug").
  • Task Interference: Joint training on pixel-level data can sometimes slightly decrease performance on pure image-level reasoning tasks, a common challenge in multi-task learning.
  • Temporal Reasoning: While it handles images and some video segmentation, the model's ability to perform complex spatial-temporal reasoning over long video sequences is still limited. Future work aims to integrate more robust video instruction-tuning data.

Summary updated

BibTeX
@inproceedings{zhang2024omg,
  author = {Tao Zhang and Xiangtai Li and Hao Fei and Haobo Yuan and Shengqiong Wu and Shunping Ji and Chen Change Loy and Shuicheng YAN},
  title = {{OMG-LLaVA: Bridging Image-level, Object-level, Pixel-level Reasoning and Understanding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=WeoNd6PRqS},
}
Figure