Abstract
Identifying the root cause of anomalies in complex systems is a critical task for maintaining reliability in microservice architectures and global supply chains. Traditional Root Cause Analysis (RCA) methods often assume that causal relationships (edges) are static and noise-free, focusing solely on component (node) failures. Furthermore, existing attribution methods like Shapley values suffer from exponential computational complexity, limiting their use in large-scale environments. This paper presents a novel framework that models causal links as noisy Bayesian mechanisms and introduces BIGEN (Bayesian Integrated Gradient of Edge and Node noise), a gradient-based attribution method. BIGEN achieves linear scalability and superior accuracy, particularly in identifying edge-based anomalies, outperforming state-of-the-art baselines in both speed and precision.
Introduction
In large-scale distributed systems, an "outlier" or anomaly at a leaf node often signals a deeper systemic failure. Pinpointing the root cause is essential for rapid remediation. However, most current RCA techniques operate under the assumption that while data at individual nodes may be noisy, the "pipes" or edges connecting them are deterministic and noise-free.
In practice, the connection itself is frequently the source of the problem. Network congestion, database connection pool exhaustion, or logistics bottlenecks represent "noisy edges" where the relationship between components deviates from the norm. Existing methods struggle to attribute outlier scores to these edge-level disruptions. Moreover, the computational burden of combinatorial methods like Shapley values makes them impractical for systems with hundreds or thousands of variables.
Methodology
Noisy Functional Causal Models (FCMs)
The authors propose a shift in how causal mechanisms are modeled. Instead of treating edges as fixed functions, they utilize Bayesian linear regression to represent causal links. This approach allows the model to capture "edge noise" as a deviation in regression weights. By inferring specific noise values for both nodes and edges during an anomaly, the framework can represent a wider variety of failure modes than traditional node-centric models. This allows the model to treat edges as first-class citizens in the diagnostic process.
BIGEN: Bayesian Integrated Gradient of Edge and Node noise
To address the scalability bottleneck, the authors introduce BIGEN. Drawing inspiration from Integrated Gradients (IG) used in deep learning, BIGEN calculates the attribution of an outlier score by integrating gradients along a path from a "normal" reference state to the observed anomalous state.
The primary advantage of BIGEN is its efficiency. While Shapley-based methods exhibit a computational complexity of $O(2^{d+e})$, BIGEN scales linearly at $O(d+e)$, where $d$ and $e$ represent the number of nodes and edges, respectively. This allows for real-time RCA in massive industrial networks.
Experimental Evaluation
The performance of BIGEN was evaluated across synthetic random graphs (up to 10,000 nodes), simulated microservice cloud latencies, and supply chain process models.
Scalability and Speed
A key finding is the dramatic difference in runtime between BIGEN and traditional methods. As the number of nodes increases, Shapley-based approaches quickly become computationally infeasible due to their exponential scaling.
On a graph with 200 ancestor nodes, Shapley-based methods required over two hours to produce results, whereas BIGEN completed the same task in under a minute.
Accuracy in Root Cause Identification
BIGEN consistently outperformed baselines in ranking accuracy (NDCG@k). It was particularly effective at identifying edge-based anomalies, a known weakness of existing RCA tools.
In random graph experiments, BIGEN achieved a ranking accuracy of approximately 91.8%, significantly higher than the ~81.8% achieved by the best Shapley-based baseline. For edge-specific anomalies, BIGEN's accuracy reached 93.8%, demonstrating its robustness in identifying faulty connections.
Discussion and Future Work
While BIGEN represents a significant advancement, several areas remain for future exploration. Currently, the method assumes the causal Directed Acyclic Graph (DAG) is known a priori. In many real-world settings, the graph must be inferred from observational data, which can introduce noise. Additionally, while the framework is extensible to non-linear models, the current implementation primarily leverages Bayesian linear regression. Future work will focus on integrating more complex, deep non-linear mechanisms and refining the selection of "normal" reference states to further enhance robustness.
Conclusion
By treating edges as first-class citizens in the causal model and leveraging gradient-based attribution, BIGEN provides a scalable and accurate solution for root cause analysis in complex, noisy systems. Its ability to handle thousands of components in seconds makes it a viable tool for modern industrial monitoring and diagnostics.
Summary updated