TL;DR
Real-world events—like a patient’s shifting lab vitals in an ICU—trigger one another in chain reactions whose rules evolve over time, yet standard sequence models usually treat cause-and-effect as static, direct, one-to-one links. MOCHA is a neural framework that learns time-evolving causal graphs from continuous-time event streams, explicitly separating direct triggers from multi-step domino effects. It predicts future events more accurately than existing baselines while uncovering complex, clinically plausible hypotheses directly from raw observational data.
What Problem Does This Paper Address?
Imagine watching a hospital patient develop acute kidney injury. Early on, high lactic acid drives up blood urea nitrogen (BUN). Hours later, the two interact to spike the patient's anion gap, which eventually loops back to push lactic acid even higher.
When modeling asynchronous, continuous-time event streams like this, researchers turn to Temporal Point Processes (TPPs)—probabilistic models that estimate the instantaneous likelihood (or intensity) of the next event given the past. However, existing TPPs struggle to explain why events happen due to two simplifying assumptions:
- Static structures: Even causal-aware TPPs aggregate history into a single, frozen graph. If $A$ causes $B$ at 9:00 AM, the model assumes $A$ causes $B$ at 9:00 PM, completely missing evolving or reversing relationships.
- First-order myopia: Models typically lump historical influences together or only look at direct pairwise triggers ($A \to B$), entangling direct effects with multi-hop causal chains ($A \to B \to C$).
The authors ask: Can we simultaneously uncover time-varying causal graphs and quantify multi-hop domino effects within a unified, continuous-time framework?
Methods
Enter MOCHA (Multi-Order Causal Hierarchical Architecture), an end-to-end differentiable model that jointly learns dynamic causal structures and predicts future events.
MOCHA operates in three stages:
- Dynamic Context Encoding: Instead of processing an infinitely growing history, MOCHA summarizes the current state by looking at the most recent occurrence of each event type. It combines sinusoidal encodings of the elapsed time with learnable event-type embeddings.
- Dynamic Causal Graph Learner: Using an asymmetric dense attention mechanism over these context embeddings, MOCHA generates a continuous structural weight matrix $\mathbf{W}_t$ at any given timestamp $t$. To ensure this matrix represents a valid Directed Acyclic Graph (DAG) (meaning no instantaneous causal loops), the authors apply continuous acyclicity trace constraints alongside $\ell_1$ sparsity penalties during training. Self-excitation (an event type triggering itself) is handled separately so it doesn't create graph cycles.
- Multi-Order Intensity Decomposition: Rather than collapsing history into one black-box score, MOCHA explicitly calculates event intensity as a sum of base rate, self-history, 1st-order (direct) paths, and higher-order (indirect, up to $K-1$ hops) paths through the learned DAG, modulated by an MLP-based time-decay kernel.
What’s clever here: Summing over all multi-hop paths naively takes $\mathcal{O}(K^L)$ time (for $K$ event types and path length $L$). By routing signals through the most recent events of each type, the authors reformulate path summation into recursive matrix multiplications, dropping complexity to $\mathcal{O}(LK^2)$ per step.
Datasets
MOCHA is evaluated across seven real-world benchmarks (plus one synthetic benchmark deferred to the appendix):
- Clinical care (4 datasets): Acute Kidney Injury (AKI), Coronary Artery Disease (CAD), Sepsis (SE), and Stroke (ST).
- Social & E-commerce (3 datasets): Retweet (RT), Taobao user behavior (TB), and StackOverflow badges (SO).
Key Insights and Ideas
- Acyclicity bounds the domino effect: Because each snapshot graph $\mathcal{G}_t$ is constrained to be a DAG over $K$ event types, any valid causal chain cannot exceed $K-1$ steps without repeating a node. This mathematically bounds the multi-order expansion, keeping recursion finite and gradients stable.
- Dynamics and multi-order paths are synergistic: Ablation studies reveal that adding only multi-order paths or only dynamic graphs to a multivariate Hawkes process yields modest gains, whereas combining both triggers dramatic improvements—proving that multi-step pathways themselves emerge and dissolve over time.
- Unsupervised hypothesis generation: Without any medical priors, MOCHA surfaced watching-brief clinical cascades in deteriorating AKI patients—identifying Lactic Acid High as a key intermediate bridge linking early electrolyte drops (Sodium Low $\to$ Anion Gap High) to eventual arterial pH crashes.
Key Results
- Predictive Fit: Across all seven real-world datasets, MOCHA achieves the best (lowest) Negative Log-Likelihood (NLL) against 10 TPP baselines, including state-of-the-art neural and state-space models like THP, AttNHP, and S2P2. Gains are sharpest in complex clinical settings—for example, slashing NLL on Coronary Artery Disease from 1.29 (S2P2) down to 0.69, and on Taobao from 0.01 to -0.36.
- Clinical Alignment: When tested against 10 literature-backed clinical pathways leading to Stage III AKI, MOCHA's inferred graphs matched 92.10% of first-order rules on average, and captured major multi-hop rules like Sodium Low $\to$ Anion Gap High $\to$ Phase III 99.39% of the time.
Limitations and Future Work
- Surrogate history: To keep computation fast, MOCHA approximates the entire historical context using only the latest timestamp of each event type, potentially losing nuance if the frequency or clustering of older events matters.
- Cubic scaling in event types: Evaluating the matrix exponential for the DAG acyclicity constraint costs $\mathcal{O}(K^3)$ per event, which could become a bottleneck for systems with thousands of distinct event types.
- Observational scope & theoretical gaps: Causal interpretations rely on strict structural assumptions (e.g., no unmeasured confounders, deferred to Appendix A), and the authors explicitly note that a complete convergence theory for the full dynamic neural TPP requires further mathematical assumptions beyond their current restricted proofs. Future work points toward clinically validating the candidate medical hypotheses surfaced by the model.
Summary updated