Abstract
Causal discovery on event sequences holds a pivotal significance across domains such as healthcare, finance, and industrial systems. The crux of this endeavor lies in unraveling causal structures among event types, typically portrayed as directed acyclic graphs (DAGs). Nonetheless, prevailing methodologies often grapple with untenable assumptions and intricate optimization hurdles. To address these challenges, we present a novel model named CausalNET. At the heart of CausalNET is a special prediction module based on the Transformer architecture, which prognosticates forthcoming events by leveraging historical occurrences, with its predictive prowess amplified by a trainable causal graph engineered to fathom causal relationships among event types. Further, to augment the predictive paradigm, we devise a causal decay matrix to encapsulate the reciprocal influence of events upon each other within the topological network. During training, we alternatively refine the prediction module and fine-tune the causal graph. Comprehensive evaluation on a spectrum of real-world and synthetic datasets underscores the superior performance and scalability of CausalNET, which marks a promising step forward in the realm of causal discovery.
Introduction
Identifying causal relationships in sequences of events—such as system alarms in a data center or medical records—is essential for root cause analysis and system optimization. Traditional methods like Granger causality or Hawkes processes often struggle with two main issues: the assumption that event sequences are independent (ignoring the underlying network topology) and the computational complexity of searching for optimal Directed Acyclic Graphs (DAGs), which is NP-hard.
CausalNET addresses these hurdles by moving away from rigid statistical assumptions toward a flexible, neural-network-driven approach. It transforms causal discovery into a scalable, gradient-based optimization task by integrating a trainable causal graph and a "causal decay matrix" into a Transformer-based attention mechanism.
Methodology
The CausalNET framework consists of several integrated components designed to learn causal structures directly from data while respecting physical network constraints.
Causal-Attention Transformer
At its core, CausalNET utilizes a Transformer architecture. Unlike standard self-attention, it employs a trainable causal graph to mask the attention mechanism. This ensures the model only "pays attention" to historical events that have a potential direct causal link to the current event.
Topology-Informed Decay
To account for the network structure, the model incorporates a causal decay matrix. This matrix models the influence of events based on their "distance" (k-hops) within the underlying topology. This acts as a powerful prior, filtering out noise from events that are logically or geographically too distant to be causal.
Differentiable Optimization
CausalNET avoids discrete search spaces by using the Gumbel-Softmax trick. This allows the model to learn the causal structure (represented as a probability graph) using standard gradient descent. The training follows an Expectation-Maximization (EM) style approach, alternating between refining the event prediction module and fine-tuning the causal graph.
Experimental Results
The model was rigorously evaluated on real-world telecommunication alarm datasets (Micro-24 and Micro-25) and synthetic datasets generated using the gcastle API to simulate various temporal kernels.
Key findings include:
- Superior Accuracy: CausalNET achieved an F1-score improvement of over 10% compared to state-of-the-art methods like the Topological Hawkes Process (THP) on real-world datasets.
- Scalability: As shown in the performance metrics, CausalNET maintains high F1-scores even as the number of nodes in the topology increases, demonstrating its robustness to larger network scales.
- Flexibility: On synthetic data, the model remained accurate across different data-generating distributions (e.g., Weibull), whereas traditional parametric models failed when their internal assumptions were misspecified.
Conclusion
CausalNET represents a significant advancement in causal discovery for event sequences. By leveraging topological priors and differentiable optimization, it provides a scalable and accurate framework for uncovering complex causal structures. Future work will explore handling massive-scale sequences with millions of event types and relaxing the DAG assumption to accommodate systems with feedback loops.
Code and Appendix are available at https://github.com/CGCL-codes/CausalNET.
Summary updated