Abstract
Diffusion models have revolutionized generative modeling but remain computationally expensive due to the iterative nature of their inference process. Standard numerical solvers require numerous steps to maintain accuracy, while distillation methods often suffer from training instability. This paper introduces secant losses, a novel framework that accelerates inference by learning to model the average derivative (the secant) over a time interval rather than the instantaneous derivative (the tangent). By combining Monte Carlo integration with Picard iteration, the proposed method achieves state-of-the-art few-step generation performance with significantly improved training stability.
Introduction
Diffusion models generate high-quality data by reversing a continuous noise process, typically modeled as an Ordinary Differential Equation (ODE). The primary bottleneck for these models is inference speed; standard numerical solvers like Euler or Heun require hundreds of steps to produce high-fidelity results and fail when the step count is pushed below ten.
Existing solutions generally fall into two categories: fast numerical samplers and distillation techniques. While distillation methods like Consistency Models attempt to map noise to data in one or two steps, they often involve complex training procedures and high computational overhead. This research proposes an "intermediate strategy" that balances the simplicity of standard diffusion training with the high-speed inference of distillation by shifting the learning objective from tangents to secants.
Methodology: From Tangents to Secants
The core innovation of this work is the transition from learning instantaneous velocity to learning average velocity.
- The Tangent: Standard diffusion models learn the instantaneous velocity of the ODE at a specific time point $t$.
- The Secant: The authors propose learning a function that represents the average velocity over a time interval $[t, s]$. If the model can accurately predict this average velocity, it can "jump" from $t$ to $s$ in a single step without the accumulation of discretization errors typical of standard solvers.
Training via Integration
To train the model to recognize these secants, the authors utilize the fundamental relationship between integrals and derivatives. They approximate the integral of the velocity over an interval using Monte Carlo integration by sampling a random interior time point $r$.
Because a single training iteration only has access to one noised image, the authors employ a technique inspired by Picard iteration. They use a "stop-gradient" version of the model to estimate either an interior point or an endpoint, which then serves as the supervision target for the main model. This leads to four primary variants of the loss function:
- SDEI/STEI: Estimating an interior point (Distillation/Training).
- SDEE/STEE: Estimating an endpoint (Distillation/Training).
Key Insights
1. Target Stability
A critical advantage of Secant Losses over Consistency Models is training stability. In Consistency Models, the training target depends on the model's own derivative, which can be noisy and lead to divergence. In Secant Losses, the target is anchored to either the fixed teacher diffusion model or the original diffusion training target, making the process as stable as standard diffusion training.
2. Geometric Extension
Geometrically, the loss works by gradually extending the tangent to the secant. By starting with a pretrained diffusion model (the tangent), the model is fine-tuned to handle progressively larger time gaps, effectively "straightening" the ODE flow for larger steps.
3. Integration vs. Differentiation
While many distillation methods rely on differentiation—a process sensitive to noise—Secant Losses rely on integration. Integration is naturally a smoothing operation, which makes the resulting model more robust to the noise inherent in the diffusion process.
Experimental Results
The authors evaluated the secant framework on CIFAR-10 and ImageNet-256 (using DiT and SiT architectures). The results demonstrate that the method excels in the few-step regime:
- ImageNet-256: Using the SiT-XL/2 architecture, the model achieved an 8-step FID of 1.96 and a 4-step FID of 2.27. This performance is highly competitive with complex distillation methods while being much simpler to implement.
- CIFAR-10: The model achieved a 10-step FID of 2.14, showing significantly slower performance degradation than standard numerical solvers as step counts were reduced.
- Efficiency: The method is remarkably efficient, requiring only approximately 1% of the original teacher model's training duration to achieve these results through fine-tuning.
Limitations and Future Work
Despite its success in the 4-8 step range, a performance gap remains when attempting single-step generation compared to specialized one-step distillers. Additionally, the performance on ImageNet still relies heavily on Classifier-Free Guidance (CFG); the theoretical interplay between CFG and secant losses remains an open area for research. Finally, unlike training-free samplers, this method requires access to the original training data for the fine-tuning phase, which may limit its use in certain privacy-constrained scenarios.
Conclusion
Secant losses offer a mathematically grounded and stable approach to accelerating diffusion models. By learning to average derivatives over intervals, the framework bridges the gap between slow, accurate ODE solvers and fast, potentially unstable distillation methods, providing a robust path toward real-time high-quality image synthesis.
Summary updated