Learning to Optimize Tensor Programs
Not on the map. Why?
Abstract (arXiv)
We introduce a learning-based framework to optimize tensor programs for deep learning workloads. Efficient implementations of tensor operators, such as matrix multiplication and high dimensional convolution, are key enablers of effective deep learning systems. However, existing systems rely on manually optimized libraries such as cuDNN where only a narrow range of server class GPUs are well-supported. The reliance on hardware-specific operator libraries limits the applicability of high-level graph optimizations and incurs significant engineering costs when deploying to new hardware targets. We use learning to remove this engineering burden. We learn domain-specific statistical cost models to guide the search of tensor operator implementations over billions of possible program variants. We further accelerate the search by effective model transfer across workloads. Experimental results show that our framework delivers performance competitive with state-of-the-art hand-tuned libraries for low-power CPU, mobile GPU, and server-class GPU.
Key facts. Cited by 138 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 May 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 28; 2022: 26; 2023: 23; 2024: 19; 2025: 24; 2026: 18.
138 papers.
Sort:
By area:
- 2024Efficient LLM Scheduling by Learning to Rankcited by 83
- 2021DNNFusion: Accelerating Deep Neural Networks Execution with Advanced Operator Fusioncited by 56
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2024T-MAC: CPU Renaissance via Table Lookup for Low-Bit LLM Deployment on Edgecited by 47
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
- 2024Tiny Machine Learning: Progress and Futurescited by 40
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 39
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2021A Deep Learning Based Cost Model for Automatic Code Optimizationcited by 33
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
38 more
- 2021A Runtime-Based Computational Performance Predictor for Deep Neural Network Trainingcited by 29
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
- 2022Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programscited by 28
- 2022Flashlight: Enabling Innovation in Tools for Machine Learningcited by 25
- 2021NAAS: Neural Accelerator Architecture Searchcited by 24
- 2021Bolt: Bridging the Gap between Auto-tuners and Hardware-native Performancecited by 18
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
- 2024Allo: A Programming Model for Composable Accelerator Designcited 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
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 14
- 2021SECDA: Efficient Hardware/Software Co-Design of FPGA-based DNN Accelerators for Edge Inferencecited by 12
- 2023Incremental Randomized Smoothing Certificationcited by 12
- 2023Relax: Composable Abstractions for End-to-End Dynamic Machine Learningcited by 12
- 2023Slapo: A Schedule Language for Progressive Optimization of Large Deep Learning Model Trainingcited by 11
- 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 11
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
- 2021UNIT: Unifying Tensorized Instruction Compilationcited by 10
- 2021HASCO: Towards Agile HArdware and Software CO-design for Tensor Computationcited by 10
- 2021MetaTune: Meta-Learning Based Cost Model for Fast and Efficient Auto-tuning Frameworkscited by 9
- 2023Learning Large Graph Property Prediction via Graph Segment Trainingcited by 9
- 2024LayerDAG: A Layerwise Autoregressive Diffusion Model for Directed Acyclic Graph Generationcited by 8
- 2022Decompiling x86 Deep Neural Network Executablescited by 7
- 2023oneDNN Graph Compiler: A Hybrid Approach for High-Performance Deep Learning Compilationcited by 7
- 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilerscited by 7
- 2024Optimal Kernel Orchestration for Tensor Programs with Korchcited by 7
- 2021BoGraph: Structured Bayesian Optimization From Logs for Expensive Systems with Many Parameterscited by 6
- 2021Bring Your Own Codegen to Deep Learning Compilercited by 5
- 2022Transfer-Tuning: Reusing Auto-Schedules for Efficient Tensor Program Code Generationcited by 5
- 2025QiMeng-TensorOp: Automatically Generating High-Performance Tensor Operators with Hardware Primitivescited by 5
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2021Customized Monte Carlo Tree Search for LLVM/Polly's Composable Loop Optimization Transformationscited by 4
- 2021AIRCHITECT: Learning Custom Architecture Design and Mapping Spacecited by 4
- 2021Learning to Superoptimize Real-world Programscited by 4
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
- 2022Towards Hardware-Specific Automatic Compression of Neural Networkscited by 4
- 2023Tango: rethinking quantization for graph neural network training on GPUscited by 4
50 most cited of 138 All 138 (JSON)
- 2026Hardware-Aware Features for CUTLASS Kernel Selection28 Sep 2026
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines16 Sep 2026
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization22 Aug 2026
- 2026Tensor Seeks Layout: Formalizing Layout Selection for ML Compilers21 Aug 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026DMuon: Efficient Distributed Muon Training with Near-Adam Overhead25 Jun 2026
- 2026Axon: A Synthesizing Superoptimizer for Tensor Programs24 Jun 2026
- 2026AutoMegaKernel: A Statically-Checked Agent Harness for Self-Retargeting Megakernel Synthesis8 Jun 2026
- 2026AgentCompile: An LLM-Guided Compiler for Direct CUDA Inference4 Jun 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026FlowCompile: An Optimizing Compiler for Structured LLM Workflows13 May 2026
- 2026Prism: Symbolic Superoptimization of Tensor Programs16 Apr 2026
38 more
- 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learning14 Apr 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2026Kareus: Joint Reduction of Dynamic and Static Energy in Large Model Training25 Jan 2026
- 2026ParaCodex: A Profiling-Guided Autonomous Coding Agent for Reliable Parallel Code Generation and Translation7 Jan 2026
- 2025nncase: An End-to-End Compiler for Efficient LLM Deployment on Heterogeneous Storage Architectures25 Dec 2025
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs22 Dec 2025
- 2025XTC, A Research Platform for Optimizing AI Workload Operators18 Dec 2025
- 2025Theoretical Foundations of GPU-Native Compilation for Rapid Code Iteration12 Dec 2025
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits24 Nov 2025
- 2025DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory Architectures19 Nov 2025
- 2025A Deep Learning Model for Predicting Transformation Legality8 Nov 2025
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization1 Nov 2025
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization23 Oct 2025
- 2025LOOPerSet: A Large-Scale Dataset for Data-Driven Polyhedral Compiler Optimization11 Oct 2025
- 2025Ranking Before Serving: Low-Latency LLM Serving via Pairwise Learning-to-Rank25 Sep 2025
- 2025Evolution of Kernels: Automated RISC-V Kernel Optimization with Large Language Models14 Sep 2025
- 2025VoltanaLLM: Energy-Efficient and SLO-Aware Disaggregated LLM Serving via Adaptive Frequency Control and State-Space Routing5 Sep 2025
- 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimization27 Aug 2025
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments8 Aug 2025
- 2025Tensor Program Optimization for the RISC-V Vector Extension Using Probabilistic Programs2 Jul 2025
- 2025QiMeng: Fully Automated Hardware and Software Design for Processor Chip5 Jun 2025
- 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving2 Jun 2025
- 2025COGNATE: Acceleration of Sparse Tensor Programs on Emerging Hardware using Transfer Learning31 May 2025
- 2025Sandwich: Joint Configuration Search and Hot-Switching for Efficient CPU LLM Serving19 May 2025
- 2025JIR-Arena: The First Benchmark Dataset for Just-in-time Information Recommendation19 May 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2025QiMeng-TensorOp: Automatically Generating High-Performance Tensor Operators with Hardware Primitives8 May 2025
- 2025Data-efficient Performance Modeling via Pre-training24 Jan 2025
- 2024MAS-Attention: Memory-Aware Stream Processing for Attention Acceleration on Resource-Constrained Edge Devices20 Nov 2024
- 2024LayerDAG: A Layerwise Autoregressive Diffusion Model for Directed Acyclic Graph Generation4 Nov 2024
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments28 Oct 2024
- 2024A Benchmark on Directed Graph Representation Learning in Hardware Designs9 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024Obsidian: Cooperative State-Space Exploration for Performant Inference on Secure ML Accelerators4 Sep 2024
- 2024Efficient LLM Scheduling by Learning to Rank28 Aug 2024
- 2024Efficient Edge AI: Deploying Convolutional Neural Networks on FPGA with the Gemmini Accelerator14 Aug 2024
50 newest of 138 All 138 (JSON)
- 2024Efficient LLM Scheduling by Learning to Rankcited by 83
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environmentscited by 2
- 2025Sandwich: Joint Configuration Search and Hot-Switching for Efficient CPU LLM Servingcited by 2
- 2025VoltanaLLM: Energy-Efficient and SLO-Aware Disaggregated LLM Serving via Adaptive Frequency Control and State-Space Routingcited by 2
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Banditscited by 2
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environmentscited by 0
- 2026AgentCompile: An LLM-Guided Compiler for Direct CUDA Inferencecited by 0
- 2026AgentCompile: An LLM-Guided Compiler for Direct CUDA Inference4 Jun 2026
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits24 Nov 2025
- 2025VoltanaLLM: Energy-Efficient and SLO-Aware Disaggregated LLM Serving via Adaptive Frequency Control and State-Space Routing5 Sep 2025
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments8 Aug 2025
- 2025Sandwich: Joint Configuration Search and Hot-Switching for Efficient CPU LLM Serving19 May 2025
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments28 Oct 2024
- 2024Efficient LLM Scheduling by Learning to Rank28 Aug 2024
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Acceleration29 Nov 2021
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimizationcited by 4
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolutioncited by 0
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimizationcited by 0
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Enginescited by 0
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines16 Sep 2026
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization22 Aug 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization1 Nov 2025
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization23 Oct 2025
- 2021DNNFusion: Accelerating Deep Neural Networks Execution with Advanced Operator Fusioncited by 56
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2024T-MAC: CPU Renaissance via Table Lookup for Low-Bit LLM Deployment on Edgecited by 47
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
- 2024Tiny Machine Learning: Progress and Futurescited by 40
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 39
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2021A Deep Learning Based Cost Model for Automatic Code Optimizationcited by 33
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2021A Runtime-Based Computational Performance Predictor for Deep Neural Network Trainingcited by 29
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
12 most cited of 121 All 121 (JSON)
- 2026Hardware-Aware Features for CUTLASS Kernel Selection28 Sep 2026
- 2026Tensor Seeks Layout: Formalizing Layout Selection for ML Compilers21 Aug 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026DMuon: Efficient Distributed Muon Training with Near-Adam Overhead25 Jun 2026
- 2026Axon: A Synthesizing Superoptimizer for Tensor Programs24 Jun 2026
- 2026AutoMegaKernel: A Statically-Checked Agent Harness for Self-Retargeting Megakernel Synthesis8 Jun 2026
- 2026FlowCompile: An Optimizing Compiler for Structured LLM Workflows13 May 2026
- 2026Prism: Symbolic Superoptimization of Tensor Programs16 Apr 2026
- 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learning14 Apr 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2026Kareus: Joint Reduction of Dynamic and Static Energy in Large Model Training25 Jan 2026
12 newest of 121 All 121 (JSON)