Ansor: Generating High-Performance Tensor Programs for Deep Learning
Not on the map. Why?
Abstract (arXiv)
High-performance tensor programs are crucial to guarantee efficient execution of deep neural networks. However, obtaining performant tensor programs for different operators on various hardware platforms is notoriously challenging. Currently, deep learning systems rely on vendor-provided kernel libraries or various search strategies to get performant tensor programs. These approaches either require significant engineering effort to develop platform-specific optimization code or fall short of finding high-performance programs due to restricted search space and ineffective exploration strategy. We present Ansor, a tensor program generation framework for deep learning applications. Compared with existing search strategies, Ansor explores many more optimization combinations by sampling programs from a hierarchical representation of the search space. Ansor then fine-tunes the sampled programs with evolutionary search and a learned cost model to identify the best programs. Ansor can find high-performance programs that are outside the search space of existing state-of-the-art approaches. In addition, Ansor utilizes a task scheduler to simultaneously optimize multiple subgraphs in deep neural networks. We show that Ansor improves the execution performance of deep neural networks relative to the state-of-the-art on the Intel CPU, ARM CPU, and NVIDIA GPU by up to 3.8×, 2.6×, and 1.7×, respectively.
Key facts. Cited by 201 papers in the map (data through 14 Oct 2026). First posted on arXiv 11 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 15; 2022: 33; 2023: 28; 2024: 24; 2025: 53; 2026: 48.
201 papers.
Sort:
By area:
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verificationcited by 365
- 2023OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantizationcited by 92
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 80
- 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 79
- 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantizationcited by 51
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 51
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2025TileLang: A Composable Tiled Programming Model for AI Systemscited by 43
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generationcited by 38
38 more
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
- 2022Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programscited by 28
- 2022Flashlight: Enabling Innovation in Tools for Machine Learningcited by 25
- 2023PIT: Optimization of Dynamic Sparse Deep Learning Models via Permutation Invariant Transformationcited by 25
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 25
- 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systemscited by 25
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 24
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 23
- 2025Characterizing Mobile SoC for Accelerating Heterogeneous LLM Inferencecited by 22
- 2021Bolt: Bridging the Gap between Auto-tuners and Hardware-native Performancecited by 18
- 2024LUT Tensor Core: A Software-Hardware Co-Design for LUT-Based Low-Bit LLM Inferencecited by 18
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
- 20211xN Pattern for Pruning Convolutional Neural Networkscited by 16
- 2022Lite Pose: Efficient Architecture Design for 2D Human Pose Estimationcited by 16
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
- 2024Allo: A Programming Model for Composable Accelerator Designcited by 16
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Developmentcited by 16
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 15
- 2022TLP: A Deep Learning-based Cost Model for Tensor Program Tuningcited by 14
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 13
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 13
- 2022Benchmarking of DL Libraries and Models on Mobile Devicescited by 12
- 2023Relax: Composable Abstractions for End-to-End Dynamic Machine Learningcited by 12
- 2026AscendKernelGen: A Systematic Study of LLM-Based Kernel Generation for Neural Processing Unitscited by 12
- 2023Slapo: A Schedule Language for Progressive Optimization of Large Deep Learning Model Trainingcited by 11
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 11
- 2025LMDeploy Accelerates Mixed-Precision LLM Inference with TurboMindcited by 10
- 2021MetaTune: Meta-Learning Based Cost Model for Fast and Efficient Auto-tuning Frameworkscited by 9
- 2021Tensor Processing Primitives: A Programming Abstraction for Efficiency and Portability in Deep Learning & HPC Workloadscited by 9
- 2023Operator Fusion in XLA: Analysis and Evaluationcited by 9
- 2023DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimizationcited by 9
- 2021Neural Architecture Search as Program Transformation Explorationcited by 8
- 2024LLM-Aided Compilation for Tensor Acceleratorscited by 8
- 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
50 most cited of 201 All 201 (JSON)
- 2026InferOpt: Constrained Multi-Objective Search for LLM Inference Configurations3 Oct 2026
- 2026AI as a Compiler: Compiling Triton kernels without the Triton compiler29 Sep 2026
- 2026Hardware-Aware Features for CUTLASS Kernel Selection28 Sep 2026
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines16 Sep 2026
- 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization11 Sep 2026
- 2026MaxKernel: Agentic Kernel Generation for TPUs3 Sep 2026
- 2026PerfReasoning: How Well Do LLMs Reason on Hardware Performance?3 Sep 2026
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization22 Aug 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimization17 Aug 2026
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution12 Aug 2026
38 more
- 2026Nova: An End-to-End MLIR Compiler for Deep Learning15 Jul 2026
- 2026DMuon: Efficient Distributed Muon Training with Near-Adam Overhead25 Jun 2026
- 2026Axon: A Synthesizing Superoptimizer for Tensor Programs24 Jun 2026
- 2026Arbor: Tree Search as a Cognition Layer for Autonomous Agents10 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
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimization28 May 2026
- 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generation28 May 2026
- 2026FlowCompile: An Optimizing Compiler for Structured LLM Workflows13 May 2026
- 2026Ada-MK: Adaptive MegaKernel Optimization via Automated DAG-based Search for LLM Inference12 May 2026
- 2026RaMP: Runtime-Aware Megakernel Polymorphism for Mixture-of-Experts28 Apr 2026
- 2026Feasible-First Exploration for Constrained ML Deployment Optimization in Crash-Prone Hierarchical Search Spaces27 Apr 2026
- 2026Xe-Forge: Multi-Stage LLM-Powered Kernel Optimization for Intel GPU16 Apr 2026
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr 2026
- 2026Prism: Symbolic Superoptimization of Tensor Programs16 Apr 2026
- 2026Nautilus: An Auto-Scheduling Tensor Compiler for Efficient Tiled GPU Kernels16 Apr 2026
- 2026Event Tensor: A Unified Abstraction for Compiling Dynamic Megakernel14 Apr 2026
- 2026TCL: Enabling Fast and Efficient Cross-Hardware Tensor Program Optimization via Continual Learning14 Apr 2026
- 2026Record-Remix-Replay: Hierarchical GPU Kernel Optimization using Evolutionary Search13 Apr 2026
- 2026From LLM to Silicon: RL-Driven ASIC Architecture Exploration for On-Device AI Inference8 Apr 2026
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance30 Mar 2026
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization24 Mar 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Experts7 Mar 2026
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2026CUCo: An Agentic Framework for Compute and Communication Co-design2 Mar 2026
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model22 Feb 2026
- 2026OptiML: An End-to-End Framework for Program Synthesis and CUDA Kernel Optimization12 Feb 2026
- 2026VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination11 Feb 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2026Space Filling Curves is All You Need: Communication-Avoiding Matrix Multiplication Made Simple22 Jan 2026
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization19 Jan 2026
- 2026AscendKernelGen: A Systematic Study of LLM-Based Kernel Generation for Neural Processing Units12 Jan 2026
- 2026T3C: Test-Time Tensor Compression with Consistency Guarantees3 Jan 2026
- 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systems1 Jan 2026
- 2025Renormalization Group Guided Tensor Network Structure Search31 Dec 2025
- 2025nncase: An End-to-End Compiler for Efficient LLM Deployment on Heterogeneous Storage Architectures25 Dec 2025
50 newest of 201 All 201 (JSON)
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 51
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 25
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 23
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Developmentcited by 16
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidancecited by 5
- 2026CUCo: An Agentic Framework for Compute and Communication Co-designcited by 2
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
- 2026MaxKernel: Agentic Kernel Generation for TPUscited by 1
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolutioncited by 0
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 0
- 2026Arbor: Tree Search as a Cognition Layer for Autonomous Agentscited by 0
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimizationcited by 0
12 most cited of 15 All 15 (JSON)
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines16 Sep 2026
- 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization11 Sep 2026
- 2026MaxKernel: Agentic Kernel Generation for TPUs3 Sep 2026
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization22 Aug 2026
- 2026Arbor: Tree Search as a Cognition Layer for Autonomous Agents10 Jun 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr 2026
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance30 Mar 2026
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2026CUCo: An Agentic Framework for Compute and Communication Co-design2 Mar 2026
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov 2025
12 newest of 15 All 15 (JSON)
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verificationcited by 365
- 2025LMDeploy Accelerates Mixed-Precision LLM Inference with TurboMindcited by 10
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
- 2025Sandwich: Joint Configuration Search and Hot-Switching for Efficient CPU LLM Servingcited by 2
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Banditscited by 2
- 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
- 2025LMDeploy Accelerates Mixed-Precision LLM Inference with TurboMind21 Aug 2025
- 2025Sandwich: Joint Configuration Search and Hot-Switching for Efficient CPU LLM Serving19 May 2025
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May 2023
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Acceleration29 Nov 2021
- 2023OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantizationcited by 92
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 80
- 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 79
- 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantizationcited by 51
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2025TileLang: A Composable Tiled Programming Model for AI Systemscited by 43
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generationcited by 38
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
12 most cited of 173 All 173 (JSON)
- 2026AI as a Compiler: Compiling Triton kernels without the Triton compiler29 Sep 2026
- 2026Hardware-Aware Features for CUTLASS Kernel Selection28 Sep 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimization17 Aug 2026
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution12 Aug 2026
- 2026Nova: An End-to-End MLIR Compiler for Deep Learning15 Jul 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
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimization28 May 2026
- 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generation28 May 2026
- 2026FlowCompile: An Optimizing Compiler for Structured LLM Workflows13 May 2026
12 newest of 173 All 173 (JSON)