This paper, recently submitted for review, introduces RCA-DCM, a novel framework for Root Cause Analysis (RCA) that leverages deep causal generative models to overcome the limitations of traditional methods, particularly in the presence of unobserved confounding.
TL;DR
RCA-DCM moves beyond simple conditional independence tests by using deep causal models to exploit complex distributional constraints, enabling accurate root cause identification even when some variables are hidden. It achieves state-of-the-art performance on microservice benchmarks and physics-based datasets, proving significantly more robust to unobserved confounders and heterogeneous anomaly shifts than existing baselines.
What Problem Does This Paper Address?
Root Cause Analysis (RCA) is the process of identifying which component in a complex system (like a microservice architecture or a physical experiment) is responsible for an observed anomaly. This is notoriously difficult because failures propagate: a fault in one service causes downstream services to behave abnormally, making it hard to distinguish the "fire" from the "smoke."
The authors identify two major gaps in current RCA approaches:
- Unobserved Confounding: Most methods assume "causal sufficiency"—that all relevant variables are measured. In reality, hidden factors (latent confounders) often influence multiple observed variables. Traditional conditional independence (CI) tests fail here because they can't distinguish between a direct causal effect and a shared hidden cause.
- Heterogeneous Anomalies: Many methods assume the root cause will show the largest "marginal shift" (the biggest change in its own distribution). However, in the real world, a small shift at a root cause can accumulate as it propagates, leading to much larger observed shifts in downstream descendants.
Methods
RCA-DCM models the system as a Structural Causal Model (SCM) and treats the anomaly as a "soft intervention"—a change in the underlying mechanism of the root cause variables. They introduce a binary indicator variable $F$ ($F=0$ for normal, $F=1$ for anomalous) into the causal graph.
Instead of relying on brittle CI tests, RCA-DCM searches for a feasible SCM that can explain the transition from the normal to the anomalous distribution. To do this efficiently for high-dimensional data, they use Deep Causal Models (DCMs), specifically causal normalizing flows, as flexible proxies for the SCM.
The core algorithm (Algorithm 1) works by "freezing" the mechanism of a candidate variable $Y$. It asks: If we force the mechanism for $Y$ to remain identical between the normal and anomalous states, can the rest of the model still explain the observed data? If the resulting model fit is poor (high loss), it implies that $Y$’s mechanism must have shifted, identifying it as a root cause. This approach implicitly exploits all distributional constraints (like instrumental variable constraints) encoded in the graph, not just simple independence.
Datasets
The authors evaluated RCA-DCM against five state-of-the-art baselines (BARO, NSigma, CIRCA, RCD, and RCG) across several diverse settings:
- Simulated Datasets: Randomly generated directed acyclic graphs (DAGs) with varying levels of confounding strength and heterogeneous shifts.
- Causal Chamber: A real-world physics-based testbed (a light-tunnel chamber) with 38 variables and a known ground-truth DAG.
- Microservice Benchmarks: Two industry-standard datasets, Sock Shop and Online Boutique, featuring various injected faults (CPU hogs, memory leaks, etc.) across multiple services.
Key Insights and Ideas
- Beyond Independence: The "aha moment" is realizing that while CI tests are insufficient under confounding, other distributional constraints (like the instrumental inequality) still hold. Searching for a feasible SCM is a way to check all these constraints simultaneously without having to derive them manually.
- Instrumental Variables as a Litmus Test: The paper establishes a formal connection between RCA and instrumental variable (IV) testing. If a variable $F$ (the anomaly indicator) is a valid instrument for the effect of $T$ on $Y$, then $Y$ cannot be a root cause. If the IV constraints are violated, $Y$ must be a root cause.
- Robustness to Graph Misspecification: Surprisingly, the authors prove and demonstrate that RCA-DCM remains useful even if the provided causal graph is slightly wrong. A sparser-than-true graph leads to a superset of root causes, while a denser graph leads to a subset, providing predictable behavior for practitioners.
Key Results
RCA-DCM consistently outperformed baselines, especially in challenging scenarios:
- Microservices: On Sock Shop, it achieved a top-1 accuracy of 0.880 (vs. 0.752 for the best baseline). On Online Boutique, it reached 0.776 (vs. 0.712).
- Causal Chamber: When the true root cause was hidden (acting as a latent confounder), RCA-DCM achieved a Perfect Recovery Rate (PRR) of 0.846, significantly higher than the best baseline's 0.731.
- Robustness: As confounding strength increased in synthetic tests, RCA-DCM's performance degraded much more slowly than its competitors, showing it is far more robust to hidden factors.
Limitations and Future Work
- Computational Cost: Training multiple deep causal models per analysis is significantly slower than heuristic or CI-based methods. A single test might take ~41 seconds compared to sub-second times for baselines like RCD.
- Graph Requirements: The method currently requires access to a causal structure or at least a total ordering of variables. While the authors show it works with simple "sink graphs," having no structural knowledge remains a challenge.
- Future Directions: The authors aim to relax the requirement for a total order and adapt the framework to handle extremely high-dimensional variables more efficiently.
Summary updated