TL;DR
This paper introduces Implicit Multimodal Guidance (IMG), a novel framework that improves the alignment between text prompts and generated images from diffusion models. Unlike existing methods that require extensive data or complex editing pipelines, IMG uses a multimodal large language model (MLLM) to identify misalignments and then implicitly refines diffusion conditioning features for re-generation, leading to more accurate and higher-quality outputs.
What Problem Does This Paper Address?
Diffusion models have become incredibly adept at generating realistic images from text prompts. However, a persistent challenge is ensuring that the generated images precisely match the nuances and concepts described in the prompt. Existing approaches to tackle this "multimodal misalignment" fall into two main categories:
- Preference-based Weight Finetuning: These methods fine-tune the diffusion model's weights using large datasets of human-preferred image-prompt pairs. The main drawback here is the difficulty and cost associated with collecting such high-quality, large-scale datasets.
- Editing-based Methods: These approaches use LLMs to detect misalignments and then generate editing instructions to correct them. While they avoid finetuning, they often operate on local regions, potentially compromising overall image quality, and can sometimes miss critical misalignments or produce inaccurate editing instructions.
This paper aims to bridge this gap by offering a method that enhances prompt-image alignment without requiring additional finetuning data or complex post-generation editing steps.
Methods
The core of IMG lies in its "re-generation-based multimodal alignment" approach, which involves three key components:
- MLLM-driven Misalignment Analysis: IMG first employs a fine-tuned Multimodal Large Language Model (MLLM). This MLLM is trained to analyze an initial generated image and its corresponding prompt, identifying specific areas where the image deviates from the prompt's intent. The MLLM is trained on instruction-based image data to effectively act as a misalignment detector.
- Implicit Aligner: This is a novel adapter network that takes the MLLM's analysis (guidance features) and the initial image's features (from an image prompt encoder) as input. Instead of directly editing the image, the Implicit Aligner manipulates the diffusion model's conditioning features. This refinement process aims to produce "better-aligned features" that guide the diffusion model towards generating a more faithful output.
- Iteratively Updated Preference Objective: To train the Implicit Aligner, the authors introduce a new objective function. This objective combines elements of Direct Preference Optimization (DPO) and self-play finetuning (SPIN). It encourages the aligned features to be closer to preferred features while also pushing them away from non-preferred ones. A key innovation is the "iteratively updated" nature of the reference model, allowing for training from scratch and runtime updates, making it more flexible than prior methods.
Essentially, IMG generates an initial image, uses an MLLM to find what's wrong, and then uses the Implicit Aligner to subtly adjust the internal "instructions" for a second generation pass, leading to a corrected image.
Datasets
- Training: The Implicit Aligner is trained using the Pick-a-Pic dataset, a human preference dataset containing triplets of (prompt, preferred image, non-preferred image). The MLLM is fine-tuned on instruction-based image data from the SEED-Data-Edit dataset.
- Evaluation: The paper evaluates IMG on several benchmarks:
- Human Preference Datasets (HPD): Used for quantitative evaluation of alignment.
- Parti-Prompts: Another dataset for evaluating alignment.
- T2I-CompBench: A benchmark for compositional image generation.
- Qualitative evaluations are also presented using various prompts and models.
Key Insights and Ideas
- Implicit Refinement is Key: The paper argues that directly editing images can degrade quality. Instead, subtly refining the internal conditioning features of the diffusion model during re-generation is a more effective way to improve alignment without sacrificing overall image quality.
- MLLMs as Misalignment Detectors: Leveraging the visual understanding capabilities of MLLMs, specifically fine-tuned for this task, provides a powerful and flexible way to identify subtle prompt-image discrepancies that might be missed by simpler detectors.
- Plug-and-Play Flexibility: IMG is designed as a lightweight adapter that can be seamlessly integrated with various pre-trained diffusion models (like SDXL, SDXL-DPO, and FLUX) without requiring extensive re-training of the base models themselves.
- Iterative Improvement: The multi-round generation capability shown in Figure 7 suggests that IMG can be applied iteratively to further refine images, addressing more complex or subtle misalignments over successive passes.
Key Results
- Quantitative Improvements: IMG consistently outperforms base models and existing finetuning-based alignment methods (like SDXL-DPO) across HPD and Parti-Prompts datasets, achieving higher Human Preference Scores (HPS). For example, when integrated with SDXL, IMG achieved an average win rate of 84.6% over SDXL, and when integrated with SDXL-DPO, it achieved an 80.5% win rate over SDXL-DPO.
- Qualitative Superiority: Visual comparisons (Figures 1, 5, 6, 7, 8) demonstrate IMG's ability to resolve various misalignment types, including concept comprehension, aesthetic quality, object addition, and correction, often producing more visually coherent and accurate results than competing methods.
- Editing-based Method Comparison: IMG significantly outperforms editing-based methods like SLD, which often lead to performance degradation and reduced image quality.
- Generalization: IMG shows consistent alignment improvements when integrated with different MLLMs (e.g., LLaVA, Qwen-VL), highlighting its generalization capability.
- Dense Prompt Performance: IMG enhances FLUX's ability to handle complex, dense prompts, making it competitive with state-of-the-art models like SD3.5 and PixArt-σ.
Limitations and Future Work
- MLLM Fine-tuning: While the fine-tuned MLLM shows improved accuracy, the paper notes that GPT-4 was used to verify predictions, suggesting that further improvements in MLLM accuracy could lead to even better IMG performance.
- Computational Cost: While IMG avoids finetuning the entire diffusion model, the re-generation process still incurs computational cost. The paper doesn't explicitly detail the speedup compared to base models, but it's implied to be more efficient than full finetuning.
- Future Work: The authors suggest exploring more advanced MLLMs and Implicit Aligner architectures. They also hint at the potential for multi-round generation to further enhance alignment, as demonstrated in Figure 7. The plug-and-play nature of IMG also opens doors for its integration into a wider range of diffusion-based applications.
Summary updated