Compression of Deep Convolutional Neural Networks for Fast and Low Power Mobile Applications

Yong-Deok Kim, Eunhyeok Park, Sungjoo Yoo, Taelim Choi, Lu Yang, Dongjun Shin

TL;DR

This paper introduces a "one-shot" method to compress entire deep convolutional neural networks (CNNs) for efficient deployment on mobile devices. By applying Tucker decomposition and a novel rank selection technique, they achieve significant reductions in model size, runtime, and energy consumption with minimal accuracy loss, making powerful AI models feasible on resource-constrained hardware.

What Problem Does This Paper Address?

Deploying state-of-the-art deep CNNs, which are crucial for tasks like image recognition, on mobile devices is a significant challenge. Smartphones, while increasingly powerful, have strict limitations on computing power, battery life, and memory. Existing compression techniques often focus on individual layers or require extensive manual tuning, making them impractical for whole-network optimization on mobile platforms. This paper aims to bridge this gap by providing a streamlined, end-to-end compression strategy that can be readily applied to entire CNN architectures.

Methods

The core of the proposed solution is a three-step "one-shot whole network compression" scheme:

  1. Rank Selection: Instead of manual trial-and-error, the authors employ a data-driven approach using global analytic solutions for variational Bayesian matrix factorization (VBMF). This method automatically determines the optimal rank for each layer's kernel tensor, balancing compression and accuracy.
  2. Tucker Decomposition: This is the primary compression technique. Tucker decomposition is applied to the kernel tensors of convolutional layers and weight matrices of fully-connected layers. Specifically, they use Tucker-2 decomposition for most layers, which is an extension of Singular Value Decomposition (SVD) that decomposes a tensor into a core tensor and factor matrices. This effectively reduces the number of parameters and computations.
  3. Fine-tuning: After compression, a slight drop in accuracy is expected. The authors address this by fine-tuning the compressed network on the original training dataset (ImageNet). This step is crucial for recovering the lost accuracy and ensuring the model performs well in practice.

A notable aspect is that each step is designed to be implementable using publicly available tools, facilitating adoption.

Datasets

The primary dataset used for training and evaluation is ImageNet. The authors evaluate their compressed models on this dataset to measure accuracy. They also use ImageNet for fine-tuning the compressed networks.

Key Insights and Ideas

  • "One-Shot" Compression: The paper's main innovation is a holistic, single-pass compression strategy. This contrasts with iterative or layer-by-layer methods, offering a significant simplification in the deployment pipeline.
  • Automated Rank Selection: Using VBMF for rank selection is a key enabler. It removes the tedious and error-prone manual tuning process, making the compression more systematic and reproducible.
  • Tucker Decomposition's Efficacy: The paper demonstrates that Tucker decomposition, when applied comprehensively, can effectively reduce the complexity of CNNs without catastrophic accuracy degradation.
  • 1x1 Convolutions and Cache Efficiency: The authors highlight an interesting trade-off: while 1x1 convolutions are crucial for compression (especially in models like GoogLeNet) and enable efficient channel manipulation, they can negatively impact cache efficiency on mobile GPUs. This leads to more frequent cache misses and, paradoxically, can sometimes reduce GPU utilization and power consumption due to stall cycles.

Key Results

The proposed compression scheme achieved significant improvements across several metrics on mobile devices (Samsung Galaxy S6) and a high-end GPU (Nvidia Titan X):

  • Model Size Reduction: Substantial reductions in model weights were observed, for example, AlexNet saw a ×5.46 reduction, and VGG-S a ×7.40 reduction.
  • Runtime Improvement: Significant speedups were achieved. AlexNet experienced a ×2.67 speedup on the smartphone, and VGG-S a ×4.80 speedup.
  • Energy Consumption Reduction: Energy consumption also saw considerable decreases, with AlexNet showing a ×3.41 reduction and VGG-S a ×4.26 reduction on the smartphone.
  • Accuracy Preservation: Despite aggressive compression, the accuracy drop was minimal. For instance, VGG-16 maintained 89.40% top-5 accuracy with a ×4.93 speedup, comparable to prior work.
  • Layer-wise Analysis: The paper provides detailed layer-wise breakdowns, showing that compression benefits are observed across most layers, with fully-connected layers sometimes showing a more pronounced impact due to reduced cache conflicts.

Limitations and Future Work

  • Rank Optimality: The authors acknowledge that while their rank selection is data-driven and reproducible, it's not definitively proven to be globally optimal. Future work could explore methods to verify or improve rank selection.
  • 1x1 Convolution Cache Efficiency: The paper identifies the cache efficiency issue of 1x1 convolutions as a challenge. Further research is needed to optimize their implementation and mitigate performance bottlenecks on mobile hardware.
  • Initialization and Batch Normalization: The paper mentions that training compressed models from scratch with Gaussian initialization did not work. Exploring other initialization strategies and the role of batch normalization in compressed networks is suggested as future work.

Summary updated

BibTeX
@inproceedings{kim2016compression,
  author = {Yong-Deok Kim and Eunhyeok Park and Sungjoo Yoo and Taelim Choi and Lu Yang and Dongjun Shin},
  title = {{Compression of Deep Convolutional Neural Networks for Fast and Low Power Mobile Applications}},
  booktitle = {International Conference on Learning Representations},
  year = {2016},
  url = {http://arxiv.org/abs/1511.06530},
}
Figure