Causality-Aware Contrastive Learning for Robust Multivariate Time-Series Anomaly Detection

HyunGi Kim, Jisoo Mok, Dongjun Lee, Jaihyun Lew, Sungjae Kim +1 more
6/4/2025
cs.LGcs.AI

Official code: kimanki/CAROTS (30 stars, last commit 2025-08-14). 1 more implementation below.

Abstract

Utilizing the complex inter-variable causal relationships within multivariate time-series provides a promising avenue toward more robust and reliable multivariate time-series anomaly detection (MTSAD) but remains an underexplored area of research. This paper proposes Causality-Aware contrastive learning for RObust multivariate Time-Series (CAROTS), a novel MTSAD pipeline that incorporates the notion of causality into contrastive learning. CAROTS employs two data augmentors to obtain causality-preserving and -disturbing samples that serve as a wide range of normal variations and synthetic anomalies, respectively. With causality-preserving and -disturbing samples as positives and negatives, CAROTS performs contrastive learning to train an encoder whose latent space separates normal and abnormal samples based on causality. Moreover, CAROTS introduces a similarity-filtered one-class contrastive loss that encourages the contrastive learning process to gradually incorporate more semantically diverse samples with common causal relationships. Extensive experiments on five real-world and two synthetic datasets validate that the integration of causal relationships endows CAROTS with improved MTSAD capabilities. The code is available at https://github.com/kimanki/CAROTS.

View on arXivView PDF

Code Implementations(2)

kimanki/CAROTSOfficial100%

Causality-Aware Contrastive Learning for Robust Multivariate Time-Series Anomaly Detection (ICML 2025)

305Jun 4, 20251 years agoNOASSERTION
ruiking04/COCACommunity74%
PyTorch

Deep Contrastive One-Class Time Series Anomaly Detection

389PythonFeb 1, 20226 months ago
anomaly-detectiondeep-learningpytorchtime-seriestimeseries

Similar Papers

Cite this paper

@article{kim2025causalityaware,
  title  = {Causality-Aware Contrastive Learning for Robust Multivariate Time-Series Anomaly Detection},
  author = {HyunGi Kim and Jisoo Mok and Dongjun Lee and Jaihyun Lew and Sungjae Kim and Sungroh Yoon},
  year   = {2025},
  eprint = {2506.03964},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.03964v1},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.03964.svg)](https://codeofpaper.com/paper/2506.03964)

Discussion