NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stepwise Model Selection for Sequence Prediction via Deep Kernel Learning

Yao Zhang, Daniel Jarrett, Mihaela van der Schaar

Abstract

Standard automated machine learning (AutoML) typically searches for a single optimal model for a given dataset. However, in sequence prediction tasks like healthcare monitoring, data distributions often shift over time, making a static model suboptimal. We present Stepwise Model Selection (SMS), a novel Bayesian Optimization (BO) framework that jointly optimizes distinct models for every time step using Deep Kernel Learning (DKL). Our approach, SMS-DKL, effectively captures temporal correlations and outperforms existing multi-objective and standard BO baselines on complex clinical datasets.

Introduction: The Challenge of Temporal Shifts

In automated machine learning (AutoML), the prevailing paradigm is to identify a single optimal model configuration for a dataset. However, in sequence prediction—particularly in high-stakes domains like healthcare—the underlying data distribution often evolves. For instance, the physiological indicators of risk for an ICU patient on day one may differ significantly from those on day five.

Forcing a single model to perform across all time steps often results in a "compromise" that is suboptimal at any specific point. While this can be framed as a multi-objective optimization problem, doing so typically introduces unnecessary trade-offs between performance at different time steps, often visualized as a Pareto front where improving one objective necessitates degrading another.

Multi-objective optimization trade-offs.

Stepwise Model Selection (SMS)

The authors formalize this challenge as Stepwise Model Selection (SMS). The objective is to automatically discover the best specific model and hyperparameters for each individual time step $t$. To make this computationally feasible, they propose SMS-DKL, which utilizes Deep Kernel Learning to optimize these models jointly rather than independently.

SMS-DKL Architecture

The core of SMS-DKL is a Bayesian Optimization (BO) loop that treats performance at each time step as a distinct black-box function. Key innovations include:

  • Deep Kernels for Joint Learning: A neural network architecture (comprising an RNN, a DeepSets network, and an MLP) learns the similarities between different time steps and model configurations. This allows the algorithm to exploit temporal correlations—for example, recognizing that the optimal model for hour 12 is likely similar to the one for hour 13.
  • Hedge-Inspired Acquisition: To efficiently explore the search space, the method employs a stochastic policy inspired by the Hedge algorithm. This dynamically prioritizes evaluations for time steps that offer the highest potential for improvement.
Comparison of (a) Multi-Objective BO, (c) the proposed SMS-DKL approach, and sequential BO paradigms.

Experimental Evaluation

The method was evaluated on seven sequence prediction tasks across three real-world medical datasets: the UK Cystic Fibrosis registry (UKCF), MIMIC-III, and WARDS. Performance was measured using the Area Under the Precision-Recall Curve (AUPRC) to account for the heavy class imbalances typical in clinical data.

SMS-DKL consistently outperformed standard BO and state-of-the-art multi-objective algorithms (such as ParEGO and PESMO). For example, on the WARDS ICU prediction task, SMS-DKL achieved an AUPRC of 0.207, significantly higher than the 0.176 achieved by standard BO and the 0.199 of the best multi-objective baseline, ParEGOWISE.

Key Insights

  • Evolution of Optimal Architectures: The study confirmed that the best model architecture changes as more sequence history becomes available. Early time steps often favor simpler models with smaller hidden states, as patients are more stable and there is less historical context to process.
  • Automatic Correlation Discovery: The DKL approach successfully learned to group highly correlated time steps (e.g., the final 24 hours of an ICU stay) without manual feature engineering, accelerating the search process through information sharing.
  • Generalization: SMS-DKL allows standard, unmodified RNNs to achieve performance levels comparable to highly specialized, custom-engineered architectures designed specifically to handle temporal shifts.

Conclusion

SMS-DKL provides a robust, automated alternative to manual architecture engineering for time-varying data. By treating stepwise selection as a joint optimization problem powered by Deep Kernel Learning, it overcomes the limitations of both single-model AutoML and traditional multi-objective trade-offs. While computationally intensive for very large sequences, the use of subset sampling makes it a practical tool for a wide range of sequential AutoML applications beyond healthcare.

Summary updated

BibTeX
@inproceedings{zhang2020stepwise,
  author = {Yao Zhang and Daniel Jarrett and Mihaela van der Schaar},
  title = {{Stepwise Model Selection for Sequence Prediction via Deep Kernel Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure