TL;DR
Current text-to-image diffusion models excel at rendering explicit visual descriptions but frequently fail when prompts require deep world knowledge or implicit reasoning. EruDiff introduces a novel framework to "refactor" the internal knowledge of pre-trained diffusion models by aligning implicit prompts with explicit anchors at a distribution level, supplemented by negative-only reinforcement learning. This approach significantly boosts factual accuracy in scientific and cultural domains without requiring expensive new text-image training pairs.
What Problem Does This Paper Address?
If you ask a state-of-the-art text-to-image model like FLUX to draw "a red apple," it succeeds brilliantly. But if you ask it to depict "an apple tree with leaves exhibiting chlorophyll breakdown," it often stumbles, failing to realize that "chlorophyll breakdown" implies yellowing autumn leaves.
The authors trace this limitation to a fundamental dislocation of knowledge structures within diffusion models. While the text encoders in these models absorb vast amounts of world knowledge from text-only corpora, the text-image pairs used to train the generative components are typically restricted to superficial visual descriptions. As a result, when faced with implicit prompts—those requiring natural science, cultural commonsense, or spatio-temporal reasoning—the models produce counter-factual or chaotic imagery.
Existing solutions often rely on Large Language Models (LLMs) to rewrite prompts into explicit descriptions before feeding them to the image generator. However, this paper argues that diffusion models already harbor massive latent cognitive capacities that can be unlocked directly through targeted internal knowledge refactoring.
Methods
EruDiff refactors the internal knowledge of diffusion models using a two-phase training paradigm:
- Diffusion Knowledge Distribution Matching (DK-DM): This mechanism aligns the image distribution generated by abstract implicit prompts ($y_{\text{impl}}$) with the distribution generated by well-defined explicit anchors ($y_{\text{expl}}$). Instead of standard single-step distillation, the authors introduce full-timestep distribution matching, sampling intermediate denoising steps to compute a pseudo-MSE loss via a stop-gradient technique.
- Anti-Forgetting Knowledge Consolidation (AF-KC): Fine-tuning models on specific knowledge risks catastrophic forgetting of foundational concepts (e.g., learning what Einstein's favorite instrument is might degrade the model's ability to draw Einstein himself). AF-KC mitigates this by mixing foundational sub-prompts (noun phrases extracted via an LLM) back into the training distribution.
- Timestep-Aware Curriculum Learning (TA-CL): Recognizing that the early stages of the denoising chain heavily dictate prompt dependency, the authors use a curriculum strategy that prioritizes early timesteps, accelerating training convergence by up to 3.6x.
- Negative-Only Reinforcement Learning (NO-RL): To correct inherent rendering biases and inaccuracies present even in explicit prompts, the authors apply a variant of Kahneman-Tversky Optimization (KTO). Crucially, they find that adding positive preference pairs is redundant; focusing exclusively on optimizing against a failure sample set ($D_{\text{loss}}$) yields the best fine-grained corrections.
Datasets
To train and evaluate EruDiff, the authors utilize three key datasets:
- Knowledge-10K (New): To address the scarcity of structured training resources for world knowledge, the authors introduced this dataset of 10,000 entries. Each entry pairs an implicit prompt with an explicit counterpart across three domains: cultural commonsense (4,000), spatio-temporal reasoning (3,000), and natural science (3,000). It was generated using a pipeline of Gemini 3, GPT-5, and Grok 4, followed by rigorous human auditing.
- Science-T2I: An existing benchmark spanning physics, chemistry, and biology, evaluated using an automated expert-level metric called SciScore.
- WISE: A world knowledge-informed semantic evaluation benchmark containing 1,000 meticulously crafted prompts across 25 subdomains, evaluated via WiScore.
Key Insights and Ideas
- Latent Cognitive Capacity: Text-to-image diffusion models already "know" a lot more than they can visually express. Meticulous distribution alignment can unlock high-dimensional reasoning capabilities already latent within the pre-trained weights.
- Text-Only Fine-Tuning Paradigm: EruDiff demonstrates that you don't need massive, expensive text-image datasets to teach a model factual accuracy; structured text-only corpora (organized as implicit-explicit pairs) are sufficient to guide visual distribution shifts.
- The Redundancy of Positive RL Pairs: In the presence of strong distribution matching (DK-DM), positive reinforcement learning samples provide no additional performance gains. Negative-only reinforcement learning is highly efficient for carving away failure modes.
Key Results
EruDiff was evaluated using FLUX.1-dev and Qwen-Image as backbones, achieving state-of-the-art performance among diffusion-based models.
- WISE Benchmark: As shown in Table 1, EruDiff boosted FLUX.1-dev's overall WiScore from 0.50 to 0.64, outperforming even the multimodal large language model (MLLM) integrated framework Qwen-Image (0.62).
- Science-T2I Benchmark: EruDiff achieved a SciScore of 33.70 (on the S-split) and 34.54 (on the C-split), outperforming standard supervised fine-tuning (SFT), advanced reinforcement learning methods like GRPO, and even prompt rewriting via GPT-4o.
Qualitatively, as seen in Figure 1, EruDiff correctly infers that Einstein's favorite instrument is the violin, accurately depicts the Pyramids for ancient Egypt, and correctly renders Pikachu for Pokémon, whereas the base FLUX model generates counter-factual or literal interpretations.
Limitations and Future Work
- Scalability without Feedback: To evaluate pure scalability on the WISE benchmark, the authors excluded the NO-RL phase because generating failure annotations for world knowledge requires expert human or flagship-class MLLM intervention. Consequently, the WISE results rely solely on the DK-DM phase.
- Unified Architectures: The authors note that this study provides foundational insights for next-generation unified multimodal architectures. Future work will likely explore seamlessly integrating understanding, reasoning, and visual generation into a single end-to-end model rather than post-hoc refactoring.
Summary updated