RoPEMover: Depth-Aware Object Relocation
via Positional Embeddings

1Bilkent University, 2Adobe Research, 3Brown University
RoPEMover teaser

Our method enables realistic object displacement in a single image while correctly handling occlusions, revealing unseen regions, and preserving shadows and reflections. By extending RoPE to a depth-aware formulation, we explicitly control object ordering, allowing placement in front of or behind other scene elements. Beyond motion, the same framework supports downstream edits such as object removal and adding objects to a scene, achieving consistent illumination, shadow casting, and overall scene integration.

Abstract

Moving an object in a single image requires geometry-consistent spatial rearrangement, including handling occlusions, revealing previously unseen regions, and maintaining coherent shadows and reflections. Existing approaches are not well suited to this setting and often fail to preserve such scene-level consistency.

We address this problem by introducing a geometry-aware object motion method that operates directly on the positional representations of diffusion transformers. Our key insight is that rotary positional embeddings (RoPE) define a structured spatial field that can be explicitly manipulated to induce controlled motion. We extend 2D RoPE into a depth-aware formulation that encodes 3D spatial structure, enabling consistent object displacement and scene-aware updates.

Our model is trained using synthetic data combined with a small set of real images via parameter-efficient fine-tuning. Despite minimal real supervision, it preserves object identity under large spatial displacements, generates plausible content in newly revealed regions, and consistently updates scene-dependent effects such as shadows and illumination.

Experimental results on standard object motion benchmarks demonstrate state-of-the-art performance across all evaluation metrics.

Method

RoPEMover method overview
Overview of the method. Given an input image, object mask, and a user-specified drag signal (dx, dy, s), we encode the desired motion by warping the Rotary Positional Embeddings (RoPE) of tokens within the object region. A depth map is estimated and used to construct a depth-aware 3D RoPE representation, where depth is injected along the temporal axis. The modified tokens are processed by a diffusion transformer (DiT) to generate the edited image, enabling geometry-consistent object relocation with correct scaling and occlusion handling.

๐ŸŽฌ Interactive Demo

Watch RoPEMover in action: starting from a single image, a user paints an object mask, drags it to a new target location, and the depth-aware RoPE-warped diffusion transformer renders the edited scene โ€” handling occlusions, shadows, and newly revealed background regions automatically.

End-to-end demonstration of the RoPEMover pipeline: object selection, drag target placement, and depth-aware diffusion synthesis.

๐Ÿ”ฌ Comparison with State of the Art

We compare RoPEMover against 11 baselines on the ObjMove-A benchmark. Switch tabs to inspect different qualitative slices or the headline quantitative numbers.

Qualitative comparison with prior work

Qualitative comparisons against MagicFixUp, FreeFine, Inpaint4Drag, GeoDiffuser, Qwen-Image, FLUX Kontext, and Object Mover on ObjMove-A.

Additional qualitative comparisons โ€” set A

Additional qualitative comparisons โ€” Set A.

Additional qualitative comparisons โ€” set B

Additional qualitative comparisons โ€” Set B.

Method CLIP Score โ†‘ DINO Score โ†‘ DreamSim โ†“ PSNR (dB) โ†‘
TgtBGSrc TgtBGSrc TgtBGSrc
ChronoEdit73.2792.9377.6545.2791.1744.280.62610.10260.589620.49
3DiT75.7491.0883.2448.7886.8148.210.57230.17110.493418.59
DragAnything76.5182.2684.2848.8566.6936.210.44600.36810.523311.21
DragDiffusion74.4091.3580.0046.5186.9746.930.62370.13690.574119.56
Inpaint4Drag92.0896.4983.4685.0995.1055.540.13790.06320.479822.85
MagicFixup89.6296.0692.6080.9095.2978.490.17550.05520.185323.32
GeoDiffuser76.1393.7686.6453.1891.8859.730.54300.09870.410919.65
Qwen-Image81.2394.0181.2364.1492.1256.780.41320.10030.471919.04
FLUX Kontext76.2694.8078.8651.2692.5850.050.57190.10680.540219.21
FreeFine90.2696.0991.3382.1194.9171.300.16110.05640.242122.81
Object Mover85.3296.6188.6180.0896.2177.460.18490.04490.189524.06
Ours 91.74 97.59 94.67 87.40 97.57 87.37 0.1180 0.0292 0.1012 24.97

Comparison on the ObjMove-A benchmark. Bold = best, underline = second best. Higher-is-better for CLIP / DINO / PSNR; lower-is-better for DreamSim.

๐Ÿงช Ablation Study

We ablate the two key contributions of RoPEMover: the depth-aware RoPE warp, and the two-stage training pipeline (synthetic โ†’ real fine-tuning).

Ablation on architectural modifications

Architectural ablation. Starting from a pretrained Qwen-Image edit baseline, we progressively add (i) LoRA fine-tuning, (ii) RoPE-based spatial warping, and (iii) depth-aware 3D RoPE. Each step yields measurable gains in spatial control and identity preservation.

Stage 1 (synthetic) vs Stage 2 (synthetic + real)

Two-stage training. The Stage 1 model (synthetic-only) reliably relocates objects but loses fine appearance details. Stage 2 fine-tuning on a small captured real-image set restores identity and even relocates secondary effects like reflections.

Generalization and Applications

Object Addition

Object addition via copy-paste enhancement
Given an image with desired objects copy-pasted on top, our method performs object addition.

Generalization to Other DiT Editors

Generalization to FLUX.1 Kontext
Our method generalizes to other DiT-based editing models such as FLUX.1 Kontext.

BibTeX

@article{oztas2026ropemover,
  title   = {RoPEMover: Depth-Aware Object Relocation via Positional Embeddings},
  author  = {Oztas, Ipek and Ceylan, Duygu and Aksoy, Aybars Bugra and Dundar, Aysegul},
  journal = {arXiv preprint},
  year    = {2026}
}