Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Ones

Mehrnaz Mofakhami, Reza Bayat, Ioannis Mitliagkas, João Monteiro, Valentina Zantedeschi · DOI

Introduction

In the pursuit of AI efficiency, the prevailing strategy has been model compression—making models smaller through pruning or quantization. However, a recent study titled "Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Ones" proposes a counter-intuitive alternative: deploying larger models and utilizing "Early Exiting" (EE) to achieve superior performance at the same computational cost as smaller, static models.

The Challenge of Miscalibration

Deep learning models typically consume a fixed amount of compute regardless of input complexity. Early Exiting aims to mitigate this by adding intermediate "side exits." If a model is sufficiently confident at an early layer, it can terminate processing early.

The primary obstacle to effective EE is miscalibration. Neural networks are often overconfident, reporting high confidence scores even when incorrect. This makes it difficult for engineers to set reliable thresholds that guarantee a specific accuracy level. Traditional methods often require exhaustive, data-specific searches that fail to generalize.

Methodology: Performance Control Early Exiting (PCEE)

To address these limitations, the authors introduce Performance Control Early Exiting (PCEE). Instead of relying on raw confidence scores, PCEE uses a post-hoc mapping from confidence to expected accuracy based on a held-out validation set.

PCEE mechanism: using reliability diagrams to map confidence to accuracy for exit decisions.

The process involves three key steps:

  1. Reliability Mapping: For each exit, a reliability diagram is constructed to map confidence bins to actual average accuracy.
  2. Performance-Based Thresholding: Users set a target accuracy (e.g., 80%). The model only exits if the estimated accuracy for the current sample's confidence level meets this target.
  3. Smoothing (PCEE-WS): A k-nearest neighbors approach is employed to smooth accuracy estimates, ensuring robustness even in confidence bins with sparse data.

Experimental Results: The "Bigger is Cheaper" Paradox

The researchers evaluated PCEE on benchmarks like CIFAR-10, CIFAR-100, and ImageNet-1k using MSDNet and Vision Transformer (ViT) architectures. The results demonstrate a significant shift in the efficiency landscape.

Prediction error vs. FLOPs: PCEE allows large models to outperform small models at the same computational cost.

A key finding is that a large model's early layers are often more capable than a small model's final layers. By using PCEE, a large model can "exit" very early for simple samples, achieving higher overall accuracy than a small model for the same total FLOP budget. For instance, on CIFAR-100, an 8-layer MSDNet with PCEE achieved 73.06% accuracy, outperforming a 4-layer "small" model (71.24%) while consuming equivalent compute.

Furthermore, PCEE provides much finer control over the compute-performance trade-off compared to standard confidence thresholding or complex Bayesian calibration methods. It also helps avoid "destructive overthinking," where deeper layers might flip a correct early prediction to an incorrect one.

Conclusion

PCEE transforms early exiting from a brittle heuristic into a controllable deployment tool. By shifting the focus from confidence to performance estimates, it enables the use of powerful large models in resource-constrained environments. Future work will focus on improving robustness to distribution shifts and exploring dynamic reliability mappings during deployment.

Summary updated

BibTeX
@inproceedings{mofakhami2024performance,
  author = {Mehrnaz Mofakhami and Reza Bayat and Ioannis Mitliagkas and João Monteiro and Valentina Zantedeschi},
  title = {{Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Ones}},
  booktitle = {ES-FoMo-II @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=7zf1584SUG},
}
Figure