paperbot · PL 论文追踪

全部论文 待读 收藏

P2 TraceCRL: contrastive representation learning for microservice trace analysis

TraceCRL:面向微服务追踪分析的对比表示学习
FSE Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering2022匹配度 2/10 · 论文研究微服务追踪分析的对比学习与图神经网络表示,属于软件系统/可观测性场景中的机器学习应用,不涉及静态分析、Agentic/LLM、浮点程序分析或贝叶斯程序分析等用户核心方向。引用 35 inbox
Chenxi Zhang, Xin Peng, Tong Zhou, Chaofeng Sha, Zhenghui Yan, Yiru Chen, Hong Yang
crossref: 2026-09-12

AI 速览

一句话:提出基于对比学习与图神经网络的微服务追踪表示学习方法,保留服务调用拓扑信息以提升下游分析性能。

微服务追踪分析(异常检测、故障诊断、尾部采样等)普遍采用机器学习方法,但其预处理通常以 ad-hoc 方式把追踪的结构化特征映射为向量,容易丢失服务操作间的拓扑依赖等信息。本文提出 TraceCRL:对每条追踪构造“操作调用图”,节点为服务操作,边为操作调用并携带调用状态与相关指标的预定义特征;在此基础上用对比学习方法训练图神经网络模型以获得追踪表示,并设计六种追踪数据增强策略以缓解对比学习中的类冲突(class collision)与表示均匀性问题。实验表明,TraceCRL 能显著提升追踪异常检测与离线追踪采样的性能,并验证了增强策略的有效性与方法的效率。

问题
现有微服务追踪分析的预处理以 ad-hoc 方式将追踪结构化特征转为向量,丢失了服务操作间的拓扑依赖等关键信息,限制了异常检测、故障诊断与采样等下游任务的效果。
方法
将每条追踪建模为操作调用图(节点为服务操作,边为调用关系并带有调用状态与指标特征),用对比学习训练图神经网络获取追踪表示,并引入六种追踪数据增强策略缓解类冲突与表示均匀性问题。
评估
在追踪异常检测与离线追踪采样任务上进行实验,结果显示性能显著提升,并通过消融与分析验证了数据增强策略的有效性与方法的运行效率。
原文摘要(Abstract)

Due to the large amount and high complexity of trace data, microservice trace analysis tasks such as anomaly detection, fault diagnosis, and tail-based sampling widely adopt machine learning technology. These trace analysis approaches usually use a preprocessing step to map structured features of traces to vector representations in an ad-hoc way. Therefore, they may lose important information such as topological dependencies between service operations. In this paper, we propose TraceCRL, a trace representation learning approach based on contrastive learning and graph neural network, which can incorporate graph structured information in the downstream trace analysis tasks. Given a trace, TraceCRL constructs an operation invocation graph where nodes represent service operations and edges represent operation invocations together with predefined features for invocation status and related metrics. Based on the operation invocation graphs of traces TraceCRL uses a contrastive learning method to train a graph neural network-based model for trace representation. In particular, TraceCRL employs six trace data augmentation strategies to alleviate the problems of class collision and uniformity of representation in contrastive learning. Our experimental studies show that TraceCRL can significantly improve the performance of trace anomaly detection and offline trace sampling. It also confirms the effectiveness of the trace augmentation strategies and the efficiency of TraceCRL.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot7029,
  title = {TraceCRL: contrastive representation learning for microservice trace analysis},
  author = {Chenxi Zhang and Xin Peng and Tong Zhou and Chaofeng Sha and Zhenghui Yan and Yiru Chen and Hong Yang},
  booktitle = {FSE},
  year = {2022},
  doi = {10.1145/3540250.3549146}
}