Beyond Sharing: Conflict-Aware Multivariate Time Series Anomaly Detection

Haotian Si, Changhua Pei, Zhihan Li, Yadong Zhao, Jingjing Li, Haiming Zhang, Zulong Diao, Jianhui Li, Gaogang Xie, Dan Pei

Abstract

Multivariate Time Series (MTS) anomaly detection is a critical task in modern industrial and IT monitoring. However, traditional deep learning models often struggle with "metric conflicts," where the optimization of a single global loss function leads to gradient interference between metrics with divergent normal behaviors. This paper introduces CAD (Conflict-aware Anomaly Detection), a framework that leverages a specialized Multi-gate Mixture-of-Experts (MMoE) architecture to mitigate these conflicts. By incorporating task-oriented feature selection and a personalized-and-shared (p&s) gating mechanism, CAD effectively isolates conflicting signals while capturing essential inter-metric dependencies. Our evaluation across three major benchmarks—SMD, SWaT, and WADI—shows that CAD achieves state-of-the-art performance with an average F1-score of 0.943, demonstrating particular robustness in high-dimensional, noisy environments.

1. Introduction

In contemporary IT infrastructure and industrial plants, operators must monitor thousands of concurrent Key Performance Indicators (KPIs). Detecting anomalies within this Multivariate Time Series (MTS) data is essential for maintaining system reliability and preventing catastrophic failures. Current state-of-the-art models typically treat MTS anomaly detection as a multi-task learning problem, attempting to reconstruct or forecast all metrics simultaneously through a shared representation.

However, this "shared" approach introduces a significant hidden pitfall: metric conflicts. In complex systems, different metrics often exhibit contradictory normal behaviors. For instance, one metric may remain highly stable while another naturally fluctuates due to external load balancing. When a model attempts to minimize a single joint loss, these disparate behaviors create a "tug-of-war" in the gradients, leading to either false positives (over-sensitivity to normal drift) or missed detections (insensitivity to subtle changes). CAD is designed to address this interference by isolating metric-specific patterns without sacrificing the benefits of joint modeling.

2. The CAD Framework

CAD addresses the limitations of standard MTS models by adapting the Multi-gate Mixture-of-Experts (MMoE) framework, originally popularized in recommendation systems, specifically for the temporal dynamics of time series data.

2.1 Task-Oriented Feature Selection

Standard MMoE models often feed the entire input vector into every "gate" (the mechanism that selects which expert to prioritize). In high-dimensional MTS, this introduces excessive noise. CAD implements task-oriented feature selection, where each metric’s gate primarily focuses on its own local time window. This ensures that the expert selection process is grounded in the specific nuances of the target metric rather than being distracted by irrelevant fluctuations in distant variables.

2.2 Personalized and Shared (p&s) Gating

To manage the convergence challenges inherent in systems with hundreds of metrics, CAD utilizes a dual-gate system:

  • Shared Gates: These learn global, robust patterns that are consistent across the entire system.
  • Personalized Gates: These capture the unique "local vibes" and specific nuances of an individual metric. This hierarchy allows the model to benefit from shared system knowledge while shielding individual metrics from negative transfer.

2.3 CNN-Based Experts

While many MTS models rely on sequential architectures like LSTMs, CAD employs Convolutional Neural Networks (CNNs) as its experts. CNNs offer two primary advantages: they are highly parallelizable, leading to faster training times, and they are exceptionally effective at "sharpening" and identifying sudden, localized changes within a time window—a common characteristic of system anomalies.

2.4 Loss Balancing

To prevent metrics with larger magnitudes from dominating the training process, CAD applies MinMax scaling. This simple but effective normalization ensures that the model treats all KPIs with appropriate relative importance during the optimization phase.

3. Experimental Evaluation

CAD was evaluated against nine state-of-the-art baselines, including TranAD, USAD, and Anomaly Transformer, using three widely recognized public MTS benchmarks:

  1. SMD (Server Machine Dataset): 5-week data from 28 machines at a large internet company.
  2. SWaT (Secure Water Treatment): Data from a continuous real-world water treatment plant.
  3. WADI (Water Distribution): A more complex extension of SWaT involving 123 metrics and intricate distribution patterns.

4. Results and Discussion

CAD demonstrated superior accuracy across all datasets, achieving an average F1-score of 0.943.

4.1 Robustness to Noise and Drift

The model showed its most significant gains on the WADI dataset, which is characterized by high dimensionality and complex noise. While traditional baselines struggled to distinguish between normal baseline shifts and true anomalies, CAD’s gating mechanism successfully "shielded" metrics from irrelevant inter-metric interference. Qualitative case studies, such as the "machine-1-8" scenario in the SMD dataset, confirmed that CAD correctly identified normal drifts that other models flagged as false positives.

4.2 The Importance of Isolation

The empirical results support the authors' hypothesis: gradient conflicts are a primary bottleneck in MTS anomaly detection. CAD proves that while capturing inter-metric relationships is vital, the ability to isolate individual patterns is equally important to prevent "negative transfer," where learning one task inadvertently degrades the performance of another.

5. Conclusion and Future Work

CAD represents a significant step forward in making MTS anomaly detection more robust for real-world applications. By acknowledging and addressing metric conflicts through a modified MMoE architecture, it provides a more nuanced approach to system monitoring.

Future research directions include improving scalability for systems with tens of thousands of metrics and exploring the integration of reconstruction-based methods to complement CAD’s forecasting approach. Additionally, the field continues to move toward more rigorous evaluation metrics to move beyond the potential biases of the standard "point-adjustment" strategy.

Summary updated

BibTeX
@inproceedings{si2023beyond,
  author = {Haotian Si and Changhua Pei and Zhihan Li and Yadong Zhao and Jingjing Li and Haiming Zhang and Zulong Diao and Jianhui Li and Gaogang Xie and Dan Pei},
  title = {{Beyond Sharing: Conflict-Aware Multivariate Time Series Anomaly Detection}},
  booktitle = {ESEC/SIGSOFT FSE},
  year = {2023},
  url = {https://openreview.net/forum?id=3ZK985pHOWs},
}
Figure