Checkpoint Ensembles: Ensemble Methods from a Single Training Process

Hugh Chen, Scott Lundberg, Su-In LeearXiv 2017

Abstract

We present the checkpoint ensembles method that can learn ensemble models on a single training process. Although checkpoint ensembles can be applied to any parametric iterative learning technique, here we focus on neural networks. Neural networks' composable and simple neurons make it possible to capture many individual and interaction effects among features. However, small sample sizes and sampling noise may result in patterns in the training data that are not representative of the true relationship between the features and the outcome. As a solution, regularization during training is often used (e.g. dropout). However, regularization is no panacea -- it does not perfectly address overfitting. Even with methods like dropout, two methodologies are commonly used in practice. First is to utilize a validation set independent to the training set as a way to decide when to stop training. Second is to use ensemble methods to further reduce overfitting and take advantage of local optima (i.e. averaging over the predictions of several models). In this paper, we explore checkpoint ensembles -- a simple technique that combines these two ideas in one training process. Checkpoint ensembles improve performance by averaging the predictions from "checkpoints" of the best models within single training process. We use three real-world data sets -- text, image, and electronic health record data -- using three prediction models: a vanilla neural network, a convolutional neural network, and a long short term memory network to show that checkpoint ensembles outperform existing methods: a method that selects a model by minimum validation score, and two methods that average models by weights. Our results also show that checkpoint ensembles capture a portion of the performance gains that traditional ensembles provide.

Introduction

Deep learning models are notorious for overfitting and sensitivity to local optima. The standard industry solution is to use ensembles—training multiple models from different random initializations and averaging their results. While effective, this is computationally expensive; training an ensemble of five models takes five times as much time and energy. Most practitioners settle for Minimum Validation (MV): they train one model and save only the single version that achieved the best validation score. This paper argues that this approach discards valuable information. Even within a single training run, a model traverses different regions of the parameter space that may act as "experts" for different parts of the data.

Methodology

Checkpoint Ensembles (CE) is a simple yet effective technique that creates an ensemble of models from a single training process. Instead of picking just the single best model, the system saves the top $k$ checkpoints that achieved the highest validation scores during a single training trajectory.

Comparison between Traditional Ensembles and Checkpoint Ensembles.

At inference time, the input is passed through all $k$ saved models, and their predictions are averaged. This approach provides the stabilizing effect of averaging without the linear increase in training cost associated with traditional Random Initialization Ensembles (RIE). The authors also demonstrate that averaging predictions (CE) is significantly more reliable than averaging weights (Smoothers), as the non-linear nature of neural networks often causes weight-averaged models to perform poorly.

Experimental Setup

The researchers evaluated CE across three diverse domains to ensure robustness:

  1. Reuters: A classic text categorization dataset using a vanilla feedforward network.
  2. CIFAR-10: A standard image classification benchmark using a Convolutional Neural Network (CNN).
  3. Operating Room Data: A massive medical dataset (57,000 surgeries) used to predict patient complications using Long Short-Term Memory (LSTM) networks.

Key Insights and Results

A significant finding is that Checkpoint Ensembles perform exceptionally well with higher learning rates. A high learning rate allows the model to "bounce" around the parameter space, visiting multiple local optima. CE captures these different "views" of the data, whereas a single model might appear unstable at that same learning rate.

Optimization paths illustrating how models can settle into one or multiple optima.

Across all datasets, CE significantly outperformed the standard MV baseline. On the Reuters dataset, CE captured a large portion of the performance gain provided by a 5-model traditional ensemble, but at 1/5th the training cost. In the medical tasks, the gains from CE were significantly higher than statistical noise, proving its utility in high-stakes prediction environments. Furthermore, CE often reaches peak performance in fewer epochs than MV by "recycling" the path the optimizer took.

Conclusion

Checkpoint Ensembles offer a "free" performance boost by leveraging the intermediate states of a single training run. While the method increases inference latency and storage requirements (proportional to $k$), it serves as a highly efficient alternative to traditional ensembles. Future work may explore more sophisticated combination methods, such as using a "Super Learner" or Bayes Optimal Classifier, to further improve results.

Summary updated

BibTeX
@misc{chen2017checkpoint,
  author = {Hugh Chen and Scott Lundberg and Su-In Lee},
  title = {{Checkpoint Ensembles: Ensemble Methods from a Single Training Process}},
  year = {2017},
  eprint = {1710.03282},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.03282},
}
Figure