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

RoPEMover: Depth-Aware Object Relocation via Positional Embeddings

Ipek Oztas, Duygu Ceylan, Aybars Bugra Aksoy, Aysegul Dundar

TL;DR

RoPEMover is a novel image-editing method that achieves realistic, geometry-consistent object relocation in a single image by directly manipulating the internal Rotary Positional Embeddings (RoPE) of diffusion transformers. By repurposing an unused temporal axis in the transformer into a depth channel, the model explicitly controls 3D spatial layout, allowing it to seamlessly handle complex occlusions, perspective changes, and shadows with minimal training data.

What Problem Does This Paper Address?

Moving an object within a single image sounds simple, but it is a geometric nightmare for AI. It isn't just a 2D copy-paste operation; a realistic move requires the object to scale properly with perspective, cast new shadows, reflect accurately on surrounding surfaces, and cleanly reveal the background it used to block (disocclusion).

Existing approaches fall short in several ways:

  • Two-step methods (remove then insert) often destroy the object's identity or create mismatched lighting.
  • Drag-based methods suffer from a "copy-paste" effect, failing to update scene-dependent elements like reflections.
  • Video-diffusion models can capture motion priors but are computationally heavy and require massive datasets.

RoPEMover tackles these challenges by providing precise, geometry-aware spatial control directly within a single-image Diffusion Transformer (DiT), without needing explicit 3D reconstruction or massive video datasets.

Methods

Instead of relying on text prompts or external image generation pipelines to guess the new layout, RoPEMover directly alters the internal spatial awareness of the diffusion transformer.

Overview of the RoPEMover method, illustrating RoPE warping and depth injection.

The architecture relies on two core modifications:

  1. RoPE Warping: Rotary Positional Embeddings (RoPE) are standard components in modern transformers used to encode relative positions. RoPEMover explicitly warps the 2D RoPE coordinates of the tokens belonging to the target object. By shifting and scaling these embeddings during the early denoising steps ($t=20$), the model is tricked into synthesizing the object at the new target location while naturally preserving its identity.
  2. Depth-Aware 3D RoPE: To handle the third dimension, the authors exploit a clever architectural quirk. Multi-modal transformers like Qwen-Image use a factorized 3D RoPE that includes a virtual "temporal/context" axis, which goes unused during single-image editing. RoPEMover repurposes this axis as a depth channel.

At inference time, a monocular depth estimator (MoGe-2) computes the scene's depth. The background depth is inpainted, the object's depth is shifted by a user-specified offset ($\Delta z$), and the two are composited using a classic computer graphics z-buffer depth test. This synthetic depth map is then injected into the repurposed RoPE axis, giving the model explicit awareness of what is "in front" and what is "behind."

The entire system is trained using parameter-efficient fine-tuning via LoRA adapters on the attention and MLP layers of the transformer.

Datasets

RoPEMover demonstrates remarkable data efficiency by training on a mixture of synthetic and real data:

  • Synthetic Data (CLEVR): The authors generated datasets of 2,000, 5,000, and 10,000 paired scenes using basic geometric primitives where a single object is translated. This provided clean supervision for object motion and disocclusion.
  • Real Data: A small, custom dataset of 165 paired photographs was collected, showing real-world objects manually repositioned under consistent lighting and viewpoints.
  • Evaluation Benchmarks: The model was evaluated on ObjMove-A (200 image sets with ground-truth target views for quantitative testing) and ObjMove-B (used for qualitative user studies).

Key Insights and Ideas

  • Position as a Control Knob: The fundamental "aha!" moment is realizing that positional embeddings in transformers aren't just passive tags—they define a continuous, structured spatial field. Manipulating them is a highly effective way to control geometry without degrading feature representations.
  • Repurposing Unused Dimensions: Utilizing the idle temporal axis of a single-image transformer to inject depth is a elegant piece of engineering that avoids the need to alter the underlying network architecture.
  • Priors are Already There: The authors show that pretrained diffusion models already possess deep intrinsic knowledge of lighting, shadows, and 3D space. Synthetic data (like CLEVR) doesn't need to teach the model how to render; it merely teaches the model how to localize and parameterize the edit.

Key Results

RoPEMover achieves state-of-the-art performance on the ObjMove-A benchmark, outperforming strong baselines like ObjectMover, FreeFine, and MagicFixup across all metrics (CLIP, DINO, DreamSim, and PSNR). For instance, it achieved a PSNR of 24.97 dB, compared to ObjectMover's 24.06 dB and FreeFine's 22.81 dB.

Qualitative comparisons against competing image editing methods.

Qualitatively, the model excels at complex interactions:

  • Occlusion Handling: It can realistically place objects behind transparent or semi-opaque surfaces (e.g., moving a deodorant bottle behind a glass bottle).
  • Secondary Effects: It successfully relocates secondary scene elements, such as moving the reflection of an apple on a shiny pot along with the apple itself.
  • User Study: In a study with 20 volunteers evaluating 15 random samples, RoPEMover won a staggering 83.4% of the total votes across edit faithfulness, realism, and background consistency.

Limitations and Future Work

While powerful, RoPEMover inherits the standard computational overhead of multi-step diffusion sampling, leading to non-trivial inference times. Additionally, because it builds on top of a pretrained generative model, it can occasionally inherit the base model's inherent biases or failure modes. The authors suggest that exploring faster sampling techniques or tighter integration with downstream editing tasks could be fruitful avenues for future research.

Summary updated

BibTeX
@inproceedings{oztas2026ropemover,
  author = {Ipek Oztas and Duygu Ceylan and Aybars Bugra Aksoy and Aysegul Dundar},
  title = {{RoPEMover: Depth-Aware Object Relocation via Positional Embeddings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=FhXYTQAvpV},
}
Figure