Searching the Deployable Convolution Neural Networks for GPUs

Linnan Wang, Chenhan Yu, Satish Salian, Slawomir Kierat, Szymon Migacz, Alex Fit-FloreaCVPR 2022 · DOI

Abstract

Modern deep learning models are often optimized for theoretical metrics like FLOPs, which correlate poorly with actual inference speed on GPUs. This paper introduces GPUNet, a family of Convolutional Neural Networks (CNNs) discovered via a distributed Neural Architecture Search (NAS) that directly optimizes for TensorRT latency. By exploring a comprehensive search space and utilizing a two-stage search strategy, GPUNet achieves a superior Pareto frontier, delivering up to 2x speedups over established models like EfficientNet-X while maintaining higher ImageNet accuracy.

Introduction: The FLOPs vs. Latency Gap

In deep learning, there is a persistent gap between research and production. Researchers often design "efficient" models by minimizing FLOPs (Floating Point Operations) or parameter counts. However, on modern GPUs, these metrics are poor proxies for actual speed. A model with low FLOPs might be slow if it uses memory-bound operations, while a "heavy" model with high parallelism might run lightning-fast. AI engineers must often manually tweak architectures to fit specific latency budgets, a process that is laborious and often results in sub-optimal designs. GPUNet aims to automate this by creating a "model hub" of architectures pre-optimized for specific GPU latency tiers.

Methodology: Distributed NAS for Deployment

The authors developed a distributed NAS system to identify optimal architectures within specific latency constraints. The search space is comprehensive, varying filter counts, kernel sizes, layer depths, input resolutions, and activation functions.

Two-Stage Search Strategy

  1. Latency Stratification: A lookup table of TensorRT latencies for individual layers was constructed. Using Sobol sampling, the system estimated the latency of millions of potential networks, grouping them into latency-bounded sub-spaces (e.g., all models < 0.5ms).
  2. Accuracy Optimization: Within these groups, LA-MCTS guided Bayesian Optimization was used to find the architecture with the highest ImageNet accuracy.

To ensure reliability, each candidate network was trained from scratch on a cluster of 300 NVIDIA A100 GPUs, avoiding the potential inaccuracies of "supernet" weight-sharing approaches.

Key Insights and Ideas

The search process revealed several critical design principles for GPU-optimized models:

  • Mixed Activations Matter: While many models use a single activation function throughout, GPUNet discovered that switching between ReLU and Swish is optimal. ReLU is used in specific layers to reduce latency, allowing the "latency budget" to be reallocated to more filters or deeper layers elsewhere.
  • Wider and Deeper vs. Expanded: Standard mobile-centric models rely on high expansion ratios. GPUNet found it more efficient on GPUs to use lower expansion ratios combined with more total filters (wider) and more layers (deeper).
  • Hardware Saturation: The search naturally favored architectures that better saturate the GPU's execution units, moving away from "skinny" networks that leave hardware idle.
TensorRT latency across different activation functions.

Key Results

GPUNet establishes a new state-of-the-art (SOTA) Pareto frontier for accuracy versus latency.

Performance Benchmarks

  • Speed and Accuracy: GPUNet-1 is approximately 2x faster than FBNetV3-B and EfficientNet-X-B2-GPU at comparable accuracy levels. GPUNet-0 achieves 78.9% Top-1 accuracy on ImageNet with an inference latency of just 0.62ms on an NVIDIA GV100.
  • Transferability: When used as a backbone for object detection (Cascade R-CNN) on the COCO dataset, GPUNet-2 outperformed ResNet-50 and EfficientNet-B3 in both speed and mean Average Precision (mAP).
  • Cross-Hardware Success: Although optimized on the GV100, the models maintained their performance advantages when tested on edge hardware like the NVIDIA AGX Orin.
Top-1 ImageNet accuracy vs. TensorRT FP16 latency.

Conclusion and Future Work

GPUNet demonstrates that direct latency optimization in NAS can yield significant performance gains for GPU deployment. While currently focused on CNNs, the authors acknowledge that extending this framework to Transformers and MLP-based architectures is a necessary next step. Additionally, the vision of a comprehensive, multi-tier model hub remains an ongoing effort to bridge the gap between AI research and production efficiency.

Summary updated

BibTeX
@inproceedings{wang2022searching,
  author = {Linnan Wang and Chenhan Yu and Satish Salian and Slawomir Kierat and Szymon Migacz and Alex Fit-Florea},
  title = {{Searching the Deployable Convolution Neural Networks for GPUs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01191},
}
Figure