Leveraging Previous Steps: A Training-free Fast Solver for Flow Diffusion
Kaiyu Song, Hanjiang Lai
TL;DR
This work tackles the slow sampling of flow diffusion models (FDMs) by introducing a training-free flow-solver that leverages information from previous steps to approximate high-order derivatives via Taylor expansion and polynomial interpolation. The solver uses a cache of past evaluations to compute $x_{t_n}$ with a single function evaluation per step, achieving an effective local error of $O(h_n^{p})$ and, with a predictor-corrector trick, $O(h_n^{p+1})$. The method substantially reduces NFEs while maintaining or improving sample quality across a wide range of datasets, including CIFAR-10, CelebA-HQ, LSUN variants, ImageNet, and text-to-image generation, and works in both pixel-space and latent-space FDMs. These results demonstrate the practical impact of a training-free, step-reusing approach for accelerating flow-based diffusion generation in real-world applications.
Abstract
Flow diffusion models (FDMs) have recently shown potential in generation tasks due to the high generation quality. However, the current ordinary differential equation (ODE) solver for FDMs, e.g., the Euler solver, still suffers from slow generation since ODE solvers need many number function evaluations (NFE) to keep high-quality generation. In this paper, we propose a novel training-free flow-solver to reduce NFE while maintaining high-quality generation. The key insight for the flow-solver is to leverage the previous steps to reduce the NFE, where a cache is created to reuse these results from the previous steps. Specifically, the Taylor expansion is first used to approximate the ODE. To calculate the high-order derivatives of Taylor expansion, the flow-solver proposes to use the previous steps and a polynomial interpolation to approximate it, where the number of orders we could approximate equals the number of previous steps we cached. We also prove that the flow-solver has a more minor approximation error and faster generation speed. Experimental results on the CIFAR-10, CelebA-HQ, LSUN-Bedroom, LSUN-Church, ImageNet, and real text-to-image generation prove the efficiency of the flow-solver. Specifically, the flow-solver improves the FID-30K from 13.79 to 6.75, from 46.64 to 19.49 with $\text{NFE}=10$ on CIFAR-10 and LSUN-Church, respectively.
