English

Fast yet Safe: Early-Exiting with Risk Control

Machine Learning 2024-11-05 v2 Artificial Intelligence Computer Vision and Pattern Recognition Machine Learning

Abstract

Scaling machine learning models significantly improves their performance. However, such gains come at the cost of inference being slow and resource-intensive. Early-exit neural networks (EENNs) offer a promising solution: they accelerate inference by allowing intermediate layers to exit and produce a prediction early. Yet a fundamental issue with EENNs is how to determine when to exit without severely degrading performance. In other words, when is it 'safe' for an EENN to go 'fast'? To address this issue, we investigate how to adapt frameworks of risk control to EENNs. Risk control offers a distribution-free, post-hoc solution that tunes the EENN's exiting mechanism so that exits only occur when the output is of sufficient quality. We empirically validate our insights on a range of vision and language tasks, demonstrating that risk control can produce substantial computational savings, all the while preserving user-specified performance goals.

Keywords

Cite

@article{arxiv.2405.20915,
  title  = {Fast yet Safe: Early-Exiting with Risk Control},
  author = {Metod Jazbec and Alexander Timans and Tin Hadži Veljković and Kaspar Sakmann and Dan Zhang and Christian A. Naesseth and Eric Nalisnick},
  journal= {arXiv preprint arXiv:2405.20915},
  year   = {2024}
}

Comments

27 pages, 13 figures, 4 tables (incl. appendix)

R2 v1 2026-06-28T16:48:34.540Z