Abstract
Despite the rapid advancement of Multimodal Large Language Models (MLLMs), these systems frequently struggle with precise spatial reasoning, such as identifying relative object positions or judging distances in complex scenes. This paper discusses SKG2DATA, a novel framework that utilizes Spatial Knowledge Graphs (SKGs) as structured blueprints to synthesize high-quality, spatially consistent multimodal data. By grounding image generation and question-answering in these structured graphs, the framework significantly enhances the spatial perception of models like LLaVA and Llama-3.2-Vision without compromising general performance.
Introduction
Current Multimodal Large Language Models (MLLMs) often operate with a significant limitation: they lack a robust "mental map" of the visual world. While they can identify objects, they frequently fail at basic spatial tasks—judging whether a cup is to the left of a plate or managing scenes with multiple overlapping entities. This "eyes wide shut" phenomenon stems from a lack of diverse, spatially-annotated training data.
Collecting real-world data for every conceivable spatial configuration is logistically and financially prohibitive. While synthetic data offers a scalable alternative, traditional methods often produce spatially incoherent results, where objects appear to float or defy physical logic. SKG2DATA addresses this by introducing a "knowledge-to-data" pipeline that uses structured knowledge graphs to enforce spatial consistency during the data generation process.
The SKG2DATA Framework
The SKG2DATA pipeline follows a rigorous four-step process designed to ensure that the resulting synthetic data is both diverse and physically plausible:
- Spatial Knowledge Graph (SKG) Generation: Using GPT-4o, the system generates plausible scene descriptions (e.g., "a busy sidewalk") and identifies constituent objects. These objects are assigned specific attributes (color, material) and organized into spatial triplets, such as
<A blue bicycle, to the left of, A white dog>. - Layout-Grounded Synthesis: Rather than relying on simple text-to-image prompts, the framework translates the SKG into precise bounding boxes. These coordinates, along with object descriptions, are processed by GLIGEN (a grounded text-to-image diffusion model) to ensure that objects are rendered exactly according to the spatial blueprint.
- Multimodal Q&A Generation: Following image synthesis, the SKG guides an MLLM to generate targeted instruction-tuning pairs. These are categorized into Entity-Based Data (focusing on existence and attributes) and Relation-Based Data (focusing on relative positioning).
- Automated Filtering: To maintain high data fidelity, GPT-4o acts as an automated inspector. It verifies that the generated image aligns with the original SKG and ensures that the Q&A pairs are factually grounded in the final visual output.
Experimental Setup and Datasets
The researchers introduced two primary resources to facilitate training and evaluation:
- SKG2DATA Training Set: A synthetic instruction dataset featuring 974 unique objects and 4,731 spatial relationship triplets.
- SKG2DATA-HOLDOUT: A specialized evaluation benchmark consisting of 120 images and 566 single-choice questions designed to isolate and test spatial understanding.
To measure generalization, the models were also evaluated on established benchmarks, including COCO-Spatial, MMVP, MMStar, and HallusionBench.
Key Insights and Analysis
The Power of Structured Knowledge
By utilizing a Knowledge Graph as an intermediary, the system effectively mitigates the hallucinations common in end-to-end synthetic pipelines. The SKG acts as a rigid constraint, forcing the diffusion model to adhere to a specific spatial logic that raw text prompts cannot provide.
Directional vs. Distance Relationships
A significant finding in the study was the "Directional Advantage." Training on directional relationships (e.g., left, right, above) yielded a much higher performance boost than training on distance-based relationships (e.g., near, far). Directional cues appear to provide a more distinct and learnable signal for model grounding.
Object Density and Generalization
Increasing the number of objects within a scene—referred to as object density—was found to improve fine-grained recognition. Complex scenes require the model to disambiguate between similar entities, sharpening its perception. Furthermore, the authors noted a minimal "tax" on general intelligence; while spatial reasoning improved significantly, performance on general benchmarks like MMStar remained stable.
Results
Fine-tuning LLaVA-1.6 and Llama-3.2-Vision on SKG2DATA led to substantial performance gains across the board:
- Llama-3.2-Vision achieved a +13.9% improvement on the COCO-Spatial benchmark.
- LLaVA-1.6 saw a +4.7% increase on the MMVP benchmark, which is specifically designed to target visual "blind spots."
- Average performance across five major benchmarks increased by 1.8 to 4.0 points, demonstrating that synthetic spatial data generalizes effectively to real-world tasks.
Conclusion and Future Work
SKG2DATA demonstrates that structured spatial blueprints are essential for teaching MLLMs to understand the physical world. While the framework is highly effective, the authors note that as SKGs become more complex, current diffusion models struggle to render scenes with high object density and intricate overlaps. Future research will likely explore 3D spatial relationships and temporal consistency in video synthesis, moving toward a more comprehensive multimodal understanding of space and time.
Summary updated