AdaTune: Adaptive Tensor Program Compilation Made Efficient
Menghao Li, Minjia Zhang, Chi Wang, Mingqin Li
摘要
Deep learning models are computationally intense, and implementations often have to be highly optimized by experts or hardware vendors to be usable in practice. The DL compiler, together with Learning-to-Compile has proven to be a powerful technique for optimizing tensor programs. However, a limitation of this approach is that it still suffers from unbearably long overall optimization time. In this paper, we present a new method, called AdaTune, that significantly reduces the optimization time of tensor programs for high-performance deep learning inference. In particular, we propose an adaptive evaluation method that statistically early terminates a costly hardware measurement without losing much accuracy. We further devise a surrogate model with uncertainty quantification that allows the optimization to adapt to hardware and model heterogeneity better. Finally, we introduce a contextual optimizer that provides adaptive control of the exploration and exploitation to improve the transformation space searching effectiveness. We evaluate and compare the levels of optimization obtained by AutoTVM, a state-of-the-art Learning-to-Compile technique on top of TVM, and AdaTune. The experiment results show that AdaTune obtains up to 115% higher GFLOPS than the baseline under the same optimization time budget. Furthermore, AdaTune provides 1.3–3.9 speedup in optimization time over the baseline to reach the same optimization quality for a range of models across different hardware architectures.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- DynaTune: Dynamic Tensor Program Optimization in Deep Neural Network Compilation 引用了 Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuning 引用了 Tensor Program Optimization with Probabilistic Programs
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization 引用了 DynaTune: Dynamic Tensor Program Optimization in Deep Neural Network Compilation
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization 引用了 Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization 引用了 Tensor Program Optimization with Probabilistic Programs
- Glimpse: mathematical embedding of hardware specification for neural compilation 引用了 DynaTune: Dynamic Tensor Program Optimization in Deep Neural Network Compilation
- Glimpse: mathematical embedding of hardware specification for neural compilation 引用了 Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- Tensor Program Optimization with Probabilistic Programs 引用了 Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
引用它的顶会 Paper6
- Tensor Program Optimization with Probabilistic ProgramsJunru Shao, Xiyou Zhou, Siyuan Feng, Bohan Hou 等NeurIPS 2022 · 85 次引用
- DynaTune: Dynamic Tensor Program Optimization in Deep Neural Network CompilationMinjia Zhang, Menghao Li, Chi Wang, Mingqin LiICLR 2021 · 18 次引用
- Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program TuningLiang Qiao, Jun Shi, Xiaoyu Hao, Xi Fang 等ASPLOS 2025 · 5 次引用
- Glimpse: mathematical embedding of hardware specification for neural compilationByung Hoon Ahn, Sean Kinzer, Hadi EsmaeilzadehDAC 2022 · 4 次引用
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program OptimizationIsu Jeong, Seulki LeeOSDI 2025
它引用的 Paper1
相关 Paper
- ALT: Breaking the Wall between Data Layout and Loop Optimizations for Deep Learning CompilationZhiying Xu, Jiafan Xu, Hongding Peng, Wei Wang 等EuroSys 2023 · 12 次引用
- Ansor: Generating High-Performance Tensor Programs for Deep LearningLianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu 等OSDI 2020 · 551 次引用
- TLP: A Deep Learning-Based Cost Model for Tensor Program TuningYi Zhai, Yu Zhang, Shuo Liu, Xiaomeng Chu 等ASPLOS 2023 · 42 次引用
- Optimization-Aware Test Generation for Deep Learning CompilersQingchao Shen, Zan Wang, Haoyang Ma, Yongqiang Tian 等ICSE 2026
- ATFormer: A Learned Performance Model with Transfer Learning Across Devices for Deep Learning Tensor ProgramsYang Bai, Wenqian Zhao, Shuo Yin, Zixiao Wang 等EMNLP 2023 · 2 次引用
