Summary (Overview)
- Intrinsic Distribution Matching (IDM) is a novel training method for one-step and few-step text-to-image generation that augments internal Distribution Matching Distillation (DMD) with an explicit feature-moment matching loss, eliminating the need for external feature encoders or separate fake-score networks.
- The method decomposes the reverse-KL field into a Gaussian moment component (determined by means and covariances) and a non-Gaussian residual component, providing theoretical motivation for why explicit moment constraints complement learned score supervision.
- IDM matches feature means and per-coordinate standard deviations in the generator's exponential-moving-average (EMA) feature space, using a squared 2-Wasserstein distance between diagonal Gaussians as the population loss.
- At 2 network function evaluations (NFE), IDM achieves state-of-the-art scores of 94.25% and 90.20% on Chinese and English LongText-Bench respectively, surpassing all compared methods at this budget.
- Controlled ablations demonstrate that generator EMA features perform competitively with an external DINOv2 encoder across five reported metrics, while requiring no additional architectural components.
Introduction and Theoretical Foundation
Background
Diffusion and flow-matching models produce high-quality images but require repeated network evaluations, imposing substantial inference costs. One-step and few-step generation reduces this cost by learning a much shorter sampling process, but must accurately render prompt details—particularly challenging for long-text rendering where many characters must remain legible and correct within a coherent image.
Distribution Matching Distillation (DMD) trains a fast generator to match a reference distribution by using score differences:
- A pretrained teacher supplies the reference score
- An auxiliary fake-score network estimates the score of the current generated distribution
- Their difference guides updates to generated samples
Recent work (TwinFlow, APEX) obtains this score difference from internally separated velocity branches of the generator, avoiding a separate fake-score network. IDM adopts this internal construction and asks whether the generator can also supply an explicit constraint on statistics across samples.
Theoretical Foundation: Rectified Flow
Let be the noise distribution and the reference data distribution. Rectified flow uses the path:
with independently sampled and . A network regresses the pair velocity , where is a text-conditioning vector.
The score-velocity identity connects scores and velocities:
Thus, a velocity estimate also provides a score estimate, and subtracting two velocities at the same input gives a scaled score difference.
Methodology
Reverse-KL Field Decomposition
For differentiable positive densities, the reverse KL divergence at fixed condition is:
with sample-space distribution gradient:
The score of any distribution decomposes exactly as:
where is the moment-matched Gaussian. Subtracting decompositions for model and reference gives:
Key theoretical result: Under integrability and boundary conditions, score residuals satisfy orthogonality properties:
DMD Loss
The DMD correction supervises velocity and endpoint predictions. The internal velocity branches are obtained by negating the condition vector:
The DMD targets are constructed with stop-gradient operations:
The combined squared regression loss:
Feature-Moment Loss
The population loss matches feature moments in the EMA feature space:
This is the squared 2-Wasserstein distance between diagonal Gaussians .
Training Objective
with default weights and .
Empirical Validation / Results
Experimental Setup
- Backbones: Z-Image-Turbo 6B and Qwen-Image 20B
- Tuning: Full-parameter and LoRA (ranks 32 and 64)
- Training: 15K steps on Z-Image-Turbo, 10K steps for Qwen-Image LoRA
- Hardware: 32 H100 80GB and 8 A100 80GB GPUs
- Data: ShareGPT-4o, BLIP-3o, plus synthesized samples (600K from FLUX-Reason-6M prompts, 5M from text-rendering prompts)
Key Results
Table 1: System-level comparison (excerpts)
| Method | NFE | FID ↓ | CLIP ↑ | GenEval ↑ |
|---|---|---|---|---|
| APEX (Qwen-Image, Full) | 2 | 6.44 | 28.51 | 0.90 |
| IDM (Qwen-Image, Full) | 2 | 6.34 | 28.56 | 0.91 |
| IDM (Z-Image, Full) | 2 | 6.71 | 28.22 | 0.78 |
| APEX (Qwen-Image, Full) | 1 | 6.87 | 28.66 | 0.89 |
| IDM (Qwen-Image, Full) | 1 | 6.77 | 28.71 | 0.90 |
LongText-Bench Results (2 NFE): IDM (Z-Image) achieves 94.25% on LongText-CN and 90.20% on LongText-EN—the highest among compared methods, improving over Z-Image-Turbo++ by 2.63 and 0.32 percentage points, and over APEX by 3.87 and 1.44 points respectively.
Ablation Results
Table 5: Overall ablation results (2 NFE)
| Configuration | OneIG | GenEval | DPG-Bench | LongText-CN | LongText-EN |
|---|---|---|---|---|---|
| w/o L_score | 52.58 | 76.90 | 86.15 | 93.33 | 89.62 |
| w/o L_pop | 52.87 | 77.46 | 86.54 | 93.87 | 89.79 |
| w/o both | 52.25 | 76.24 | 85.68 | 92.70 | 88.88 |
| v-loss only | 52.43 | 76.64 | 85.93 | 93.03 | 89.17 |
| x-loss only | 52.78 | 77.26 | 86.42 | 93.71 | 89.74 |
| DINOv2 features | 53.00 | 77.75 | 86.71 | 94.13 | 90.09 |
| Teacher features | 52.82 | 77.36 | 86.49 | 93.79 | 89.81 |
| Live self-features | 52.91 | 77.51 | 86.60 | 93.95 | 89.95 |
| IDM (full) | 53.06 | 77.81 | 86.82 | 94.25 | 90.20 |
| Z-Image-Turbo++ | 52.50 | 75.70 | 85.86 | 91.62 | 89.88 |
Key ablation findings:
- Adding to the shared DMD control raises GenEval from 77.46 to 77.81 (+0.35 points)
- EMA features reach 77.81 GenEval versus 77.75 for DINOv2—nearly identical without external encoder
- Equal-weight v+x regression reaches 77.81 GenEval, versus 76.64 for v-only and 77.26 for x-only
Theoretical and Practical Implications
Theoretical Implications
The decomposition of the reverse-KL field into Gaussian moment and non-Gaussian residual components provides a principled justification for combining learned score supervision with explicit moment constraints. The key insight is that:
- Moments alone do not determine the full distribution—the residual component explains why moment matching alone is insufficient
- The full DMD correction contains both components, but learned score estimates and finite training may leave discrepancies
- Explicit moment constraints address statistics that can be constrained directly while the learned correction handles the residual structure
Practical Implications
- Architecture efficiency: IDM requires no separate discriminator, score model, or external feature encoder—all training signals come from the generator and its EMA copy
- Scalability: Demonstrated on backbones up to 20B parameters with both full-parameter and LoRA tuning
- Sampling flexibility: The same trained checkpoint supports both 1-NFE and 2-NFE sampling without retraining
- Text rendering: Significant improvements in long-text fidelity, which is critical for real-world applications like poster generation, menus, and document illustration
Conclusion
Intrinsic Distribution Matching (IDM) augments internal DMD with explicit feature-moment matching in the generator's EMA feature space. The reverse-KL field decomposition motivates retaining full score-difference supervision while additionally matching feature means and standard deviations. Controlled ablations show consistent gains over the internal DMD baseline from EMA feature moments, with performance competitive to DINOv2 features without requiring an external encoder.
At 2 NFE, IDM achieves state-of-the-art LongText-Bench scores of 94.25% and 90.20% on Chinese and English subsets respectively, demonstrating that using the generator's predictions and representations together is an effective strategy for few-step text-to-image generation.
Future directions could include:
- Extending moment matching to higher-order statistics or full feature distributions
- Exploring adaptive weighting schemes for the population loss
- Applying IDM to other generative modalities and architectures
- Investigating the interaction between moment matching and other distillation objectives
Related papers
- Truncate or Not? A Scaling Study of Looped Transformers with Truncated Backpropagation
Full backpropagation through time is optimal for looped transformers when both forward and backward loop counts are free, despite truncation helping when forward loops are fixed.
- Depth-adaptive Inference of Looped Language Models via Continuous Depth Batching
Continuous depth batching realizes up to 99% of theoretical depth-adaptive speedup for looped language models, with fully looped architectures yielding the largest gains.
- A-RSI: Adaptive Task Refresh for Zero-Data Multimodal Self-Improvement
Adaptive refresh triggered by training-log saturation, not task difficulty, sustains zero-data multimodal self-improvement, with random replacement beating difficulty-aware selection.