arXiv:2509.21190cs.LGcs.AI2025-09被引 6

用上下文对比发现时间序列异常,无需训练即能泛化。

Towards Foundation Models for Zero-Shot Time Series Anomaly Detection: Leveraging Synthetic Data and Relative Context Discrepancy

  • 通过比较查询片段与上下文差异检测异常,不依赖固定正常模式。
  • 在多个基准上零样本表现优于现有模型,接近有监督全量数据效果。
  • 适合需要快速部署、无历史异常数据的工业场景应用。

时间序列异常检测(TSAD)至关重要,但实现零样本泛化仍具挑战。现有基础模型多依赖推理时的重构误差评分,易漏检可良好重构的微小异常,并误报未见领域的复杂正常模式。本文提出TimeRCD,基于相对上下文差异(RCD)的预训练范式,使模型通过比较查询模式与其周围上下文来识别异常。该关系式设计采用标准Transformer架构,使模型从输入上下文中推断正常性,而非依赖全局固定模式。我们构建了一个大规模合成数据集,包含上下文相关的异常标签,为RCD提供监督预训练信号。在多种基准上的实验表明,TimeRCD在多数零样本TSAD设置中优于现有通用及特定任务基础模型,且与数据集特异的全量监督基线表现相当。结果证实RCD是构建鲁棒、可泛化TSAD模型的有效方向。

原文摘要 · Abstract (English)

Time series anomaly detection (TSAD) is a critical task, but developing models that generalize to unseen data in a zero-shot manner remains challenging. Existing foundation models for TSAD often rely on reconstruction-error scoring at inference time, which can miss subtle anomalies that are well reconstructed and can falsely flag complex but normal patterns in unseen domains. We introduce TimeRCD, a foundation model for TSAD built on Relative Context Discrepancy (RCD), a pre-training paradigm that trains the model to detect anomalies by comparing a query pattern with its surrounding context. This relational formulation, implemented with a standard Transformer architecture, enables the model to infer normality from the input context rather than relying on fixed global normal patterns. We further construct a large-scale synthetic corpus with context-dependent anomaly labels to provide supervised pre-training signals for RCD. Experiments across diverse benchmarks show that TimeRCD outperforms existing general-purpose and anomaly-specific foundation models in most zero-shot TSAD settings, while remaining competitive with dataset-specific full-shot baselines. These results provide empirical evidence that RCD is an effective direction for building robust and generalizable TSAD models.

时间序列异常检测基础模型零样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。