Automatic Rank Selection for High-Speed Convolutional Neural Network

Hyeji Kim, Chong-Min KyungarXiv 2018

Abstract

Accelerating Convolutional Neural Networks (CNNs) for resource-constrained environments often involves low-rank decomposition. However, determining the optimal rank for each layer—a process known as rank selection—remains a significant challenge due to the vast search space and the high cost of evaluating configurations. This paper proposes a "model-wise" automatic rank selection algorithm that utilizes a novel linear approximation to predict fine-tuned accuracy without retraining. By navigating the global search space more effectively than traditional layer-wise methods, the proposed approach achieves significant speedups on AlexNet and VGG-16 with minimal accuracy loss.

Introduction

Deploying deep learning models on mobile and embedded systems requires balancing high performance with limited computational resources. Low-rank decomposition is a popular technique for this purpose, breaking down complex weight tensors into smaller matrices to reduce the total number of operations required for inference.

Low-rank decomposition in the spatial dimension.

The primary bottleneck in this process is rank selection: choosing the specific compression level for every layer. Traditional "layer-wise greedy search" methods optimize layers sequentially, which often leads to local optima and suboptimal global performance. Furthermore, the standard practice of re-training (fine-tuning) a model to evaluate each rank configuration is computationally prohibitive for large-scale searches.

Methods

The authors introduce three key innovations to solve the rank selection bottleneck and move beyond sequential optimization.

Unlike layer-wise approaches that fix the ranks of previous layers before moving to the next, the proposed model-wise search considers the entire "rank set" simultaneously. This global perspective allows the algorithm to accept local performance trade-offs if they contribute to a superior overall model configuration, effectively escaping the local optima that plague sequential methods.

Comparison between (a) layer-wise search and (b) the proposed model-wise search strategy.

2. Linear Accuracy Approximation

A key discovery in this work is the empirical linear correlation between a model's "0-epoch" accuracy (immediately after decomposition) and its final accuracy after fine-tuning. By establishing this linear relationship, the authors can accurately predict the potential of a rank configuration without performing actual training. This innovation drastically reduces the search time, turning a process that could take days into one that takes minutes.

3. Combinatorial Optimization and Space Rejection

To handle the exponential number of possible rank combinations, the algorithm employs "space constraints" and a "rejection space" strategy. This identifies and prunes rank sets that are mathematically guaranteed to yield poor accuracy, focusing computational effort only on the most promising candidates.

Key Insights

  • Predictive Efficiency: The most significant insight is that full training is not required to identify high-potential rank selections. The initial accuracy post-decomposition serves as a reliable proxy for final performance.
  • Global vs. Local Optimization: By moving to a model-wise search, the algorithm can accept a temporary hit in one layer if it leads to a much larger gain across the whole network.
  • Iterative Refinement: The algorithm iteratively reduces the computational cost (FLOPs or parameters) while checking against specific accuracy thresholds, ensuring the model stays within a safe performance envelope throughout the optimization process.

Experimental Results

The method was evaluated on the ImageNet 2012 dataset using AlexNet and VGG-16 architectures, targeting different optimization goals.

  • AlexNet (Balanced Optimization): The algorithm achieved a 3.04x speedup (reducing FLOPs from 727M to 238.5M) while maintaining a top-5 accuracy of 78.43%, exceeding the target threshold of 78.33%. This demonstrated the method's ability to reduce both memory footprint and runtime simultaneously.
  • VGG-16 (Runtime Optimization): Focused on maximizing inference speed, the method delivered a 4.03x speedup (reducing FLOPs from 15.5G to 3.8G) with a top-5 accuracy of 90.0%. This performance significantly outperforms previous state-of-the-art methods such as Zhang et al. (3.26x) and He et al. (2.40x).

Conclusion

This paper demonstrates that model-wise rank selection, powered by linear accuracy prediction, provides a highly efficient path to CNN acceleration. By avoiding local optima and eliminating the need for exhaustive fine-tuning during search, the proposed method sets a new standard for automatic model compression. Future work will explore the integration of this logic into other frameworks such as channel pruning and asymmetric reconstruction to push compression limits even further.

Summary updated

BibTeX
@misc{kim2018automatic,
  author = {Hyeji Kim and Chong-Min Kyung},
  title = {{Automatic Rank Selection for High-Speed Convolutional Neural Network}},
  year = {2018},
  eprint = {1806.10821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.10821},
}
Figure