Temporal Difference Learning for Diffusion Models

Qizhen Ying, Yangchen Pan, Victor Adrian Prisacariu, Junfeng Wen

Diffusion models have revolutionized generative AI, but their reliance on single-time-step training objectives introduces a critical vulnerability: a lack of cross-time consistency. Standard models learn to predict noise or a clean image at an isolated point in time, offering no guarantee that a prediction made at time $t$ will align with a prediction made at $t-1$.

This inconsistency causes errors to accumulate along the denoising trajectory—a phenomenon known as "drift." Drift is particularly detrimental for fast, few-step samplers (low Number of Function Evaluations, or NFE). When generating an image in just 5 to 10 steps, each step represents a massive jump in the latent space; if these jumps lack global consistency, final image quality severely degrades. To solve this, recent research introduces a Temporal Difference (TD) objective, recasting the denoising process as a reinforcement learning policy evaluation problem.

Denoising as Policy Evaluation

The core innovation of this work is reformulating the diffusion process as a Markov Reward Process (MRP). In this sequential decision-making framework:

  • State: The noisy image at a specific time step.
  • Reward: The difference between posterior means, representing the theoretical "drift" of the diffusion process.
  • Value Function: The expected clean image ($x_0$) given the current noisy state.

By applying Temporal Difference (TD) learning—a foundational concept in Reinforcement Learning—the authors derive a loss function that penalizes inconsistencies between the model's multi-step progress and the underlying diffusion physics. Instead of merely trying to hit a static target ($x_0$), the model is trained to ensure its change in prediction matches the change in the diffusion process. This allows the model to "look ahead" and ensure its current trajectory aligns with where it expects to be several steps later.

Key Methodological Innovations

  1. Unified TD Objective: The mathematical framework is highly versatile, applying seamlessly to both discrete-time models (like DDPM/DDIM) and continuous-time models (like EDM or VP-SDE).
  2. Pairwise Loss Reweighting ($w_{TD}$): Because loss scales vary wildly across different noise levels, training on different time pairs can be highly unstable. The authors introduce a principled, sample-based reweighting scheme to equalize these scales and ensure stable optimization.
  3. Drop-in Regularizer: The TD loss is designed to augment existing objectives (such as EDM or Consistency Training) rather than replacing them entirely.

Empirical Performance and Efficiency

The researchers evaluated their TD-augmented models on standard generative benchmarks, including Conditional CIFAR-10 (32x32), AFHQv2 (64x64), and FFHQ (64x64).

The TD objective acts as a powerful regularizer, teaching the model how to take large denoising jumps without losing its way. This "few-step robustness" translates to significant gains in Fréchet Inception Distance (FID). For example, on FFHQ (64x64), adding the TD objective to EDM improved FID across all tested step counts, reducing the 9-step FID from 7.83 to 7.46.

The most dramatic improvements occurred when the TD objective was applied to Consistency Models. On FFHQ, the single-step generation FID plummeted from 19.45 to 15.93. Furthermore, for Consistency Training, the computational overhead is negligible because the framework already utilizes a target network. For standard EDM, adding the required Exponential Moving Average (EMA) target network increases compute and memory costs by roughly 1.5x, a worthwhile trade-off for a vastly more capable low-budget inference model.

Limitations and Future Directions

While the TD objective offers a robust solution to denoising drift, there are areas for future exploration. The current study validates the approach on resolutions up to 64x64; scaling and verifying this method on high-resolution (e.g., 1024x1024) latent diffusion models remains a necessary next step. Additionally, the authors propose that future iterations could employ "curriculum learning" for the TD span—starting training with small time gaps ($k$) and gradually increasing them as the model's stability improves.

Summary updated

BibTeX
@inproceedings{ying2026temporal,
  author = {Qizhen Ying and Yangchen Pan and Victor Adrian Prisacariu and Junfeng Wen},
  title = {{Temporal Difference Learning for Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=jwLSuhDyDc},
}
Figure