用对比学习建模云服务依赖关系,提升异常检测精度与稳定性。
Contrastive Learning-Based Dependency Modeling for Anomaly Detection in Cloud Services
- 将服务交互抽象为依赖图,通过嵌入和图卷积提取时空特征。
- 对比学习增强正常与异常模式在表示空间的可分性,F1-score显著提升。
- 引入时序一致性约束,适应稀疏标签与流量波动场景,适合运维监控使用。
本文针对云服务环境中复杂依赖关系与多样异常模式的挑战,提出一种融合对比学习的依赖建模与异常检测方法。该方法将服务交互抽象为依赖图,通过嵌入函数提取时序与结构特征,并利用图卷积聚合邻域信息,生成上下文感知的服务表征。进一步设计对比学习框架,构建正负样本对以增强表示空间中正常与异常模式的可分性。同时引入时序一致性约束,保持表征在时间维度上的稳定性,降低短期波动与噪声影响。整体优化结合对比损失与时序一致性损失,确保多维特征下检测的稳定可靠。在公开数据集上的实验系统评估了方法在超参数、环境变化及数据敏感性方面的表现。结果表明,所提方法在精确率、召回率、F1分数和AUC等关键指标上显著优于现有方法,且在标签稀疏、监控噪声和流量波动条件下仍具鲁棒性。研究验证了依赖建模与对比学习结合的有效性,提供了完整的云服务异常检测技术方案,并展现出在复杂环境中的强适应性与稳定性。
原文摘要 · Abstract (English)
This paper addresses the challenges of complex dependencies and diverse anomaly patterns in cloud service environments by proposing a dependency modeling and anomaly detection method that integrates contrastive learning. The method abstracts service interactions into a dependency graph, extracts temporal and structural features through embedding functions, and employs a graph convolution mechanism to aggregate neighborhood information for context-aware service representations. A contrastive learning framework is then introduced, constructing positive and negative sample pairs to enhance the separability of normal and abnormal patterns in the representation space. Furthermore, a temporal consistency constraint is designed to maintain representation stability across time steps and reduce the impact of short-term fluctuations and noise. The overall optimization combines contrastive loss and temporal consistency loss to ensure stable and reliable detection across multi-dimensional features. Experiments on public datasets systematically evaluate the method from hyperparameter, environmental, and data sensitivity perspectives. Results show that the proposed approach significantly outperforms existing methods on key metrics such as Precision, Recall, F1-Score, and AUC, while maintaining robustness under conditions of sparse labeling, monitoring noise, and traffic fluctuations. This study verifies the effectiveness of integrating dependency modeling with contrastive learning, provides a complete technical solution for cloud service anomaly detection, and demonstrates strong adaptability and stability in complex environments.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。