Efficient and Fast High-Performance Library Generation for Deep Learning Accelerators

The widespread adoption of deep learning accelerators (DLAs) underscores their pivotal role in improving the performance and energy efficiency of neural networks. To fully leverage the capabilities of these accelerators, exploration-based library generation approaches have been widely used to substantially reduce software development overhead. However, these approaches have been challenged by issues related to sub-optimal optimization results and excessive optimization overheads. In this paper, we propose <small>Heron</small> to generate high-performance libraries of DLAs in an efficient and fast way. The key is automatically enforcing massive constraints through the entire program generation process and guiding the exploration with an accurate pre-trained cost model. <small>Heron</small> represents the search space as a constrained satisfaction problem (CSP) and explores the space via evolving the CSPs. Thus, the sophisticated constraints of the search space are strictly preserved during the entire exploration process. The exploration algorithm has the flexibility to engage in space exploration using either online-trained models or pre-trained models. Experimental results demonstrate that <small>Heron</small> averagely achieves 2.71<inline-formula><tex-math notation="LaTeX">$\times$</tex-math></inline-formula> speedup over three state-of-the-art automatic generation approaches. Also, compared to vendor-provided hand-tuned libraries, <small>Heron</small> achieves a 2.00<inline-formula><tex-math notation="LaTeX">$\times$</tex-math></inline-formula> speedup on average. When employing a pre-trained model, <small>Heron</small> achieves 11.6<inline-formula><tex-math notation="LaTeX">$\times$</tex-math></inline-formula> compilation time speedup, incurring a minor impact on execution time.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Computers
Published
2024-10-08
DOI
https://doi.org/10.1109/tc.2024.3475575
Citations
1
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.49

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient and Fast High-Performance Library Generation for Deep Learning Accelerators

Enshuai Zhou, Yuanbo Wen, Huaping Chen, Zidong Du et al.
1 citations
IEEE Transactions on Computers
Parallel Computing and Optimization Techniques
0.49
article

Efficient and Fast High-Performance Library Generation for Deep Learning Accelerators

Enshuai Zhou, Yuanbo Wen, Huaping Chen, Zidong Du, Xiaqing Li, Ling Li, Xing Hu, Qi Guo, Yongwei Zhao, Jun Bi, Tianshi Chen, Yuxuan Guo
article en
1 citations

Abstract

The widespread adoption of deep learning accelerators (DLAs) underscores their pivotal role in improving the performance and energy efficiency of neural networks. To fully leverage the capabilities of these accelerators, exploration-based library generation approaches have been widely used to substantially reduce software development overhead. However, these approaches have been challenged by issues related to sub-optimal optimization results and excessive optimization overheads. In this paper, we propose <small>Heron</small> to generate high-performance libraries of DLAs in an efficient and fast way. The key is automatically enforcing massive constraints through the entire program generation process and guiding the exploration with an accurate pre-trained cost model. <small>Heron</small> represents the search space as a constrained satisfaction problem (CSP) and explores the space via evolving the CSPs. Thus, the sophisticated constraints of the search space are strictly preserved during the entire exploration process. The exploration algorithm has the flexibility to engage in space exploration using either online-trained models or pre-trained models. Experimental results demonstrate that <small>Heron</small> averagely achieves 2.71<inline-formula><tex-math notation="LaTeX">$\times$</tex-math></inline-formula> speedup over three state-of-the-art automatic generation approaches. Also, compared to vendor-provided hand-tuned libraries, <small>Heron</small> achieves a 2.00<inline-formula><tex-math notation="LaTeX">$\times$</tex-math></inline-formula> speedup on average. When employing a pre-trained model, <small>Heron</small> achieves 11.6<inline-formula><tex-math notation="LaTeX">$\times$</tex-math></inline-formula> compilation time speedup, incurring a minor impact on execution time.

IEEE Transactions on ComputersVol. 74(1)
University of Science and Technology of China (CN), Chinese Academy of Sciences (CN), Institute of Computing Technology (CN), Institute of Software (CN), Cambricon (China)
National Natural Science Foundation of China, Youth Innovation Promotion Association of the Chinese Academy of Sciences, National Key Research and Development Program of China
Openalex Percentile: Top 37%
Parallel Computing and Optimization Techniques
0.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.