Zero Time Waste: Recycling Predictions in Early Exit Neural Networks

Maciej Wołczyk, Bartosz Wójcik, Klaudia Bałazy, Igor Podolak, Jacek Tabor +2 more
6/9/2021
cs.LG

Official code: gmum/Zero-Time-Waste (16 stars, Python, last commit 2023-12-19).

Abstract

The problem of reducing processing time of large deep learning models is a fundamental challenge in many real-world applications. Early exit methods strive towards this goal by attaching additional Internal Classifiers (ICs) to intermediate layers of a neural network.

Show full abstract

ICs can quickly return predictions for easy examples and, as a result, reduce the average inference time of the whole model. However, if a particular IC does not decide to return an answer early, its predictions are discarded, with its computations effectively being wasted. To solve this issue, we introduce Zero Time Waste (ZTW), a novel approach in which each IC reuses predictions returned by its predecessors by (1) adding direct connections between ICs and (2) combining previous outputs in an ensemble-like manner. We conduct extensive experiments across various datasets and architectures to demonstrate that ZTW achieves a significantly better accuracy vs. inference time trade-off than other recently proposed early exit methods.

View on arXivView PDF

Code Implementations(1)

165Python, Jupyter NotebookJun 7, 20212 years ago

Similar Papers

Cite this paper

@article{woczyk2021zero,
  title  = {Zero Time Waste: Recycling Predictions in Early Exit Neural Networks},
  author = {Maciej Wołczyk and Bartosz Wójcik and Klaudia Bałazy and Igor Podolak and Jacek Tabor and Marek Śmieja and Tomasz Trzciński},
  year   = {2021},
  eprint = {2106.05409},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.05409}
}

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/2106.05409.svg)](https://codeofpaper.com/paper/2106.05409)

Discussion