CausalNET: Unveiling Causal Structures on Event Sequences by Topology-Informed Causal Attention

Hua Zhu, Hong Huang, Kehan Yin, Zejun Fan, Hai Jin

Abstract

Causal discovery in event sequences is critical for understanding complex system dynamics, yet it faces significant challenges including non-i.i.d. data distributions, exponential search spaces, and the limitations of rigid parametric models. We present CausalNET, an end-to-end framework that transforms the NP-hard causal graph search into a differentiable optimization problem. By integrating physical network topology into a Transformer-based architecture via a novel causal decay matrix and utilizing the Gumbel-Softmax trick for graph learning, CausalNET effectively identifies causal relationships in large-scale systems. Our approach incorporates a rollback pruning mechanism to ensure the resulting Directed Acyclic Graph (DAG) remains acyclic. Extensive experiments on real-world telecommunication and synthetic datasets demonstrate that CausalNET outperforms state-of-the-art methods by over 10% in F1-score, exhibiting superior scalability as the number of event types increases.

Introduction

In complex modern systems—from global telecommunications networks to healthcare infrastructures—events rarely occur in isolation. A single failure in a router can trigger a cascade of alarms across a network. Identifying the underlying "causal discovery"—the process of determining which event types cause others—is typically represented as a Directed Acyclic Graph (DAG).

Traditional methods for causal discovery struggle with three primary hurdles: the assumption that event sequences are independent and identically distributed (i.i.d.), the exponential complexity of searching for optimal DAGs as event types scale, and the rigidity of classic statistical models like Hawkes processes which require manually specified kernels. CausalNET addresses these by leveraging neural architectures and differentiable graph learning to discover causal links directly from messy, real-world data.

Methodology

CausalNET introduces an end-to-end neural approach that alternates between event prediction and graph refinement. At its core is a Causal-Attention Transformer that uses a trainable causal graph to mask irrelevant historical events, focusing only on those with potential causal links to the future.

The CausalNET architecture, illustrating the integration of event prediction with differentiable causal graph optimization and topology-informed attention.

Key components of the architecture include:

  • Topology-Informed Attention: A causal decay matrix incorporates the physical network structure into the attention mechanism, accounting for the fact that influence wanes as topological distance (hops) increases.
  • Differentiable Graph Optimization: Using the Gumbel-Softmax trick, the model treats the existence of causal edges as continuous probabilities, allowing for gradient-based optimization rather than discrete searching.
  • Rollback Pruning: To satisfy the acyclicity requirement of DAGs, a post-processing mechanism removes the weakest edges until all cycles are eliminated, preserving high-confidence causal links.

Experimental Evaluation

The framework was evaluated on both synthetic and high-stakes real-world datasets:

  • Telecomm Alarms (Micro-24/25): Real-world data from Huawei microwave networks containing tens of thousands of events across hundreds of nodes.
  • Synthetic Data: Generated via the gcatle API to test flexibility against various mathematical kernels and scalability up to 100 event types.
  • IPTV Dataset: Used for qualitative analysis of user behavior patterns.

Results and Key Insights

CausalNET achieved significant performance gains, with F1-scores of 0.5016 and 0.4742 on real-world datasets—a 10%+ improvement over baselines like THP and TNPAR.

Comparison of F1-scores across varying numbers of event types, demonstrating CausalNET's superior scalability and robustness compared to state-of-the-art baselines.

A critical finding was the model's robustness to complexity. While traditional parametric methods saw performance degrade sharply as the number of event types increased, CausalNET remained stable. Furthermore, the inclusion of physical topology acted as a powerful noise filter, preventing the model from being misled by "unobservable confounders" that often plague purely correlation-based models.

Conclusion and Future Work

CausalNET represents a shift from searching for causal graphs to learning them. By making the graph differentiable and topology-aware, it handles complexities that cause traditional models to fail. While currently dependent on known network topologies, future work will focus on scaling the framework to massive-scale sequences involving millions of nodes and exploring domains where topology must be inferred alongside causality.

Summary updated

BibTeX
@inproceedings{zhu2024causalnet,
  author = {Hua Zhu and Hong Huang and Kehan Yin and Zejun Fan and Hai Jin},
  title = {{CausalNET: Unveiling Causal Structures on Event Sequences by Topology-Informed Causal Attention}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=VWjIZX8dB7},
}
Figure