Source-linked AI summary

Adaptive Inference through Early-Exit Networks: Design, Challenges and Directions

Stefanos Laskaridis, Alexandros Kouris, Nicholas D. Lane

arXiv:2106.05022v1cs.LG

TL;DR

DNN deployment must meet varying computational and memory constraints, while different inputs may require different computation depths. This paper surveys early-exit network design, training, and deployment, and identifies challenges and future directions for adaptive inference across devices and modalities. It presents early exiting as a way to allocate computation by input difficulty and scale it to available hardware, while highlighting unresolved limitations in training and broader deployment settings.

  • Problem

    DNNs impose substantial workload and memory demands on heterogeneous devices, motivating inference methods that adapt computation to input difficulty and deployment constraints.

  • Method

    The paper surveys early-exit architectures, training and deployment techniques, positions them among efficient inference solutions, and reviews challenges and future research directions.

  • Results

    Early-exit networks allocate computation by sample difficulty and prediction confidence, with deployment modes and exit policies adapting inference to device and application requirements.

  • Takeaways & Limitations

    Early exiting offers an elastic inference approach that can adapt computation to hardware while supporting a train-once, deploy-everywhere paradigm.

  • Takeaways & Limitations

    Early-exit research remains concentrated on image classification and NLP, while many deployed model types and tasks require largely unexplored handling.

Abstract

from arXiv · show

DNNs are becoming less and less over-parametrised due to recent advances in efficient model design, through careful hand-crafted or NAS-based methods. Relying on the fact that not all inputs require the same amount of computation to yield a confident prediction, adaptive inference is gaining attention as a prominent approach for pushing the limits of efficient deployment. Particularly, early-exit networks comprise an emerging direction for tailoring the computation depth of each input sample at runtime, offering complementary performance gains to other efficiency optimisations. In this paper, we decompose the design methodology of early-exit networks to its key components and survey the recent advances in each one of them. We also position early-exiting against other efficient inference solutions and provide our insights on the current challenges and most promising future directions for research in the field.

1 INTRODUCTION

Deep learning deployment is constrained by substantial workload and memory demands across heterogeneous devices. Early-exit networks adapt computation to input difficulty, but their benefits require deliberate design, training, and deployment choices.

  • DNN workload and memory requirements complicate deployment on smartphones and embedded devices with heterogeneous computational, memory, energy, and thermal capabilities.
  • Efficient-inference research reduces DNN requirements through architectural, functional, and representational optimisations such as custom blocks, pruning, sparsification, and low-precision arithmetic.
  • Early-exit networks allocate variable computation to inputs according to their difficulty and prediction confidence, complementing approaches that adapt inference graphs or select models.
  • Effective deployment requires jointly considering network design, exit training, and exit policy as a design-space exploration problem rather than merely adding randomly placed exits.
  • The paper surveys early-exit architectures and techniques, compares their traits as an efficiency solution, and discusses current challenges and future research directions.

2 EARLY-EXIT NETWORKS

Early-exit networks use intermediate representations to make predictions at variable depths, requiring coordinated architectural, training, and deployment decisions. The main choices trade accuracy, flexibility, overhead, and adaptation to target devices or data.

  • Architecture: Shallow layers provide lower-level features while deeper layers build higher-level semantics, enabling early exits when shallow representations sufficiently distinguish an input’s classes.
  • Architecture: Early-exit design spans hand-crafted end-to-end networks and vanilla backbones augmented with exits, with architecture affecting model capacity, learning, scalability, and convergence.
  • Architecture: Exit placement and architecture determine the trade-off between early-result granularity, prediction accuracy, and exit-specific overhead, especially when samples continue deeper.
  • Training: End-to-end training jointly optimises intermediate and final outputs, whereas IC-only training freezes the backbone and trains exit heads separately, avoiding classifier cross-talk but potentially reducing accuracy.
  • Training: Self-supervised knowledge distillation transfers information from subsequent or final exits to earlier classifiers, while personalised training adapts exits to non-IID user data without changing the source-domain final exit.
  • Deployment: Deployment includes subnet-based inference for fixed footprints and anytime adaptive inference, where samples exit according to difficulty, confidence, and application-specific service objectives.

3 EARLY-EXITS & TARGET HARDWARE

Early exiting can scale computation to both sample difficulty and available hardware. Its deployment configuration can be treated as a hardware-constrained design-space exploration problem, including co-design alternatives.

  • Early-exit networks dynamically allocate computation by sample difficulty and elastically scale computation according to the available hardware.
  • A densely provisioned network can be trained once and partially deployed according to device computation, memory, energy, and application latency constraints.
  • Classifier architecture, exit count and placement, and exit policy can be co-optimised for latency, throughput, energy, or accuracy under execution service objectives.
  • Because design-space search is performed before deployment and amortised across inferences, flexible IC-only training is usually preferred over end-to-end training during traversal.
  • An alternative is to design hardware specifically for early-exit networks or co-design the network and hardware for efficient progressive inference.

4 ADAPTIVE INFERENCE LANDSCAPE

Efficient inference methods reduce DNN cost through compression and approximation, while adaptive approaches select computation based on the input, device, or deadline. Early-exiting reuses prior computation across progressively deeper processing, unlike cascades that may repeatedly process difficult samples.

  • Efficient-deployment research reduces DNN footprint and inference cost through approximation and compression methods such as quantisation of weights and activations.
  • Adaptive inference selects computation at runtime by identifying an appropriate model or progressively moving inputs through more complex cascade stages until a criterion is met.
  • Early-exiting differs from cascades because difficult samples can reuse prior computation instead of propagating through multiple stages without that reuse.

5 DISCUSSION & FUTURE DIRECTIONS

The paper identifies open challenges spanning modality coverage, overhead, training, and exit policies, then outlines directions including temporal awareness, hierarchical inference, personalisation, federated learning, and probabilistic inference. These directions extend early-exit networks toward broader tasks, deployment conditions, and uncertainty-aware operation.

  • Open Challenges: Early-exit research remains concentrated on image classification and increasingly NLP, while other modalities, models, and tasks require largely unexplored component-specific handling.
  • Open Challenges: Exit overhead depends on exit architecture, network position, policy effectiveness, and task, making the optimal configuration that balances overhead and early-exit gains difficult to establish.
  • Open Challenges: Shallow classifiers can create gradient tension during end-to-end training, whereas exit-only training may reduce accuracy or increase overhead; combining their advantages remains open.
  • Open Challenges: Confidence-based exit policies may be miscalibrated by exit placement and training, motivating strategies that better estimate readiness to exit and remain adaptable after training.
  • Additional future directions: Temporal awareness could exploit correlations among adjacent samples, while hierarchical inference can provide abstract predictions earlier and finer-grained predictions later.
  • Additional future directions: Personalisation can specialise exits to narrower deployment distributions, heterogeneous federated learning can distribute varying-depth submodels, and probabilistic models can quantify uncertainty across inference stages.
Loading 2106.05022v1…