arXiv:2508.14503cs.LG2025-08被引 15

用多尺度时序建模提升云服务异常检测精度与稳定性

Artificial Intelligence-Based Multiscale Temporal Modeling for Anomaly Detection in Cloud Services

  • 基于改进Transformer捕捉长程依赖,融合多粒度时序特征
  • 在真实云环境数据上实现95%以上召回率,优于主流模型
  • 适合运维人员和系统工程师快速定位复杂异常

本研究提出一种基于Transformer架构的多尺度时序建模异常检测方法,旨在解决云服务环境中时序建模与尺度感知特征表示的局限性。首先,通过改进的Transformer模块对高维监控数据进行时序建模,利用自注意力机制捕捉长程依赖与上下文语义;随后引入多尺度特征构建路径,通过下采样与并行编码提取不同粒度的时序特征;设计注意力加权融合模块,动态调整各尺度贡献,增强模型对异常模式的鲁棒性。输入阶段构建标准化多维时间序列,涵盖CPU利用率、内存使用率及任务调度状态等核心信号,并采用位置编码强化模型时序感知能力。实验设计涵盖对比实验与超参数敏感性分析,关注优化器、学习率、异常比例与噪声水平的影响。结果表明,该方法在精确率、召回率、AUC与F1-score等关键指标上均优于主流基线模型,在多种扰动条件下保持强稳定性和检测性能,展现出在复杂云环境中的卓越能力。

原文摘要 · Abstract (English)

This study proposes an anomaly detection method based on the Transformer architecture with integrated multiscale feature perception, aiming to address the limitations of temporal modeling and scale-aware feature representation in cloud service environments. The method first employs an improved Transformer module to perform temporal modeling on high-dimensional monitoring data, using a self-attention mechanism to capture long-range dependencies and contextual semantics. Then, a multiscale feature construction path is introduced to extract temporal features at different granularities through downsampling and parallel encoding. An attention-weighted fusion module is designed to dynamically adjust the contribution of each scale to the final decision, enhancing the model's robustness in anomaly pattern modeling. In the input modeling stage, standardized multidimensional time series are constructed, covering core signals such as CPU utilization, memory usage, and task scheduling states, while positional encoding is used to strengthen the model's temporal awareness. A systematic experimental setup is designed to evaluate performance, including comparative experiments and hyperparameter sensitivity analysis, focusing on the impact of optimizers, learning rates, anomaly ratios, and noise levels. Experimental results show that the proposed method outperforms mainstream baseline models in key metrics, including precision, recall, AUC, and F1-score, and maintains strong stability and detection performance under various perturbation conditions, demonstrating its superior capability in complex cloud environments.

异常检测时序建模云服务Transformer

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