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

Learning Multi-Pattern Normalities in the Frequency Domain for Efficient Time Series Anomaly Detection

Feiyi Chen, Yingying Zhang, Zhen Qin, Lunting Fan, Renhe Jiang, Yuxuan Liang, Qingsong Wen, Shuiguang Deng

TL;DR

MACE (Multi-normal-pattern Accommodated and Efficient anomaly detection) is a novel framework that tackles the challenge of monitoring millions of diverse cloud services with a single, unified model. By operating in the frequency domain and using "dualistic convolutions," MACE achieves state-of-the-art accuracy—improving F1 scores by an average of 8.7%—while running 4x faster than current deep learning baselines.

What Problem Does This Paper Address?

Monitoring large-scale cloud environments is a nightmare for traditional anomaly detection. The authors identify three critical bottlenecks:

  1. Diverse Normal Patterns (C1): Cloud centers host millions of services, each with a unique "normal" behavior. What is a spike for one service might be perfectly normal for another. Most current methods require a tailored model for every single service, which is computationally ruinous.
  2. Real-time Inefficiency (C2): High-traffic scenarios involve hundreds of thousands of requests per second. Popular deep learning models (like RNNs or LSTMs) are hard to parallelize because they process data sequentially, making them too slow for peak traffic.
  3. Point Anomaly Insensitivity (C3): Many reconstruction-based models (like standard autoencoders) are "too good" at their job—they accidentally reconstruct short-term anomalies, making them blend in with normal data and difficult to detect.

Methods

MACE introduces a four-stage pipeline designed to amplify anomalies while remaining highly efficient:

  • Dualistic Convolution: Instead of standard convolutions, MACE uses "peak" and "valley" convolutions. In the time domain, these specifically amplify upward and downward deviations, making short-term anomalies more conspicuous. In the frequency domain, they are designed to hinder the reconstruction of anomalous signals.
  • Context-Aware DFT/IDFT: This is the core of MACE’s efficiency. Instead of using the full Fourier spectrum, MACE identifies a "normal pattern subspace" for each service by selecting a strategically chosen subset of dominant Fourier bases.
  • Pattern Extraction Mechanism: The model doesn't just look at a data sample; it examines the correlation between that sample and its service-specific normal subspace. If a sample is far from its service's subspace, it's harder to reconstruct, leading to a higher error and an anomaly flag.
The model architecture of MACE, showing the flow from original time series through dualistic convolution and context-aware frequency transformations.

Datasets

The authors evaluated MACE on five diverse real-world datasets:

  • SMD (Server Machine Dataset): 5 weeks of logs from 28 machines at a major internet company.
  • J-D1 & J-D2: Monitoring logs from 30 services at a top global internet company.
  • SMAP (Soil Moisture Active Passive): Spacecraft telemetry data, known for having many point anomalies.
  • MC: A dataset collected by the authors from a top-ten global cloud provider, containing 25 services over 15 days.

Key Insights and Ideas

  • Less is More in the Frequency Domain: Counter-intuitively, using a subset of Fourier bases is better than using the complete spectrum. The authors theoretically prove that anomalies typically manifest as high-energy components in the "tail" of the spectrum. By ignoring these tails during the definition of "normality," the reconstruction error for anomalies increases significantly, making them easier to spot.
  • Parallelism via Frequency: By moving from the time domain to the frequency domain, MACE eliminates the temporal dependencies that plague recurrent networks (RNNs). This allows for fine-grained operator parallelization, which is the key to its 4x speedup.
  • Unified Model Success: The paper demonstrates that a single MACE model can outperform multiple tailored models from other SOTA methods. As shown in the figure below, traditional unified models usually see a massive performance drop compared to tailored ones, but MACE bridges this gap.
Comparison of F1 scores for unified vs. tailored models. MACE maintains high performance even when unified.

Key Results

  • Accuracy: MACE improved the F1 score by an average of 8.7% over the strongest baselines (like DCdetector and AnomalyTransformer) when using a unified model for multiple services.
  • Efficiency: MACE is roughly 4x faster than the strongest baselines and has a significantly lower memory footprint than complex transformer-based or recurrent models.
  • Transferability: The model showed excellent "zero-shot" performance, maintaining high F1 scores even when tested on normal patterns it hadn't seen during training.

Limitations and Future Work

While MACE is robust, the authors note some sensitivities:

  • Hyperparameter Tuning: The performance follows an "increasing-then-decreasing" pattern regarding the number of Fourier bases and the kernel size of the dualistic convolution. Too few bases fail to capture normality; too many allow anomalies to be reconstructed too easily.
  • Gradient Stability: The power parameter ($\gamma$) in the dualistic convolution cannot grow infinitely, as excessively large values can lead to gradient explosions during training.

Future work might involve automating the selection of the optimal subset of Fourier bases ($k$) to further reduce the need for manual hyperparameter tuning.

Summary updated

BibTeX
@inproceedings{chen2024learning,
  author = {Feiyi Chen and Yingying Zhang and Zhen Qin and Lunting Fan and Renhe Jiang and Yuxuan Liang and Qingsong Wen and Shuiguang Deng},
  title = {{Learning Multi-Pattern Normalities in the Frequency Domain for Efficient Time Series Anomaly Detection}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00047},
}
Figure