mlsanityData to 7 Oct 2026

A Deep Learning Based Cost Model for Automatic Code Optimization

arXiv 2104.04955 ↗First posted 11 Apr 2021cs.PL cs.DC cs.LGcited by 33

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

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  2. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  3. 2017Decoupled Weight Decay Regularizationcited by 1,722
  4. 2017Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Ratescited by 196
  5. 2018Learning to Optimize Tensor Programscited by 138
  6. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
  7. 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
  8. 2018Ithemal: Accurate, Portable and Fast Basic Block Throughput Estimation using Deep Neural Networkscited by 43
  9. 2020TIRAMISU: A Polyhedral Compiler for Dense and Sparse Deep Learningcited by 7
  10. 2013PENCIL: Towards a Platform-Neutral Compute Intermediate Language for DSLscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 9; 2023: 6; 2024: 8; 2025: 6; 2026: 2.

33 papers.

Sort:

By area:

  1. 2022Tensor Program Optimization with Probabilistic Programscited by 30
  2. 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
  3. 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 15
  4. 2022TLP: A Deep Learning-based Cost Model for Tensor Program Tuningcited by 14
  5. 2024LayerDAG: A Layerwise Autoregressive Diffusion Model for Directed Acyclic Graph Generationcited by 8
  6. 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilerscited by 7
  7. 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
  8. 2022Transfer-Tuning: Reusing Auto-Schedules for Efficient Tensor Program Code Generationcited by 5
  9. 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimizationcited by 4
  10. 2022Moses: Efficient Exploitation of Cross-device Transferable Features for Tensor Program Optimizationcited by 3
  11. 2022Application Performance Modeling via Tensor Completioncited by 3
  12. 2023CDMPP: A Device-Model Agnostic Framework for Latency Prediction of Tensor Programscited by 3
21 more
  1. 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
  2. 2021Using Graph Neural Networks to model the performance of Deep Neural Networkscited by 2
  3. 2024Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuningcited by 2
  4. 2024PyGim: An Efficient Graph Neural Network Library for Real Processing-In-Memory Architecturescited by 2
  5. 2023COMET: Neural Cost Model Explanation Frameworkcited by 1
  6. 2024Combining Neural Architecture Search and Automatic Code Optimization: A Surveycited by 1
  7. 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctnesscited by 1
  8. 2025LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Compiler Optimizationcited by 1
  9. 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Modelscited by 1
  10. 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
  11. 2022FamilySeer: Towards Optimized Tensor Codes by Exploiting Computation Subgraph Similaritycited by 0
  12. 2022SONAR: Joint Architecture and System Optimization Searchcited by 0
  13. 2022ALT: Boosting Deep Learning Performance by Breaking the Wall between Graph and Operator Level Optimizationscited by 0
  14. 2022AGO: Boosting Mobile AI Inference Performance by Removing Constraints on Graph Optimizationcited by 0
  15. 2023ML-driven Hardware Cost Model for MLIRcited by 0
  16. 2023Performance Embeddings: A Similarity-based Approach to Automatic Performance Optimizationcited by 0
  17. 2024PolyTOPS: Reconfigurable and Flexible Polyhedral Schedulercited by 0
  18. 2025Data-efficient Performance Modeling via Pre-trainingcited by 0
  19. 2025COGNATE: Acceleration of Sparse Tensor Programs on Emerging Hardware using Transfer Learningcited by 0
  20. 2025A Deep Learning Model for Predicting Transformation Legalitycited by 0
  21. 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learningcited by 0