Skip to main content
QUICK REVIEW

[Paper Review] Flexible Deep Neural Network Processing

Hokchhay Tann, Soheil Hashemi|arXiv (Cornell University)|Jan 23, 2018
Advanced Neural Network ApplicationsComputer Science10 references5 citations
TL;DR

This paper proposes a flexible deep neural network (DNN) ensemble processing technique that dynamically decides when to stop inference based on a metareasoner evaluating confidence margins, achieving up to 2× latency reduction with only a 0.1% accuracy drop compared to full ensemble inference on AlexNet and ResNet-50 using ImageNet.

ABSTRACT

The recent success of Deep Neural Networks (DNNs) has drastically improved the state of the art for many application domains. While achieving high accuracy performance, deploying state-of-the-art DNNs is a challenge since they typically require billions of expensive arithmetic computations. In addition, DNNs are typically deployed in ensemble to boost accuracy performance, which further exacerbates the system requirements. This computational overhead is an issue for many platforms, e.g. data centers and embedded systems, with tight latency and energy budgets. In this article, we introduce flexible DNNs ensemble processing technique, which achieves large reduction in average inference latency while incurring small to negligible accuracy drop. Our technique is flexible in that it allows for dynamic adaptation between quality of results (QoR) and execution runtime. We demonstrate the effectiveness of the technique on AlexNet and ResNet-50 using the ImageNet dataset. This technique can also easily handle other types of networks.

Motivation & Objective

  • Address the high inference latency and computational cost of deploying DNN ensembles in real-time and resource-constrained systems.
  • Overcome the trade-off between accuracy and latency in DNN inference by enabling dynamic adaptation between quality of results (QoR) and runtime.
  • Develop a flexible computation framework that allows early termination of inference when confidence in predictions is high, reducing unnecessary computations.
  • Demonstrate that this approach maintains most of the accuracy benefits of full ensembles while significantly reducing average inference time.

Proposed method

  • Introduce a metareasoner that evaluates the score margin (difference between top two softmax probabilities) after each DNN inference step.
  • Use a threshold-based early stopping mechanism: if the score margin exceeds a dynamically set threshold, inference halts and the current prediction is returned.
  • Set different thresholds for each ensemble size based on empirical grid search to minimize a combined objective function balancing latency and accuracy loss.
  • Define the objective function as $ M = \alpha \cdot R + (1 - \alpha) \cdot E $, where $ R $ is latency and $ E $ is relative error increase compared to full ensemble.
  • Apply the method serially on a single GPU, enabling evaluation on low-resource platforms where only one DNN can run at a time.
  • Use post-softmax output scores to compute the margin, ensuring values are in the [0,1] range for consistent thresholding.

Experimental results

Research questions

  • RQ1Can dynamic early stopping in DNN ensembles reduce average inference latency without significant accuracy degradation?
  • RQ2How does the trade-off between inference latency and accuracy vary with different confidence threshold settings?
  • RQ3To what extent can flexible ensemble processing maintain the accuracy benefits of full ensembles while reducing computational load?
  • RQ4Can the proposed method be generalized across different DNN architectures like AlexNet and ResNet-50?
  • RQ5What is the optimal threshold configuration that minimizes the combined cost of latency and accuracy loss?

Key findings

  • For AlexNet with 7 DNNs in the ensemble, flexible processing reduced average inference latency from 11.67 ms to 6.51 ms—a 50% reduction—while maintaining an accuracy of 0.6032 compared to 0.6043 in full ensemble execution.
  • The accuracy drop was only 0.1% in the AlexNet case, demonstrating minimal performance loss despite substantial latency reduction.
  • The method allows tunable trade-offs: by adjusting the confidence threshold, users can control the balance between latency and accuracy, with the option to disable early stopping entirely for zero accuracy loss.
  • The technique is effective across different DNN architectures, as shown on both AlexNet and ResNet-50 using the ImageNet dataset.
  • The approach is applicable to a wide range of systems, including embedded platforms and data centers, due to its low computational overhead and compatibility with serial execution.
  • The method can be extended to other neural network types and machine learning models, offering a general-purpose solution for bounded-resource inference.

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.