TraceCRL: contrastive representation learning for microservice trace analysis
Chenxi Zhang, Xin Peng, Tong Zhou, Chaofeng Sha, Zhenghui Yan, Yiru Chen, Hong Yang
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.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get f2ab7145-7be3-4a98-b73a-ca2f4057f81dCited by top-tier papers5
- Pre-training Code Representation with Semantic Flow Graph for Effective Bug LocalizationYali Du, Zhongxing YuFSE 2023 · 18 citations
- Trace-based Multi-Dimensional Root Cause Localization of Performance Issues in Microservice SystemsChenxi Zhang, Zhen Dong, Xin Peng, Bicheng Zhang et al.ICSE 2024 · 9 citations
- Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability AnalysisHaiyu Huang, Cheng Chen, Kunyi Chen, Pengfei Chen et al.ASPLOS 2025 · 6 citations
- TraStrainer: Adaptive Sampling for Distributed Traces with System Runtime StateHaiyu Huang, Xiaoyu Zhang, Pengfei Chen, Zilong He et al.FSE 2024 · 4 citations
- Gleaner: A Semantically-Rich and Efficient Online Sampler for Microservice DiagnosticsYifan Yang, Aoyang Fang, Songhan Zhang, Pinjia HeISSTA 2026
Related papers
- DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep LearningChenxi Zhang, Xin Peng, Chaofeng Sha, Ke Zhang et al.ICSE 2022 · 163 citations
- Root Cause Analysis in Microservice Using Neural Granger Causal DiscoveryCheng-Ming Lin, Ching Chang, Wei-Yao Wang, Kuang-Da Wang et al.AAAI 2024 · 43 citations
- MULAN: Multi-modal Causal Structure Learning and Root Cause Analysis for Microservice SystemsLecheng Zheng, Zhengzhang Chen, Jingrui He, Haifeng ChenWWW 2024 · 53 citations
- Graph Anomaly Detection via Multi-Scale Contrastive Learning Networks with Augmented ViewJingcan Duan, Siwei Wang, Pei Zhang, En Zhu et al.AAAI 2023 · 159 citations
- Unsupervised Anomaly Detection on Microservice Traces through Graph VAEZhe Xie, Haowen Xu, Wenxiao Chen, Wanxue Li et al.WWW 2023 · 44 citations
