seq2cause: One Autoregressive Backbone, Four Causal Discovery Tasks in Event Sequences
Organizations: BMW Group
Abstract
Complex systems such as vehicles, patients, or genomes emit discrete event sequences whose operative question is causal, not predictive: which events cause which other events, and which cause higher-level outcomes such as failures or diseases? This question decomposes along two axes -- dependency type (event event vs.\ event outcome) and causal scope (single sequence vs.\ population) -- yielding four structurally distinct regimes with different identifiability conditions. No existing method addresses more than one, because all assume multi-stream structure with low vocabulary, and none scales beyond a few hundred event types. We present Seq2Cause, a unified framework that resolves all four regimes through a single shared primitive: a pretrained autoregressive model repurposed as an amortized conditional independence testing engine requiring no task-specific retraining. We establish a prediction--causality duality: the model's excess cross-entropy simultaneously bounds causal identification error across all four regimes, so that every improvement in next-token prediction tightens causal guarantees for free. On nonlinear SCMs (vocabularies up to types) and real-world vehicle diagnostic logs (K event types, failure outcomes), Seq2Cause is the first method to populate all four regimes at scale with a single frozen backbone. Existing methods are either inapplicable, inaccurate, or computationally intractable in this setting.
Figures & tables
| Event-to-Event: | Events-to-Outcomes: | |
| Sample-Level (Single Sequence) | (a) Sample Time Graph Recovery Recover the time causal graph specific to a single sequence of events with lagged effects. | (b) Sample Markov Boundary Identify the direct causes of each outcome (e.g., defects, diseases) from a single sequence. |
| Population-Level (Full Dataset) | (c) Population Summary Graph Summary causal graph over event types : which event caused other events across samples? | (d) Population-Markov Boundary Identify the Causes of outcomes aggregated across sequences: What events lead to this product defect? |
| Symbol | Name | Nodes | Edge meaning |
| Sample-time event-to-event graph | Time indices | : realization caused in | |
| Sample-time event-to-outcome graph | Time indices outcomes | : realization caused in | |
| Sample-time causal graph | Time indices outcomes | Joint DAG over all events and outcomes in | |
| Sample-summary graph | Event types , outcomes | : type caused type in | |
| Population summary graph | Event types , outcomes | : type causes type across |
| Event-to-Event | Events-to-Outcomes | |||||||
| (a) Sample-Summary Graph (nonlinear-SCM) | (b) Sample-Markov Boundary (Vehicle Diagnostics) | |||||||
| Sample-Level | Method | SHD | F1 | Prec. | Method | Prec. | Rec. | F1 |
| Attention (BERT) | 321.0 15 | 50.1 .01 | 35.0 .01 | IAMB [ 57 ] | ||||
| Saliency (IG, LLaMA) [ 49 ] | 160.2 6.6 | 67.3 .01 | 51.4 .01 | CMB [ 13 ] | ||||
| Shapley (LLaMA) [ 25 ] | 148.0 5.1 | 60.0 .01 | 55.5 .01 | MB-by-MB [ 65 ] | ||||
| Neural Granger (LLaMA) [ 16 ] | 100.2 14.6 | 69.2 .04 | 71.6 .04 | PCDbyPCD [ 69 ] | ||||
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Discrete | Non-Param. | Single Stream | Scalable | RCA | ||
| Constraint-based (PCMCI, FCI) | ✓ | ✓ | |||||
| Score-based (DYNOTEARS) | ✓ | ||||||
| Granger (TCDF, CAUSE) | ✓ | ||||||
| Noise-based (VarLiNGAM) | ✓ | ||||||
| Hawkes / TPP (THP, SHTP) | ✓ | ✓ | |||||
| Info-Theoretic (NPHC, CASCADE) | ✓ | ✓ | ✓ |
| Feature | Traditional Approach | Ours (seq2cause) |
| (e.g., Hawkes, Granger, PCMCI) | (Autoregressive Model) | |
| Input Format | Long / Vertical Stream | Wide / Horizontal Batches |
| Structure | Time Event_Type 0.0 E_A 0.4 E_B 1.2 E_C ... ... | Seq_ID Sequence (Tokens) Time 0 [E_A, E_B, E_A, ...] [0.0, 1.3, 1.4, ...] 1 [E_C, E_D, E_G, ...] [0.0, 1.2, 5.9, ...] ... ... |
| Dimensionality | Low | Massive |
| Discovery Scope | Global (Graph of all processes) | Local / Sample (Summary Graph of specific trace) |
| Vocabulary Complexity | Often or | (Inference) |
| IAMB | CMB | MB-by-MB | PCDbyPCD | MI-MCF | seq2cause | ||
| 500 | 500 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 58.4 |
| 500 | 5,000 | 2.1 | 1.8 | 2.4 | 0.0 | 0.0 | 59.7 |
| 2,000 | 500 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 52.2 |
| 2,000 | 5,000 | 0.0 | 0.0 | 0.0 | – † | 0.0 | 53.1 |
| 2,000 | 50,000 | – † | – † | – † | – † | – † | 55.3 |
| 29,100 | 50,000 | – † | – † | – † | – † | – † | 46.1 |
Causal Discovery
Causal discovery infers cause-and-effect structures from observational and interventional data, distinguishing causal relationships from correlation.
See all 221 papers