Introduction
Modern diffusion models, such as Stable Diffusion 3 and FLUX, demonstrate remarkable proficiency in generating high-fidelity images from textual descriptions. However, these models often falter when tasked with complex, high-level instructions that interleave textual and visual elements. For instance, merging specific visual concepts from multiple reference images using natural language remains a significant challenge. While existing solutions like IP-Adapter or ControlNet provide low-level control, they lack the semantic flexibility required for sophisticated multi-image interleaved prompting.
DREAM ENGINE addresses this gap by leveraging the inherent visual-language understanding of Large Multimodal Models (LMMs). The core premise is that text-image interleaved control is more accessible than previously thought because LMMs already provide a unified representation space for both modalities.
The DREAM ENGINE Framework
The architecture of DREAM ENGINE represents a departure from traditional diffusion pipelines. Instead of the standard CLIP and T5 text encoders used in models like Stable Diffusion 3.5, DREAM ENGINE employs a frozen LMM (specifically QwenVL-2B-Instruct) as its primary conditioning engine.
Key architectural innovations include:
- Unified Encoding: By using an LMM, the model can process interleaved sequences of text and image tokens natively.
- Visual Feature Blending: To ensure the preservation of fine-grained visual details—which can sometimes be lost in the deep semantic layers of an LMM—the authors introduced a skip connection. This blends the LMM's deep hidden states with raw visual features from its internal Vision Transformer (ViT).
- Lightweight Adaptation: A simple 2-layer MLP adapter bridges the LMM's output space with the input space of the Diffusion Transformer (MM-DiT).
Training Methodology
The framework is optimized through a streamlined two-stage training recipe:
- Alignment Stage: During this phase, both the LMM and the DiT are frozen. Only the MLP adapter is trained on text-to-image and image-to-image reconstruction tasks using datasets like JourneyDB and CC12M. This aligns the LMM’s multimodal representations with the DiT’s generative capabilities.
- Instruction Tuning Stage: The DiT is unfrozen (utilizing LoRA) alongside the adapter. The model is then trained on complex interleaved tasks, such as free-form image editing and object-driven generation, using datasets like UltraEdit.
Experimental Results
DREAM ENGINE demonstrates state-of-the-art performance across several benchmarks without compromising the base model's text-to-image quality.
- Text-to-Image Fidelity: On the GenEval benchmark, DREAM ENGINE achieved a score of 0.69, nearly matching the 0.71 score of the base SD3.5 model and surpassing FLUX.1 Dev (0.66).
- Image Reconstruction: The model significantly outperforms baselines in visual preservation. On a COCO-based reconstruction benchmark, it achieved an L2 distance of 0.2065, a 46% improvement over EMU2-Gen.
- Compositional Mastery: Qualitatively, the model excels at following complex instructions, such as changing subjects while maintaining background consistency or synthesizing elements from multiple disparate reference images into a single scene.
Conclusion
DREAM ENGINE proves that sophisticated multimodal control does not require complex architectural overhauls. By effectively repurposing the latent knowledge within frozen LMMs through a simple alignment strategy, diffusion models can achieve unprecedented levels of compositional and interleaved control. Future work may extend this paradigm to video and 3D generation, further expanding the horizons of AI-driven creativity.
Summary updated