Abstract
Current generative AI models often struggle with Visual Spatial Understanding (VSU), frequently failing to accurately represent complex 3D relationships like perspective and occlusion from 2D data. This paper introduces $SD^3$ (Spatial Dual Discrete Diffusion), a framework that treats spatial image-to-text (SI2T) and text-to-image (ST2I) generation as interconnected dual tasks. By utilizing a shared 3D Scene Graph (3DSG) as a bridge and employing discrete diffusion, $SD^3$ enables models to navigate the 3D world more effectively. Our approach significantly outperforms existing state-of-the-art models on spatial benchmarks, providing more accurate image generation and descriptive captions.
Introduction: The 3D Gap in 2D Models
While modern AI can generate high-fidelity images and captions, it often lacks a fundamental grasp of geometry. A standard model might struggle to correctly place a "dog behind a chair," often resulting in perspective errors or incorrect positioning. The root cause is that 2D images are flat projections of a 3D world, losing critical depth and layout information. Furthermore, text is inherently abstract and lacks explicit geometric coordinates.
Existing approaches typically treat Image-to-Text (I2T) and Text-to-Image (T2I) as isolated problems. The authors of $SD^3$ argue that these tasks are two sides of the same coin and that a shared 3D intermediate representation is essential for true spatial mastery.
The $SD^3$ Framework
The Spatial Dual Discrete Diffusion ($SD^3$) framework is built upon three core pillars designed to bridge the gap between 2D modalities and 3D reality.
1. Dual Learning and Easy-to-Hard Guidance
$SD^3$ recognizes that SI2T and ST2I are inverse processes. In the SI2T pipeline, estimating a 3D scene from a 2D image is a "hard" task due to depth ambiguity, while generating a text description from a structured 3D scene is relatively "easy." Conversely, in ST2I, reasoning a 3D scene from text is "hard," but rendering an image from a known 3D layout is "easy."
By training these tasks together, the framework allows the "easy" components to provide guidance and intermediate feature sharing for the "hard" components, effectively regularizing the learning process.
2. 3D Scene Graphs (3DSG) as a Universal Bridge
Instead of direct modality translation, $SD^3$ maps both text and image inputs to a shared 3D Scene Graph (3DSG). This graph acts as a structured "mental model," containing objects, their 3D attributes (like pose and scale), and their spatial relationships (e.g., "underneath," "left of"). This modality-agnostic representation ensures the model focuses on core geometry rather than being distracted by superficial visual features like texture or color.
3. Discrete Diffusion for Structured Layouts
Unlike standard latent diffusion models that operate in continuous space, $SD^3$ utilizes discrete diffusion. This choice is motivated by the categorical nature of spatial layouts—objects occupy specific discrete regions, and relationships are inherently symbolic. Discrete diffusion is more computationally efficient for these structured representations and helps filter out background noise to focus on scene logic.
Training and Evaluation
The model undergoes a four-step curriculum training process, starting with pre-training graph components and ending with a full dual-learning optimization that aligns the visual and textual features. The primary benchmark is the Visual Spatial Understanding (VSD) dataset, containing ~30,000 images with complex spatial annotations. The authors also leveraged Matterport3D (MP3D) and 3DSSG for robust 3D grounding.
Key Results
$SD^3$ demonstrates superior performance across all spatial metrics:
- Text-to-Image (ST2I): On the challenging VSDv2 dataset, $SD^3$ achieved a state-of-the-art FID of 10.09, significantly better than the previous best of 11.41. It also showed higher CLIP scores, indicating better prompt adherence.
- Image-to-Text (SI2T): The model reached a BLEU4 score of 27.63, outperforming the 3DVSD baseline (26.40).
- Human Evaluation: In blind tests, human raters preferred $SD^3$ for its "Spatial Accuracy," confirming that the generated scenes faithfully respect complex spatial constraints.
Conclusion and Future Directions
$SD^3$ represents a significant step toward spatial AI by integrating 3D scene graphs into a dual-learning diffusion framework. While highly effective for static scenes, future work will focus on scaling these capabilities to massive Multimodal Large Language Models (MLLMs) and extending spatial awareness to dynamic video environments where relationships evolve over time.
Summary updated