Skip to main content
QUICK REVIEW

[Paper Review] CascadeCNN: Pushing the performance limits of quantisation

Alexandros Kouris, Stylianos I. Venieris|arXiv (Cornell University)|May 22, 2018
Advanced Neural Network ApplicationsComputer Science9 references4 citations
TL;DR

CascadeCNN is an automated FPGA-based toolflow that boosts CNN inference performance by dynamically routing low-confidence predictions from a 4-bit low-precision unit to a high-precision unit, achieving up to 55% higher throughput for VGG-16 and 48% for AlexNet compared to baseline single-stage designs, with negligible accuracy loss under user-defined error tolerances.

ABSTRACT

This work presents CascadeCNN, an automated toolflow that pushes the quantisation limits of any given CNN model, to perform high-throughput inference by exploiting the computation time-accuracy trade-off. Without the need for retraining, a two-stage architecture tailored for any given FPGA device is generated, consisting of a low- and a high-precision unit. A confidence evaluation unit is employed between them to identify misclassified cases at run time and forward them to the high-precision unit or terminate computation. Experiments demonstrate that CascadeCNN achieves a performance boost of up to 55% for VGG-16 and 48% for AlexNet over the baseline design for the same resource budget and accuracy.

Motivation & Objective

  • Address the challenge of deploying high-complexity CNNs on resource-constrained platforms like FPGAs due to high computational and memory demands.
  • Overcome the performance-accuracy trade-off in quantized CNN inference by exploiting run-time confidence to selectively recompute uncertain predictions.
  • Enable high-throughput inference without retraining by generating a two-stage hardware architecture tailored to a specific CNN and FPGA device.
  • Achieve significant performance gains under the same resource budget and user-specified accuracy constraints, pushing the limits of quantization.
  • Provide an automated, end-to-end toolflow that selects optimal quantization schemes and configures confidence evaluation for maximal efficiency.

Proposed method

  • Employs a two-stage hardware architecture: a low-precision unit (LPU) for fast inference and a high-precision unit (HPU) for accurate reprocessing of uncertain cases.
  • Uses a dynamic fixed-point quantization scheme with layer-specific scaling factors and wordlengths, optimizing for accuracy and performance across layers.
  • Applies a generalized Best-vs-Second-Best (gBvSB) metric to quantify prediction confidence, defined as the difference between top-M and next-(N-M) probabilities.
  • Automatically tunes the gBvSB parameters (M, N, threshold) using a small evaluation set and user-specified error tolerance to minimize misclassification.
  • Generates custom, resource-optimized hardware units via a roofline-based performance model that explores tile sizes and parallelism levels for FPGA mapping.
  • Shares weights between LPU and HPU by extracting low-precision parameters from the high-precision model at runtime, preserving memory footprint.

Experimental results

Research questions

  • RQ1Can a two-stage inference pipeline with dynamic confidence-based routing improve throughput for quantized CNNs without retraining?
  • RQ2What is the optimal low-precision wordlength and quantization scheme that balances performance and accuracy under a given error tolerance?
  • RQ3How effective is the generalized BvSB metric in identifying misclassified cases in multi-class CNNs compared to traditional confidence measures?
  • RQ4To what extent can performance be improved on FPGAs by offloading only uncertain predictions to a high-precision unit, given a fixed resource budget?
  • RQ5Can the proposed toolflow be automated and adapted to different CNN models and FPGA platforms while maintaining high efficiency and accuracy?

Key findings

  • CascadeCNN achieves a maximum throughput improvement of 55% for VGG-16 and 48% for AlexNet over a single-stage baseline under the same resource budget and error tolerance.
  • The LPU uses a 4-bit quantization scheme, resulting in a 14.38% and 18.65% top-5 accuracy degradation for VGG-16 and AlexNet, respectively, compared to 8-bit precision.
  • The confidence evaluation unit, based on the gBvSB metric, successfully identifies misclassified cases with tunable sensitivity, enabling selective reprocessing on the HPU.
  • The HPU maintains the same accuracy as the full-precision reference model, ensuring application-level accuracy is preserved for all inputs.
  • The system maintains the same memory footprint as a single-stage HPU design due to weight sharing between LPU and HPU.
  • The performance gain diminishes at high error tolerances, as the wordlength gap between LPU and baseline narrows, confirming the method's sensitivity to quantization limits.

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.