Abstract
Diffusion models are typically trained as single-objective learners, yet the process of denoising across a vast spectrum of noise levels is inherently multi-task in nature. This paper identifies "negative transfer"—where gradients from different denoising timesteps conflict—as a primary bottleneck in model performance. We propose a computationally efficient framework that clusters thousands of denoising timesteps into a small number of discrete tasks using Dynamic Programming. By applying Multi-Task Learning (MTL) optimization techniques to these clusters, we demonstrate significant improvements in image quality (FID) and training convergence across various architectures and datasets.
Introduction
Standard diffusion models are trained to reverse noise across a wide range of timesteps ($t$), from near-total Gaussian noise to fine-grained image details. While traditionally treated as a monolithic objective, the requirements for reconstructing global structure at high noise levels differ fundamentally from the requirements for refining textures at low noise levels. In the context of Multi-Task Learning (MTL), these varying requirements can lead to negative transfer: a phenomenon where gradients from conflicting tasks interfere with one another, resulting in sub-optimal convergence and lower final performance.
The Challenge of Negative Transfer in Diffusion
The core difficulty in applying traditional MTL solutions to diffusion models is scale. Most MTL algorithms, such as PCgrad or NashMTL, are designed to balance a handful of tasks. Diffusion models, however, involve upwards of 1,000 timesteps, making direct application of these algorithms computationally prohibitive.
Empirical evidence suggests a clear "Affinity Gap" in diffusion training: task affinity (the cosine similarity of gradients) drops sharply as the distance between noise levels increases. Furthermore, models trained exclusively on specific noise intervals often outperform generalist models within those specific regimes, confirming that the unified training objective suffers from task interference.
Proposed Method: Interval Clustering and MTL Integration
To bridge the gap between diffusion training and MTL, we introduce a two-stage strategy designed for efficiency and scalability.
1. Interval Clustering via Dynamic Programming
To make the problem tractable, we group the $T$ timesteps into $k$ contiguous clusters (typically $k=5$). We formulate this as an optimization problem solved via Dynamic Programming, exploring three primary clustering objectives:
- Timestep-based: A simple uniform division of the time axis.
- SNR-based: Grouping timesteps based on their Signal-to-Noise Ratio (log-SNR).
- Gradient-based: Utilizing task affinity to group timesteps that demonstrate high gradient agreement.
2. Multi-Task Optimization
Once clustered, we treat each group as a distinct task and apply established MTL optimization methods to balance the learning process:
- PCgrad: This method projects conflicting gradients onto a normal plane to prevent destructive interference between clusters.
- NashMTL: This approach treats task weighting as a cooperative bargaining game, seeking an update that is "fair" to all noise regimes.
- Uncertainty Weighting (UW): By leveraging homoscedastic uncertainty, this method automatically adjusts the loss weight of each cluster during training, requiring minimal computational overhead.
Experimental Results
We validated our framework on standard benchmarks including FFHQ, CelebA-HQ, and ImageNet (256×256) across multiple architectures, including the Ablated Diffusion Model (ADM), Latent Diffusion Model (LDM), and Diffusion Transformer (DiT).
Performance Gains
Our approach yielded substantial improvements in image synthesis quality. On the CelebA-HQ dataset, applying Uncertainty Weighting with timestep clustering improved the Fréchet Inception Distance (FID) from a baseline of 22.27 to 17.74. When combined with existing techniques like P2 weighting, our method (ANT-UW) achieved a state-of-the-art FID of 5.84 on FFHQ, down from 7.21.
Training Efficiency
Beyond final quality, the proposed methods accelerate convergence. Models reach lower FID scores significantly earlier in the training cycle compared to vanilla baselines. Notably, the Uncertainty Weighting (UW) variant maintains a memory and runtime footprint nearly identical to standard training, making it a highly practical addition to existing pipelines.
Discussion and Insights
Analysis of the learned MTL weights reveals that algorithms like NashMTL and UW naturally prioritize high-noise clusters. This suggests that standard diffusion training often under-prioritizes the most difficult stages of the denoising process—the initial formation of global structure.
While our method significantly mitigates negative transfer, a performance gap still remains between our clustered models and specialized interval-specific models. This suggests that while optimization-based MTL is effective, future research into architectural MTL—such as designing model branches specialized for different noise regimes—may be necessary to fully eliminate task interference in diffusion models.
Conclusion
By reframing diffusion training as a manageable multi-task problem through interval clustering, we provide a robust framework for mitigating negative transfer. Our results demonstrate that even a small number of clusters ($k=5$) can unlock significant gains in both image quality and training speed without requiring substantial architectural changes or computational overhead.
Summary updated