Representation Distribution Matching for One-Step Visual Generation

Lan Feng, Wuyang Li, Eloi Zablocki, Matthieu Cord, Alexandre AlahiarXiv 2026

TL;DR

The paper introduces improved Representation Distribution Matching (iRDM), a simple yet highly effective paradigm for training high-quality, one-step image generators by directly matching generated features to real data distributions under frozen pretrained encoders. By scaling up generation batch sizes and dynamically balancing a diverse battery of encoders, iRDM achieves state-of-the-art one-step generation on ImageNet and successfully compresses the 4-step FLUX.2 model into a 1-step generator that actually outperforms its teacher.

What Problem Does This Paper Address?

While diffusion and flow-matching models produce stunning images, they suffer from high inference costs due to their iterative, multi-step denoising processes. Compressing these models into "one-step" generators is a major goal in generative AI.

A promising teacher-free alternative is Representation Distribution Matching (RDM), which trains a one-step generator by making its output feature distribution match that of real data under frozen, pretrained encoders. However, prior attempts struggled with two core issues:

  1. Poor Estimators: The mathematical distances used to measure distribution gaps were either too weak or poorly estimated from small batches.
  2. Reward Hacking: Generators easily "game" or overfit a single feature space, driving the training loss down to real-data levels while the generated images remain visibly fake.

This paper systematically maps out the RDM design space to fix these flaws.

Methods

The authors break down RDM into two primary design axes: how distributions are compared (the comparison axis) and the feature spaces they are compared in (the representation axis). Their optimized recipe, iRDM, introduces several key innovations:

The iRDM Framework
  • Nyström MMD Estimator: Instead of using moment-matching (like Frechet distance) or noisy two-sample estimators, iRDM uses Maximum Mean Discrepancy (MMD) with a Gaussian kernel. It splits the loss into an exact within-batch repulsion (to prevent mode collapse) and a frozen Nyström attraction term. The attraction term compresses the entire 1.28M ImageNet dataset into 4,096 static landmarks, providing a zero-variance training target at a fraction of the computational cost.
  • Massive Batch Sizes: The authors show that distribution matching requires large, fresh generation batches. Using gradient caching to circumvent memory limits, they scale batch sizes up to $N=5120$ (ImageNet) and $N=10240$ (FLUX).
  • Dynamic Multi-Encoder Balancing: To prevent reward hacking, iRDM trains against a battery of 10 diverse, frozen pretrained encoders. Rather than weighting them uniformly, it uses a proportional Lagrangian controller to dynamically upweight whichever encoder is currently hardest for the generator to satisfy.
  • Joint Image-Text Matching: For conditional text-to-image generation, iRDM matches the joint distribution of concatenated image and text features, ensuring prompt alignment is explicitly optimized.

Datasets

  • ImageNet-256: Used for class-conditional generation training and evaluation.
  • MS-COCO (2014): Used to curate a high-quality text-image reference set (~300K pairs) from teacher generations for text-to-image post-training.
  • GenEval: Used to benchmark compositional text-to-image alignment (e.g., counting, position, color binding).
  • SW_r14 (New Metric): The authors introduce a new evaluation metric—a relative Sliced-Wasserstein distance averaged over 14 pretrained encoders (including 4 strictly held out from training). This metric is independent of the training loss and highly resistant to gaming.

Key Insights and Ideas

  • MMD is Scalable if Estimated Right: Classical MMD was dismissed a decade ago as too weak to train competitive generators. The authors prove it wasn't weak, just poorly estimated. Combining Nyström landmarks with massive batch sizes makes it an incredibly sharp objective.
  • The "Weakest-Stave" Rule: Just as a wooden bucket holds water only to its shortest stave, human viewers judge an image by its most glaring artifact. By using a Lagrangian controller to focus optimization on the most dissatisfied encoder, iRDM systematically eliminates distinct types of visual flaws.
Overfitting a single encoder leads to uneven quality improvements
  • Training on a Distance $\neq$ Winning on It: Surprisingly, optimization studies revealed that directly training on a Sliced-Wasserstein (SW) loss yields worse SW evaluation scores than training with the Nyström MMD objective. Smooth gradients from low-rank cross-terms matter more than training on the evaluation metric itself.

Key Results

  • ImageNet-256 State-of-the-Art: iRDM achieves a one-step state-of-the-art score of 1.30 on the $SW_{r14}$ metric (where real validation data scores 1.00), vastly outperforming the prior best one-step model (2.05).
  • Human Preference: PickScore (a human-preference proxy) prefers iRDM over the previous best one-step generator on 71.2% of matched samples. It even beats real photographs 63.6% of the time on PickScore, representing a milestone for one-step generation.
  • Surpassing the Teacher: When applied to post-train the 4-billion parameter, 4-step FLUX.2 [klein] model, the resulting 1-step iRDM model actually outperforms its 4-step teacher on both GenEval (0.826 vs 0.794) and PickScore (22.76 vs 22.58). This distillation requires only 90 H200 GPU-hours and uses no online teacher or active reward models during training.

Limitations and Future Work

  • The Real-Data Gap: While iRDM closes the gap significantly ($SW_{r14} = 1.30$), it is still measurably short of a fresh draw of real data (1.00).
  • Future Extensions: The authors note that the RDM design space can be expanded further by incorporating multi-scale kernels, task-specific encoder panels, and more sophisticated conditional couplings. Because it relies entirely on frozen references and pretrained encoders, the recipe should easily transfer to non-image modalities like audio and video.

Summary updated

BibTeX
@misc{feng2026representation,
  author = {Lan Feng and Wuyang Li and Eloi Zablocki and Matthieu Cord and Alexandre Alahi},
  title = {{Representation Distribution Matching for One-Step Visual Generation}},
  year = {2026},
  eprint = {2607.02375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.02375},
}
Figure