Skip to main content
QUICK REVIEW

[论文解读] Harnessing Contrastive Learning and Neural Transformation for Time Series Anomaly Detection

Katrina Chen, Mingbin Feng|arXiv (Cornell University)|Apr 16, 2023
Anomaly Detection Techniques and ApplicationsComputer Science被引用 3
一句话总结

该论文提出了一种基于对比学习的框架,通过实例-上下文对齐建模局部上下文,同时利用确定性对比损失防止表征坍塌,从而提升时间序列异常检测性能。该方法通过联合优化上下文与对比目标,有效捕捉上下文依赖型异常,在工业数据集上优于最先进基线方法。

ABSTRACT

Time series anomaly detection (TSAD) plays a vital role in many industrial applications. While contrastive learning has gained momentum in the time series domain for its prowess in extracting meaningful representations from unlabeled data, its straightforward application to anomaly detection is not without hurdles. Firstly, contrastive learning typically requires negative sampling to avoid the representation collapse issue, where the encoder converges to a constant solution. However, drawing from the same dataset for dissimilar samples is ill-suited for TSAD as most samples are ``normal'' in the training dataset. Secondly, conventional contrastive learning focuses on instance discrimination, which may overlook anomalies that are detectable when compared to their temporal context. In this study, we propose a novel approach, CNT, that incorporates a window-based contrastive learning strategy fortified with learnable transformations. This dual configuration focuses on capturing temporal anomalies in local regions while simultaneously mitigating the representation collapse issue. Our theoretical analysis validates the effectiveness of CNT in circumventing constant encoder solutions. Through extensive experiments on diverse real-world industrial datasets, we show the superiority of our framework by outperforming various baselines and model variants.

研究动机与目标

  • 为解决单类分类方法在检测时间序列数据中基于上下文的异常时的局限性。
  • 通过集成确定性对比损失,克服基于对比学习的异常检测中的表征坍塌问题。
  • 通过建模局部时间动态并通过上下文实例对齐,提升异常检测性能。
  • 结合DeepSVDD与Neural AD的优势,以在时间序列异常检测中实现更好的表征学习。
  • 通过实证评估在真实世界工业数据集上展示优越性能。

提出的方法

  • 提出上下文对比损失(CCL),将每个实例的潜在表征拉向其最近的上下文窗口,从而实现上下文感知的异常检测。
  • 从Neural AD引入确定性对比损失(DCL),用于正则化变换,防止编码器坍塌至常数解。
  • 在联合优化目标中结合CCL与DCL损失,以增强表征的多样性与语义意义。
  • 使用标准的深度神经网络编码器将输入序列映射到潜在空间,并在训练过程中应用损失函数。
  • 在CCL损失中采用基于小批量的方差正则化,以稳定训练并提升泛化能力。
  • 推理阶段,仅使用CCL损失作为每个测试实例的异常得分。

实验结果

研究问题

  • RQ1通过实例-上下文对齐建模局部上下文,能否提升时间序列中基于上下文的异常检测能力?
  • RQ2将上下文对比损失与确定性对比损失结合,能否防止自监督异常检测中的表征坍塌?
  • RQ3在真实世界工业数据集上,该方法在检测多样化异常类型方面与最先进基线相比表现如何?
  • RQ4DCL的集成在多大程度上提升了表征多样性与异常检测性能?
  • RQ5该框架能否检测到全局单类方法所遗漏的细微、上下文依赖型异常?

主要发现

  • 所提方法在多个真实世界工业数据集上 consistently 超过四种模型变体(包括CCL、OCC、DCL和CCL+reg),表现更优。
  • 仅使用CCL的设置表现较差,其表征坍塌导致无法有效捕捉局部上下文,证据充分。
  • 引入DCL后性能显著优于仅使用CCL,表明对比正则化可提升表征质量。
  • CCL+reg变体(增加方差正则化)表现劣于默认设置,表明DCL比简单方差约束更有效。
  • 在TODS单变量数据集上,所提方法成功识别出如渐进漂移与形状子模式偏差等上下文异常,而OCC与DCL设置未能检测到。
  • 该方法在所有测试数据集上均取得更优的F1分数,展现出对多样化异常类型的鲁棒性与泛化能力。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。