Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregation

Hugo Math, Rainer Lienhart

TL;DR

This paper introduces CARGO, a novel method for discovering causal relationships in complex, high-dimensional event sequences, like those found in vehicle diagnostics. CARGO scales causal discovery to thousands of unique events by using pretrained Transformers to infer local causal graphs for each sequence and then adaptively fusing them into a global causal structure, overcoming the computational intractability of traditional methods.

What Problem Does This Paper Address?

Understanding "why" certain events lead to specific outcomes is crucial in many fields, from healthcare to industrial diagnostics. For instance, identifying the sequence of symptoms that leads to a disease or the series of error codes that results in a vehicle failure is vital for diagnosis and prediction. However, real-world event sequences are often characterized by extremely high dimensionality (tens of thousands of unique event types) and sparsity, making traditional causal discovery methods computationally infeasible. Existing approaches struggle with the sheer number of variables and the difficulty of performing reliable conditional independence tests on such data. This paper aims to bridge this gap by proposing a scalable and practical method for multi-label causal discovery in these challenging high-dimensional event sequences.

Methods

CARGO employs a two-stage approach:

  1. One-Shot Causal Discovery: For each individual event sequence, CARGO leverages two pretrained causal Transformers (one for events, one for labels) to act as "oracle models." These models estimate conditional probabilities, allowing CARGO to compute conditional mutual information (CMI) between events and labels. This CMI serves as a measure of conditional independence, enabling the inference of a local causal graph (specifically, the Markov Boundary) for each label within that sequence. This phase is highly parallelizable.
  2. Structural Fusion: The local causal graphs generated in the first phase are then aggregated into a single, global causal graph. Instead of a simple union, CARGO uses an adaptive frequency fusion strategy. This involves calculating the frequency of each potential causal edge (event-label relationship) across all sequences. Crucially, it employs a label-specific adaptive threshold that accounts for the "long-tail" distribution of labels (i.e., some labels are rare and have sparse data, while others are common). This adaptive thresholding ensures that rare labels are treated more conservatively to avoid spurious connections, while common labels benefit from more lenient thresholds to capture weaker but valid causal links.

Datasets

The primary dataset used for evaluation is a real-world automotive fault prediction dataset. This dataset is characterized by:

  • Approximately 300,000 sequences.
  • Over 29,100 unique event types (Diagnostic Trouble Codes - DTCs).
  • 474 imbalanced labels (error patterns).

The paper also mentions using a large-scale vehicular dataset comprising about 29,100 events and 474 imbalanced labels. The pretrained Transformers were trained on a dataset of multi-labeled event sequences, but the specifics of this training dataset are not detailed beyond it being used for "domain-specific foundation models."

Key Insights and Ideas

  • Transformers as Causal Oracle Models: The paper demonstrates that pretrained Transformers, typically used for sequence modeling, can be repurposed as powerful "oracle models" for estimating conditional probabilities, which are essential for causal discovery. This bypasses the need for explicit conditional independence tests on raw data.
  • One-Shot Inference for Scalability: Inferring local causal graphs for each sequence independently, rather than performing global analysis on the entire dataset, is key to CARGO's scalability. This allows for massive parallelization.
  • Adaptive Fusion for Long-Tail Data: The adaptive thresholding strategy is a critical innovation. It directly addresses the challenge of imbalanced and sparse data in real-world scenarios, ensuring that causal discovery is robust across both common and rare outcome labels. This is a significant improvement over static thresholds.
  • Bridging Theory and Practice: CARGO successfully bridges the gap between theoretical causal discovery methods and practical deployment in high-dimensional, noisy industrial systems.

Key Results

  • Scalability: CARGO successfully processed a dataset with 29,100 event types and 474 labels, achieving results in minutes. In contrast, traditional Local Structure Learning (LSL) algorithms failed to complete within a 3-day timeout on a subset of the data (50,000 sequences), highlighting CARGO's superior scalability.
  • Performance: On a large-scale vehicular dataset (300,000 sequences), CARGO achieved a weighted F1 score of 44.88% and a weighted precision of 62.8% with its adaptive thresholding criterion. This significantly outperformed other aggregation strategies.
  • Ablation Studies: Experiments showed that scaling up Transformer model size and training data, as well as optimizing the context window size (c=15 was chosen), led to significant improvements in the one-shot phase. The adaptive thresholding criterion was found to be superior to static thresholds and other fusion methods.

Limitations and Future Work

  • Assumptions: CARGO relies on several assumptions, including temporal precedence (events only influence future events), bounded lagged effects (causal influence expires after a certain time), causal sufficiency (no hidden confounders affecting labels), and the assumption that the pretrained Transformers perfectly model the true conditional distributions (Oracle Models). The paper acknowledges that the bounded lagged effects assumption might not hold for all data types (e.g., financial transactions) but is generally suitable for log-based and error code data.
  • Future Work: The authors suggest extending CARGO by leveraging general-purpose foundation models for sequences (e.g., cross-domain pretrained time-series transformers) to broaden its applicability beyond automotive diagnostics to fields like healthcare and cybersecurity. They also propose future work to extend the framework to support event-to-event causality and potentially relax assumptions like bounded lagged effects or temporal precedence.

Summary updated

BibTeX
@inproceedings{math2025towards,
  author = {Hugo Math and Rainer Lienhart},
  title = {{Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregation}},
  booktitle = {SPIGM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=1HZfpuDVeW},
}
Figure