NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Performance Aware Convolutional Neural Network Channel Pruning for Embedded GPUs

Valentin Radu, Kuba Kaszyk, Yuan Wen, Jack Turner, José Cano, Elliot J. Crowley, Björn Franke, Amos J. Storkey, Michael F. P. O'BoyleIISWC 2019 · DOI

Abstract

Convolutional Neural Networks (CNN) are becoming a common presence in many applications and services, due to their superior recognition accuracy. They are increasingly being used on mobile devices, many times just by porting large models designed for server space, although several model compression techniques have been considered. One model compression technique intended to reduce computations is channel pruning. Mobile and embedded systems now have GPUs which are ideal for the parallel computations of neural networks and for their lower energy cost per operation. Specialized libraries perform these neural network computations through highly optimized routines. As we find in our experiments, these libraries are optimized for the most common network shapes, making uninstructed channel pruning inefficient. We evaluate higher level libraries, which analyze the input characteristics of a convolutional layer, based on which they produce optimized OpenCL (Arm Compute Library and TVM) and CUDA (cuDNN) code. However, in reality, these characteristics and subsequent choices intended for optimization can have the opposite effect. We show that a reduction in the number of convolutional channels, pruning 12% of the initial size, is in some cases detrimental to performance, leading to 2x slowdown. On the other hand, we also find examples where performance-aware pruning achieves the intended results, with performance speedups of 3x with cuDNN and above 10x with Arm Compute Library and TVM. Our findings expose the need for hardware-instructed neural network pruning.

Introduction

In the quest to deploy deep learning models on mobile phones and IoT devices, channel pruning—the removal of entire filters from convolutional layers—has become a standard strategy. The prevailing logic is straightforward: reducing the number of parameters reduces the total floating-point operations (FLOPs), which should theoretically lead to faster inference.

However, this research identifies a critical flaw in current pruning methodologies: they are almost exclusively "accuracy-centric." Pruning algorithms typically remove channels until a specific accuracy threshold is reached, assuming the underlying hardware will naturally benefit from the reduced workload. In reality, embedded GPUs (such as Nvidia Jetson or Arm Mali) do not execute raw mathematical operations in a vacuum. Instead, they rely on highly optimized vendor libraries like cuDNN or the Arm Compute Library (ACL). These libraries employ complex heuristics to determine how to partition workloads across GPU cores. When a "standard" layer (e.g., 128 channels) is pruned to a "non-standard" size (e.g., 113 channels), it can inadvertently break these heuristics, forcing the library into inefficient execution paths.

Methodology

To investigate this phenomenon, the researchers conducted an "across-the-stack" study involving:

  • Software Frameworks: cuDNN (Nvidia), Arm Compute Library (ACL), and TVM (an open-source compiler).
  • Hardware Platforms: Jetson TX2, Jetson Nano, and HiKey 970 (featuring a Mali G72 GPU).
  • Architectures: Industry-standard models including ResNet-50, VGG-16, and AlexNet.
  • Profiling Tools: Beyond wall-clock measurements, the team utilized a Full-System Mali GPU simulator to analyze instruction counts and driver-level job dispatching.

The Staircase Effect

A primary finding of the study is that performance does not scale linearly with the number of channels. Instead, it follows a "staircase" pattern. As shown in Figure 1, inference time often remains identical across a wide range of channel counts.

Figure 1: The "staircase effect" observed in inference time as the number of channels varies. Performance only improves at specific hardware-aligned thresholds.

This implies that pruning from, for example, 128 channels down to 97 might result in a loss of model accuracy for absolutely zero gain in speed. The hardware and its optimization libraries are tuned for specific "sweet spots"—often multiples of 8, 16, or 32—where the parallel processing units are fully utilized.

The Pruning Paradox: When Less is Slower

Perhaps the most counter-intuitive discovery is that pruning can actually lead to significant performance degradation. The researchers observed cases where pruning just 12% of a layer's channels resulted in a 2x slowdown.

Figure 2: Heatmap illustrating the "Pruning Paradox," where reducing channel counts (Prune=N) leads to significant slowdowns across various ResNet layers.

This "Pruning Paradox" occurs because library optimizers may switch algorithms based on input dimensions. For instance, a smaller channel count might disqualify a layer from using a fast GEMM (General Matrix Multiplication) approach, forcing a fallback to a slower Direct Convolution method. Furthermore, non-optimal channel counts can force the library to split a single task into multiple smaller kernels, where the overhead of launching these extra "jobs" outweighs the reduction in computation.

Performance-Aware Results

While "blind" pruning is risky, the study demonstrates that "performance-aware" pruning can unlock massive efficiency gains. By targeting the "right-most" edge of the performance steps (the maximum number of channels within a specific time budget), the authors achieved:

  • cuDNN: Consistent 1.3x speedups by aligning pruning with hardware thresholds.
  • ACL & TVM: Speedups exceeding 10x by hitting optimal hardware configurations that avoid inefficient kernel splitting.

Conclusion

The findings of this paper highlight a significant gap between theoretical model compression and practical hardware performance. Future pruning algorithms must move beyond accuracy-centric metrics and incorporate hardware-in-the-loop profiling. By integrating deep learning compilers like TVM with pruning tools, developers can automatically identify the hardware "sweet spots" for any specific chip, ensuring that "slimmer" models are truly faster in production environments.

Summary updated

BibTeX
@inproceedings{radu2019performance,
  author = {Valentin Radu and Kuba Kaszyk and Yuan Wen and Jack Turner and José Cano and Elliot J. Crowley and Björn Franke and Amos J. Storkey and Michael F. P. O'Boyle},
  title = {{Performance Aware Convolutional Neural Network Channel Pruning for Embedded GPUs}},
  booktitle = {IISWC},
  year = {2019},
  doi = {10.1109/iiswc47752.2019.9042000},
}
Figure