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

Prototype-oriented unsupervised anomaly detection for multivariate time series

Yuxin Li, Wenchao Chen, Bo Chen, Dongsheng Wang, Long Tian, Mingyuan ZhouICML 2023

Executive Summary

Monitoring large-scale systems—such as server clusters or satellite arrays—generates massive volumes of multivariate time series (MTS) data. Detecting anomalies within these streams is critical, yet current Unsupervised Anomaly Detection (UAD) methods force a difficult compromise: train a massive, generic model for all data, or deploy hundreds of specialized models for individual sensors.

A novel framework, Prototype-oriented UAD (PUAD), offers a compelling middle ground. By learning a shared library of normal patterns—termed "prototypes"—PUAD achieves state-of-the-art detection accuracy and remarkable parameter efficiency. Utilizing Optimal Transport within a Transformer-powered generative model, PUAD effectively matches incoming data to these prototypes, proving highly adaptable to new data streams.

The Challenge: Scaling Anomaly Detection

In modern IT and engineering operations, "normal" behavior is highly contextual. A server hosting video streams exhibits vastly different traffic patterns than one handling database queries. Existing UAD methods typically fall into two categories, both with significant drawbacks:

  1. One-for-One: Training a unique model for every single device yields high accuracy but incurs prohibitive computational costs, making it impossible to scale to millions of devices.
  2. One-for-All: Training a single global model scales well but often fails to capture the diverse "normal modes" across different devices, resulting in high false-alarm rates or missed anomalies.

Furthermore, when new devices are introduced, these traditional models struggle to adapt without extensive retraining—a challenge known as few-shot adaptation or meta-learning.

The PUAD Methodology

The core innovation of PUAD is the Prototype-oriented Optimal Transport (POT) module. Instead of mapping every input directly to a reconstruction, the model learns a group of global prototypes—latent vectors representing common, healthy temporal patterns found across the entire dataset.

Key components of the architecture include:

  • Optimal Transport (OT): Rather than relying on simple similarity measures like cosine distance or Softmax attention, PUAD uses OT to "transport" input features to the most relevant prototypes. This provides a principled, robust method for indexing the pattern library and prevents the model from ignoring rare but normal patterns.
  • Hierarchical Variational Autoencoder (VAE): The model employs a VAE structure where the latent space is guided by the prototypes. It learns the underlying probability distribution of normal behavior rather than simply memorizing training data.
  • Transformer Encoder: To handle the complex, long-range dependencies inherent in time series data, PUAD utilizes a Transformer-based architecture to extract features prior to prototype matching.
  • Local Prototypes for Meta-Learning: For unseen data streams, the model can quickly optimize a small set of "local" prototypes to capture device-specific nuances without retraining the entire global model.

Experimental Setup

The researchers evaluated PUAD across five diverse, high-dimensional datasets:

  • SMD (Server Machine Dataset): 5 weeks of data from an internet company (38 dimensions).
  • MSL & SMAP: Public NASA datasets from the Mars rover and a satellite (55 dimensions).
  • PSM (Pooled Server Metrics): Internal data from eBay application nodes (26 dimensions).
  • DND: A real-world KPI dataset from a large Chinese internet company, featuring 12 websites and 36 KPIs.

Key Results and Insights

PUAD establishes new benchmarks across multiple performance metrics:

  • State-of-the-Art Accuracy: On the SMD dataset, PUAD achieved an F1-score of 96.16%, outperforming previous leading models like TranAD (96.05%) and Anomaly Transformer (92.33%).
  • Parameter Efficiency: By relying on a small set of prototypes and a shared encoder, PUAD requires a fraction of the parameters used by "one-for-one" approaches. On the SMD dataset, it uses roughly 1/10th the parameters of OmniAnomaly.
  • Superior Few-Shot Adaptation: In meta-learning scenarios—adapting to a new stream with only 5 or 10 data points—PUAD maintained F1-scores in the 90s, whereas traditional models saw their performance plummet to the 40s or 50s.
  • Inference Speed: PUAD demonstrated significantly lower testing times per sample compared to RNN-based or complex Transformer models, making it highly viable for real-time online monitoring.

Limitations and Future Directions

While PUAD demonstrates exceptional performance, the authors note a few areas for future exploration:

  • Prototype Scaling: The current implementation uses a fixed number of prototypes (10 global, 2 local). Automatically determining the optimal number of prototypes for extremely massive, heterogeneous systems remains an open challenge.
  • Computational Overhead of OT: Although the Sinkhorn algorithm makes Optimal Transport efficient, it remains more computationally intensive than simple dot-product attention. Scaling to extremely high-dimensional latent spaces may require further optimization.
  • Interpretability: While prototypes represent distinct "patterns," translating these mathematical vectors into human-readable operational states (e.g., "daily backup cycle") is not deeply explored. Enhancing the interpretability of these prototypes would provide significant value for system administrators.

Summary updated

BibTeX
@inproceedings{li2023prototype,
  author = {Yuxin Li and Wenchao Chen and Bo Chen and Dongsheng Wang and Long Tian and Mingyuan Zhou},
  title = {{Prototype-oriented unsupervised anomaly detection for multivariate time series}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=3vO4lS6PuF},
}
Figure