Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Neural Networks for Efficient Inference

Tolga Bolukbasi, Joseph Wang|arXiv (Cornell University)|Feb 25, 2017
Machine Learning and Data ClassificationComputer Science4 references134 citations
TL;DR

The paper proposes adaptive early exits and adaptive network selection to reduce test-time computation with minimal accuracy loss, achieving up to 2.8x speedups on ImageNet by routing easy cases through cheaper models or early exits.

ABSTRACT

We present an approach to adaptively utilize deep neural networks in order to reduce the evaluation time on new examples without loss of accuracy. Rather than attempting to redesign or approximate existing networks, we propose two schemes that adaptively utilize networks. We first pose an adaptive network evaluation scheme, where we learn a system to adaptively choose the components of a deep network to be evaluated for each example. By allowing examples correctly classified using early layers of the system to exit, we avoid the computational time associated with full evaluation of the network. We extend this to learn a network selection system that adaptively selects the network to be evaluated for each example. We show that computational time can be dramatically reduced by exploiting the fact that many examples can be correctly classified using relatively efficient networks and that complex, computationally costly networks are only necessary for a small fraction of examples. We pose a global objective for learning an adaptive early exit or network selection policy and solve it by reducing the policy learning problem to a layer-by-layer weighted binary classification problem. Empirically, these approaches yield dramatic reductions in computational cost, with up to a 2.8x speedup on state-of-the-art networks from the ImageNet image recognition challenge with minimal (<1%) loss of top5 accuracy.

Motivation & Objective

  • Motivate reducing test-time cost of deep neural networks without compromising accuracy.
  • Develop two adaptive schemes: (1) early exit within a network, (2) adaptive selection among multiple networks with different costs.
  • Formulate a global risk objective that balances computation time and accuracy and solve via layer-wise weighted binary classification.
  • Demonstrate substantial runtime savings on ImageNet using pre-trained models while preserving top-5 accuracy within a tight margin.

Proposed method

  • Define an adaptive early-exit policy that decides after each layer whether to exit with the current prediction or continue to the next layer.
  • Express the global objective as a time-accuracy trade-off and reduce policy learning to layer-by-layer weighted binary classification.
  • Train a bottom-up sequence of exit functions, allowing constant or linear policy families, including entropy-based confidence features.
  • Extend to adaptive network selection across multiple pre-trained models arranged in a cascade/graph, with policies deciding whether to advance to a more expensive network.
  • Use an importance-weighted learning formulation to optimize exit/selection decisions under a time constraint and accuracy loss penalty.

Experimental results

Research questions

  • RQ1Can early exits from intermediate layers maintain accuracy while reducing inference time?
  • RQ2Does a network selection strategy across multiple models yield greater speedups than single-model early exits?
  • RQ3How close can adaptive policies approach an oracle that knows true instance difficulty and errors?
  • RQ4What is the practical impact on ImageNet-style object recognition when applying adaptive policies on standard architectures?

Key findings

  • Adaptive early exits can speed up GoogLeNet and ResNet-50 by 20-30% with minimal top-5 accuracy loss.
  • A network cascade with multiple models achieves up to 2.8x speed-up at 1% top-5 accuracy loss and 1.9x with no accuracy change.
  • Policies trained with entropy-based confidence features perform close to an oracle under various budget settings.
  • The approach is compatible with edge/cloud/fog computing deployments and does not require modifying the underlying network architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.