Standard generative models for time series often treat data as fixed-length vectors or sequences of discrete steps. However, real-world data—like a patient’s heart rate or a stock price—is frequently "irregularly sampled," meaning observations occur at arbitrary intervals.
Existing diffusion models (like those used for image generation) typically add independent Gaussian noise to every data point. If applied naively to time series, this "forward" noising process immediately destroys the temporal continuity of the signal, resulting in jittery, unrealistic samples. To address this, researchers propose modeling the underlying continuous function that generated the data rather than just the discrete points.
This paper introduces a novel approach: training diffusion models that treat time series as continuous functions. By adding noise sampled from a stochastic process (such as a Gaussian Process) rather than independent Gaussian noise, the model learns to generate smooth, continuous samples. This naturally handles irregularly sampled data, making it highly effective for tasks like forecasting and imputation.
Methodology: Stochastic Process Diffusion
Instead of adding a standard noise vector $\epsilon \sim \mathcal{N}(0, I)$, the authors propose adding a noise function $\epsilon(\cdot)$ sampled from a stochastic process.
Noise Sources: The framework primarily utilizes two types of noise:
- Gaussian Process (GP): Uses a radial basis function (RBF) kernel to create highly smooth noise trajectories.
- Ornstein-Uhlenbeck (OU) Process: A stationary process that adds noise while ensuring the variance remains bounded over time.
Model Architecture: The authors adapt both discrete-step diffusion (DSPD, based on DDPMs) and continuous-time SDE-based diffusion (CSPD) to this function-space framework. The denoising model, $\epsilon_\theta$, acts as a time-series encoder-decoder. It takes noisy observations, their timestamps, and an optional history vector to predict the added noise. Because it operates over functions, it can predict values at any arbitrary timestamp, not just those seen during training.
Evaluation Datasets: The approach was evaluated across three distinct categories:
- Synthetic Dynamics: Six complex system datasets, including the Lorenz chaotic system, Predator-Prey equations, and the CIR financial model.
- Real-world Forecasting: Standard benchmarks including Electricity, Exchange rates, and Solar energy production.
- Medical Imputation: The Physionet dataset, containing irregularly sampled clinical measurements from ICU patients.
Key Insights
- Continuity as an Inductive Bias: Using a correlated noise source forces the model to learn that points close in time should be strongly related. This acts as a powerful prior for time-series data, preserving the natural smoothness of the signal.
- Diffusion as a Neural Process: By conditioning the model on a set of observed points, it functions similarly to a Neural Process. It can seamlessly "fill in the blanks" (imputation) or "predict the future" (forecasting) by treating these tasks as conditional generation in function space.
- Mathematical Elegance: Despite the use of complex correlated noise, the authors demonstrate that the loss function simplifies to a mean-squared error between the predicted and true noise—very similar to standard image diffusion. This makes the approach straightforward to implement using existing deep learning libraries.
Key Results
The proposed continuous-function approach yielded strong empirical results across multiple domains:
- Indistinguishable Samples: On synthetic datasets, a trained discriminator struggled to tell real data apart from the model's generated samples, with accuracy hovering near 0.5 (random guessing). The model significantly outperformed baselines like Latent ODEs.
- State-of-the-Art Forecasting: On the real-world Electricity and Exchange datasets, the model outperformed TimeGrad (a popular diffusion-based forecaster) in both NRMSE (accuracy) and Energy Score (probabilistic calibration).
- Robust Imputation: On the Physionet medical data, the DSPD-GP model consistently beat the CSDI baseline. This performance gap was most pronounced at extreme levels of missingness (e.g., 90% missing data), where the continuous-function prior helped the model maintain a realistic shape for the underlying signal.
Limitations and Future Work
While promising, the approach has a few limitations:
- Computational Complexity: Using a full Gaussian Process covariance matrix requires $O(M^3)$ operations for $M$ time points. Although the authors use tricks (like the OU process or specific kernels) to mitigate this, scaling to extremely long sequences remains a challenge.
- Implementation Enhancements: The current implementation uses a relatively "bare bones" diffusion setup. Incorporating recent advances like improved noise scheduling or faster sampling techniques (e.g., DDIM) could further boost performance.
- Beyond Time Series: The authors suggest this framework could be extended to other continuous domains, potentially modeling 3D point clouds or high-resolution images as continuous functions rather than discrete grids.
Summary updated