TL;DR
This paper introduces a scalable multi-image editing framework for Unified Multimodal Models (UMMs) that resolves image identity confusion and generalizes to variable input counts. By introducing learnable latent separators and sinusoidal index encodings, the model preserves visual consistency across multiple reference images. Additionally, the authors propose an "inverse editing" dataset pipeline to build MMIE-Bench, a high-fidelity benchmark for multi-image editing evaluation.
What Problem Does This Paper Address?
Unified Multimodal Models (UMMs) have successfully unified multimodal understanding and generation by combining Large Multimodal Models (LMMs) with diffusion-based image generators. While these models excel at single-image editing and text-to-image generation, they struggle significantly with multi-image editing—tasks requiring the model to reference details across multiple distinct source images (e.g., "take the car from image 1, apply the texture from image 2, and place it in the background of image 3").
The authors identify two primary bottlenecks in current architectures:
- Image Identity Confusion: Standard positional encodings, such as Multimodal Rotary Position Embeddings (RoPE), excel at capturing relative spatial distances between tokens but lack a concept of absolute image identity. When multiple image latents are concatenated into a sequence, the model confuses which token belongs to which image, leading to mixed-up styles and objects.
- Rigid Input Constraints: Existing models are typically trained on a fixed number of input images and fail to generalize or extrapolate when presented with a variable number of reference images at test time.
Methods
To give UMMs explicit image-wise awareness and the ability to extrapolate, the authors propose two main architectural modifications within a Diffusion Transformer (MM-DiT) backbone:
- Learnable Visual Separator Tokens (
<sep>): The framework inserts a shared, learnable token between the visual token sequences of consecutive images. This acts as a soft boundary in the latent space, preventing feature mixing and providing transition semantics that help the model modulate cross-image attention. - Generalized Sinusoidal Index Embedding: To complement the separator tokens, every token belonging to the same image is assigned an identical continuous sinusoidal index embedding ($E_j$). By normalizing the image index ($\tilde{j} = j/N$, where $N$ is the total number of images), this non-learnable embedding allows the model to smoothly extrapolate to an unseen number of input images during inference without performance degradation.
Together with standard RoPE, these components form a hierarchical positional system that models local spatial structures, global image identity, and inter-image segmentation.
Datasets
A major hurdle in multi-image editing is obtaining high-quality training data. Traditional methods rely on copy-pasting or synthetic blending, which introduces unnatural artifacts.
To circumvent this, the authors use an Inverse Editing Synthesis strategy. They start with a real, high-quality target image from datasets like Subject200K and UNO1M. They then use a single-image editing model backward to synthetically remove or replace key objects, generating the source and reference images. This ensures that the ground-truth target image is completely photorealistic and artifact-free.
Using this pipeline, they introduce the Multimodal Multi-Image Editing Benchmark (MMIE-Bench). It contains 274 curated examples spanning six complex task categories: Addition, Replacement, Style Transfer, Human Editing, Reasoning, and Mixed editing, with input image counts ranging from two to five.
Key Insights and Ideas
- Absolute vs. Relative Identity: Relative position embeddings (like RoPE) are insufficient for multi-context tracking. Explicit absolute boundaries are required to prevent token "leakage" between distinct image sources.
- Extrapolation via Normalization: Normalizing the image index by the total count ($\tilde{j} = j/N$) before passing it to a sinusoidal function provides a mathematically elegant mechanism for zero-shot scaling to larger image sets.
- The Power of Inversion: Reversing the dataset generation process guarantees that the model learns from physically plausible, real-world target distributions rather than synthetic composites.
Key Results
The framework was evaluated against state-of-the-art baselines including Qwen-Edit, DreamOmni2, and OmniGen2 using advanced LMMs (Qwen2.5-VL-72B and Doubao-1.6) across three dimensions: Semantic Consistency (SC), Visual Fidelity (VF), and Multi-Image Integration (MI).
- Performance Boost: The proposed method consistently outperformed baselines across all six task families, showing an average improvement of around 0.5 points on a 1–5 rating scale over the
Qwen-Editbaseline. - Complex Compositional Reasoning: On the highly demanding "Mixed" task (combining addition, replacement, and style transfer), the model achieved a score of 3.30, significantly outperforming the next best baseline (3.09).
- Zero-Shot Generalization: When tested on an unseen 5-image input configuration (despite being trained primarily on 2-image data), the model successfully followed instructions without generating noisy artifacts, whereas standard UMMs completely failed to generalize.
Limitations and Future Work
- Periodic Ambiguity: Due to the periodic nature of sine and cosine functions, the sinusoidal index embedding might introduce ambiguity if scaled to an extremely large number of input images (e.g., dozens of images).
- Evaluation Bottleneck: Automated evaluation relies heavily on the visual capabilities of current LMMs. Fine-grained details, such as hand distortions or subtle texture mismatches, are occasionally missed by the automated evaluators, indicating a need for more robust multimodal evaluation metrics.
Summary updated