Skip to main content
QUICK REVIEW

[Paper Review] Characterising Across-Stack Optimisations for Deep Convolutional Neural Networks

Jack Turner, José Cano|arXiv (Cornell University)|Sep 19, 2018
Advanced Neural Network ApplicationsComputer Science29 references7 citations
TL;DR

This paper proposes an across-stack optimization framework for deploying deep convolutional neural networks (CNNs) on resource-constrained devices by unifying machine learning compression techniques—weight pruning, channel pruning, and quantization—with low-level system optimizations using OpenMP, OpenCL, and hardware-aware tuning. The key contribution is comprehensive Pareto curves demonstrating that naive compression techniques often fail to deliver expected speedups due to hardware-specific bottlenecks, and that hand-optimized OpenCL kernels outperform high-level libraries like CLBlast on small-input models, revealing a critical gap between ML and systems communities.

ABSTRACT

Convolutional Neural Networks (CNNs) are extremely computationally demanding, presenting a large barrier to their deployment on resource-constrained devices. Since such systems are where some of their most useful applications lie (e.g. obstacle detection for mobile robots, vision-based medical assistive technology), significant bodies of work from both machine learning and systems communities have attempted to provide optimisations that will make CNNs available to edge devices. In this paper we unify the two viewpoints in a Deep Learning Inference Stack and take an across-stack approach by implementing and evaluating the most common neural network compression techniques (weight pruning, channel pruning, and quantisation) and optimising their parallel execution with a range of programming approaches (OpenMP, OpenCL) and hardware architectures (CPU, GPU). We provide comprehensive Pareto curves to instruct trade-offs under constraints of accuracy, execution time, and memory space.

Motivation & Objective

  • To bridge the gap between machine learning and systems communities by unifying neural network compression and low-level hardware optimization for edge deployment.
  • To evaluate the real-world performance impact of common compression techniques—weight pruning, channel pruning, and quantization—on resource-constrained hardware.
  • To identify the most effective combinations of compression and parallelization strategies across different hardware (CPU, GPU) and programming models (OpenMP, OpenCL).
  • To provide actionable guidelines for deploying efficient, accurate CNNs on edge devices under constraints of accuracy, memory, and inference time.

Proposed method

  • The authors define a Deep Learning Inference Stack to structure optimization layers from model architecture to low-level code and hardware.
  • They implement and evaluate three compression techniques—weight pruning, channel pruning, and quantization—on VGG-16, ResNet-18, and MobileNet using CIFAR-10.
  • For system-level optimization, they compare OpenMP (CPU), CLBlast (optimized BLAS), and hand-tuned OpenCL kernels (GPU) on an Odroid-XU4 board.
  • The performance is measured across three metrics: inference time, memory footprint, and accuracy, with Pareto curves generated to visualize trade-offs.
  • The OpenCL kernels are hand-tuned with 4×4 work-group size and 16-element vectorization for optimal GPU mapping.
  • All implementations are open-sourced to enable community extension and reproducibility.

Experimental results

Research questions

  • RQ1To what extent do common compression techniques (pruning, quantization) deliver expected performance improvements on resource-constrained hardware?
  • RQ2How do different low-level programming models (OpenMP, OpenCL, CLBlast) affect inference performance when applied to compressed CNNs?
  • RQ3Why do some compression techniques fail to improve inference speed despite reducing MAC operations, and what are the underlying hardware bottlenecks?
  • RQ4Can hand-optimized kernels outperform optimized libraries like CLBlast in small-input scenarios, and if so, under what conditions?
  • RQ5What are the most effective cross-stack combinations of model compression and system-level optimization for edge deployment?

Key findings

  • Hand-tuned OpenCL kernels outperform both OpenMP and CLBlast on the Odroid-XU4 GPU, especially for small-input models like CIFAR-10, due to reduced library overhead.
  • The CLBlast library caused up to a 10× slowdown on ResNet-18 due to inefficient handling of small matrices, despite its reputation for high performance on large-scale operations.
  • Sparse formats from weight pruning increased memory usage for small filters (e.g., 3×3 convolutions), contradicting the common belief that sparsity always reduces memory footprint.
  • Despite reducing parameter count, weight pruning and quantization did not yield expected speedups on the tested hardware, indicating a misalignment between ML optimization goals and system-level performance.
  • The performance gap between expected and observed inference time—e.g., in VGG-16—demonstrates that memory access patterns and hardware characteristics are critical, not just computational reductions.
  • The study reveals that effective edge deployment requires co-design across the entire inference stack, as isolated optimizations often fail due to unanticipated system-level bottlenecks.

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.