arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.04710cs.LG
收藏

ViTs:教机器像人类专家一样识别时间序列异常

ViTs: Teaching Machines to See Time Series Anomalies Like Human Experts

Computer Network Information Center, Chinese Academy of Sciences(中国科学院计算机网络信息中心);Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences(中国科学院大学杭州先进研究所);Tsinghua University(清华大学)

Zexin Wang, Changhua Pei, Yang Liu, Hengyue Jiang, Quan Zhou, Haotian Si, Hang Cui, Jianhui Li, Gaogang Xie, Jingjing Li, Dan Pei

AI总结:

针对时间序列异常检测模型泛化性差、输入长度受限的问题,提出基于视觉语言模型的ViTs框架,通过图像化转换和三阶段训练实现任意长序列零样本异常检测,性能显著提升。

摘要:

Web服务管理员必须通过及时检测关键性能指标(KPI)中的异常来确保多系统的稳定性。实现“一次训练,跨场景推理”的目标仍然是时间序列异常检测模型面临的一项根本挑战。除了提升零样本泛化能力外,这类模型还必须能够在推理过程中灵活处理从1小时到1周不等的不同长度序列,且无需重新训练。传统方法依赖滑动窗口编码和自监督学习,这限制了推理只能使用固定长度的输入。大语言模型(LLM)已在通用领域展现出卓越的零样本能力。然而,当应用于时间序列数据时,它们因上下文长度限制而存在固有缺陷。为解决这一问题,我们提出了ViTs,这是一个基于视觉语言模型(VLM,Vision-Language Model)的框架,可将时间序列曲线转换为视觉表示。通过对时间序列图像进行重新缩放,该框架在保持输入尺寸一致的同时保留了时间依赖关系,从而能够在不受上下文限制的情况下高效处理任意长度的序列。为此目的训练VLM会带来独特的挑战,主要原因是对齐的时间序列图像-文本数据十分稀缺。为克服这一难题,我们采用进化算法自动生成数千个高质量的图像-文本对,并设计了一个三阶段训练流程,包括:(1)时间序列知识注入,(2)异常检测增强,以及(3)异常推理优化。大量实验表明,ViTs显著提升了VLM理解和检测时间序列数据中异常的能力。所有数据集和代码将公开发布于:https://anonymous.4open.science/r/ViTs-C484/。

英文摘要:

Web service administrators must ensure the stability of multiple systems by promptly detecting anomalies in Key Performance Indicators (KPIs). Achieving the goal of "train once, infer across scenarios" remains a fundamental challenge for time series anomaly detection models. Beyond improving zero-shot generalization, such models must also flexibly handle sequences of varying lengths during inference, ranging from one hour to one week, without retraining. Conventional approaches rely on sliding-window encoding and self-supervised learning, which restrict inference to fixed-length inputs. Large Language Models (LLMs) have demonstrated remarkable zero-shot capabilities across general domains. However, when applied to time series data, they face inherent limitations due to context length. To address this issue, we propose ViTs, a Vision-Language Model (VLM)-based framework that converts time series curves into visual representations. By rescaling time series images, temporal dependencies are preserved while maintaining a consistent input size, thereby enabling efficient processing of arbitrarily long sequences without context constraints. Training VLMs for this purpose introduces unique challenges, primarily due to the scarcity of aligned time series image-text data. To overcome this, we employ an evolutionary algorithm to automatically generate thousands of high-quality image-text pairs and design a three-stage training pipeline consisting of: (1) time series knowledge injection, (2) anomaly detection enhancement, and (3) anomaly reasoning refinement. Extensive experiments demonstrate that ViTs substantially enhance the ability of VLMs to understand and detect anomalies in time series data. All datasets and code will be publicly released at: https://anonymous.4open.science/r/ViTs-C484/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑