In the world of generative AI, diffusion and flow-matching models are the reigning champions of image and video synthesis. However, they harbor a frustrating paradox: while we’ve become incredibly good at "distilling" these models to generate images in just one or two steps, we’ve simultaneously broken our ability to calculate log-likelihood—a fundamental metric used to evaluate how well a model actually fits the data distribution.
A new paper from researchers at Carnegie Mellon and Peking University, titled "Joint Distillation for Fast Likelihood Evaluation and Sampling in Flow-based Models," introduces a framework called F2D2 (Fast Flow Joint Distillation) that solves this bottleneck. F2D2 enables both lightning-fast sampling and accurate likelihood evaluation, reducing computational costs by two orders of magnitude.
The Problem: Fast Sampling vs. Tractable Likelihoods
To generate an image with a standard flow-matching or diffusion model, you typically solve an Ordinary Differential Equation (ODE), which requires hundreds to thousands of Neural Function Evaluations (NFEs). To calculate the likelihood (how "probable" an image is according to the model), you must integrate the "divergence" of the velocity field along that same trajectory. This is even more computationally expensive than sampling.
While recent distillation techniques (like Consistency Models or MeanFlow) have successfully reduced sampling to fewer than 10 steps, they usually discard the likelihood component. Calculating likelihoods using these fast samplers often yields wildly inaccurate results, such as invalid "negative" bits per dimension. This creates a major hurdle for techniques that rely on likelihoods, including Reinforcement Learning from Human Feedback (RLHF), model comparison, and fine-tuning objectives like DPO.
The F2D2 Solution: Joint Distillation
The core insight of F2D2 is that in Continuous Normalizing Flows (CNFs), the math for sampling and the math for likelihood are coupled—they both depend on the same underlying velocity field.
Instead of treating them separately, F2D2 introduces a joint training recipe:
- The Joint Flow Map: Instead of predicting just the next position in a trajectory, the model is trained to predict a "Flow Map." This map takes a point at time $t$ and jumps it to time $s$, while simultaneously predicting the total change in log-density (the integrated divergence) over that jump.
- Shared Backbone: The model uses a shared neural network backbone with two "heads": one for velocity (sampling) and one for divergence (likelihood). This ensures the two predictions remain physically consistent.
- Modular Integration: F2D2 is not a standalone model but a modular training recipe. It can be applied to existing fast-sampling architectures like Shortcut Models, MeanFlow, and Lagrangian Self-Distillation (LSD).
- Efficient Training: To keep training efficient, the authors use a randomized Hutchinson trace estimator to approximate the divergence, avoiding the massive computational cost of calculating exact derivatives in high-dimensional image space.
Key Results and Visual Evidence
F2D2 was evaluated on standard generative modeling benchmarks, including CIFAR-10, ImageNet 64x64, CelebA-64, and a synthetic 2D Checkerboard dataset.
The framework successfully achieves accurate likelihoods and high-quality samples with 100x fewer NFEs than standard flow-matching models. On CIFAR-10, F2D2 reduced the per-sample likelihood error by 7x to 171x compared to existing few-step baselines.
As shown in the visual comparisons above, F2D2-equipped models (like Shortcut-F2D2 and Shortcut-Distill-F2D2) maintain sharp, recognizable image generation even at a single evaluation step (NFE=1). In contrast, standard Flow Matching and baseline Shortcut models produce highly blurred outputs at such low step counts.
Maximum Likelihood Self-Guidance
Because F2D2 makes likelihood evaluation so fast, the authors introduce Maximum Likelihood Self-Guidance. At inference time, the model can take a single "look ahead" to see the predicted likelihood of a sample and use its gradient to tweak the initial noise. Remarkably, this allows a 2-step MeanFlow model to achieve a lower FID (better image quality) than the original 1024-step flow-matching teacher model it was distilled from.
Limitations and Future Work
While F2D2 represents a significant leap forward, the authors note a few limitations:
- Early Stopping: F2D2 training requires careful early stopping. If trained too long, the likelihood head can overfit, degrading density estimates even if sample quality remains high.
- Scaling Sensitivity: Performance is sensitive to a scaling factor used for the divergence target, which currently requires manual tuning.
- Scope: The current work focuses on unconditional generation. Extending this to high-resolution, class-conditional, or text-to-image models (like Stable Diffusion) remains an exciting avenue for future research.
Reference: Ai, X., He, Y., Gu, A., et al. (2026). Joint Distillation for Fast Likelihood Evaluation and Sampling in Flow-based Models. Published as a conference paper at ICLR 2026.
Summary updated