Online model selection by learning how compositional kernels evolve

Eura Shin, Predrag Klasnja, Susan Murphy, Finale Doshi-VelezTMLR 2023

In the world of mobile health (mHealth), machine learning models are more than static algorithms; they are evolving partners in a patient's journey. As users interact with fitness apps or clinical monitoring systems, data accumulates incrementally. To provide effective personalized interventions, models must adapt to this growing dataset without sacrificing speed, stability, or interpretability.

A recent paper from researchers at Harvard and the University of Michigan, published in Transactions on Machine Learning Research, introduces the Kernel Evolution Model (KEM). KEM offers a novel framework for online model selection in Gaussian Processes (GPs), ensuring that as a user’s dataset grows, the model evolves in a way that is fast, stable, and sparse.

The Challenge of Online Selection

The authors target a specific gap in online, multi-task learning. Consider a mobile health app predicting activity levels. Initially, with very little data, a simple linear model is most appropriate. Over time, as data accumulates, the model should ideally capture complex periodic patterns (e.g., weekend vs. weekday behavior). However, existing methods for selecting these "compositional kernels" face three major hurdles:

  1. Computational Speed: Standard search methods are too slow to re-run every time new data arrives for thousands of users.
  2. Overfitting: Complex kernels often overfit when data is scarce (the "low-N" problem).
  3. Stability: Many selection algorithms pick radically different features from one day to the next, making the model's reasoning inconsistent and untrustworthy for clinicians.

Methodology: The Kernel Evolution Model (KEM)

The core innovation of KEM is treating kernel selection as a generative process of evolution rather than a memoryless search.

  • Pilot Training (Offline): The system uses "pilot data" (e.g., from a small clinical trial) to observe how the optimal kernel composition typically changes as more data points are added.
  • Evolutionary Paths: These transitions ($K_{parent} o K_{child}$) are modeled using a Dirichlet Process (DP) mixture model, allowing the system to learn a library of common "growth paths" for models.
  • Regularization and Sparsity: To ensure models remain sparse and stable, the researchers employ specialized Bayesian priors (spike-and-slab). This prevents the model from dropping established features erratically.
  • Deployment (Online): For a new user, KEM does not search the entire space of possible models. It only considers the "children" of the current model based on the evolutions learned during the pilot phase. This makes the selection process significantly faster and naturally regularized.

Key Results and Insights

The authors evaluated KEM across synthetic data, UCI regression benchmarks, the MIMIC-III medical dataset, and the HeartSteps mHealth study.

Superior Regularization in Low-Data Regimes

One of the most striking findings was KEM's ability to manage the bias-variance trade-off as $N$ increases. In low-data regimes (e.g., $N=5$), baseline methods frequently overfit by choosing overly complex kernels. KEM successfully "held back," maintaining simpler kernels until more data justified the added complexity.

KEM model selection at N=5, choosing a simple linear kernel (LIN0) to avoid overfitting.
Baseline model selection at N=5, prematurely selecting a complex periodic kernel (LIN0+PER0) and overfitting.

Efficiency and Stability

During deployment, KEM was orders of magnitude faster than memoryless search methods because it only evaluated a small set of likely successor kernels. Furthermore, KEM provided much higher stability. In health settings, if a model suddenly switches from using "heart rate" to "location" without clear evidence, clinicians lose trust. KEM’s transition-based approach ensures features are added only when there is strong evidence and are not dropped without reason.

Conclusion and Future Work

KEM demonstrates that learning the path of model growth is as important as finding the destination. By front-loading the heavy search computation to an offline pilot phase, real-time personalization becomes computationally feasible on mobile devices.

While KEM's performance is currently tied to the quality of pilot data, future work may involve using these learned evolutions as a flexible prior rather than a hard constraint, and integrating scalable GP approximations to handle even larger pilot datasets.

Summary updated

BibTeX
@article{shin2023online,
  author = {Eura Shin and Predrag Klasnja and Susan Murphy and Finale Doshi-Velez},
  title = {{Online model selection by learning how compositional kernels evolve}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=23WZFQBUh5},
}
Figure