用视觉模型让机器像专家一样看懂任意长度的时间序列异常
ViTs: Teaching Machines to See Time Series Anomalies Like Human Experts
- 将时间序列转为图像,通过缩放保持时序关系,支持任意长度输入
- 在多个数据集上实现零样本跨场景检测,准确率提升15%-23%
- 自动生成图文对并三阶段训练,适合运维监控与智能诊断场景
Web服务管理员需及时发现关键性能指标(KPI)中的异常以保障系统稳定。当前时间序列异常检测模型仍面临“一次训练,多场景推理”的挑战,不仅需提升零样本泛化能力,还需灵活处理从一小时到一周不等的变长序列,而无需重新训练。传统方法依赖滑动窗口编码和自监督学习,限制了输入长度。大语言模型虽具强大零样本能力,但受限于上下文长度。为此,我们提出ViTs——一种基于视觉-语言模型(VLM)的框架,将时间序列曲线转换为视觉表示,通过重缩放保持时序依赖性,同时维持固定输入尺寸,从而实现对任意长序列的高效处理。训练此类VLM面临标注数据稀缺问题,我们采用进化算法自动生成数千组高质量图像-文本对,并设计三阶段训练流程:(1) 时间序列知识注入,(2) 异常检测增强,(3) 异常推理优化。大量实验表明,ViTs显著提升了VLM理解与检测时间序列异常的能力。所有数据集与代码将公开发布于:https://anonymous.4open.science/r/ViTs-C484/。
原文摘要 · Abstract (English)
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/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。