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

Automated Machine Learning (AutoML) typically seeks a single optimal model for a dataset. However, in sequence prediction tasks like medical monitoring, the ideal model configuration often evolves over time. We present Stepwise Model Selection (SMS), a Bayesian Optimization framework that leverages Deep Kernel Learning to efficiently identify the best model for each individual time step in a sequence. By sharing information across temporal steps, SMS-DKL achieves superior predictive accuracy and efficiency compared to standard global optimization methods.

Introduction

Automated Machine Learning (AutoML) has revolutionized model selection by automating the search for optimal hyperparameters and architectures. However, a fundamental assumption in standard AutoML is that a single "best" model exists for an entire dataset. In the context of sequence prediction—particularly in dynamic environments like Intensive Care Units (ICUs)—this assumption often fails. A patient's physiological state and the predictive power of various clinical features change over time, meaning the optimal model at the start of an admission may differ significantly from the one needed 48 hours later.

The Stepwise Model Selection (SMS) Framework

To address this, we introduce Stepwise Model Selection (SMS). Instead of seeking a global model, SMS aims to find the optimal model configuration for each discrete time step $t \in \{1, \dots, T\}$. The challenge lies in the computational cost: running $T$ independent Bayesian Optimization (BO) processes is prohibitively expensive.

Deep Kernel Learning for Temporal Correlation

The core innovation of SMS is the use of Deep Kernel Learning (DKL) to share information across time steps. By treating the performance at each step as a separate but related black-box function, the framework can learn the underlying correlations between temporal stages.

Comparison of standard Multi-Objective BO (a) and the proposed SMS-DKL (c).

As shown in the architecture above, SMS-DKL employs:

  1. Representation Learning: An RNN and a DeepSets layer generate a representation of the dataset that captures temporal dynamics while remaining invariant to the ordering of individual samples (e.g., patients).
  2. Shared Feature Mapping: A Multi-Layer Perceptron (MLP) maps these representations and model hyperparameters into a feature space ($g_t$). This allows the model to recognize that performance at $t=10$ is likely a strong predictor of performance at $t=11$.
  3. Stochastic Acquisition: A policy inspired by the "Hedge" algorithm selects the next model to evaluate by treating each time step's optimizer as an "expert," prioritizing steps where the most improvement is expected.

Experimental Evaluation

The framework was tested on three critical medical datasets: the UK Cystic Fibrosis Registry (UKCF), MIMIC-III (ICU monitoring), and general ward data (WARDS). These datasets involve predicting high-stakes outcomes like mortality, infection, and the need for critical care transfer.

Performance and Efficiency

SMS-DKL consistently outperformed standard Gaussian Process (GP) based BO and Multi-Objective BO (MOBO) variants like ParEGO and PESMO.

The Pareto front in multi-objective optimization, illustrating the trade-offs SMS-DKL navigates across time steps.

While MOBO methods attempt to find a Pareto front of models that balance performance across all objectives (time steps), SMS-DKL's ability to explicitly model temporal correlations allows it to find superior models more quickly. In the WARDS dataset, SMS-DKL achieved a 5-8% improvement in AUPRC over the best benchmark within the same iteration budget.

Key Insights

  • Dynamic Model Requirements: Earlier time steps often favor simpler models with less memory, whereas later steps require complex recurrent structures to capture long-term dependencies.
  • Learned Embeddings: Visualizations of the DKL feature space revealed that the model successfully clusters similar time steps, particularly towards the end of clinical episodes where data dynamics stabilize.

Conclusion

Stepwise Model Selection via Deep Kernel Learning provides a scalable and effective solution for sequence prediction in non-stationary environments. By moving beyond the "one-size-fits-all" paradigm of traditional AutoML, SMS-DKL ensures that predictive models remain optimal as data distributions evolve over time, offering significant potential for improving decision support in healthcare and beyond.

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