A Deep Learning Based Cost Model for Automatic Code Optimization
Not on the map. Why?
Abstract (arXiv)
Enabling compilers to automatically optimize code has been a longstanding goal for the compiler community. Efficiently solving this problem requires using precise cost models. These models predict whether applying a sequence of code transformations reduces the execution time of the program. Building an analytical cost model to do so is hard in modern x86 architectures due to the complexity of the microarchitecture. In this paper, we present a novel deep learning based cost model for automatic code optimization. This model was integrated in a search method and implemented in the Tiramisu compiler to select the best code transformations. The input of the proposed model is a set of simple features representing the unoptimized code and a sequence of code transformations. The model predicts the speedup expected when the code transformations are applied. Unlike previous models, the proposed one works on full programs and does not rely on any heavy feature engineering. The proposed model has only 16% of mean absolute percentage error in predicting speedups on full programs. The proposed model enables Tiramisu to automatically find code transformations that match or are better than state-of-the-art compilers without requiring the same level of heavy feature engineering required by those compilers.
Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Builds on 10 of its 36 references that are in the map. First posted on arXiv 11 Apr 2021.
Builds on
10 of 36 references.
References · 10
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2017Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Ratescited by 196
- 2018Learning to Optimize Tensor Programscited by 138
- 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
- 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
- 2018Ithemal: Accurate, Portable and Fast Basic Block Throughput Estimation using Deep Neural Networkscited by 43
- 2020TIRAMISU: A Polyhedral Compiler for Dense and Sparse Deep Learningcited by 7
- 2013PENCIL: Towards a Platform-Neutral Compute Intermediate Language for DSLscited by 2
Built on by
Citing papers per year: 2021: 2; 2022: 9; 2023: 6; 2024: 8; 2025: 6; 2026: 2.
33 papers.
Sort:
By area:
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
- 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 15
- 2022TLP: A Deep Learning-based Cost Model for Tensor Program Tuningcited by 14
- 2024LayerDAG: A Layerwise Autoregressive Diffusion Model for Directed Acyclic Graph Generationcited by 8
- 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilerscited by 7
- 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
- 2022Transfer-Tuning: Reusing Auto-Schedules for Efficient Tensor Program Code Generationcited by 5
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimizationcited by 4
- 2022Moses: Efficient Exploitation of Cross-device Transferable Features for Tensor Program Optimizationcited by 3
- 2022Application Performance Modeling via Tensor Completioncited by 3
- 2023CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor Programscited by 3
21 more
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2021Using Graph Neural Networks to model the performance of Deep Neural Networkscited by 2
- 2024Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuningcited by 2
- 2024PyGim: An Efficient Graph Neural Network Library for Real Processing-In-Memory Architecturescited by 2
- 2023COMET: Neural Cost Model Explanation Frameworkcited by 1
- 2024Combining Neural Architecture Search and Automatic Code Optimization: A Surveycited by 1
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctnesscited by 1
- 2025LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Compiler Optimizationcited by 1
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Modelscited by 1
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
- 2022FamilySeer: Towards Optimized Tensor Codes by Exploiting Computation Subgraph Similaritycited by 0
- 2022SONAR: Joint Architecture and System Optimization Searchcited by 0
- 2022ALT: Boosting Deep Learning Performance by Breaking the Wall between Graph and Operator Level Optimizationscited by 0
- 2022AGO: Boosting Mobile AI Inference Performance by Removing Constraints on Graph Optimizationcited by 0
- 2023ML-driven Hardware Cost Model for MLIRcited by 0
- 2023Performance Embeddings: A Similarity-based Approach to Automatic Performance Optimizationcited by 0
- 2024PolyTOPS: Reconfigurable and Flexible Polyhedral Schedulercited by 0
- 2025Data-efficient Performance Modeling via Pre-trainingcited by 0
- 2025COGNATE: Acceleration of Sparse Tensor Programs on Emerging Hardware using Transfer Learningcited by 0
- 2025A Deep Learning Model for Predicting Transformation Legalitycited by 0
- 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learningcited by 0
- 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learning14 Apr 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Models12 Dec 2025
- 2025A Deep Learning Model for Predicting Transformation Legality8 Nov 2025
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization1 Nov 2025
- 2025LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Compiler Optimization11 Oct 2025
- 2025COGNATE: Acceleration of Sparse Tensor Programs on Emerging Hardware using Transfer Learning31 May 2025
- 2025Data-efficient Performance Modeling via Pre-training24 Jan 2025
- 2024LayerDAG: A Layerwise Autoregressive Diffusion Model for Directed Acyclic Graph Generation4 Nov 2024
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness4 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024Combining Neural Architecture Search and Automatic Code Optimization: A Survey7 Aug 2024
21 more
- 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilers18 Mar 2024
- 2024PyGim: An Efficient Graph Neural Network Library for Real Processing-In-Memory Architectures26 Feb 2024
- 2024Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuning4 Feb 2024
- 2024PolyTOPS: Reconfigurable and Flexible Polyhedral Scheduler12 Jan 2024
- 2023CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor Programs16 Nov 2023
- 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++26 Sep 2023
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphs25 Aug 2023
- 2023Performance Embeddings: A Similarity-based Approach to Automatic Performance Optimization14 Mar 2023
- 2023ML-driven Hardware Cost Model for MLIR14 Feb 2023
- 2023COMET: Neural Cost Model Explanation Framework14 Feb 2023
- 2022AGO: Boosting Mobile AI Inference Performance by Removing Constraints on Graph Optimization2 Dec 2022
- 2022TLP: A Deep Learning-based Cost Model for Tensor Program Tuning7 Nov 2022
- 2022ALT: Boosting Deep Learning Performance by Breaking the Wall between Graph and Operator Level Optimizations22 Oct 2022
- 2022Application Performance Modeling via Tensor Completion18 Oct 2022
- 2022SONAR: Joint Architecture and System Optimization Search25 Aug 2022
- 2022Tensor Program Optimization with Probabilistic Programs26 May 2022
- 2022Moses: Efficient Exploitation of Cross-device Transferable Features for Tensor Program Optimization15 Jan 2022
- 2022Transfer-Tuning: Reusing Auto-Schedules for Efficient Tensor Program Code Generation14 Jan 2022
- 2022FamilySeer: Towards Optimized Tensor Codes by Exploiting Computation Subgraph Similarity1 Jan 2022
- 2021Using Graph Neural Networks to model the performance of Deep Neural Networks27 Aug 2021
- 2021A Reinforcement Learning Environment for Polyhedral Optimizations28 Apr 2021
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
- 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 15
- 2022TLP: A Deep Learning-based Cost Model for Tensor Program Tuningcited by 14
- 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilerscited by 7
- 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
- 2022Transfer-Tuning: Reusing Auto-Schedules for Efficient Tensor Program Code Generationcited by 5
- 2022Moses: Efficient Exploitation of Cross-device Transferable Features for Tensor Program Optimizationcited by 3
- 2022Application Performance Modeling via Tensor Completioncited by 3
- 2023CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor Programscited by 3
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2021Using Graph Neural Networks to model the performance of Deep Neural Networkscited by 2
12 most cited of 30 All 30 (JSON)
- 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learning14 Apr 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2025A Deep Learning Model for Predicting Transformation Legality8 Nov 2025
- 2025LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Compiler Optimization11 Oct 2025
- 2025COGNATE: Acceleration of Sparse Tensor Programs on Emerging Hardware using Transfer Learning31 May 2025
- 2025Data-efficient Performance Modeling via Pre-training24 Jan 2025
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness4 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024Combining Neural Architecture Search and Automatic Code Optimization: A Survey7 Aug 2024
- 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilers18 Mar 2024
- 2024PyGim: An Efficient Graph Neural Network Library for Real Processing-In-Memory Architectures26 Feb 2024
- 2024Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuning4 Feb 2024
12 newest of 30 All 30 (JSON)