Abstract
Efficient deep learning often relies on Early-Exiting Dynamic Neural Networks (EDNNs) to reduce computational costs. However, these models suffer from a "train-test mismatch" where deeper layers are over-optimized for easy samples during training but only encounter difficult ones during inference. This paper introduces BoostNet, a novel training framework that reformulates EDNNs as additive models inspired by gradient boosting. By strategically weakening previous predictions and balancing gradients, BoostNet ensures deeper layers learn effectively from challenging data, achieving state-of-the-art performance on ImageNet and CIFAR100.
Introduction
Early-Exiting Dynamic Neural Networks (EDNNs) are designed for efficiency: they process "easy" samples through shallow layers and reserve deeper layers for "hard" samples. Despite their promise, a significant distribution gap exists between training and inference. During training, all classifiers typically see the entire dataset. In contrast, during inference, deeper classifiers only process samples that shallow ones failed to classify. This leads to deeper layers being under-trained on the specific difficult distributions they are meant to handle.
Methodology: The BoostNet Framework
BoostNet addresses the train-test mismatch by treating the EDNN as an additive model, similar to Gradient Boosting Machines.
Additive Structure and Prediction Reweighting
Instead of independent classification heads, each stage $n$ produces a prediction $F_n$ that ensembles the previous stage's output with a new residual: $F_n = t_n F_{n-1} + f_n$. The authors introduce a temperature parameter $t_n$ (typically 0.5) to "weaken" the previous predictions. This forcing function ensures that there is always a significant residual error for the current layer to minimize, preventing deeper layers from becoming "lazy" by relying on the ensemble's existing accuracy.
Optimization and Gradient Rescaling
To maintain training efficiency, BoostNet employs mini-batch joint optimization. A stop_gradient operation is applied to previous predictions to prevent deeper losses from interfering with the features learned by shallower layers, preserving the boosting logic. Furthermore, the framework uses a gradient rescaling mechanism to balance the learning signal across different network depths, ensuring that parameters at all levels are updated at a consistent rate.
Key Insights
The effectiveness of BoostNet stems from two primary observations:
- The "Easy" Sample Trap: In standard training, the percentage of "valid" training data—samples with high enough loss to provide a useful gradient—drops sharply for deeper classifiers. BoostNet's weakening strategy keeps these layers "starved" of easy solutions, forcing them to learn from the hard cases.
- Gradient Balance: Without explicit rescaling, deeper layers can be neglected during joint optimization. BoostNet's mathematical scaling ensures every part of the network contributes to the final performance.
Experimental Results
The researchers evaluated BoostNet on CIFAR100 and ImageNet using two popular dynamic backbones: MSDNet and RANet.
Performance on ImageNet
On the ImageNet dataset, BoostNet consistently outperformed baseline models across various computational budgets. Using the RANet backbone, BoostNet achieved higher top-1 accuracy than the original model at almost all FLOP counts. The improvements were particularly notable at low computational budgets, which are critical for mobile and edge deployment.
Performance on CIFAR100
On CIFAR100, BoostNet outperformed the baseline MSDNet by over 1.5% in top-1 accuracy at several budget points, demonstrating its robustness across different datasets and architectures.
Conclusion and Future Work
BoostNet provides a theoretically grounded and practically effective framework for training dynamic neural networks. By bridging the gap between training and inference distributions through a boosting-inspired approach, it sets a new state-of-the-art for efficient image classification. Future research directions include extending this framework to more complex tasks like object detection and exploring dynamic temperature adjustments to further optimize the training signal.
Summary updated