Skip to main content
QUICK REVIEW

[Paper Review] DeepRebirth: Accelerating Deep Neural Network Execution on Mobile Devices

Dawei Li, Xiaolong Wang|arXiv (Cornell University)|Aug 16, 2017
Advanced Neural Network ApplicationsComputer Science27 citations
TL;DR

DeepRebirth accelerates deep neural network inference on mobile devices by optimizing non-tensor layers—such as pooling and normalization—through two novel operations: streamline slimming (vertically merging consecutive non-tensor and tensor layers) and branch slimming (horizontally fusing parallel non-tensor and small-filter tensor branches into single convolutional layers). The method achieves over 3x speed-up and 2.5x memory reduction on GoogLeNet with only 0.4% top-5 accuracy drop, and enables 65ms inference on Samsung Galaxy S6 with 86.5% top-5 accuracy, outperforming SqueezeNet in both speed and accuracy.

ABSTRACT

Deploying deep neural networks on mobile devices is a challenging task. Current model compression methods such as matrix decomposition effectively reduce the deployed model size, but still cannot satisfy real-time processing requirement. This paper first discovers that the major obstacle is the excessive execution time of non-tensor layers such as pooling and normalization without tensor-like trainable parameters. This motivates us to design a novel acceleration framework: DeepRebirth through "slimming" existing consecutive and parallel non-tensor and tensor layers. The layer slimming is executed at different substructures: (a) streamline slimming by merging the consecutive non-tensor and tensor layer vertically; (b) branch slimming by merging non-tensor and tensor branches horizontally. The proposed optimization operations significantly accelerate the model execution and also greatly reduce the run-time memory cost since the slimmed model architecture contains less hidden layers. To maximally avoid accuracy loss, the parameters in new generated layers are learned with layer-wise fine-tuning based on both theoretical analysis and empirical verification. As observed in the experiment, DeepRebirth achieves more than 3x speed-up and 2.5x run-time memory saving on GoogLeNet with only 0.4% drop of top-5 accuracy on ImageNet. Furthermore, by combining with other model compression techniques, DeepRebirth offers an average of 65ms inference time on the CPU of Samsung Galaxy S6 with 86.5% top-5 accuracy, 14% faster than SqueezeNet which only has a top-5 accuracy of 80.5%.

Motivation & Objective

  • To address the bottleneck in mobile DNN inference caused by excessive execution time in non-tensor layers such as pooling and normalization.
  • To reduce model inference latency and runtime memory consumption on mobile CPUs without sacrificing accuracy.
  • To develop a post-training optimization framework that restructures existing models by fusing non-tensor and tensor layers into more efficient, single-layer equivalents.
  • To enable real-time inference on mobile devices by accelerating non-tensor layers, which are often overlooked in existing compression techniques.
  • To integrate seamlessly with existing model compression methods and enhance performance on state-of-the-art architectures like GoogLeNet and ResNet-50.

Proposed method

  • Streamline slimming merges consecutive non-tensor layers (e.g., ReLU, pooling, BatchNorm) with their preceding tensor layers (e.g., convolution) into a single optimized convolutional layer.
  • Branch slimming fuses parallel branches—especially those with small filters (e.g., 1x1) and non-tensor layers—into a single larger-filter convolutional layer (e.g., 5x5), reducing computational overhead.
  • The parameters of the newly generated 'slim' layers are learned via layer-wise fine-tuning to preserve model accuracy after structural reorganization.
  • The framework leverages theoretical analysis and empirical validation to ensure minimal accuracy degradation during the merging process.
  • The method is applied post-training, requiring no retraining from scratch, and is compatible with existing deep learning models and compression pipelines.
  • Batch normalization layers are directly absorbed into preceding convolutional layers using a closed-form transformation, further accelerating inference without accuracy loss.

Experimental results

Research questions

  • RQ1Why do non-tensor layers such as pooling and normalization dominate inference latency on mobile CPUs despite being parameter-free?
  • RQ2Can merging non-tensor layers with adjacent tensor layers significantly reduce inference time and memory usage without degrading model accuracy?
  • RQ3How effective is the proposed streamline and branch slimming technique in accelerating state-of-the-art models like GoogLeNet and ResNet-50 on mobile hardware?
  • RQ4To what extent can DeepRebirth be combined with other compression techniques to achieve real-time inference on mobile devices?
  • RQ5Can the knowledge from complex multi-layer substructures be effectively transferred to simplified single-layer equivalents through fine-tuning?

Key findings

  • DeepRebirth achieves over 3x speed-up and 2.5x reduction in runtime memory usage on GoogLeNet with only a 0.4% drop in top-5 accuracy on ImageNet.
  • On the Samsung Galaxy S6 CPU, the optimized model achieves 65ms inference time with 86.5% top-5 accuracy, outperforming SqueezeNet (14% faster, 6% higher accuracy).
  • The method reduces inference latency from 189ms to 104ms on ResNet-50’s conv1 and res2a layers, with a 2.21x reduction in runtime memory cost.
  • Batch normalization layers can be directly merged into preceding convolutional layers, yielding an additional 30–45% speed-up without accuracy loss.
  • The framework maintains high accuracy across multiple models and is compatible with existing compression techniques, enabling further optimization.
  • Layer-wise fine-tuning after merging ensures minimal accuracy degradation, with only 0.31% accuracy loss at a 31.9% compression rate on ResNet-50.

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.