One-shot tuner for deep learning compilers
Open Access
- 18 March 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 89-103
Abstract
Auto-tuning DL compilers are gaining ground as an optimizing back-end for DL frameworks. While existing work can generate deep learning models that exceed the performance of hand-tuned libraries, they still suffer from prohibitively long auto-tuning time due to repeated hardware measurements in large search spaces. In this paper, we take a neural-predictor inspired approach to reduce the auto-tuning overhead and show that a performance predictor model trained prior to compilation can produce optimized tensor operation codes without repeated search and hardware measurements. To generate a sample-efficient training dataset, we extend input representation to include task-specific information and to guide data sampling methods to focus on learning high-performing codes. We evaluated the resulting predictor model, One-Shot Tuner, against AutoTVM and other prior work, and the results show that One-Shot Tuner speeds up compilation by 2.81x to 67.7x compared to prior work while providing comparable or improved inference time for CNN and Transformer models.Keywords
Funding Information
- Institute for Information and Communications Technology Promotion (2019-0-01906, 2021-0-00871, 2021-0-00310)
This publication has 18 references indexed in Scilit:
- COBAYNACM Transactions on Architecture and Code Optimization, 2016
- Autotuning algorithmic choice for input sensitivity2015
- Caffe2014
- HERCULES: Strong Patterns towards More Intelligent Predictive Modeling2014
- OpenTuner2014
- Taming parallel I/O complexity with auto-tuning2013
- Halide2013
- Milepost GCC: Machine Learning Enabled Self-tuning CompilerInternational Journal of Parallel Programming, 2011
- Learning to rank2007
- SPIRAL: Code Generation for DSP TransformsProceedings of the IEEE, 2005