Abstract
Generative modeling is currently divided between the rich pre-trained priors of Diffusion Models (DMs) and the efficient, straight-path sampling of Flow Matching (FM) models. Diff2Flow introduces a novel framework to bridge this gap by systematically aligning the mathematical foundations of both paradigms. By warping diffusion trajectories into linear flow matching paths through timestep rescaling and interpolant alignment, Diff2Flow allows researchers to finetune massive pre-trained diffusion models into fast FM models. This approach supports parameter-efficient finetuning (PEFT) via LoRA, significantly reducing the computational barrier to high-performance generative modeling.
Introduction: The Efficiency Gap in Generative AI
Diffusion Models, such as Stable Diffusion, have established themselves as the industry standard due to their high-quality outputs and extensive ecosystem. However, their sampling process is often slow, requiring many steps to navigate curved trajectories in latent space. Flow Matching (FM) has emerged as a compelling alternative, offering straighter paths that enable high-quality generation in as few as 2 to 4 steps.
Despite these advantages, the computational cost of training FM foundation models from scratch is immense. A natural solution would be to finetune existing DMs into FM models, but naive attempts often fail. The two frameworks use different noise-to-data interpolants and time scales, meaning a model must "unlearn" its diffusion priors before it can adopt the FM objective, leading to poor convergence and degraded performance.
Methodology: Warping Diffusion Priors
Diff2Flow resolves these discrepancies through a "warping" strategy that aligns the diffusion model's internal representations with the requirements of Flow Matching. This alignment consists of three core components:
- Timestep Rescaling: An invertible mapping $f_t$ is established between discrete diffusion timesteps ($t_{DM}$) and the continuous FM domain ($t_{FM} \in [0, 1]$).
- Interpolant Alignment: Diffusion trajectories (often variance-preserving) are transformed via a function $f_x$ into the linear paths required by FM ($x_t = t x_1 + (1-t) x_0$).
- Velocity Derivation: The FM-compatible velocity field is derived directly from the diffusion model’s existing noise or velocity predictions, ensuring the model starts from a mathematically consistent baseline.
This alignment is particularly effective for Parameter-Efficient Finetuning (PEFT). By ensuring the starting point of the finetuning process is aligned with the target objective, Diff2Flow allows Low-Rank Adaptation (LoRA) to successfully transition a model to the FM paradigm without updating the entire weight matrix.
Key Results and Evaluation
The authors evaluated Diff2Flow across text-to-image generation and monocular depth estimation tasks.
Text-to-Image Performance
On the COCO 2017 benchmark, Diff2Flow achieved an FID of 52.80, outperforming the base SD1.5 (56.77). Crucially, it demonstrated superior convergence speed, reaching competitive performance in just 2.5k iterations, whereas unaligned models failed to converge effectively.
Qualitative Superiority and LoRA Compatibility
A major strength of Diff2Flow is its ability to maintain image quality even when using restricted training methods like LoRA. Naive FM finetuning often results in artifacts or "washed out" images when constrained by LoRA, whereas Diff2Flow preserves the rich details of the original diffusion prior while adopting the faster sampling characteristics of FM.
Depth Estimation
In discriminative tasks like monocular depth estimation, Diff2Flow matched or exceeded state-of-the-art models (e.g., Marigold) while requiring significantly fewer parameters and training iterations.
Discussion and Insights
The success of Diff2Flow suggests that the primary hurdle in adapting diffusion models was not model capacity, but mathematical misalignment. By "fixing" the trajectories, the model can leverage its existing knowledge more effectively. Furthermore, the shift to an FM objective naturally addresses the "Zero-Terminal SNR" issue common in standard diffusion models, allowing for better generation of extreme luminance values (pure black or white).
While Diff2Flow makes FM adaptation accessible, full finetuning still provides the highest absolute performance compared to LoRA. Future work may extend this alignment framework to other modalities like video and audio, where the demand for fast, few-step inference is even more critical.
Summary updated