Toward 360-Degree Indoor Panorama Editing via Tuning-Free Diffusion Model with Refocusing Cross-Attention

Dinh-Khoi Vo, Nhut-Thanh Le-Hinh, Viet-Tham Huynh, Tam V. Nguyen, Minh-Triet Tran, Trung-Nghia LearXiv 2026

TL;DR

FocusDiff is a novel, tuning-free image editing framework that achieves precise, region-specific modifications by applying selective blurring to non-target areas, effectively "refocusing" the diffusion model's attention onto the target object. It successfully tackles the long-standing challenges of editing small or cluttered objects without altering the background, and seamlessly extends to interactive 360-degree indoor panorama editing within Virtual Reality (VR) environments.

What Problem Does This Paper Address?

While zero-shot text-guided diffusion models have revolutionized image generation, applying them to precise, localized image editing remains notoriously difficult. Current state-of-the-art editors suffer from three major flaws:

  1. Prompt Brittleness: Users must engage in meticulous prompt engineering to get the desired result.
  2. Spillover Edits: Changes intended for a specific object often bleed into and distort the non-target background regions.
  3. Small-Object Failure: Diffusion models are typically trained on large-scale datasets lacking fine-grained object descriptions, causing them to ignore or fail when modifying small or cluttered objects.

Existing localized editing methods try to fix this by blending latent noise or using strict masking, but they often overlook complex foreground-background interactions, leading to rigid, unnatural edits or no visible changes at all. The challenge escalates further in 360-degree panoramic images, where target objects occupy a minuscule fraction of the overall high-resolution canvas.

Methods

The authors introduce FocusDiff (Target-Aware Refocusing for Tuning-Free Diffusion Editing), a framework that requires no model fine-tuning or optimization. Its architecture relies on three core pillars:

  • Refocusing Cross-Attention (RCA): To force the model to focus on a specific area, the input image is processed in two parallel flows: the original image and a version where non-editing areas are selectively blurred. Both are inverted into latent noise space using DDIM inversion. During denoising, mask-guided attention extracts the target object's identity, structure, and appearance from the blurred latent flow and transfers it directly to the edited latent flow, sharpening the model's focus on the target zone.
  • Context-Preserving Integration (CPI): To ensure the background doesn't degrade or warp during this process, FocusDiff integrates key-value feature pairs from the original and blurred inversions. This stabilizes the unedited regions, maintaining global coherence and background fidelity.
  • Panoramic VR Extension: To handle massive 360-degree indoor panoramas, the system uses a localized cropping strategy. It crops a region of interest around the target mask, applies the FocusDiff editing pipeline locally to save computational overhead, and then seamlessly aligns and blends the edited patch back into the original panorama. The authors implemented this as an interactive VR interface using Unity and Meta Quest 2.
[Input Image] ---> [Parallel Latent Flows: Original & Blurred]
                          |
                          v
           [Refocusing Cross-Attention (RCA)]  <--- Focuses on Masked Target
                          |
                          v
         [Context-Preserving Integration (CPI)] <--- Stabilizes Background
                          |
                          v
                   [Edited Output]

Datasets

To rigorously evaluate localized editing performance, the authors introduced a new benchmark:

  • LIMB (Localized Image Manipulation Benchmark): A specialized subset of PIE-Bench consisting of 30 multi-object images. It features 100 meticulously annotated examples with precise masks and text prompts, specifically designed to test challenging scenarios like small-object manipulation and complex spatial layouts.

Key Insights and Ideas

  • Blurring as an Attention Director: Instead of modifying the neural network's weights or loss functions, FocusDiff uses a simple, lightweight image-processing trick—selective blurring—in a parallel latent stream. This naturally guides the cross-attention layers of a frozen U-Net to focus on sharp details, acting as an implicit guidance mechanism.
  • Model-Agnostic Scalability: Because it operates entirely on the attention maps and latent flows without changing internal structures, the framework scales exceptionally well to larger, more powerful backbones like Stable Diffusion v2.1 and SDXL. In fact, the higher density of attention layers in SDXL inherently amplifies FocusDiff's efficacy.

Key Results

FocusDiff was tested against leading zero-shot editors (including MasaCtrl, Blended-Diffusion, DiffEdit, LEDITS++, and CPAM) using CLIPScore for text-image alignment and LPIPS for background preservation.

  • Quantitative Performance: On the LIMB benchmark, FocusDiff paired with Stable Diffusion v1.5 outperformed all baselines. When scaled to SDXL, FocusDiff achieved the top overall performance with an outstanding LPIPS of 0.064 (lowest background distortion) and a CLIPScore of 36.48 (highest text alignment).
  • Qualitative Superiority: Visual results demonstrated that while competing methods frequently failed to modify small objects or introduced catastrophic background corruption, FocusDiff delivered seamless, photorealistic object replacements and removals.
  • VR Usability: A user study involving 20 participants evaluating the VR panoramic editing system yielded a System Usability Scale (SUS) score of 77.12/100, indicating high usability and strong potential for immersive media applications.

Limitations and Future Work

Despite its strengths, the authors note a few limitations:

  • Static Blurring: The blur radius and region are predefined and cannot adapt dynamically during the denoising steps, which slightly limits fine-grained control.
  • Computational Overhead: The parallel pipeline requires processing five image variants simultaneously, which increases inference time and computational costs.
  • Mask Generation Weakness: The VR sketching tool uses simple linear interpolation to close user stroke contours, which can struggle to align perfectly with complex semantic boundaries if the user's drawing is too sparse.

Future work will focus on optimizing the framework's efficiency, developing semantic-aware contour completion for better mask generation, and implementing safety safeguards against potential deepfake misuse.

Summary updated

Abstract

Zero-shot text-guided diffusion has significantly advanced image editing; however, its practical usability remains constrained by three persistent challenges: prompt brittleness that requires meticulous prompt engineering, spillover edits that unintentionally affect non-target regions, and failures on small or cluttered objects caused by limited fine-grained supervision in training data. We propose FocusDiff (Target-Aware Refocusing for Tuning-Free Diffusion Editing), a tuning-free framework for precise and region-specific image manipulation based on refocusing cross-attention. Given a target region obtained through automated segmentation or manual selection, FocusDiff applies selective blurring to non-edit areas to guide attention toward the masked region while accurately transferring the object's identity, structure, and appearance to the edited output. Integrated context-preserving modules further ensure background fidelity and global coherence, enabling accurate edits from simple text prompts in a single pass. We also extend FocusDiff to 360-degree indoor panorama editing and demonstrate its effectiveness within virtual reality environments. Extensive experiments on our localized editing benchmark LIMB, comprising 30 multi-object images and 100 annotated examples including challenging small-object cases, show that FocusDiff outperforms existing zero-shot editors in text-image alignment and background preservation, achieving superior precision, photorealism, and usability. The project page is available at https://vdkhoi20.github.io/FocusDiff.
BibTeX
@misc{vo2026toward,
  author = {Dinh-Khoi Vo and Nhut-Thanh Le-Hinh and Viet-Tham Huynh and Tam V. Nguyen and Minh-Triet Tran and Trung-Nghia Le},
  title = {{Toward 360-Degree Indoor Panorama Editing via Tuning-Free Diffusion Model with Refocusing Cross-Attention}},
  year = {2026},
  eprint = {2606.14035},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.14035},
}

Loading related content...

Figure