Boost Neural Networks by Checkpoints

Feng Wang, Guoyizhe Wei, Qiao Liu, Jinxiang Ou, Xian Wei, Hairong Lv

Training deep neural networks (DNNs) is a resource-heavy endeavor. While we know that ensembling—combining multiple models—is a surefire way to boost accuracy and robustness, the multiplied training cost often makes it a luxury few can afford. What if you could get the benefits of an ensemble using only the computational budget of a single training run?

In their NeurIPS 2021 paper, "Boost Neural Networks by Checkpoints," Feng Wang and colleagues introduce CBNN (Checkpoint-Boosted Neural Network), a method that turns the middle stages of training into a powerful, diverse ensemble.

The Problem with Traditional Ensembles

The gold standard for predictive performance is the Deep Ensemble: training $N$ different models from scratch and averaging their predictions. However, training $N$ models costs $N$ times as much compute.

To solve this, researchers previously developed Checkpoint Ensembles (CPE). The idea is simple: save the model at different stages of training (checkpoints) and combine them at the end. The problem? Checkpoints from a standard training run are usually very similar to one another. They make the same mistakes on the same data, leading to low diversity and minimal performance gains.

Previous attempts to fix this used cyclical learning rates to force the model to jump around the loss landscape. But these methods lack theoretical guarantees and can sometimes cause the model to diverge (fail to learn) if the training budget is tight.

The CBNN Approach

The authors propose CBNN, which borrows the core logic of Boosting (specifically algorithms like AdaBoost) and applies it to the timeline of a single DNN training process.

  1. Sequential Checkpointing: The training is divided into stages. After every $t$ iterations, a checkpoint is saved.
  2. Adaptive Sample Reweighting: After each stage, the algorithm looks at which samples the current model got wrong. It increases the "weight" of those difficult samples in the loss function for the next stage.
  3. Loss Surface Manipulation: By increasing the weight of misclassified samples, CBNN effectively changes the shape of the loss landscape. This forces the model to jump out of its current local optimum and seek a new one that satisfies the newly weighted constraints.
  4. Weighted Ensemble: The final prediction is a weighted average of all saved checkpoints, where the weight of each checkpoint is determined by its error rate on the training set.

Key Insights and Mechanisms

The Moving Loss Surface

The "aha moment" of CBNN is that you don't need a weird learning rate schedule to get diversity. By simply telling the model to focus on the specific images it is failing on, you naturally push the model into a different functional state.

Loss surface evolution across epochs

As the sample weights update, the loss surface actually shifts over time. This reweighting acts as a catalyst, helping the model explore different "valleys" (local optima) in the optimization landscape that a standard run would never see, maximizing the diversity of the collected checkpoints.

Automatic Rebalancing for Imbalanced Data

Because boosting naturally focuses on what is hard to learn, it acts as a "free" solution for imbalanced data.

Average weights for majority vs. minority classes

Minority class samples are inherently more likely to be misclassified early on. Consequently, the algorithm automatically assigns them higher weights. This effectively rebalances the dataset dynamically without requiring manual intervention, oversampling, or thresholding.

Key Results

The researchers evaluated CBNN across several standard computer vision benchmarks, including CIFAR-10/100, Tiny-ImageNet, and ImageNet. CBNN consistently outperformed single models and state-of-the-art CPE methods like Snapshot Ensembles (SSE) and Fast Geometric Ensembling (FGE).

  • Accuracy Gains: Using a ResNet-110 architecture, CBNN achieved 4.16% lower error on CIFAR-100 and 6.96% lower error on Tiny-ImageNet compared to a standard single model.
  • Efficiency: On CIFAR-100, CBNN reached a 70% test accuracy threshold in just 64.5% of the time it took a single model to reach the same level.
  • Imbalanced Data King: On step-imbalanced versions of the datasets, CBNN yielded up to 5.02% higher accuracy over a single EfficientNet-B0, proving its robustness in skewed distributions.

Limitations and Future Work

While the proposed method is robust and efficient, a few areas remain for exploration:

  • Storage Overhead: While training time is "free," you still have to store multiple versions of the model. For massive models, storing 6-10 checkpoints might present a significant storage burden.
  • Hyperparameter Sensitivity: The "deviation rate" ($\eta$) is a new hyperparameter that needs tuning. While the authors found $\eta = 0.01$ worked well across their tests, it adds one more knob to turn.
  • Scaling Up: The experiments stop at EfficientNet-B3. It remains to be seen how this boosting strategy interacts with modern transformer architectures or extremely large-scale self-supervised pre-training.

Summary updated

BibTeX
@inproceedings{wang2021boost,
  author = {Feng Wang and Guoyizhe Wei and Qiao Liu and Jinxiang Ou and Xian Wei and Hairong Lv},
  title = {{Boost Neural Networks by Checkpoints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=zaqGp90Od4y},
}
Figure