TL;DR
In-Distribution Interventions (IDI) is a robust new algorithm for Root Cause Diagnosis (RCD) that bypasses the unreliability of counterfactual reasoning during system anomalies. By evaluating potential "fixes" using only in-distribution data, IDI avoids the massive estimation errors common in traditional causal models, leading to significantly more accurate diagnoses in complex cloud and industrial systems.
What Problem Does This Paper Address?
When a complex system like a cloud microservice fails, engineers need to find the "root cause"—the specific node whose malfunction triggered a cascade of errors. Modern automated tools often use Structural Causal Models (SCMs) to perform counterfactual reasoning: "If we had fixed node X, would the system-wide anomaly have disappeared?"
The catch is that anomalies are, by definition, rare and "out-of-distribution" (OOD). SCMs are trained on normal operating data. To perform a counterfactual, the model must first perform "abduction"—estimating hidden noise variables based on the observed anomalous values. Because the model is operating in an OOD region it hasn't seen before, these estimates are often wildly inaccurate.
As shown in the figure below, these "abduction errors" propagate through the causal graph, leading the model to hallucinate incorrect system states and fail at diagnosis.
Methods: In-Distribution Interventions (IDI)
The authors propose In-Distribution Interventions (IDI). Instead of trying to guess the exact hidden state of a node during a failure (counterfactuals), IDI asks a simpler, more robust question: "What would happen if we forced this node back into its usual operating range?"
The IDI pipeline consists of two main steps:
- Anomaly Condition: It filters for candidate root causes—nodes that are themselves anomalous but whose parents are behaving normally.
- Fix Condition: It tests if "fixing" these candidates resolves the target anomaly. Crucially, it does this by sampling noise from the known training distribution rather than trying to infer it from the anomaly. This ensures the SCM is always queried in the "safe" regions where it was trained.
For systems with multiple root causes, IDI uses Shapley values from cooperative game theory to fairly distribute "credit" for the system failure among candidate nodes, ensuring that redundant or insufficient nodes aren't falsely blamed.
Datasets
The researchers evaluated IDI against 11 baseline methods using:
- Synthetic SCMs: Custom-built datasets where the ground truth is known, allowing for systematic testing of linear vs. non-linear relationships and varying levels of noise.
- PetShop RCD Benchmark: A real-world dataset representing a pet adoption platform deployed on AWS. It includes 68 injected issues (like memory leaks and CPU hogs) across a microservices architecture, featuring complex call graphs and various latency patterns.
Key Insights and Ideas
- Abduction is the Achilles' Heel: The paper identifies that the primary failure mode for causal RCD isn't the model itself, but the abduction step required for counterfactuals. When data is OOD, the error in estimating latent noise scales with the "extremeness" of the anomaly.
- Interventions are Bounded: Theoretically, the error in IDI's interventional approach is bounded by the standard deviation of the system's natural noise. This makes it inherently more stable than counterfactual methods when dealing with outliers.
- In-Distribution Probing: By forcing the model to evaluate "usual" values, IDI leverages the model's strengths (what it learned during normal operation) rather than its weaknesses (extrapolating to rare failures).
- Shapley for Multi-Cause: Using Shapley values allows the algorithm to handle complex "AND/OR" failure scenarios where multiple nodes must be fixed simultaneously to resolve an issue.
Key Results
IDI consistently outperformed state-of-the-art baselines (like CIRCA, Traversal, and CF Attribution) across nearly all settings:
- PetShop Accuracy: IDI achieved a Recall@1 of 0.90 to 1.00 across low, high, and temporal latency cases, significantly higher than most baselines which often struggled with the more subtle "low latency" anomalies.
- Robustness to Complexity: In synthetic tests, IDI maintained high accuracy even as systems became non-linear and non-invertible—scenarios where traditional counterfactual methods often dropped to near-zero recall.
- Efficiency: Because IDI only evaluates a subset of promising nodes, it is significantly faster than methods that perform attribution across all nodes in a large system.
Limitations and Future Work
The authors acknowledge a few key limitations:
- Path Assumption: IDI currently assumes that at most one root cause exists in any single simple path to the target. If multiple root causes are "stacked" on one path, the anomaly condition might filter out the downstream causes incorrectly.
- Large Data Convergence: In theory, if you had an infinite amount of training data and a perfect model, counterfactuals might eventually become as accurate as interventions. However, in the finite-data reality of engineering, IDI remains the more practical choice.
- Future Directions: Extending IDI to handle violations of the "one root cause per path" assumption and exploring its application in even larger, more dynamic graph topologies are logical next steps.
Summary updated