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

GeoDiffuser: Geometry-Based Image Editing with Diffusion Models

Rahul Sajnani, Jeroen Vanbaar, Jie Min, Kapil D Katyal, Srinath Sridhar

TL;DR

GeoDiffuser introduces a unified, zero-shot method for 2D and 3D image editing using diffusion models. By treating edits as geometric transformations applied directly within the model's attention layers, it achieves realistic edits, preserves object style, and inpaints disoccluded regions without requiring additional training.

What Problem Does This Paper Address?

While diffusion models have revolutionized image generation, editing existing or generated images with precise spatial control, especially in 3D, remains a challenge. Existing methods often require extensive training, additional user input like text prompts or optical flow, or are limited to specific edit types (e.g., only 2D translation). This paper addresses the need for a general, flexible, and training-free approach to perform a variety of 2D and 3D geometric edits on images, ensuring realism and style preservation.

Methods

GeoDiffuser builds upon pre-trained diffusion models (specifically Stable Diffusion) and employs a zero-shot optimization approach. The core idea is to represent image editing operations (like translation, rotation, and removal) as geometric transformations. These transformations are then directly integrated into the shared attention layers of the diffusion model. This "shared attention" mechanism allows the model to implicitly perform edits while preserving the original image's style and context.

The process involves:

  1. DDIM Inversion: Obtaining a noise trajectory for the input image to serve as a reference.
  2. Geometric Transformation: Applying a user-specified 2D or 3D transformation to the foreground object. For 3D edits, depth maps are used to estimate the transformation.
  3. Shared Attention Optimization: An optimization objective is formulated to guide the diffusion process. This objective penalizes deviations from the reference image's style and background preservation while encouraging the desired geometric edit. Specific loss functions are introduced for background preservation, object placement, and object removal (to handle disocclusions).

Crucially, GeoDiffuser does not require fine-tuning the diffusion model itself; instead, it optimizes the latent representations and text embeddings.

Datasets

The paper uses real images from Adobe Stock for evaluation, specifically excluding AI-generated images. They collected images corresponding to prompts like "dog," "car," "cat," "bear," "mug," "lamp," "boat," "plane," and "living-room." They also tested on real in-the-wild images and generated images from prior work. No new datasets were introduced.

Key Insights and Ideas

  • Geometric Transformations as Attention Manipulation: The key insight is that geometric edits can be achieved by directly manipulating the query embeddings within the diffusion model's attention layers, rather than relying on external editing pipelines or complex prompt engineering.
  • Unified 2D and 3D Editing: By framing edits as geometric transformations, GeoDiffuser unifies diverse editing tasks (translation, rotation, scaling, removal) into a single, coherent framework.
  • Zero-Shot Optimization: The method's ability to perform edits without any additional training is a significant advantage, making it highly adaptable to different diffusion models.
  • Implicit Inpainting and Style Preservation: The shared attention mechanism naturally handles inpainting disoccluded regions and preserving the original object's style and lighting, which are common failure modes in other methods.

Key Results

GeoDiffuser demonstrates strong performance across various quantitative metrics, including Mean Distance (MD), Warp Error (WE), and Clip Similarity (CS).

  • Quantitative Comparison: GeoDiffuser outperforms baselines like Dragon Diffusion, FreeDrag, Diffusion Self Guidance, and Diffusion Handles in MD and Warp Error for both 2D and 3D edits. For example, its MD for 2D edits is 5.579, significantly lower than baselines.
  • Perceptual Study: A perceptual study with 53 participants showed that users preferred GeoDiffuser's inpainting results over LaMa 94.06% of the time and its geometric edits over Zero123-XL for realism (86.48%) and edit adherence (88.48%).
  • Qualitative Results: Visual examples showcase GeoDiffuser's ability to perform realistic 2D and 3D edits, including object translation, rotation, and removal, while accurately preserving object style, reflections, and shadows.

Limitations and Future Work

  • Foreground Disocclusions: The paper acknowledges that handling foreground object disocclusions resulting from large 3D rotations remains a challenge, as it requires accurate novel view synthesis.
  • Artifacts: The method can occasionally generate artifacts due to downsampled attention masks.
  • Base Model Dependency: The quality of edits is limited by the capabilities of the underlying base diffusion model.
  • Future Work: The authors plan to address foreground disocclusions and explore ways to mitigate artifacts. They also aim to improve the method's capabilities by leveraging more advanced diffusion models.

Summary updated

BibTeX
@inproceedings{sajnani2025geodiffuser,
  author = {Rahul Sajnani and Jeroen Vanbaar and Jie Min and Kapil D Katyal and Srinath Sridhar},
  title = {{GeoDiffuser: Geometry-Based Image Editing with Diffusion Models}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
}
Figure