Skip to main content
QUICK REVIEW

[论文解读] COMET: Codebook-based Online-adaptive Multi-scale Embedding for Time-series Anomaly Detection

Jinwoo Park, Hyeongwon Kang|arXiv (Cornell University)|Feb 2, 2026
Anomaly Detection Techniques and ApplicationsComputer Science被引用 0
一句话总结

COMET 学习多尺度补丁嵌入和基于代码本的正常模式核心集,在测试时进行在线代码本适应,以在分布漂移下检测时间序列异常。

ABSTRACT

Time series anomaly detection is a critical task across various industrial domains. However, capturing temporal dependencies and multivariate correlations within patch-level representation learning remains underexplored, and reliance on single-scale patterns limits the detection of anomalies across different temporal ranges. Furthermore, focusing on normal data representations makes models vulnerable to distribution shifts at inference time. To address these limitations, we propose Codebook-based Online-adaptive Multi-scale Embedding for Time-series anomaly detection (COMET), which consists of three key components: (1) Multi-scale Patch Encoding captures temporal dependencies and inter-variable correlations across multiple patch scales. (2) Vector-Quantized Coreset learns representative normal patterns via codebook and detects anomalies with a dual-score combining quantization error and memory distance. (3) Online Codebook Adaptation generates pseudo-labels based on codebook entries and dynamically adapts the model at inference through contrastive learning. Experiments on five benchmark datasets demonstrate that COMET achieves the best performance in 36 out of 45 evaluation metrics, validating its effectiveness across diverse environments.

研究动机与目标

  • 在无监督时间序列异常检测中,强调捕捉跨多个时间尺度的 temporal 依赖性和多变量相关性的必要性。
  • 提出一个基于代码本的框架,从正常数据中学习具有代表性的正常模式,并通过双重评分(记忆距离和量化误差)检测异常。
  • 在推断阶段通过使用伪标签和对比学习的在线代码本适应,解决分布漂移问题。
  • 在多样数据集上证明有效性,并展示对非平稳性及情境相关异常的鲁棒性。

提出的方法

  • 引入多尺度补丁编码,以在不同尺度上联合建模时间依赖性和跨变量相关性。
  • 使用向量量化核心集将嵌入量化为从正常数据中学习的代码本条目。
  • 通过对核心集的记忆距离(带局部缩放)和基于重构的量化误差来计算异常分数。
  • 采用带激活伪标签的在线代码本适应以及对比学习,在推断时进行自适应而不污染代码本。
  • 将两种归一化后的分数(记忆与量化)通过动态加权和指数移动平均归一化组合,生成最终的异常分数。
Figure 1 : Overall architecture of COMET. (Left) During training, input time series are processed via Multi-scale Patch Encoding to capture temporal contexts at different resolutions. The resulting embeddings are mapped to a Vector-Quantized Coreset , where activated codebook entries are stored in t
Figure 1 : Overall architecture of COMET. (Left) During training, input time series are processed via Multi-scale Patch Encoding to capture temporal contexts at different resolutions. The resulting embeddings are mapped to a Vector-Quantized Coreset , where activated codebook entries are stored in t

实验结果

研究问题

  • RQ1多尺度补丁编码是否能有效捕捉用于无监督异常检测的时间和跨变量模式?
  • RQ2对正常模式进行向量量化是否能通过记忆距离和重构量化误差实现可靠的异常评分?
  • RQ3在线基于激活的代码本适应是否可以在不通过阈值污染的前提下缓解测试时的分布漂移?
  • RQ4局部密度感知距离度量是否在不同数据密度下改善基于记忆的异常评分?
  • RQ5相较于多项基准数据集和评测指标,COMET 的表现如何?

主要发现

  • 即使在未进行测试时适配的情况下,COMET 在 45 项指标中的 39 项达到 state-of-the-art,并在五个基准数据集上通过 TTA 进一步提升。
  • 多尺度补丁编码通过在不同分辨率下捕捉模式和尺度感知相关性来提升表示能力。
  • 向量量化的核心集学习出具有代表性的正常模式,使记忆距离和量化误差实现高效的异常评分。
  • 带伪标签和对比学习的在线代码本适应降低了污染风险且提升了对分布漂移的鲁棒性。
  • COMET 参数高效(567K 参数),相较于一些更大模型在训练速度上也具备显著优势,能取得强劲表现。
Figure 2 : Comparison between global distance and local scaling distance. (Top) Global distance fails to identify normal queries in sparse regions as it relies solely on absolute distance without considering local density. (Bottom) Local scaling distance accounts for local density, leading to more c
Figure 2 : Comparison between global distance and local scaling distance. (Top) Global distance fails to identify normal queries in sparse regions as it relies solely on absolute distance without considering local density. (Bottom) Local scaling distance accounts for local density, leading to more c

阅读本论文

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

在 Nubint 中阅读本论文

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