Multi-Resolution Decomposable Diffusion Model for Non-Stationary Time Series Anomaly Detection

Guojin Zhong, pan wang, Jin Yuan, Zhiyong Li, Long ChenICLR 2025

TL;DR

MODEM (Multi-Resolution Decomposable Diffusion Model) is a novel generative framework designed to detect anomalies in "non-stationary" time series—data where statistical properties drift over time. By leveraging a coarse-to-fine diffusion process and frequency-domain decomposition, the model learns to distinguish between normal distribution shifts and genuine anomalies, achieving state-of-the-art performance across major benchmarks.

The Challenge of Non-Stationarity

Unsupervised anomaly detection often relies on a straightforward premise: learn the "normal" pattern and flag anything that deviates. However, real-world time series—such as sensor data from a spacecraft or server metrics from a data center—are rarely static. They are often non-stationary, meaning their trends, cycles, and noise levels change constantly.

Motivations for MODEM: Non-stationarity challenges, multi-resolution modeling, diffusion characteristics, and frequency decomposition.

Existing models frequently struggle with this "drift," leading to high reconstruction errors for perfectly normal data and resulting in frequent false alarms. The core challenge lies in capturing complex temporal patterns across different scales while successfully ignoring the "noise" of non-stationary shifts.

Methods: The MODEM Architecture

To confront these challenges, the authors introduce MODEM, which attacks the problem through three integrated modules designed to adeptly navigate the intricacies of non-stationarity.

The MODEM architecture featuring the MRD-Sampler, Coarse-to-Fine Diffusion Model, and Frequency-Enhanced Decomposable Network.
  1. Multi-Resolution Data Sampler (MRD-Sampler): Instead of analyzing the data at just one scale, the model uses average pooling to create a hierarchy of resolutions. Coarse resolutions capture long-term trends, while high resolutions capture granular, high-frequency details.
  2. Coarse-to-Fine Diffusion Model: Standard diffusion models add noise to data and then learn to reverse the process. MODEM innovates by embedding cross-resolution correlations into this forward process. Mathematically, the recovery of high-resolution data is guided by the already-recovered low-resolution "trend." This ensures the fine-grained reconstruction stays anchored to the global context.
  3. Frequency-Enhanced Decomposable Network: To handle non-stationarity, the model moves into the frequency domain using a Short-Term Fourier Transform (STFT). It splits the signal into:
  4. Time-Invariant Components: Globally shared, stable information extracted via hierarchical transformers.
  5. Time-Variant Components: Shifting temporal dynamics extracted via Dilated ModernTCN Blocks (DMTB).

By parameterizing the denoising process this way, the model can specifically isolate and model the parts of the signal that are prone to drifting.

Key Insights and Ideas

  • Resolution as a Mathematical Prior: The authors observed that diffusion models naturally generate global trends in early steps and fine details later. MODEM formalizes this intuition by using low-resolution data as an explicit mathematical prior to optimize the diffusion transitions.
  • Frequency Disentanglement: By using the magnitude of frequency components to separate stationary from non-stationary signals, the model avoids the "lag" and errors associated with simple time-domain moving averages.
  • Efficiency via DDIM: Despite processing multiple resolutions, the authors adapted the model to the Denoising Diffusion Implicit Models (DDIM) paradigm. This allows for accelerated sampling, making MODEM competitive in speed with single-resolution models.

Datasets and Key Results

The model was rigorously evaluated on five widely recognized real-world anomaly detection benchmarks: SMD (Server Machine Dataset), PSM (Pooled Server Metrics), MSL (Mars Science Laboratory), SMAP (Soil Moisture Active Passive satellite), and SWaT (Secure Water Treatment).

  • State-of-the-Art Performance: MODEM achieved an average F1-score improvement of 2.11% (rising from a prior SOTA of 91.35% to 93.46%) across the five datasets.
  • Faster Detection: It achieved a lower Average Sequence Detection Delay (ADD), meaning it identifies anomalies more quickly after they occur compared to previous methods.
  • Robustness to Non-Stationarity: In ablation studies, removing the multi-resolution component led to a significant drop in F1-scores, proving that cross-scale correlation is the "secret sauce" for handling shifting data.
  • Generalization: To test versatility, the authors applied MODEM to forecasting and imputation tasks using the Traffic, Exchange, and KDDCup datasets. Even though it was designed for anomaly detection, MODEM performed competitively, outperforming several specialized models.

Limitations and Future Work

While highly effective, MODEM has a few limitations that pave the way for future research:

  • Hyperparameter Sensitivity: The optimal number of resolution scales ($R$) and the percentage of frequency components ($m$) used for decomposition vary by dataset and require manual tuning.
  • Fixed Pooling: The current model uses fixed pooling sizes (powers of 2). The authors suggest that dynamic smoothing strategies might better reveal the periodic characteristics of certain non-stationary series.
  • Precision vs. Speed Trade-off: While DDIM accelerates the model, there is a slight loss in reconstruction precision when reducing the number of sampling steps, which could impact detection in extremely sensitive environments.

Summary updated

BibTeX
@inproceedings{zhong2025multi,
  author = {Guojin Zhong and pan wang and Jin Yuan and Zhiyong Li and Long Chen},
  title = {{Multi-Resolution Decomposable Diffusion Model for Non-Stationary Time Series Anomaly Detection}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=eWocmTQn7H},
}
Figure