Spatial Preference Rewarding for MLLMs Spatial Understanding

Han Qiu, Peng Gao, Lewei Lu, Xiaoqin Zhang, Ling Shao, Shijian Lu

TL;DR

This paper introduces Spatial Preference Rewarding (SPR), a novel framework to improve multimodal large language models' (MLLMs) ability to understand and describe spatial relationships in images. SPR addresses the limitations of current MLLMs in fine-grained localization and detailed descriptions by using a preference-based learning approach that rewards accurate and detailed responses.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) have made significant strides in understanding and interacting with visual information. However, they often struggle with fine-grained spatial understanding, particularly in accurately localizing objects within an image and providing detailed, human-aligned descriptions. Existing methods primarily rely on instruction tuning with pre-annotated data, which doesn't penalize inaccurate responses during inference. This leads to MLLMs generating vague or misplaced object descriptions, failing to meet user expectations for precise spatial awareness. The paper aims to bridge this gap by introducing a method that directly optimizes MLLMs for better spatial understanding through preference learning.

Methods

The core of the proposed solution is the Spatial Preference Rewarding (SPR) framework, which operates in three main steps:

  1. Grounded Region Description Generation: SPR starts by generating diverse prompts to elicit region descriptions from MLLMs. To ensure rich and varied responses, it constructs custom regions by iteratively expanding from a single object to include nearby objects, simulating human attention. It also leverages cropped image regions and object references to guide the MLLM towards detailed descriptions.
  2. Preference Data Ranking and Construction: Generated descriptions are ranked using a combined semantic score and localization score.
  3. The semantic score measures the relevance of the description to the image region using CLIP embeddings. It considers both the cropped region and the full image context to capture fine-grained alignment.
  4. The localization score evaluates the accuracy and detail of object localization within the description. This is achieved by using Grounding DINO to extract bounding boxes for mentioned objects and comparing them against ground truth annotations using IoU.
  5. Descriptions with the highest combined scores are considered "preferred," and those with the lowest are "rejected."
  6. Preference Optimization: The preferred and rejected pairs are used for Direct Preference Optimization (DPO) training. Crucially, SPR also includes a Grounded Region Description Refinement step where the bounding boxes in the preferred descriptions are refined to improve accuracy, further enhancing the divergence between preferred and rejected samples. This process is optimized using LoRA for efficiency.

Datasets

The paper utilizes the Objects365 dataset for constructing custom image regions and object annotations. For evaluation, it employs standard benchmarks for:

  • Referring Expression Comprehension (REC): RefCOCO, RefCOCO+, and RefCOCOg.
  • Phrase Grounding: Flickr30k Entities.
  • Region Captioning: RefCOCOg and Visual Genome.
  • General Benchmarks: TextVQA, GQA, LLaVA-Bench, and POPE (hallucination benchmark).

Key Insights and Ideas

  • Preference Learning for Spatial Understanding: The paper highlights that simply mimicking ground truth isn't enough for spatial understanding. Direct preference optimization, which learns from comparing good and bad responses, is crucial for teaching MLLMs to distinguish between accurate and inaccurate spatial descriptions.
  • Combined Semantic and Localization Scores: The novel scoring mechanism, which balances semantic relevance with precise object localization, is key to generating high-quality preference data. This ensures that preferred responses are not only relevant but also spatially accurate.
  • Refinement of Preferred Descriptions: The refinement step for preferred descriptions acts as a strong signal, pushing the model to improve its localization capabilities by providing more accurate bounding boxes in the training data.
  • Automated Pipeline: The SPR framework is designed to be largely automated, requiring no human annotators or external MLLMs for preference data generation, making it scalable.

Key Results

  • SPR consistently improves MLLMs' performance on referring and grounding benchmarks, especially at higher IoU thresholds (e.g., gains of 8.96 and 4.06 for 7B and 13B models at IoU 0.9 on REC).
  • The framework significantly enhances multi-object referencing and phrase grounding tasks, where accurate localization is more challenging.
  • SPR also improves the quality of region captions, leading to more detailed and contextually relevant descriptions.
  • The method demonstrates effectiveness in reducing hallucinations, as shown by improvements on the POPE benchmark.
  • SPR achieves these improvements with minimal overhead in training.

Limitations and Future Work

  • SFT as a Foundation: The paper acknowledges that DPO training relies on a well-trained SFT model as a foundation, suggesting that SFT and DPO are complementary.
  • Future Integration of SFT and DPO: The authors suggest further exploring how to integrate SFT and DPO more effectively to enhance MLLMs' spatial understanding.
  • Generalizability: While SPR shows broad improvements, further investigation into its performance across an even wider range of complex spatial reasoning tasks could be beneficial.

Summary updated

BibTeX
@inproceedings{qiu2025spatial,
  author = {Han Qiu and Peng Gao and Lewei Lu and Xiaoqin Zhang and Ling Shao and Shijian Lu},
  title = {{Spatial Preference Rewarding for MLLMs Spatial Understanding}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=UxXvhceGKH},
}
Figure