BranchyNet: Fast inference via early exiting from deep neural networks

Surat Teerapittayanon, Bradley McDanel, H. T. Kung

2016 · 1.2K citations · 23 references

Concepts

TL;DR

Deep neural networks achieve state‑of‑the‑art performance by extracting increasingly complex features at each layer, but deeper models incur higher latency and energy costs that hinder real‑time and energy‑constrained applications. BranchyNet introduces side‑branch classifiers to enable early exiting during inference, thereby addressing these efficiency concerns. The architecture lets confidently classifiable samples terminate at early branches that use early‑layer features, while harder samples are processed through deeper layers to maximize accuracy. Experiments on LeNet, AlexNet, and ResNet with MNIST and CIFAR‑10 demonstrate that BranchyNet improves accuracy and substantially reduces inference time.

Abstract

Deep neural networks are state of the art methods for many learning tasks due to their ability to extract increasingly better features at each network layer. However, the improved performance of additional layers in a deep network comes at the cost of added latency and energy usage in feedforward inference. As networks continue to get deeper and larger, these costs become more prohibitive for real-time and energy-sensitive applications. To address this issue, we present BranchyNet, a novel deep network architecture that is augmented with additional side branch classifiers. The architecture allows prediction results for a large portion of test samples to exit the network early via these branches when samples can already be inferred with high confidence. BranchyNet exploits the observation that features learned at an early layer of a network may often be sufficient for the classification of many data points. For more difficult samples, which are expected less frequently, BranchyNet will use further or all network layers to provide the best likelihood of correct prediction. We study the BranchyNet architecture using several well-known networks (LeNet, AlexNet, ResNet) and datasets (MNIST, CIFAR10) and show that it can both improve accuracy and significantly reduce the inference time of the network.

References

23