Root Cause Analysis for Microservice System based on Causal Inference: How Far Are We?

Luan Pham, Huong Ha, Hongyu Zhang · DOI

Abstract

As microservice architectures grow in complexity, identifying the root cause of system failures has become a significant operational challenge. Causal inference-based Root Cause Analysis (RCA) has emerged as a promising automated solution. This paper provides a comprehensive "reality check" of the current landscape by benchmarking 9 causal discovery methods and 21 RCA algorithms. Through extensive testing on both synthetic and real-world datasets—including large-scale systems like Train Ticket—the study reveals critical bottlenecks in scalability, sensitivity to timing errors, and a performance gap between simulated and production environments. The findings suggest that while causal inference holds potential, current methods require significant refinement to meet the demands of industrial-scale incident response.

Introduction

Microservice architectures provide the scalability and flexibility required by modern applications, but they introduce a significant "complexity tax." When a failure occurs, the interconnected nature of these services causes faults to propagate rapidly across hundreds of nodes and thousands of metrics. For site reliability engineers, pinpointing the specific root cause—such as a CPU hog, memory leak, or network delay—among a sea of telemetry data can take hours of manual investigation.

To address this, researchers have turned to Causal Inference-based RCA. These methods aim to construct a "causal graph" that maps the relationships between system metrics, allowing for the automated identification of the source of a failure. Despite the proliferation of new algorithms, the field has lacked a standardized, head-to-head evaluation. This study fills that gap, assessing whether these complex mathematical frameworks provide tangible value over simpler baselines in realistic scenarios.

The RCA Pipeline: Discovery and Localization

The authors categorize the RCA process into two distinct stages, evaluating the performance of algorithms at each step:

  1. Causal Discovery: This stage involves building a directed graph from time-series metrics to represent "what causes what." The evaluation includes classic constraint-based algorithms like PC and FCI, as well as modern gradient-based approaches like NTLR.
  2. Root Cause Localization (Scoring): Once a graph is established, localization algorithms rank the nodes to identify the most likely culprit. This includes graph-traversal methods like Random Walk and PageRank, alongside specialized RCA tools such as CausalRCA, RCD, and CIRCA.

To ensure a rigorous evaluation, the study includes a "Dummy" baseline (random selection). This allows researchers to determine if the computational overhead of causal discovery actually yields better results than chance in high-entropy environments.

Experimental Methodology

The benchmark utilizes a diverse array of data sources to test the limits of current methods:

  • Synthetic Datasets: Generated via simulators like CIRCA, RCD, and CausIL, these datasets allow for controlled testing of graph complexity, ranging from 10 to 50 nodes.
  • Real-World Benchmarks: The study employs popular microservice applications deployed on Kubernetes, including Sock Shop and Online Boutique. Crucially, it includes Train Ticket, a large-scale system featuring 64 services and 212 metrics, providing a true test of scalability.
  • Fault Injection: Five common industrial faults were simulated: CPU exhaustion, memory leaks, disk IO stress, network latency, and packet loss.

Key Insights: A Reality Check

The evaluation yielded several sobering insights into the current state of the art:

The Timing Trap

Many high-performing RCA methods, such as CIRCA and NSigma, are extremely sensitive to the accuracy of the failure timestamp ($t_f$). In practice, anomaly detectors often have a lag; the study found that if the timestamp is off by as little as 60 seconds, the accuracy of these methods drops precipitously. Only a few algorithms, notably BARO and RCD, demonstrated robustness to such timing errors.

The Synthetic Mirage

There is a notable discrepancy between performance on synthetic data and real-world systems. Algorithms like RCD often excel on datasets generated by their own simulators but struggle when applied to different environments. This suggests that many current simulators may be over-fitting to specific causal assumptions that do not hold true in live Kubernetes clusters.

The Scalability Wall

Scalability remains the primary barrier to industrial adoption. Most causal discovery methods experience exponential increases in computation time as the number of metrics grows. Constructing a causal graph for the Train Ticket system can take several hours—a timeframe that is incompatible with the needs of real-time incident response.

Complexity vs. Value

Perhaps most surprisingly, on large-scale systems, many sophisticated causal discovery methods performed only marginally better than the random "Dummy" baseline. This indicates that generic causal discovery algorithms are not yet optimized for the specific noise and dynamics of microservice telemetry.

Performance and Efficiency Results

  • Effectiveness: PC and FCI remain the most reliable for building causal graphs, yet their F1 scores (ranging from 0.1 to 0.54) highlight a significant need for improvement in graph accuracy.
  • Top Performers: In terms of localization, CausalRCA, RCD, CIRCA, NSigma, and BARO generally lead the field in accuracy.
  • Efficiency: NSigma and BARO are the most efficient, providing near-instant results by bypassing the graph-building phase in favor of statistical distribution comparisons. Deep-learning-based methods like RUN and CausalRCA are considerably slower.
  • Data Requirements: Increasing the input data window (from 1 to 10 minutes) significantly benefited RCD and CausalRCA, whereas simpler statistical methods reached a performance plateau quickly.

Conclusion and Future Directions

The study concludes that while causal inference is a powerful tool for RCA, it is not yet a "plug-and-play" solution for complex microservices. To bridge the gap between research and production, the authors suggest four focus areas:

  1. Scalability: Developing "divide-and-conquer" approaches to handle thousands of metrics efficiently.
  2. Realistic Benchmarking: Creating simulators that better mimic real-world metric surges and noise.
  3. End-to-End Pipelines: Evaluating RCA tools in conjunction with anomaly detectors to account for imperfect timing data.
  4. Automated Tuning: Moving away from manual hyperparameter adjustment toward systematic, automated optimization for diverse environments.

Summary updated

BibTeX
@inproceedings{pham2026root,
  author = {Luan Pham and Huong Ha and Hongyu Zhang},
  title = {{Root Cause Analysis for Microservice System based on Causal Inference: How Far Are We?}},
  booktitle = {Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering},
  year = {2026},
  url = {https://openreview.net/forum?id=iKipqcSrV0},
}
Figure