Abstract
Diffusion Models (DMs) have achieved state-of-the-art generative performance across multiple modalities, yet their sampling process remains prohibitively slow due to the need for hundreds of function evaluations. Recent progress in multi-step ODE solvers has greatly improved efficiency by reusing historical gradients, but existing methods rely on handcrafted coefficients that fail to adapt to the non-stationary dynamics of diffusion sampling. To address this limitation, we propose Dynamic Gradient Weighting (DyWeight), a lightweight, learning-based multi-step solver that introduces a streamlined implicit coupling paradigm. By relaxing classical numerical constraints, DyWeight learns unconstrained time-varying parameters that adaptively aggregate historical gradients while intrinsically scaling the effective step size. This implicit time calibration accurately aligns the solver's numerical trajectory with the model's internal denoising dynamics under large integration steps, avoiding complex decoupled parameterizations and optimizations. Extensive experiments on CIFAR-10, FFHQ, AFHQv2, ImageNet64, LSUN-Bedroom, Stable Diffusion and FLUX.1-dev demonstrate that DyWeight achieves superior visual fidelity and stability with significantly fewer function evaluations, establishing a new state-of-the-art among efficient diffusion solvers.
Introduction
Diffusion models have revolutionized generative AI, yet their primary drawback remains inference latency. Generating high-quality samples typically requires dozens or hundreds of neural network evaluations (NFEs). While multi-step ODE solvers like DPM-Solver++ attempt to bridge this gap by reusing historical gradients—effectively gaining information without additional computation—they rely on handcrafted coefficients derived from classical numerical analysis.
In "DyWeight: Dynamic Gradient Weighting for Few-Step Diffusion Sampling," researchers from Zhejiang University and Westlake University argue that these classical assumptions are insufficient for the non-stationary dynamics of few-step sampling. In the high-stakes regime of 3 to 7 steps, the gaps between evaluations are large, and the denoising trajectory is highly non-linear. DyWeight addresses this by replacing rigid, handcrafted coefficients with learnable, time-varying weights.
The DyWeight Approach
The core innovation of DyWeight is the Implicit Coupling paradigm. Traditional solvers maintain a strict separation between the time schedule and the gradient weights, often requiring that weights sum to one ($\sum w = 1$). DyWeight relaxes these constraints to better align with the model's internal dynamics.
Unconstrained Weights and Time Calibration
By allowing gradient weights to be unconstrained, the solver gains two primary advantages. First, the normalized component of the weights learns the optimal way to aggregate historical information. Second, the unnormalized sum of these weights acts as an implicit time shift, effectively scaling the step size to match the actual denoising progress.
This is supplemented by a "micro-level" time scaling factor ($s_n$), which adjusts the query time fed into the neural network. This ensures that even when the numerical trajectory deviates from the ideal path due to large step sizes, the model is evaluated at the appropriate noise level.
Endpoint Supervision
Unlike previous methods that employ "path supervision"—forcing a few-step solver to mimic every intermediate state of a many-step "teacher"—DyWeight utilizes endpoint supervision. The solver is optimized solely to ensure the final generated image matches the high-quality output of the teacher. This flexibility allows the solver to discover efficient "shortcuts" through the latent space that are not possible when strictly following a 50-step trajectory.
Experimental Evaluation
The authors evaluated DyWeight across a diverse set of benchmarks, including pixel-space models (CIFAR-10, FFHQ, ImageNet) and latent-space models (Stable Diffusion v1.5, FLUX.1-dev).
Key Results
DyWeight establishes a new state-of-the-art for efficient diffusion sampling:
- CIFAR-10: At 3 NFEs, DyWeight achieved an FID of 8.16, significantly outperforming previous learnable solvers like EPD-Solver (10.40) and handcrafted methods like iPNDM (24.55).
- FLUX.1-dev: On this cutting-edge model, DyWeight consistently surpassed DPM-Solver++ in both visual fidelity (FID) and prompt alignment (CLIP score) across 3, 5, and 7 steps.
- Efficiency and Generalization: Training DyWeight is remarkably fast, requiring only 2–9 minutes and as few as 600 images. Furthermore, weights trained on one dataset (e.g., ImageNet) generalize well to others (e.g., FFHQ), indicating that the solver captures fundamental denoising properties.
Discussion and Future Work
The success of DyWeight highlights that "relaxing" classical numerical constraints can simplify complex optimization problems in deep learning. By removing the $\sum w = 1$ requirement, the authors transformed a difficult joint-optimization task into a straightforward learning process.
However, limitations remain. Like other ODE-based solvers, DyWeight is constrained by local linearization and struggles with extreme 1- or 2-step generation where the denoising curve is too sharp. Future work may explore "NFE-agnostic" weights that function across varying step counts and the integration of DyWeight with other distillation techniques like Adversarial or Score Distillation to further push the boundaries of real-time generation.
Paper Citation: Zhao, T., et al. (2026). DyWeight: Dynamic Gradient Weighting for Few-Step Diffusion Sampling. arXiv:2603.11607v1.
Summary updated