Abstract
DreamOmni2 is a novel framework designed for multimodal instruction-based image editing and generation. Unlike traditional text-only or single-subject models, DreamOmni2 can process multiple reference images to extract and apply complex, abstract attributes—such as specific textures, lighting conditions, or poses—with high precision. The framework introduces a three-stage data synthesis pipeline and an architecture featuring index encoding and positional shifts to mitigate "pixel confusion." Evaluation on the DreamOmni2 Benchmark demonstrates superior performance in abstract attribute transfer and multi-image reasoning compared to existing state-of-the-art models.
Introduction
Current instruction-based image editing models, such as InstructPix2Pix, rely heavily on linguistic descriptions. However, language often lacks the precision required to capture nuanced textures, specific artistic styles, or complex human poses. Conversely, subject-driven generation models like DreamBooth are typically restricted to replicating concrete objects and struggle with abstract concepts.
DreamOmni2 addresses these challenges by enabling the extraction of complex attributes from multiple source images. The authors identify two primary bottlenecks in the field: the scarcity of high-quality datasets pairing multiple references with complex instructions, and architectural limitations that lead to "pixel confusion" or "copy-paste" artifacts when handling multiple inputs.
Methodology
DreamOmni2 introduces a robust three-stage data creation pipeline and a specialized architectural approach to overcome existing limitations.
Three-Stage Data Synthesis
- Feature Mixing: To avoid the resolution loss associated with standard "diptych" methods, the authors use a dual-branch attention mechanism to exchange features between batches, creating high-quality image pairs sharing abstract attributes.
- Extraction Model: A dedicated model is trained to extract specific attributes from a target image to generate a corresponding reference image.
- Multimodal Synthesis: These tools are combined to generate training triplets consisting of a source image, a multimodal instruction (text plus reference images), and the final target.
Model Architecture
Built upon the Flux Kontext model, DreamOmni2 incorporates Index Encoding to assign unique IDs to each input image and Position Encoding Shifts to offset positional embeddings. These features prevent the model from confusing overlapping pixel coordinates across different reference images. Additionally, a Vision-Language Model (Qwen2.5-VL) is fine-tuned to act as an interpreter, translating irregular user prompts into structured formats for the diffusion model.
Key Results and Insights
The framework was evaluated using the DreamOmni2 Benchmark, which includes 205 editing and 114 generation cases ranging from one to five reference images.
Abstract Attribute Transfer
A core strength of DreamOmni2 is its focus on abstract over concrete attributes. The model can identify a specific pattern or material on a reference object and transplant it onto a different target. In human evaluations, DreamOmni2 achieved a success rate of approximately 68% for abstract attribute editing, significantly outperforming GPT-4o (~58%) and Nano Banana (~33%).
Multi-Image Reasoning
The model excels at complex reasoning tasks where multiple references define different aspects of the final image. For example, it can combine subjects from two different images and place them in a pose defined by a third reference image.
Conclusion
DreamOmni2 represents a significant advancement in multimodal image editing by shifting the focus from simple object swapping to sophisticated attribute reasoning. By solving the "copy-paste" problem through architectural innovations and leveraging VLMs for instruction preprocessing, it provides a more intuitive and precise tool for users. Future work will focus on scaling the model to handle higher resolutions and a larger number of simultaneous reference images.
Summary updated