Causal AI-based Root Cause Identification: Research to Practice at Scale

Saurabh Jha, Ameet Rahane, Laura Shwartz, Marc Palaci-Olgun, Frank Bagehorn, Jesus Rios, Dan Stingaciu, Ragu Kattinakere, Debasish BanerjeearXiv 2025 · DOI

Abstract

Modern distributed systems present significant challenges for Root Cause Identification (RCI) due to their inherent complexity and the tendency for single failures to trigger cascading alerts. This paper, a collaboration between IBM and Instana researchers, introduces a formal Causal AI-driven framework for RCI. By moving beyond simple correlation-based heuristics and leveraging Bayesian inference with Structural Causal Models (SCMs), the authors demonstrate a system capable of pinpointing failure sources with high accuracy. The approach achieves approximately 90% localization accuracy and reduces Mean Time To Recovery (MTTR) by over 80% in production environments.

The Challenge of Distributed Observability

In microservice architectures, a single component failure often results in an "event storm," where numerous downstream services report errors simultaneously. Traditional Application Performance Monitoring (APM) tools rely heavily on distributed tracing, but tracing alone frequently leads to the "Leaf Fallacy." This occurs when Site Reliability Engineers (SREs) mistakenly identify the last node in a failing trace as the root cause, ignoring the possibility that an upstream deadlock or resource exhaustion is the true culprit.

Example of a cascading failure where a database connection timeout propagates upstream.

Furthermore, scaling these systems introduces ambiguity. Distinguishing between a service-wide logic bug and a localized replica-level failure (such as a faulty container) becomes increasingly difficult as the number of nodes grows. Existing correlation-based methods often fail to provide the necessary precision, requiring perfectly labeled datasets that are rarely available in real-world production settings.

Methodology: From Correlation to Causation

The proposed framework utilizes a computationally efficient version of Structural Causal Modeling (SCM) to resolve these ambiguities.

Modeling System Dependencies

Rather than modeling every granular interaction, the system projects topology into a set-theoretic "dependency set" based on the "DependsOn" relationship. This simplifies the causal graph while maintaining the essential structure of the service architecture.

Hierarchical dependency mapping in a complex microservice architecture.

The Beta-Binomial Model and do-calculus

The health of each component is modeled using a Beta distribution, representing the probability of the component being "healthy." Observed request outcomes (successes and failures) are then treated as a Binomial distribution. To identify the root cause, the algorithm employs Judea Pearl’s "do-operator" to perform hypothetical interventions. It evaluates which component failure, if forced in the model, most closely replicates the observed real-world failure pattern.

Efficiency and Human-in-the-Loop

To make the system viable for real-time production use, the authors utilized Markov Blankets and conjugate priors, resulting in an inference engine 1000x more efficient than standard Bayesian libraries. Additionally, the system incorporates a "human-in-the-loop" mechanism, allowing SREs to provide feedback that the Bayesian model uses to update its beliefs and refine future rankings.

Evaluation and Real-World Impact

The framework was evaluated using internal production-scale applications at IBM and several real-world case studies. Key results include:

  • Localization Accuracy: The Causal AI successfully identified the root cause in ~90% of tested cases.
  • MTTR Reduction: The implementation led to a reduction in Mean Time To Recovery of at least 80%.
  • Operational Speed: In one instance, a networking issue that took SREs 12 hours to troubleshoot manually was resolved by the RCI algorithm in under five minutes.

Conclusion and Future Directions

The transition from correlation-based heuristics to formal Causal AI represents a significant advancement in automated system observability. While the current model primarily focuses on binary "fail-stop" scenarios, future work aims to incorporate continuous metrics like CPU and memory usage. Additionally, the authors explore the integration of Generative AI for automated causal graph construction and Natural Language Processing (NLP) to ingest unstructured log data directly into the probabilistic model.

Summary updated

BibTeX
@misc{jha2025causal,
  author = {Saurabh Jha and Ameet Rahane and Laura Shwartz and Marc Palaci-Olgun and Frank Bagehorn and Jesus Rios and Dan Stingaciu and Ragu Kattinakere and Debasish Banerjee},
  title = {{Causal AI-based Root Cause Identification: Research to Practice at Scale}},
  year = {2025},
  eprint = {2502.18240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.18240},
}
Figure