OptiFX: Automatic Optimization for Convolutional Neural Networks with Aggressive Operator Fusion on GPUs
Convolutional Neural Networks (CNNs) are fundamental to advancing computer vision technologies. As CNNs become more complex and larger, optimizing model inference remains a critical challenge in both industry and academia. On modern GPU platforms, CNN operators are typically memory-bound, leading to significant performance degradation due to memory wall effects. While recent advancements have utilized operator fusion–merging multiple operators into one–to enhance inference performance, the fusion of multiple region-based operators like convolution is seldom addressed. This article introduces AFusion , a novel operator fusion technique aimed at improving inference performance, and OptiFX, an automatic optimization framework based on this approach. OptiFX employs a cost-based backtracking search to identify optimal sub-graphs for fusion and utilizes template-based code generation to create efficient kernels for these fused sub-graphs. We evaluate OptiFX across seven prominent CNN architectures–GoogLeNet, ResNet, DenseNet, MobileNet, SqueezeNet, NasNet, and UNet–on Nvidia A6000 Ada, RTX 4090, and Jetson AGX Orin platforms. Our results demonstrate that OptiFX significantly outperforms existing methods, achieving average speedups of \(2.91\times\) , \(3.30\times\) , and \(2.09\times\) in accelerating inference performance on these platforms, respectively.
Authors
- Jingling Xue (ORCID: https://orcid.org/0000-0003-0380-3506)
- Xiaobing Feng (ORCID: https://orcid.org/0000-0003-2909-7750)
- 豪 日浅 (ORCID: https://orcid.org/0000-0002-7234-7682)
- Huimin Cui (ORCID: https://orcid.org/0000-0002-2491-7679)
- Fan Luo
- Shigang Li (ORCID: https://orcid.org/0000-0003-0022-7865)
- Xueying Wang (ORCID: https://orcid.org/0000-0002-7835-113X)
- Guangli Li (ORCID: https://orcid.org/0000-0002-9738-261X)
- Ruiyuan Xu
- Ziru Hao
- Tong Wu (ORCID: https://orcid.org/0009-0001-0472-5178)
Institutions
- Beijing University of Posts and Telecommunications (CN)
- Chinese Academy of Sciences (CN)
- UNSW Sydney (AU)
- Institute of Computing Technology (CN)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- ACM Transactions on Architecture and Code Optimization
- Published
- 2025-02-10
- DOI
- https://doi.org/10.1145/3716876
- Citations
- 2
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.55