DynaTune: Dynamic Tensor Program Optimization in Deep Neural Network Compilation
Minjia Zhang, Menghao Li, Chi Wang, Mingqin Li
Abstract
Recently, the DL compiler, together with Learning to Compile has proven to be a powerful technique for optimizing deep learning models. However, existing methods focus on accelerating the convergence speed of the individual tensor operator rather than the convergence speed of the entire model, which results in long optimization time to obtain a desired latency. In this paper, we present a new method called DynaTune, which provides significantly faster convergence speed to optimize a DNN model. In particular, we consider a Multi-Armed Bandit (MAB) model for the tensor program optimization problem. We use UCB to handle the decision-making of time-slot-based optimization, and we devise a Bayesian belief model that allows predicting the potential performance gain of each operator with uncertainty quantification, which guides the optimization process. We evaluate and compare DynaTune with the state-of-the-art DL compiler. The experiment results show that DynaTune is 1.2-2.4 times faster to achieve the same optimization quality for a range of models across different hardware architectures.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- AdaTune: Adaptive Tensor Program Compilation Made Efficient cites Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization cites AdaTune: Adaptive Tensor Program Compilation Made Efficient
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization cites Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization cites Ansor: Generating High-Performance Tensor Programs for Deep Learning
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program Optimization cites ETO: Accelerating Optimization of DNN Operators by High-Performance Tensor Program Reuse
- REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving cites Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving cites Ansor: Generating High-Performance Tensor Programs for Deep Learning
- REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving cites Glimpse: mathematical embedding of hardware specification for neural compilation
- Glimpse: mathematical embedding of hardware specification for neural compilation cites AdaTune: Adaptive Tensor Program Compilation Made Efficient
- Glimpse: mathematical embedding of hardware specification for neural compilation cites Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- ETO: Accelerating Optimization of DNN Operators by High-Performance Tensor Program Reuse cites Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation
- ETO: Accelerating Optimization of DNN Operators by High-Performance Tensor Program Reuse cites Ansor: Generating High-Performance Tensor Programs for Deep Learning
Cited by top-tier papers4
- ETO: Accelerating Optimization of DNN Operators by High-Performance Tensor Program ReuseJingzhi Fang, Yanyan Shen, Yue Wang, Lei ChenVLDB 2022 · 10 citations
- REASONING COMPILER: LLM-Guided Optimizations for Efficient Model ServingAnnabelle Sujun Tang, Christopher Priebe, Rohan Mahapatra, Lianhui Qin et al.NeurIPS 2025 · 7 citations
- Glimpse: mathematical embedding of hardware specification for neural compilationByung Hoon Ahn, Sean Kinzer, Hadi EsmaeilzadehDAC 2022 · 4 citations
- Bayesian Code Diffusion for Efficient Automatic Deep Learning Program OptimizationIsu Jeong, Seulki LeeOSDI 2025
Builds on3
- Ansor: Generating High-Performance Tensor Programs for Deep LearningLianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu et al.OSDI 2020 · 551 citations
- Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network CompilationByung Hoon Ahn, Prannoy Pilligundla, Amir Yazdanbakhsh, Hadi EsmaeilzadehICLR 2020 · 90 citations
- AdaTune: Adaptive Tensor Program Compilation Made EfficientMenghao Li, Minjia Zhang, Chi Wang, Mingqin LiNeurIPS 2020 · 39 citations
Related papers
- DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph OptimizationSimin Chen, Shiyi Wei, Cong Liu, Wei YangISSTA 2023 · 11 citations
- TLP: A Deep Learning-Based Cost Model for Tensor Program TuningYi Zhai, Yu Zhang, Shuo Liu, Xiaomeng Chu et al.ASPLOS 2023 · 42 citations
- MAGPY: Compiling Eager Mode DNN Programs by Monitoring Execution StatesChen Zhang, Rongchao Dong, Haojie Wang, Runxin Zhong et al.USENIX ATC 2024 · 5 citations
- CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor ProgramsHanpeng Hu, Junwei Su, Juntao Zhao, Yanghua Peng et al.EuroSys 2024 · 7 citations
- Fixing Broken Graphs: LLM-Powered Automatic Code Optimization for DNN ProgramsHaotian Wang, Yicheng Sui, Yudong Xie, Yicong Liu et al.ASE 2025
