Editing Everything Everywhere All at Once

Fabio Quattrini, Carmine Zaccagnino, Enis Simsar, Marta Tintoré Gazulla, Rita Cucchiara, Alessio Tonioni, Silvia CascianelliarXiv 2026

TL;DR

MICE (Multi-Instance Concurrent Editing) is a training-free, architecture-agnostic strategy that enables text-to-image diffusion models to edit multiple image elements simultaneously in a single forward pass. By replacing rigid binary attention masks with a continuous, instance-aware smoothed attention bias, MICE eliminates semantic interference and attribute leakage between edits while maintaining global visual harmony.

What Problem Does This Paper Address?

Imagine wanting to edit a complex image: changing a cup to a water bottle, replacing the ceiling tiles with wooden beams, and turning a whiteboard into a blackboard all at once.

Current state-of-the-art image editors typically handle this in one of two ways, both flawed:

  1. Sequential (Multi-Turn) Editing: Edits are performed one after another. This is incredibly time-consuming, causes visual quality to degrade over multiple iterations, and makes the final output highly dependent on the order in which edits are made.
  2. Concurrent Editing: Edits are performed all at once. However, because standard Multimodal Diffusion Transformers (MMDiTs) use global attention mechanisms, the semantic signals from different instructions interfere with one another. This leads to attribute leakage—for instance, the color intended for one object accidentally bleeds into another.

Existing attempts to fix concurrent editing either rely on "multi-branch" architectures that cause VRAM and inference times to explode, or use hard binary attention masks ($0$ or $-\infty$) that create unnatural, unharmonized seams around edited objects and require tedious, architecture-specific layer tuning.

Fig. 1: Our MICE approach modifies the joint attention maps of MMDiT-based flow matching generative models to concurrently edit multiple elements at inference time.

Methods

MICE introduces a elegant, training-free solution by directly modifying the additive bias matrix ($\mathbf{B}$) within the joint attention mechanism of MMDiTs (such as FLUX). Instead of enforcing hard structural constraints, MICE reshapes token interactions using a continuous, spatially-smoothed formulation:

  1. Instance-Aware Smoothing: MICE takes binary segmentation masks for each target edit area, downsamples them to match the model's latent space, and applies a 2D Gaussian convolution. To prevent neighboring edits from bleeding into each other during this smoothing phase, any value that expands into another instance's original mask territory is explicitly overridden to 0.
  2. Log-Probability Mapping: These smoothed continuous values $[0, 1]$ are mapped into log-probability space $(-\infty, 0]$ and scaled by a temperature hyperparameter $\tau$. This acts as a soft penalty: tokens within an instance attend to each other normally (bias = 0), attend to immediate neighbors with a soft penalty (dampened attention for smooth blending), and are completely blocked from attending to unrelated distant instances (bias = $-\infty$).
  3. Token Partitioning: MICE logically groups prompt, latent, and context tokens. It enforces strict isolation between different instance-specific text prompts to prevent attribute leakage in the textual domain, while keeping the background latents and global prompts unbiased to ensure overall visual coherence.
Fig. 2: Instance-aware smoothing strategy. Each segmentation mask is smoothed inde- pendently, and the smoothed values are zeroed when touching the edge of a neighboring, non-smoothed mask (e.g., the red and yellow masks). If an instance is sufficiently dis- tant from the others, its mask is smoothed with no constraints (e.g., the blue mask).

Datasets

The authors evaluated MICE on two benchmarks:

  • LoMOE-Bench: An existing parallel multi-instance editing dataset containing 64 images. However, it averages only 3 concurrent edits per image (capped at 7), making it insufficient for stress-testing complex scenarios.
  • MICE-Bench: A new, highly challenging benchmark introduced in this paper specifically for high-density editing. It features 260 samples annotated from the LVIS and COCO validation sets, with object counts ranging from 5 to 40 and an average of 8.5 concurrent edits per image.

Key Insights and Ideas

  • Soft Biasing vs. Hard Masking: Hard binary masking successfully isolates semantics but destroys local lighting and contextual blending, leaving behind ugly artifacts. Continuous Gaussian decay allows edited objects to naturally adapt to the illumination and style of their immediate surroundings.
  • The Overlap Resolution: Naive smoothing causes nearby masks to overlap, which actually worsens attribute leakage in dense scenes. Explicitly zeroing out neighboring instance pixels before mapping to log-probabilities preserves distinct boundaries while still allowing background harmonization.
  • Efficiency Scaling: Because MICE operates entirely within a single forward pass ($O(1)$ forward steps per denoising iteration), its VRAM footprint and inference duration remain virtually flat as the number of edits scales up. This stands in stark contrast to multi-branch methods, which scale linearly ($O(N)$) and quickly trigger out-of-memory errors on standard hardware.

Key Results

  • Quantitive Performance: MICE consistently improved the Localized CLIP Score (Loc C)—which measures how faithfully an edit matches its specific local instruction—across various backbones (FLUX.2 4B/9B, FLUX.1 Kontext, and FLUX.2-Dev). On the dense MICE-Bench, MICE achieved a Loc C of 26.85 (using FLUX.2 4B), outperforming competitive baselines like IDAttn (25.54) and LoMOE (26.04).
  • Human & LLM Evaluation: In comprehensive LLM-as-judge (using Gemini 3.1 Pro) and human user studies evaluating prompt faithfulness and background preservation, MICE achieved the highest ELO scores on both benchmarks, outperforming commercial heavyweights like Gemini 3 Pro Image and open-source alternatives like Qwen-Image-Edit.
  • Robustness to Masks: The authors demonstrated that MICE works remarkably well even when fed imperfect, automatically generated masks from segmentors like SAM3, proving its viability for real-world applications where users provide simple point-clicks instead of precise masks.

Limitations and Future Work

  • Hyperparameter Sensitivity: The kernel size ($k$) and temperature ($\tau$) control the spatial extent and strength of the blending. While the method is generally robust, these parameters currently require manual adjustment depending on the edit type (e.g., major shape changes require larger kernels to blend smoothly, while texture swaps favor smaller, localized settings). Automating this hyperparameter selection based on text prompt semantics remains an open direction.

Summary updated

BibTeX
@misc{quattrini2026editing,
  author = {Fabio Quattrini and Carmine Zaccagnino and Enis Simsar and Marta Tintoré Gazulla and Rita Cucchiara and Alessio Tonioni and Silvia Cascianelli},
  title = {{Editing Everything Everywhere All at Once}},
  year = {2026},
  eprint = {2606.31278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.31278},
}
Figure