Skip to main content
QUICK REVIEW

[Paper Review] Sacrificing Accuracy for Reduced Computation: Cascaded Inference Based on Softmax Confidence.

Konstantin Berestizshevsky, Guy Even|arXiv (Cornell University)|May 28, 2018
Adversarial Robustness in Machine LearningComputer Science3 references6 citations
TL;DR

This paper proposes a cascaded inference method that dynamically adjusts computational cost during inference by using softmax confidence scores from intermediate deep neural network layers to trigger early termination. By basing early stopping on these confidence levels, the approach achieves significant speedups—up to 2.16×—with minimal accuracy loss (1.4% on SVHN), enabling on-the-fly tradeoffs between speed and accuracy without retraining.

ABSTRACT

We study the tradeoff between computational effort and accuracy in a cascade of deep neural networks. During inference, early termination in the cascade is controlled by confidence levels derived directly from the softmax outputs of intermediate classifiers. The advantage of early termination is that classification is performed using less computation, thus adjusting the computational effort to the complexity of the input. Moreover, dynamic modification of confidence thresholds allow one to trade accuracy for computational effort without requiring retraining. Basing of early termination on softmax classifier outputs is justified by experimentation that demonstrates an almost linear relation between confidence levels in intermediate classifiers and accuracy. Our experimentation with architectures based on ResNet obtained the following results. (i) A speedup of 1.5 that sacrifices 1.4% accuracy with respect to the CIFAR-10 test set. (ii) A speedup of 1.19 that sacrifices 0.7% accuracy with respect to the CIFAR-100 test set. (iii) A speedup of 2.16 that sacrifices 1.4% accuracy with respect to the SVHN test set.

Motivation & Objective

  • To address the tradeoff between computational efficiency and model accuracy in deep neural network inference.
  • To enable dynamic adjustment of computational effort per input without retraining.
  • To develop a mechanism that allows early termination in a cascade of classifiers based on confidence scores from intermediate layers.
  • To validate that softmax confidence correlates strongly with prediction accuracy, justifying its use as a stopping criterion.

Proposed method

  • The method employs a cascade of deep neural network classifiers, each producing softmax probability outputs.
  • Early termination is triggered when the confidence of an intermediate classifier's output exceeds a dynamically adjustable threshold.
  • Confidence thresholds are tuned at inference time to balance speed and accuracy, allowing runtime tradeoffs without retraining.
  • The confidence scores from intermediate classifiers are empirically shown to correlate almost linearly with prediction accuracy, supporting their use as a proxy for reliability.
  • The approach is applied to ResNet-based architectures across CIFAR-10, CIFAR-100, and SVHN datasets.
  • The system supports dynamic threshold adjustment to achieve desired speed-accuracy tradeoffs post-deployment.

Experimental results

Research questions

  • RQ1Can softmax confidence scores from intermediate network layers reliably predict classification accuracy and serve as a basis for early termination?
  • RQ2To what extent can computational efficiency be improved through early termination without significant accuracy loss?
  • RQ3Can the speed-accuracy tradeoff be dynamically adjusted at inference time without retraining the model?
  • RQ4How does the correlation between intermediate softmax confidence and final accuracy vary across different datasets?
  • RQ5What are the achievable speedups and corresponding accuracy tradeoffs in practice using this method?

Key findings

  • On the CIFAR-10 dataset, the method achieved a 1.5× speedup while sacrificing only 1.4% accuracy compared to the full model.
  • On CIFAR-100, a 1.19× speedup was achieved with a 0.7% accuracy drop.
  • On SVHN, the highest speedup of 2.16× was obtained, accompanied by a 1.4% accuracy reduction.
  • The correlation between intermediate softmax confidence and final prediction accuracy was found to be nearly linear, validating the use of confidence as a reliable stopping criterion.
  • The method enables runtime adjustment of the speed-accuracy tradeoff by tuning confidence thresholds without requiring retraining.
  • The approach maintains strong performance across diverse datasets, demonstrating generalizability of the confidence-based early stopping mechanism.

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.