Abstract
Denoising Diffusion Probabilistic Models (DDPMs) have set new standards in generative tasks but suffer from high computational costs and slow inference. This paper presents the Continuous U-Net (cU-Net), an architectural shift that replaces traditional discrete convolutional layers with continuous dynamical systems modeled by second-order Neural Ordinary Differential Equations (ODEs). By rethinking the denoising backbone, the cU-Net achieves a 75% reduction in parameter count and a 60% reduction in FLOPs compared to standard U-Nets, while delivering faster convergence and improved perceptual quality.
Introduction
The success of diffusion models is often overshadowed by their "Achilles' heel": the massive computational overhead of the iterative reverse denoising process. Most research has focused on optimizing sampling trajectories (e.g., DDIM). However, the core architectural bottleneck—the U-Net—remains largely unaddressed. Standard U-Nets are "parameter-heavy" and computationally "thick," multiplying inefficiencies across every sampling step. The Continuous U-Net (cU-Net) addresses this by treating the denoising process as a continuous-time evolution of latent representations.
The Continuous U-Net Framework
The cU-Net replaces the static, discrete blocks of a traditional U-Net with dynamic ODE blocks. While the global diffusion process is still discretized into timesteps, each individual step within the network is modeled as a continuous flow.
This approach allows the model to learn more flexible trajectories for data reconstruction. Instead of predicting a static noise residual, the network parameterizes the "acceleration" of hidden states, leading to a more efficient representation of complex data features.
Technical Components
The efficiency of the cU-Net stems from several key innovations:
- Dynamic ODE Blocks: These blocks use second-order Neural ODEs to model the dynamics of the denoising process. By learning the underlying flow rather than discrete transformations, the model can "reuse" dynamics, significantly reducing the required number of weights.
- ODE Function Approximator: The internal structure of these blocks includes group normalization, convolutional layers, and softplus activations, integrated with time embeddings to adapt to different noise levels.
- Adjoint Sensitivity Method: This method is employed for backpropagation, enabling $O(1)$ memory cost during training by avoiding the need to store intermediate activations.
Experimental Results
The cU-Net was evaluated on MNIST, CelebA, and LSUN Church datasets. The results demonstrate a significant leap in efficiency without sacrificing generative performance.
- Parameter Efficiency: The cU-Net requires only 8.8M parameters, a 75% reduction from the 35.7M parameters in a standard DDPM U-Net.
- Computational Load: The model operates at 2.90 GFLOPS, compared to 7.21 GFLOPS for the baseline.
- Inference Speed: CPU-based benchmarks show the cU-Net is 30% to 80% faster than standard architectures.
- Convergence: On MNIST, the cU-Net reached optimal FID scores in just 5 steps (vs. 30 for the baseline). On CelebA, it achieved competitive results in 15 steps (vs. 100).
Perceptually, the cU-Net tends to favor feature prediction over simple texture smoothing. This leads to superior LPIPS (Perceptual) scores, as the model avoids the "over-smoothing" common in traditional U-Nets at high noise levels.
Conclusion and Future Work
The Continuous U-Net demonstrates that continuous dynamics can make diffusion models significantly leaner and faster. By reducing the parameter and FLOP requirements by over 60%, this architecture paves the way for high-quality generative AI on resource-constrained devices. Future work will focus on optimizing ODE solvers for GPU kernels and scaling the framework to ultra-high-resolution image and video generation.
Summary updated