TL;DR
STORK is a new training-free sampler that significantly speeds up image and video generation for both diffusion and flow-matching models. By combining classical numerical stability techniques with a clever "virtual evaluation" trick using Taylor expansions, it handles the complex, "stiff" paths of generative models better than existing state-of-the-art samplers like DPM-Solver++.
What Problem Does This Paper Address?
Generating an image with a Diffusion Model (DM) or a Flow Matching model is essentially like solving a complex physics equation. You start with a block of static (noise) and follow a "velocity field" to transform it into a coherent image.
However, this process is notoriously slow because the path from noise to data isn't a straight line—it’s often "stiff." In numerical analysis, stiffness refers to equations where the solution changes so rapidly or erratically that standard solvers (like the simple Euler method) become unstable or require tiny, expensive steps to avoid "blowing up."
Existing fast samplers have two major weaknesses:
- Stiffness Sensitivity: They often struggle when the path is highly curved, leading to visual artifacts or "hallucinations" at low step counts.
- Structure-Dependence: Many popular solvers (like DPM-Solver) only work if the equation has a specific "semi-linear" mathematical structure found in noise-based diffusion. They don't translate easily to newer, high-performance "Flow Matching" models (like FLUX or SANA) without introducing new errors.
Methods
The authors introduce STORK (Stabilized Taylor Orthogonal Runge–Kutta). It bridges the gap between high-end numerical math and deep learning through two main innovations:
- Stabilized Runge-Kutta (SRK): STORK is built on SRK methods, which use special orthogonal polynomials (like Chebyshev or Gegenbauer) to create a "safety zone" for the solver. This allows the model to take much larger steps along the generative path without losing stability, effectively "taming" the stiffness of the ODE.
- Virtual NFEs (The Secret Sauce): Standard SRK methods are mathematically stable but computationally expensive because they require many "stages" (running the neural network multiple times per step). To fix this, STORK uses Taylor expansions to approximate these extra stages. It reuses previously calculated velocities to estimate the derivatives of the path. These "virtual" function evaluations provide the stability of a complex solver at the computational cost of a simple one.
The paper provides two versions: STORK-2 (second-order) and STORK-4 (fourth-order), which can be dropped into existing pipelines without any additional training.
Datasets
The researchers put STORK through a gauntlet of benchmarks across different scales:
- Image Generation: CIFAR-10, LSUN-Bedroom, and the high-quality MJHQ-30K dataset.
- Video Generation: EvalCrafter (700 prompts) using the Hunyuan Video model.
- Models Tested: They tested STORK on cutting-edge architectures including SANA (0.6B and 1.6B), FLUX.1-dev, and Stable-Diffusion-3.5-Large.
Key Insights and Ideas
- Stiffness is the real bottleneck: The authors argue that the "non-straightness" of the velocity field in generative models is exactly what classical mathematicians call stiffness. By identifying this, they could reach into the 100-year-old toolbox of numerical analysis for a solution.
- Structure Independence is Future-Proof: Unlike DPM-Solver, STORK doesn't care if your model is noise-based or flow-based. This makes it a "universal" sampler that works across the current generation of models and likely the next one too.
- The "Aha!" of Virtual Evaluations: The realization that you can "fake" the multi-stage requirements of a stable solver using Taylor expansions is the key breakthrough that makes a heavy mathematical theory practical for real-time AI inference.
Key Results
STORK consistently outperformed state-of-the-art (SOTA) samplers like UniPC and DPM-Solver++ across almost every metric:
- Better Quality at Low Steps: In the "extreme" case of only 7–15 steps (NFEs), STORK achieved significantly lower FID scores (a measure of image quality and diversity).
- Visual Fidelity: Qualitative results show STORK is better at following complex prompts (e.g., getting text right on a plaque) and rendering realistic details like vivid backgrounds or specific logo designs that other samplers blurred out or missed entirely.
- Video Pioneer: STORK is the first training-free fast sampler to demonstrate successful results on high-end video models like Hunyuan, showing superior motion and temporal consistency.
- Efficiency: Despite its mathematical complexity, STORK's wall-clock time and VRAM usage are nearly identical to existing fast samplers because the Taylor approximations are computationally "cheap" compared to running the neural network.
Limitations and Future Work
- Hyperparameter Tuning: STORK introduces a new hyperparameter $s$ (the number of sub-steps). While the authors found that $s=9$ or $s=14$ works well for most cases, it still requires some empirical selection to maximize quality.
- The "Under 5" NFE Wall: While STORK is excellent at 10 steps, the authors acknowledge that sampling at extremely low counts (under 5 steps) remains a challenge for all training-free methods.
- Future Directions: The authors suggest exploring adaptive step sizes (changing the "speed" of the solver based on how curvy the path is) to further squeeze out performance.
Check out the code: https://github.com/ZT220501/STORK
Summary updated