FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilers
Not on the map. Why?
Abstract (arXiv)
Many artificial intelligence models process input data of different lengths and resolutions, making the shape of the tensors dynamic. The performance of these models depends on the shape of the tensors, which makes it difficult to optimize the tensors before the model runs. There are two common solutions to this problem. The first is to add useless data to the input to match a pre-optimized tensor library. The second is to use small basic tensors to create a tensor that is closest in size to the input data and then tune it to minimize padding. However, this second solution can be time-consuming. This paper proposes a new technique for deep learning compilers called FTuner. Instead of using a large design space or training a cost model, we use an abstract computational unit called the uKernel to patch together small, various-sized tensors to match the shape of the input tensor. We determine the shape of the uKernel using an analytic hardware information model. Experiments show that the FTuner can achieve comparable operators and end-to-end performance to vendor libraries and achieves 3% speedup on existing auto-tuner with the model-training compiler while reducing tuning time by two orders of magnitude.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 50 references that are in the map. First posted on arXiv 31 Jul 2024.
Builds on
21 of 50 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2016WaveNet: A Generative Model for Raw Audiocited by 1,710
- 2023Segment Everything Everywhere All at Oncecited by 546
- 2014cuDNN: Efficient Primitives for Deep Learningcited by 240
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
9 more
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2020Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilationcited by 29
- 2022Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programscited by 28
- 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
- 2022TLP: A Deep Learning-based Cost Model for Tensor Program Tuningcited by 14
- 2021DISC: A Dynamic Shape Compiler for Machine Learning Workloadscited by 10
- 2019Relay: A High-Level Compiler for Deep Learningcited by 4
- 2022Moses: Efficient Exploitation of Cross-device Transferable Features for Tensor Program Optimizationcited by 3
Built on by
Not cited yet.