A Study on the Intersection of GPU Utilization and CNN Inference

Jack Kosaian, Amar PhanishayeearXiv 2022

Abstract

There has been significant progress in developing neural network architectures that both achieve high predictive performance and that also achieve high application-level inference throughput (e.g., frames per second). Another metric of increasing importance is GPU utilization during inference: the measurement of how well a deployed neural network uses the computational capabilities of the GPU on which it runs. Achieving high GPU utilization is critical to increasing application-level throughput and ensuring a good return on investment for deploying GPUs. This paper analyzes the GPU utilization of convolutional neural network (CNN) inference. We first survey the GPU utilization of CNNs to show that there is room to improve the GPU utilization of many of these CNNs. We then investigate the GPU utilization of networks within a neural architecture search (NAS) search space, and explore how using GPU utilization as a metric could potentially be used to accelerate NAS itself. Our study makes the case that there is room to improve the inference-time GPU utilization of CNNs and that knowledge of GPU utilization has the potential to benefit even applications that do not target utilization itself.

The GPU Utilization Gap

In the development of Convolutional Neural Networks (CNNs), the primary focus has traditionally been on maximizing accuracy and throughput. However, a significant "utilization gap" exists in modern hardware deployments. While GPUs offer massive computational bandwidth (often exceeding 100 TFLOPs/sec), many state-of-the-art models fail to saturate this potential. Low utilization indicates that expensive hardware is sitting idle, often because models are "memory-bound"—spending more time moving data than performing computations.

To quantify this, we surveyed 103 CNNs from the timm and "Once-for-All" (OFA) collections, profiling them on an NVIDIA V100 GPU. The results revealed a wide variance in efficiency, with models ranging from near 0% to 90% utilization. Notably, many popular high-throughput models achieved less than 40% of the peak theoretical performance.

Figure 1: Throughput-GPU utilization Pareto frontier for surveyed CNNs, categorized by arithmetic intensity relative to the Critical Memory Ratio (CMR).

Arithmetic Intensity and Folding

The efficiency of a model is largely determined by its Arithmetic Intensity (AI)—the ratio of floating-point operations to bytes of memory traffic. Models with low AI are limited by memory bandwidth rather than compute power. To address this, we explored "Folding" transformations, which restructure inputs to increase channel counts while decreasing spatial resolution. While folding can boost utilization and throughput by approximately 1.5x, it often requires retraining to mitigate potential accuracy degradation.

Utilization as a Proxy for Accuracy in NAS

One of the most compelling findings of this study is the correlation between GPU utilization and accuracy within fixed search spaces, such as NATS-Bench. In these environments, models that utilize the hardware more effectively often possess a higher capacity to learn, leading to better final accuracy.

This relationship allows for "Approximate Filtering" in Neural Architecture Search (NAS). Because measuring throughput and utilization takes seconds compared to the hours or days required for full training, utilization serves as an incredibly "cheap" metric for pruning the search space. In the NATS-Bench search space of over 32,000 networks, the utilization-throughput Pareto frontier contained only 144 candidates. By focusing only on this subset, we can ignore 99.5% of the search space while still identifying high-performing architectures.

Figure 5: Pareto frontiers for (a) Throughput-accuracy, (b) Throughput-utilization, and (c) Utilization-accuracy, demonstrating the relationships between hardware efficiency and predictive performance.

Conclusion

Our study demonstrates that there is significant room to improve the inference-time GPU utilization of CNNs. By understanding the hardware-level constraints of our models, we can not only improve the return on investment for GPU deployments but also streamline the discovery of new architectures. While challenges remain—such as the accuracy trade-offs of folding and the evolving landscape of Vision Transformers—utilization-aware design represents a promising frontier for efficient deep learning.

Summary updated

BibTeX
@misc{kosaian2022study,
  author = {Jack Kosaian and Amar Phanishayee},
  title = {{A Study on the Intersection of GPU Utilization and CNN Inference}},
  year = {2022},
  eprint = {2212.07936},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.07936},
}
Figure