Abstract
Diffusion and Flow Matching models have revolutionized generative AI but suffer from high computational costs during inference. This paper introduces Initial/Terminal Velocity Matching (ITVM), a novel distillation framework designed to transform slow iterative models into efficient "two-timed" samplers. By decomposing the training objective into separate components that match initial teacher velocities and enforce terminal student self-consistency, the proposed method achieves superior generation quality in 1–8 steps across synthetic, tabular, and image datasets.
1. Introduction
Generative models such as Stable Diffusion and Midjourney rely on simulating a continuous flow from random noise to structured data. While effective, this process imposes a significant "speed tax," requiring dozens or hundreds of neural network evaluations to produce a single sample. Distillation has emerged as a key technique to mitigate this, training a "student" model to approximate the entire trajectory of a "teacher" model in a fraction of the steps.
However, existing distillation methods often face challenges with training stability and supervision quality. Matching complex partial differential equations across the entire time spectrum can introduce noise and inaccuracies, particularly as the student model drifts from the teacher's original trajectory. This paper addresses these issues by rethinking how velocity matching is supervised at different stages of the generation process.
2. Methodology
2.1 Two-Timed Flow Models (TTFM)
The authors propose the Two-Timed Flow Model (TTFM), a neural network architecture designed to map a sample from any initial time $s$ to any future time $t$ in a single evaluation. This flexibility allows the model to function as a versatile few-step sampler.
2.2 Initial/Terminal Velocity Matching (ITVM)
To train the TTFM, the researchers developed the ITVM loss, which splits the supervision signal into three distinct parts:
- Initial Instantaneous Velocity Matching (IIVM): This ensures the student model's initial direction at $t=s$ perfectly aligns with the teacher's instantaneous velocity.
- Initial Average Velocity Matching (IAVM): This component ensures the student's first discrete "jump" matches the teacher's trajectory over a small interval.
- Terminal Velocity Matching (TVM): Recognizing that teacher supervision becomes less reliable as the student drifts, the authors replace terminal teacher-matching with a self-consistency objective. The student is encouraged to match an Exponential Moving Average (EMA) version of itself, providing a stable "moving north star" for training.
A significant practical advantage of ITVM is its use of finite differences. By replacing complex partial derivatives with simple subtractions, the loss function is easier to implement in standard frameworks like PyTorch and avoids the computational overhead of advanced automatic differentiation.
3. Experimental Setup
The researchers evaluated the ITVM framework across a diverse range of benchmarks to test its robustness and versatility:
- 2.D Synthetic Datasets: Four complex geometric shapes (5LOBES, CHECKER, WORD, and SPIRAL) were used to visualize the model's ability to capture intricate distributions.
- Tabular Datasets: Real-world multi-dimensional data from the GAS, HEPMASS, MINIBOONE, and POWER datasets.
- Image Datasets: The standard MNIST handwritten digit dataset and the CIFAR-10 natural image dataset.
4. Key Insights and Results
4.1 The Importance of Timing
A critical finding of the study is that the choice of the intermediate time point $u$ for supervision significantly impacts performance. The authors discovered that picking a point near the end of the interval ($u = t - \tau$) is far more effective for one-step generation than picking a point near the start, which is the standard approach in many consistency-based methods.
4.2 Performance Benchmarks
ITVM demonstrated superior performance in few-step generation across nearly all tested categories. On the CIFAR-10 image dataset, ITVM achieved a 1-step FID (Fréchet Inception Distance) of 9.53, a marked improvement over existing baselines like LFMD (12.82) and PID (12.73). The researchers attribute this success to the cleaner supervision signal provided by focusing on initial velocities where the data is still "in-distribution" for the teacher.
5. Conclusion and Future Work
ITVM offers a computationally efficient and stable path for distilling high-quality flow models. By separating initial and terminal velocity matching, the framework provides a more reliable training signal than traditional methods. While the current implementation relies on standard architectures, future work will explore scaling ITVM to high-resolution datasets like ImageNet and optimizing hyperparameters to bridge the gap with highly specialized state-of-the-art models.
Summary updated