TL;DR
When hunting for truly important variables in complex sequential models—like LSTMs or Transformers—classic statistical filters break down because a single variable is smeared across multiple time steps and hidden states. This paper introduces a framework that keeps your "false alarm" rate strictly in check while evaluating entire blocks of time-lagged features at once, no matter what neural architecture lies underneath.
What Problem Does This Paper Address?
Suppose you are building a model with hundreds of candidate variables, and you want to know which ones actually matter without fooling yourself. In statistics, this means controlling the False Discovery Rate (FDR)—keeping the proportion of "false alarms" among your selected features below a strict budget (say, 10%).
Existing FDR tools (like Knockoffs or standard Gaussian Mirrors) operate on a "one-feature, one-weight" paradigm. Each input gets a single scalar dial, and we test if that dial is zero.
That abstraction shatters in sequential or time-series modeling. If you measure river flow today, yesterday, and two days ago, one physical sensor becomes a block of correlated sub-features. In an LSTM or Transformer, that variable ripples through multiple lags, recurrent gates, and attention heads. Asking whether "Tuesday's lag" equals zero misses the real scientific question: Does this sensor matter at all across the entire time window? Testing sub-features individually fails to capture the grouped null hypothesis and destabilizes when time lags are strongly correlated.
Methods
The authors build upon the Gaussian Mirror principle. Standard Gaussian Mirrors split a feature $x$ into twin "mirror" versions by adding and subtracting calibrated random noise ($x \pm c z$). If the feature is useless (null), its twins get random weights whose product is equally likely to be positive or negative—giving us a clean, symmetric baseline around zero to estimate false discoveries. If the feature is genuinely useful, both twins carry real signal in the same direction, pushing their combined "mirror statistic" strongly positive.
To lift this from scalars to sequential blocks, the authors introduce two novel methods:
- Group Gaussian Mirror (GGM) for Linear Models: Instead of adding scalar noise, GGM perturbs an entire $n \times m$ feature block using matrix-valued noise and a $m \times m$ group perturbation matrix, ensuring the residualized twin blocks are orthogonal. For high dimensions (more sub-features than samples), they pair this with a two-stage data-splitting strategy: screen candidate blocks on chunk one (using Group Lasso) with a short time buffer gap, then run GGM on chunk two.
- Permutation SHAP Gaussian Mirror (PSGM) for Neural Networks: Neural networks don't have neat linear weights, and standard partial derivatives go haywire when time-lagged inputs are tightly correlated. The authors combine two pieces:
- Kernel-based twin construction: Optimizing the perturbation matrix via a Reproducing Kernel Hilbert Space (RKHS) objective so the twin blocks are conditionally independent given all other features (using a label-free ridge projection in high dimensions).
- Permutation SHAP Derivatives: They compute the exact coalition-based SHAP value for the entire feature group, and then differentiate that score with respect to each individual time lag—yielding a stable, model-agnostic importance vector analogous to linear regression weights.
Datasets
- Linear Autoregressive (AR) Simulations: Synthetic time-series datasets ($n=2500$, block size $m=5$, features $p \in \{300, 700\}$) with varying temporal correlations and correlated AR(1) noise.
- Nonlinear Sequential Simulations: Synthetic datasets generated from smoothed latent factors fed through a logistic-tanh mechanism, evaluated across LSTM, GRU, and Transformer encoders.
- CausalRivers Benchmark: Real-world 3-hour river-discharge time series from 666 gauge stations in East Germany, featuring a known upstream-to-downstream physical river graph. Because physical river paths don't strictly equal statistical regression nulls, the authors also evaluate a semi-synthetic variant using real river covariates paired with simulated nonlinear responses where the true upstream support is known.
Key Insights and Ideas
- SHAP Derivatives Generalize Linear Weights: Differentiating a group's Permutation SHAP value with respect to its sub-features isn't just a clever heuristic—in a grouped linear model, it mathematically collapses exact to the true regression coefficient vector $\boldsymbol{\beta}_j$. In neural nets, smoothing these derivatives preserves null symmetry around zero.
- Standard Post-Selection Math Breaks on Groups: In high-dimensional linear models, standard Lasso selection forms a neat geometric "polyhedron" in response space, allowing post-selection inference without splitting data. The authors prove Group Lasso does not form a polyhedron, justifying why time-buffered data splitting is essential here.
- Symmetry Survives Imperfect High-Dimensional Projections: In high-dimensional neural nets, you can't perfectly orthogonalize features. Yet Theorem 5 reveals a "symmetry-safe" principle: as long as your ridge-projection noise is odd (flips sign with the noise) and your attribution pipeline treats twin branches equally, the mirror outputs remain exchangeable under the null.
Key Results
In linear simulations (target FDR $q = 0.1$), GGM-OLS reliably keeps FDR below 0.10 across nearly all correlation regimes while achieving ~0.995–1.000 statistical power, whereas naive Group Lasso suffers massive false discovery rates around 0.40–0.46.
In sequential neural simulations (target $q = 0.1$), heuristic selectors like Adaptive Group Lasso (AGL) and AFS routinely blow past the error budget with FDRs between 0.55 and 0.97. PSGM stays much closer to the 0.10 target while maintaining strong power across LSTM, GRU, and Transformer architectures, outperforming coordinate-wise fitted derivatives:
On the CausalRivers semi-synthetic benchmark (target $q = 0.2$), PSGM achieves ~0.90 power across LSTM, GRU, and Transformer models with FDR around 0.26–0.31—selecting ~99% of direct upstream stations and beating full-model held-out test MSE (e.g., 0.333 vs. 0.399 on real $y$ with Transformers).
Limitations and Future Work
- Garbage In, Skewed Mirrors Out: In neural networks, PSGM relies on how well the trained network uses its inputs. If an under-regularized network latches onto spurious correlations, null symmetry weakens (the authors note stronger weight decay helps). This ties directly into the "Rashomon effect," where many distinct neural weights predict equally well—a theoretical gap the authors highlight for future work.
- Window Size and Sparsity: PSGM works best with moderate lag windows (e.g., $m=5$) and sparse true signals; very long look-back windows or dense signals dilute mirror separation.
- Slightly Aggressive Tuning: PSGM leans toward maximizing power and occasionally overshoots the exact FDR target in tough nonlinear settings (e.g., reaching 0.22–0.28 in high-dimensional strong-signal neural runs), leaving room for more conservative neural mirror thresholds.
Summary updated