Fast yet Safe: Early-Exiting with Risk Control

Metod Jazbec, Alexander Timans, Tin Hadži Veljković, Kaspar Sakmann, Dan Zhang +2 more
5/31/2024
cs.LGcs.AIcs.CV

No official code found. Best implementation: metodj/RC-EENN (6 stars, last commit 2024-08-01).

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.

View on arXivView PDF

Code Implementations(1)

metodj/RC-EENNCommunity100%

Code for "Fast yet Safe: Early-Exiting with Risk Control" paper

61Python, Jupyter NotebookMay 28, 20242 years ago

Similar Papers

Cite this paper

@article{jazbec2024fast,
  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},
  year   = {2024},
  eprint = {2405.20915},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.20915},
  url    = {http://arxiv.org/abs/2405.20915v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.20915.svg)](https://codeofpaper.com/paper/2405.20915)

Discussion