TL;DR
Standard diffusion models treat all frequencies equally, but time series data is typically dominated by vital low-frequency signals. MA-TSD (Moving Average Time Series Diffusion) introduces a non-isotropic diffusion process that uses moving averages as transitions. This approach preserves essential structural information during training, resolves gradient contradiction issues, and achieves state-of-the-art results in time series forecasting and super-resolution.
The Problem: Isotropic Diffusion in Time Series
Diffusion models, such as the Denoising Diffusion Probabilistic Model (DDPM), have revolutionized generative AI for images and audio. However, when applied to time series data, they often struggle. The authors identify a fundamental mismatch: standard DDPM is isotropic, meaning it treats every time step and every frequency component identically.
In time series data, low-frequency components—like seasonal trends or long-term cycles—usually carry the most important structural information. Standard diffusion adds noise so aggressively that these low-frequency signals vanish almost immediately. This rapid degradation leads to gradient contradiction: during training, the model receives conflicting gradient signals at different diffusion steps, making convergence unstable and hindering the model's ability to capture the underlying structure of the data.
Methods: Moving Average Time Series Diffusion (MA-TSD)
To address this, the authors propose MA-TSD, which replaces the standard Gaussian noise transition with a Moving Average (MA) operation.
- Non-isotropic Forward Process: Instead of uniformly adding noise, the forward process gradually "coarsens" the time series using moving average kernels of increasing sizes. This acts as a natural low-pass filter, ensuring that low-frequency information decays much more slowly than high-frequency noise.
- Instance Normalization: Because moving averages do not change the mean of a signal, the authors apply instance normalization to each sample (enforcing zero mean and unit variance). This ensures the final diffused state eventually reaches a standard Gaussian distribution.
- Dataset-based Noise Schedule: Rather than using a fixed mathematical schedule, MA-TSD calculates a custom noise schedule ($\beta_t$) based on the actual variance reduction caused by the moving average on a specific dataset.
- Accelerated Backward Process: Similar to DDIM, the model supports an accelerated sampling strategy. The authors introduce a "factor-only" strategy, picking backward steps that correspond to the mathematical factors of the time series length, proving it to be more effective than random sampling.
- Hybrid Loss: For forecasting tasks, the model uses a hybrid loss function that simultaneously trains the network to predict the "shape" of the series and its statistical properties (mean and standard deviation).
Key Insights and Ideas
Resolving Gradient Contradiction
The researchers visualized the cosine similarity of gradients across different diffusion steps. They discovered that in standard DDPM, gradient directions shift violently once the low-frequency energy drops below a certain threshold. By utilizing moving averages, MA-TSD keeps these gradients aligned for much longer, stabilizing the training process.
Diffusion as Super-Resolution
Because the backward process recovers fine details from a coarsened (moving average) version of the data, the model is inherently performing super-resolution. This allows it to handle multi-resolution tasks naturally without needing to be retrained for every specific scale.
Frequency-Awareness is Essential
The paper argues that the "inductive bias" of time series—the fact that low frequencies matter more—must be baked into the architecture of the diffusion process itself, not just left for the neural network to figure out.
Key Results
The model was evaluated across several diverse real-world benchmarks, including forecasting (e.g., Electricity, Weather, Traffic) and super-resolution (MFRED, Wind, Solar).
- Forecasting Superiority: MA-TSD achieved the best overall rank across all tested datasets. On the ETTm2 dataset, it achieved an average MSE of 0.1241, significantly outperforming other diffusion benchmarks like CSDI (2.1230) and TMDM (0.1789).
- Super-resolution Quality: In super-resolution tasks (e.g., upscaling 5-minute data to 60-minute resolution), MA-TSD outperformed DDPM and Flow Matching (FM-VP) in both consistency and generative quality.
- Efficiency: The "factor-only" backward strategy allowed the model to achieve high-quality results with significantly fewer inference steps compared to standard uniform sampling.
Limitations and Future Work
While highly effective, the authors note a few limitations. First, they primarily used Multi-Layer Perceptrons (MLPs) for their internal encoders and decoders to isolate the impact of the diffusion mechanism. Integrating state-of-the-art architectures like PatchTST could further boost performance.
Additionally, on datasets with highly informative high-frequency components (like the Weather dataset), the improvement was marginal, as the moving average filter suppresses these details. Future work will explore more complex "coarsening" operators beyond simple moving averages to better fit non-periodic or high-frequency-dependent time series.
Summary updated