Introduction
Multivariate time-series anomaly detection (MTSAD) is critical for monitoring complex systems like industrial plants, power grids, and spacecraft. However, existing methods often struggle with high false alarm rates or missed detections because they rely on superficial statistical changes rather than the underlying system logic.
Traditional models might flag a normal causal response—such as an increase in power consumption due to a scheduled load—as an anomaly. Conversely, they might miss "silent" failures where sensor values remain within typical ranges but the expected causal relationships between variables are violated. The CAROTS framework addresses these challenges by explicitly modeling and leveraging causal dependencies.
The CAROTS Framework
CAROTS (Causality-Aware contrastive learning for RObust multivariate Time-Series) introduces a pipeline that integrates causal discovery with contrastive learning to build a more robust representation of "normal" system behavior.
The framework operates in four primary stages:
- Causal Discovery: Using a forecasting-based model (CUTS+), CAROTS learns a directed acyclic graph (DAG) representing the causal relationships between variables in the training data.
- Causality-Aware Data Augmentation: This stage generates synthetic samples to train a robust encoder.
- Similarity-Filtered One-Class (SOC) Loss: A novel contrastive loss that prevents "representation collapse" by allowing the model to learn multiple clusters within the normal data.
- Ensemble Scoring: Anomaly detection is performed by combining embedding-based distance scores with forecasting errors from the causal model.
Causality-Aware Augmentation
The core innovation of CAROTS lies in its two specialized augmentors, which move beyond simple noise injection to create "causally meaningful" samples.
Causality-Preserving Augmentor (CPA)
The CPA generates diverse positive samples. It injects noise into "cause" variables and uses the learned causal model to predict the corresponding "effect" variables. This ensures that the resulting synthetic data, while different from the original, still obeys the system's underlying physics.
Causality-Disturbing Augmentor (CDA)
The CDA generates hard negative samples (synthetic anomalies). It identifies subgraphs within the causal DAG and injects random biases that break the established links. By training the encoder to distinguish these "broken" relationships from normal ones, the model becomes highly sensitive to real-world structural anomalies.
Experimental Results
The authors evaluated CAROTS on five real-world datasets (SWaT, WADI, PSM, SMD, MSL) and two synthetic benchmarks (Lorenz96, VAR) designed with explicit causal structures.
- State-of-the-Art Performance: CAROTS consistently outperformed baselines like AnomalyTransformer, TimesNet, and USAD. On the complex WADI dataset, it achieved an AUROC of 0.622, significantly higher than the 0.53 average of other methods.
- Robustness to Noise: On the Lorenz96 dataset, CAROTS achieved a near-perfect AUROC of 0.998 for global anomalies, demonstrating its ability to "see" through noise that confuses traditional distribution-based models.
- Ablation Studies: Removing the CPA or CDA components led to significant performance drops, confirming that both "causally legal" variety and "causally broken" examples are essential for effective learning.
Conclusion
CAROTS demonstrates that causality is a powerful feature for robust anomaly detection. By focusing on the stability of inter-variable relationships rather than just raw values, the framework reduces false positives and improves the detection of subtle structural failures. Future work will focus on adapting the model to non-stationary environments where causal relationships may evolve over time.
Summary updated