NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Conditional Diffusion Model with Nonlinear Data Transformation for Time Series Forecasting

J Rishi, Gvs Mothish, Deepak SubramaniICML 2025

TL;DR

Researchers have developed CN-Diff, a conditional diffusion model that replaces the standard "dumb" noise-adding forward process with a learnable, nonlinear data transformation. By making the forward process aware of the data's structure and conditions, the model significantly improves forecasting accuracy across diverse real-world datasets while remaining more computationally efficient than existing diffusion baselines.

What Problem Does This Paper Address?

Diffusion models have taken the generative AI world by storm, but applying them to time series forecasting isn't straightforward. Standard Denoising Diffusion Probabilistic Models (DDPMs) work by gradually adding linear Gaussian noise to data until it becomes pure white noise (the forward process), then training a network to reverse that process.

The authors identify two major bottlenecks in this "standard" approach for time series:

  1. The "Fixed" Forward Process: In most models, the forward process is non-learnable and ignores the inherent temporal dynamics or correlations between variables.
  2. The Isotropic Prior: Forcing complex, highly correlated time series data into a simple, independent Gaussian distribution (isotropic prior) makes the "un-noising" (reverse process) extremely difficult for the model to learn accurately.

Essentially, standard diffusion tries to turn a complex melody into static noise and then reconstruct the melody from scratch. CN-Diff aims to make that static noise "smarter" so the reconstruction is easier.

Comparison of diffusion processes

Methods: Redesigning the Forward Process

The core innovation of CN-Diff (Conditional Diffusion with Nonlinear Data Transformation) lies in redesigning the forward process to be dynamic and data-aware.

  • Learnable Nonlinear Transformation ($T_\phi$): Instead of just adding noise to the raw data $x$, the model applies a time-dependent nonlinear neural operator $T_\phi(x, t)$. This allows the model to learn a latent representation that captures complex patterns and inter-variable relationships during the forward pass.
  • Learnable Condition ($c$): While standard models only use conditions (like historical data) during the reverse process, CN-Diff incorporates a learnable condition $c$ directly into the forward marginal distribution.
  • A New Prior: Because of these changes, the "noise" at the end of the forward process isn't just standard normal noise $\mathcal{N}(0, I)$; it's a learnable distribution $\mathcal{N}(c, I)$. This "synchronizes" the prior with the actual dynamics of the data.
  • Non-Markovian Formulation: To handle these learnable components, the authors derived a new objective function based on a non-Markovian reverse process, ensuring the math remains rigorous and "simulation-free" (meaning it can be trained efficiently without stepping through every noise level).

Key Insights and Ideas

  • The Forward Process shouldn't be a Black Box: By making the forward process learnable, the model effectively "pre-processes" the data into a latent space where denoising is more efficient.
  • Capturing Correlations: Ablation studies showed that applying the nonlinear transform $T_\phi$ across both the feature dimension and the look-back window was crucial. It allows the model to "see" how different variables (e.g., temperature and electricity load) interact over time.
  • Efficiency through Simplification: Counter-intuitively, adding complexity to the forward process makes the overall model faster. Because the reverse process has a more structured target (the learnable prior), it requires fewer parameters and less time to converge. CN-Diff achieved better results with only 1.1M parameters compared to models like SSSD (32M) or CSDI (10M).

Key Results

The model was evaluated on nine real-world multivariate datasets covering energy, transport, weather, finance, and renewables. CN-Diff demonstrated state-of-the-art performance, outperforming 23 baseline models (including PatchTST, TimeDiff, and Informer).

  • Top Ranking: It achieved an average rank of 1.7 across multivariate tasks and 2.0 for univariate tasks.
  • Massive Error Reduction: In ablation studies, adding the nonlinear transformation improved Mean Squared Error (MSE) by 50% to 73% on complex datasets like Electricity and Caiso compared to a standard diffusion setup.
  • Speed: CN-Diff is significantly faster than other diffusion-based forecasters. For a sequence length of 720, its inference time was ~9ms, while the next best diffusion model (mr-Diff) took ~27ms, and others like CSDI took over 500ms.
Qualitative forecasting results

Limitations and Future Work

While CN-Diff performs exceptionally well, the authors noted a few areas for growth. On highly volatile data like the "Wind" dataset, CN-Diff ranked 4th. The authors suggest that incorporating multi-resolution analysis (looking at patterns across different time scales simultaneously) could bridge this gap. Future versions might also include an explicit seasonal-trend decomposition within the diffusion framework to better handle long-term periodicities, and the framework could be extended to tasks beyond forecasting, such as anomaly detection and data imputation.

Summary updated

BibTeX
@inproceedings{rishi2025conditional,
  author = {J Rishi and GVS Mothish and Deepak Subramani},
  title = {{Conditional Diffusion Model with Nonlinear Data Transformation for Time Series Forecasting}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=kcUNMKqrCg},
}
Figure