TL;DR
This paper introduces a framework for discovering full causal graphs in nonlinear multivariate time series by combining deep forecasting models with synthetic "knockoff" interventions. By swapping individual predictors with statistically null, in-distribution knockoff copies and checking whether forecast residual distributions remain invariant via a Kolmogorov–Smirnov test, the method reliably uncovers cause-and-effect links while suppressing spurious correlations.
What Problem Does This Paper Address?
Inferring causal relationships in multivariate time series is notoriously difficult when the underlying dynamics are nonlinear and confounded by shared trends or seasonalities. Classical techniques like Invariant Causal Prediction (ICP) rely on the principle that true causal mechanisms remain invariant across diverse environments. However, ICP typically requires pre-defined, heterogeneous environments (or non-stationarity), focuses on a single target variable rather than the entire graph, and can yield empty sets when disjoint predictor sets show invariance.
Conversely, standard deep neural networks excel at modeling high-dimensional nonlinearities, but they stumble when exposed to out-of-distribution (OOD) data or missing inputs during interventions. The authors address how to generate valid, in-distribution counterfactual environments purely from observational time series data to test model invariance across the entire system.
Methods
The proposed pipeline (DeepAR-K) integrates deep probabilistic forecasting with the Model-X Knockoffs framework:
- Nonlinear Modeling with DeepAR: The authors use DeepAR—an autoregressive recurrent neural network (LSTM)—to model nonlinear temporal dependencies, trends, and seasonality across all time series jointly.
- Knockoff Interventions: Instead of zeroing out predictors or introducing arbitrary out-of-distribution noise, the method generates DeepKnockoffs (approximated via Gaussian mixture models). Knockoff variables $\tilde{Z}$ act as statistically null controls: they are pairwise exchangeable with the original series $Z$ and preserve the same marginal and covariance structure, but are decorrelated with the originals as much as possible.
- Invariance Hypothesis Testing: To assess whether $Z_i$ causes $Z_j$, variable $Z_i$ is replaced by its knockoff copy $\tilde{Z}_i$. DeepAR then forecasts $Z_j$ over rolling forecast windows ($w \in [20, 30]$ with step size $[5, 10]$).
- Kolmogorov–Smirnov (KS) Test: The forecast residuals before intervention ($R$) and after intervention ($\tilde{R}$) are compared via a two-sample KS test.
- $H_0$ (Non-causal): $R \approx \tilde{R}$ (residuals remain invariant); the intervention has no significant effect.
- $H_1$ (Causal): $R \neq \tilde{R}$ (residuals diverge significantly); $Z_i$ is accepted as a direct cause of $Z_j$.
[ Multivariate Time Series Z ] ──> [ DeepAR Model ] ──> [ Forecast Residuals R ]
│ │
Generate Knockoff │ Two-Sample
▼ ▼ KS Test
[ Knockoff Series Z̃_i ] ───────> [ DeepAR Model ] ──> [ Intervened Residuals R̃ ] ──> Causal / Non-causal
Datasets
The authors evaluate the approach on synthetic and real-world benchmarks:
- Synthetic Nonlinear Time Series: 5-node synthetic graphs governed by autoregression, linear, and exponential coupling functions $f_i(z)$, dynamic Gaussian noise ($\sigma^2 \in [0.3, 0.9]$), coupling coefficients ($c_i \in [0.2, 1.0]$), and time lags ($\tau \in [0, 10]$).
- Upper Danube River Discharges (Real-World): Daily discharge measurements (2017–2019) from three German river stations: Iller at Kempten ($K_t$), Danube at Dillingen ($D_t$), and Isar at Lenggries ($L_t$). Ground truth hydrologic topology confirms an instantaneous link ($K_t \to D_t$) with no direct links to or from $L_t$, although common weather/rainfall serves as an environmental confounder.
Key Insights and Ideas
- Knockoffs solve deep learning’s OOD vulnerability: Standard deep models collapse when fed out-of-distribution values or zeroes. Because knockoffs match the original data distribution and maintain cross-variable covariance while removing feature-target associations, they provide a mathematically grounded "soft intervention."
- Full graph discovery via multivariate invariance: Rather than restricting invariance testing to direct causes of a single scalar response, applying knockoff substitutions across each node iteratively reconstructs the full causal adjacency matrix.
- Invariance testing beats heuristic feature attribution: Deep network weights are notoriously difficult to interpret; testing the empirical residual distribution stability via KS tests provides rigorous statistical error control.
Key Results
- Synthetic Benchmarks: DeepAR with Knockoffs (DeepAR-K) achieved the lowest False Positive Rate (FPR) and the highest F-score among all baselines. It substantially outperformed standard linear and nonlinear baselines—VAR Granger Causality (VAR-GC), VARLiNGAM, and PCMCI+—which suffered low detection power due to nonlinear dynamics. DeepAR-K also outperformed alternative intervention baselines (mean substitution, uniform noise, and OOD shifts).
- River Discharge Application:
- DeepAR-K was the only method to discover the true causal link ($K_t \to D_t$) with zero false discoveries.
- Baselines produced spurious links: VAR-GC and DeepAR-Mean inferred bidirectional links between $D_t$ and $L_t$ (spurious weather confounding); DeepAR-OOD incorrectly reversed the direction ($D_t \to K_t$); and PCMCI+ detected a false link between $L_t$ and $K_t$.
Limitations and Future Work
- Assumptions of Stationarity & Causal Sufficiency: The framework assumes time series are stationary and that all common confounders are observed (causal sufficiency).
- Computational Cost: Training DeepKnockoff generators and running multi-window probabilistic DeepAR inferences results in significantly higher runtime compared to lightweight constraint-based methods like PCMCI+.
- Future Directions: The authors plan to extend the knockoff-invariance testing scheme to non-stationary regimes and validate the architecture across broader real-world benchmarks.
Summary updated