Abstract
The emergence of Large Language Models (LLMs) has unified language generation tasks and revolutionized human-machine interaction. However, in the realm of image generation, a unified model capable of handling various tasks within a single framework remains largely unexplored. In this work, we introduce OmniGen, a new diffusion model for unified image generation. OmniGen is characterized by unification, simplicity, and knowledge transfer. It demonstrates text-to-image generation capabilities and inherently supports various downstream tasks, such as image editing, subject-driven generation, and visual-conditional generation, without the need for additional plugins.
Introduction: The "ChatGPT Moment" for Image Generation
While Large Language Models like GPT-4 have unified diverse linguistic tasks into a single interface, the field of image generation has remained fragmented. Current workflows often rely on a "plugin-heavy" ecosystem, requiring separate models or modules like ControlNet for pose control or IP-Adapter for subject consistency. This fragmentation creates cumbersome pipelines and limits the potential for cross-task knowledge sharing.
OmniGen addresses this by serving as a "generative foundation model" for images. It is a single transformer-based diffusion model that understands and executes diverse visual tasks natively through natural language instructions, effectively providing an end-to-end "instructions-in, image-out" experience.
Methodology
OmniGen's architecture is built on the principles of universality and conciseness. It moves away from complex multi-encoder systems, consisting of only two primary components: a Variational Autoencoder (VAE) for image encoding/decoding and a large Transformer backbone initialized from the Phi-3 LLM.
The model treats all inputs—text and images—as interleaved sequences. Text is tokenized, while images are processed by the VAE and flattened into patches. To maintain visual coherence, the standard causal attention of the LLM is modified to allow bidirectional attention within each image sequence, while remaining causal across the overall sequence. Furthermore, OmniGen utilizes a rectified flow approach to simplify the diffusion path, leading to higher-quality sampling.
Datasets and Training
The model's capabilities are rooted in the newly curated X2I (Anything-to-Image) dataset, which contains approximately 100 million images. This dataset unifies diverse data types:
- Text-to-Image: Massive datasets like Recap DataComp and JourneyDB.
- Multi-modal to Image: Tasks including virtual try-on, style transfer, and image editing.
- Subject-driven Data: High-quality people-centric data and the GRIT-Entity dataset.
- Computer Vision Tasks: Low-level and high-level tasks like deblurring, pose estimation, and segmentation, all converted into an image-to-image format.
Key Insights and Unified Capabilities
OmniGen demonstrates significant knowledge transfer across tasks, leading to "emerging capabilities." Because the model is trained on computer vision tasks (e.g., pose detection), it internally learns spatial representations that it can then use as conditions for generation without external guidance.
The model also exhibits reasoning capabilities, such as identifying objects based on functional descriptions (e.g., "where can I wash my hands?") and performing unseen tasks in-context. By removing the need for specialized encoders like CLIP, the 3.8B parameter model achieves higher efficiency and performance than much larger multi-model stacks.
Key Results
OmniGen achieves state-of-the-art performance across several benchmarks:
- GenEval: Scored 0.70, outperforming SD3 (0.68) and DALL-E 3 (0.67).
- Subject Consistency: Achieved a CLIP-I score of 0.801 on DreamBench, rivaling specialized models like DreamBooth without requiring subject-specific fine-tuning.
- Image Editing: Matched the performance of leading proprietary models on the EMU-Edit benchmark.
Limitations and Future Work
Despite its advancements, OmniGen faces challenges in accurate text rendering and fine anatomical details (e.g., finger counts). It also struggles with niche image modalities not present in its training data. Future research will focus on supervising the step-by-step generation process to further enhance the model's reasoning and detail fidelity.
Summary updated