NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SpatialDiff: 3D-Aware Object Movement via Implicit Spatial Modeling

Zheng Liu, Zijian He, Huiguo He, Weizhi Zhong, Yejun Tang, Huan Yang, Kun Gai, Guanbin Li

TL;DR

SpatialDiff is a novel instruction-driven image editing framework that enables precise, 3D-aware object movement within a 2D diffusion process. By combining implicit 3D spatial modeling with latent depth supervision, it successfully navigates complex scenes with occlusions and depth variations without requiring fragile, explicit 3D reconstructions.

What Problem Does This Paper Address?

Moving an object within a single image using text instructions (e.g., "move the cup onto the windowsill") is surprisingly difficult for current generative models.

Purely 2D diffusion models lack an understanding of depth and 3D geometry, which often causes them to generate flat, unrealistic movements, distort object perspectives, or leave behind ugly "ghosting" artifacts where the object used to be. Conversely, explicit 3D-aware editing methods attempt full 3D reconstruction from a single image. Single-image 3D reconstruction is an inherently ill-posed problem; viewpoint ambiguities and occlusions make it fragile and prone to failure in complex, real-world scenes.

SpatialDiff bridges this gap by implicitly injecting 3D spatial priors directly into a 2D Diffusion Transformer (DiT) framework, giving the model a "mental map" of the 3D scene without the overhead of full reconstruction.

Methods

SpatialDiff introduces two core innovations to achieve 3D-aware editing within a 2D pipeline:

  1. Implicit 3D Spatial Modeling (ISM): Instead of explicitly reconstructing the scene, SpatialDiff uses a pretrained 3D foundation model (VGGT) as a 3D Visual Geometry Encoder (3D-VGE) to extract geometry-aware features from the input image. A learnable Connector module uses cross-attention to map and align these 3D geometric tokens into the latent space of the Diffusion Transformer (DiT). This allows the model to natively reason about depth and spatial relationships during generation.
  2. Global Spatial Supervision (GSS): While ISM helps the model understand the initial 3D layout, it doesn't inherently teach it how to dynamically update the background when an object moves. To fix this, the authors introduce a training constraint: they use a monocular depth estimator (DepthAnything) on the target image and enforce consistency between the DiT's processed spatial tokens and the target depth map within the VAE latent space.

To ensure stable convergence, the authors employ a two-stage training strategy. In the first stage, only the Connector module is optimized to align 3D features with the DiT space. In the second stage, the DiT backbone, Connector, and a spatial decoder head are jointly fine-tuned.

Pipeline of SpatialDiff

Datasets

Due to a lack of existing datasets for instruction-driven spatial object movement, the authors constructed their own evaluation and training sets:

  • OBJect-3DIT Adaptation: The authors collected source and target images from the OBJect-3DIT dataset and used the Qwen3-VL-32B-Instruct multimodal model to generate 20,000 natural language instruction triplets (source image, instruction, target image).
  • SpatialBench: A newly introduced benchmark consisting of 100 complex real-world images featuring distinct foreground, midground, and background objects to rigorously test multi-depth spatial reasoning and occlusion handling.

Key Insights and Ideas

  • Implicit > Explicit 3D: Full 3D reconstruction is overkill and too fragile for single-image editing. Aligning implicit geometric features directly to the diffusion model's latent space provides the necessary spatial awareness without vulnerability to reconstruction errors.
  • Latent vs. Pixel Depth Supervision: The authors discovered that enforcing depth consistency in the VAE latent space (Latent Depth Supervision) works significantly better than doing it in the pixel space (Explicit Depth Supervision). Latent supervision focuses on high-level spatial and semantic relationships, leading to smoother, more natural edits. Pixel-space supervision over-constrains the model, causing it to accidentally erase or distort unedited regions.
  • Static Memory vs. Dynamic Updates: Simply giving a model 3D features helps it understand where things start, but Global Spatial Supervision acts as the crucial dynamic guide to ensure the entire scene updates coherently when an object changes position.

Key Results

SpatialDiff achieves state-of-the-art results across both automated MLLM evaluations (GPT-5 and Qwen3-VL) and human user studies.

  • Quantitative Performance: On the SpatialBench dataset, SpatialDiff scored 0.843 on the GPT-Overall metric, substantially outperforming the next best model, Qwen-Image-Editing (0.766), and leaving baseline models like Flux-Kontext (0.498) far behind.
  • Qualitative Excellence: As shown in the comparisons, SpatialDiff demonstrates an impressive ability to handle complex spatial commands. For instance, when told to "move the table to the left side of the blue sofa," it correctly interprets "left" relative to the 3D structure of the sofa rather than the 2D camera viewpoint, all while keeping the background intact.
Qualitative Comparison

Limitations and Future Work

The authors do not explicitly dedicate a section to limitations, but a few details are apparent from the architecture:

  • Upstream Dependencies: SpatialDiff relies heavily on the quality of the frozen 3D foundation model (VGGT) and the monocular depth estimator (DepthAnything). If these models fail to grasp a highly ambiguous scene's geometry, SpatialDiff's editing performance will likely degrade.
  • Future Directions: Promising future work includes extending this implicit spatial awareness framework from single-image editing to video editing, where maintaining 3D consistency over time is an even greater challenge.

Summary updated

BibTeX
@inproceedings{liu2026spatialdiff,
  author = {Zheng Liu and Zijian He and Huiguo He and Weizhi Zhong and Yejun Tang and Huan Yang and Kun Gai and Guanbin Li},
  title = {{SpatialDiff: 3D-Aware Object Movement via Implicit Spatial Modeling}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=uSygav8LMp},
}
Figure