The "Speed Limit" of Diffusion Models
Generative flow and diffusion models have revolutionized AI imagery, but they come with a significant "speed limit." To generate an image, these models must solve a high-dimensional Ordinary Differential Equation (ODE), tracing a complex path from random noise to a clean image.
Standard numerical solvers (like Runge-Kutta) often require hundreds of steps—or Number of Function Evaluations (NFE)—to produce high-quality results. Researchers typically try to accelerate this process in two ways:
- Distillation: Training a new, smaller model to mimic the large one. This is computationally expensive and often loses the "consistency" of the original model, meaning it doesn't converge to the exact same distribution.
- Dedicated Solvers: Using advanced mathematics to design better generic solvers. While consistent, these still struggle to produce top-tier quality at very low step counts (under 20 NFE).
Every pre-trained model has its own unique "velocity field" with specific curvatures. A generic solver is like a one-size-fits-all suit; it works, but not perfectly. To address this, researchers have introduced Bespoke Solvers: custom-tailored ODE solvers designed for the specific geometry of a single pre-trained model.
How Bespoke Solvers Work
The core idea is to take a standard consistent solver (like RK2) and wrap it in a differentiable, parametric family of transformations.
Instead of solving the ODE in the original space, the authors transform the sampling path using two learnable components: a time reparametrization and a coordinate scaling function. Because the "Bespoke" part is just a transformation of a consistent base solver, the method is mathematically guaranteed to converge to the true solution as the number of steps increases.
By warping time and scale, the Bespoke solver effectively "straightens" the path for the base solver, accounting for the specific bumps and curves in a particular model's probability flow. To optimize this without the massive memory overhead of backpropagating through the entire ODE, the authors derived a tractable upper bound on the global error (RMSE-Bound Loss). This allows them to compute the loss for each step in parallel, making training incredibly fast.
Remarkably, the solver only needs to learn the schedules for time and scaling. For a 10-step solver, this involves only about 80 learnable parameters. Training a Bespoke solver takes roughly 1% of the GPU time required to train the original model.
Key Results and Visual Fidelity
The authors evaluated their method across standard generative modeling benchmarks, including CIFAR-10, ImageNet-64x64, and AFHQ-256, testing against various model types like $\epsilon$-VP diffusion and Flow Matching.
The results demonstrate superior quality at low NFE:
- CIFAR-10: A Bespoke solver achieved a Fréchet Inception Distance (FID) of 2.73 with only 10 steps. For context, the Ground Truth (using 180+ steps) is 2.59.
- ImageNet-64: On this more challenging dataset, Bespoke hit 2.2 FID at 10 steps and reached within 2% of the ground truth quality (1.71) with just 20 steps.
Bespoke solvers consistently beat popular dedicated solvers like DDIM, DPM-Solver, and DEIS in the low-step regime (5–20 steps). As seen in the visual comparisons, Bespoke solvers maintain much higher structural and color fidelity to the true model output compared to standard baseline solvers at the same step count.
Limitations and Future Work
While highly effective, the current framework has a few limitations:
- NFE Specificity: Currently, a separate Bespoke solver must be trained for each target step count (e.g., one specifically for 10 steps, another for 20). Future work may explore continuous representations that work for any step count.
- Guidance Weighting: The solver is sensitive to the guidance weight hyperparameter. Changing this weight significantly might require re-training the solver.
- Data Access: Although vastly faster than distillation, the current implementation still benefits from access to the original training data or pre-computed sampling paths.
Overall, Bespoke solvers provide a highly practical, mathematically grounded, and parameter-efficient "bolt-on" improvement for deploying diffusion models in latency-sensitive environments.
Summary updated