Abstract
Predicting the outcomes of sequential interventions is a fundamental challenge in domains such as personalized medicine and recommendation systems, where the space of possible action sequences grows exponentially. Standard deep learning architectures, while powerful, often fail to generalize to unseen sequences due to a lack of structural inductive bias regarding causal interactions. This paper introduces the Compositional Sequential Intervention (CSI) framework and its implementation, CSI-VAE. By modeling interventions as recursive operators that warp a unit’s latent state, the framework achieves formal identifiability and superior predictive performance in sparse, high-dimensional settings. We demonstrate that CSI-VAE significantly outperforms black-box models like Transformers and LSTMs, while providing rigorous uncertainty quantification through conformal prediction.
1. Introduction
In many real-world scenarios, we must predict how a system or individual will respond to a specific sequence of actions—for instance, the physiological response to a multi-day drug regimen or a user's engagement following a series of content recommendations. The primary obstacle is causal extrapolation: because the number of possible sequences is vast, the training data is inevitably sparse. Most specific combinations of actions will never have been observed.
While sequence models like Recurrent Neural Networks (RNNs) and Transformers are adept at mapping inputs to outputs, they often struggle to generalize to "unseen" causal regimes. They treat interventions as standard features rather than structural perturbations, failing to capture the underlying mechanics of how individual actions interact and decay over time. This work proposes a structured alternative that isolates the effects of interventions into modular, recombinable components.
2. The Compositional Sequential Intervention Framework
The core innovation of this research is the treatment of interventions not as mere inputs, but as compositional warpings of a unit's latent state. The authors propose a factorization that decomposes the conditional mean of a behavior into three distinct factors:
- Basis Functions ($\phi$): These capture the general, shared dynamics of the system over time.
- Unit-level Coefficients ($\beta$): These represent individual "random effects" or latent traits unique to a specific unit (e.g., a patient's baseline health or a user's inherent preferences).
- Intervention Warpings ($\psi$): A recursive function that describes how each action in a sequence modifies the unit's state. This warping allows the model to handle non-stationary dynamics, where the effect of an action depends on the timing and order of previous actions.
2.1 CSI-VAE Implementation
The researchers implement this structure using a Variational Autoencoder (VAE) architecture. The model utilizes Gated Recurrent Units (GRUs) to learn the posterior distribution of the latent unit effects ($\beta$) and to parameterize the basis functions ($\phi$). This allows the model to infer hidden traits from a "burn-in" period of observations before predicting the impact of future interventions.
3. Theoretical Guarantees and Uncertainty
Unlike many empirical deep learning studies, this work provides a rigorous theoretical foundation:
- Identifiability: The authors establish Theorem 1, which defines the data conditions necessary to uniquely recover the model's underlying parameters. A key finding is the necessity of a "burn-in" period—observations without interventions—to accurately identify a unit's latent traits.
- Universal Approximation: Proposition 2 proves that the CSI framework can represent any measurable ground truth function, provided sufficient model complexity.
- Conformal Prediction: To ensure the model is suitable for high-stakes decision-making, the authors integrate Conformal Prediction. This method generates prediction intervals with formal coverage guarantees, ensuring that the model's reported uncertainty remains reliable even when the distribution of future interventions shifts.
4. Empirical Evaluation
The model was evaluated against standard baselines, including GRUs, LSTMs, and Transformers, across two primary environments:
4.1 Synthetic Simulation
Using a ground-truth environment with controlled dimensionality ($r=5$), the authors verified their identifiability results. In these tests, CSI-VAE demonstrated a dramatic advantage in predictive accuracy. For example, at time step $T+1$, CSI-VAE achieved a Mean Squared Error (MSE) of 36.53, whereas the best-performing black-box model (a Transformer) yielded an MSE of 111.66.
4.2 Semi-Synthetic Spotify Simulator
To test real-world applicability, the authors used the WSDM Cup dataset of music streaming logs. They learned user behavior patterns from real data and layered synthetic interventions to simulate novel treatment regimes. CSI-VAE consistently outperformed unstructured models, particularly in its ability to generalize to sequences not present in the training set.
4.3 Ablation and Uncertainty Results
Ablation studies confirmed that the specific "product form" and "recursive warping" of the CSI framework are essential to its success; relaxing these structural assumptions led to significant performance degradation. Furthermore, while naive models provided only ~57% coverage on test data, the application of Conformal Prediction allowed the authors to reach the target 95% coverage.
5. Discussion and Limitations
While the CSI framework represents a significant step forward in causal sequence modeling, several limitations remain. The current model assumes sequential ignorability—the absence of unmeasured confounders affecting both the intervention choice and the outcome. Additionally, the model currently utilizes fixed decay shapes (such as exponential decay) for intervention effects.
Future research directions include extending the framework to handle "cocktail" interventions (multiple actions at a single time step) and developing methods to discover and account for unmeasured confounding in observational data.
6. Conclusion
The CSI-VAE demonstrates that in high-dimensional, sparse causal settings, structure beats scale. By embedding the logic of compositional interventions directly into the model architecture, the framework provides a robust, identifiable, and theoretically grounded approach to predicting the effects of complex action sequences.
Summary updated