iTCRL: Causal-Intervention-Based Trace Contrastive Representation Learning for Microservice Systems
Xiangbo Tian,Shi Ying,Tiangang Li,Mengting Yuan,Ruijin Wang,Yishi Zhao,Jianga Shang
DOI: https://doi.org/10.1109/tse.2024.3446532
IF: 7.4
2024-10-19
IEEE Transactions on Software Engineering
Abstract:Nowadays, microservice architecture has become mainstream way of cloud applications delivery. Distributed tracing is crucial to preserve the observability of microservice systems. However, existing trace representation approaches only concentrate on operations, relationships and metrics related to service invocations. They ignore service events that denotes meaningful, singular point in time during the service's duration. In this paper, we propose iTCRL, a novel trace contrastive representation learning approach based on causal intervention. This approach first constructs a unified graph representation for each trace to describe the runtime status of service events in traces and the complex relationships between them. Then, Causal-intervention-based Trace Contrastive Learning is proposed, which learns trace representations from causal perspective based on the unified graph representations of traces. It uses causal intervention to generate contrastive views, heterogeneous graph neural network-based trace encoder to learn trace representations, and direct causal effect to guide the training of trace encoder. Experimental results on three datasets show that iTCRL outperforms all baselines in terms of trace classification, trace anomaly detection, trace sampling and noise robustness, and also validate the contribution of Causal-intervention-based Trace Contrastive Learning.
engineering, electrical & electronic,computer science, software engineering