Autocomp: A Powerful and Portable Code Optimizer for Tensor Accelerators
Not on the map. Why?
Abstract (arXiv)
Hardware accelerators, especially those designed for tensor processing, have become ubiquitous in today's computing landscape. However, even with significant efforts in building compilers, programming these tensor accelerators remains challenging, leaving much of their potential underutilized. Recently, large language models (LLMs), trained on large amounts of code, have shown significant promise in code generation and optimization tasks, but generating low-resource languages, such as specialized tensor accelerator code still poses a significant challenge. We tackle this challenge with Autocomp, an approach that empowers accelerator programmers to leverage domain knowledge and hardware feedback to optimize code via an automated LLM-driven search. We accomplish this by: 1) formulating each optimization pass as a structured two-phase prompt, divided into planning and code generation phases, 2) inserting domain knowledge during planning via a concise and adaptable optimization menu, and 3) integrating correctness and performance metrics from hardware as feedback at each search iteration. Across three distinct hardware platforms, we demonstrate that Autocomp-optimized code runs 5.6x faster than the vendor-provided library (Gemmini), outperforms expert-level hand-tuned code by 1.9x (AWS Trainium), and achieves 3.8x higher performance than a machine learning-based cost model for GPUs (NVIDIA L40S). Additionally, we demonstrate that optimization schedules generated from Autocomp can be reused across similar tensor operations, improving speedups by up to 24% under a fixed sample budget.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 21 of its 64 references that are in the map. First posted on arXiv 24 May 2025.
Builds on
21 of 64 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
- 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2023Learning Performance-Improving Code Editscited by 106
- 2019Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integrationcited by 63
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
9 more
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 24
- 2021CoSA: Scheduling by Constrained Optimization for Spatial Acceleratorscited by 22
- 2021A Full-Stack Search Technique for Domain Optimized Deep Learning Acceleratorscited by 19
- 2025SymRTLO: Enhancing RTL Code Optimization with LLMs and Neuron-Inspired Symbolic Reasoningcited by 16
- 2024Verified Code Transpilation with LLMscited by 15
- 2023TinyMPC: Model-Predictive Control on Resource-Constrained Microcontrollerscited by 10
- 2024LLM-Aided Compilation for Tensor Acceleratorscited by 8
Built on by
Citing papers per year: 2025: 2; 2026: 11.
13 papers.
Sort:
By area:
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 54
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidancecited by 5
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 5
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 3
- 2025hdl2v: A Code Translation Dataset for Enhanced LLM Verilog Generationcited by 2
- 2026From Human Guidance to Autonomy: Agent Skill System for End-to-End LLM Deployment on Spatial NPUscited by 2
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimizationcited by 0
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTXcited by 0
- 2026FlashVector: Agent for Hierarchical Model Serving Stack Optimizationcited by 0
- 2026The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programscited by 0
1 more
- 2026SparseCraft: Agentic Hardware-Software Co-Optimization for Sparse Computing4 Oct 2026
- 2026The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programs17 Sep 2026
- 2026FlashVector: Agent for Hierarchical Model Serving Stack Optimization15 Sep 2026
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTX18 Aug 2026
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimization17 Aug 2026
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution12 Aug 2026
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026From Human Guidance to Autonomy: Agent Skill System for End-to-End LLM Deployment on Spatial NPUs27 May 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance30 Mar 2026
- 2025Barbarians at the Gate: How AI is Upending Systems Research7 Oct 2025
1 more
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidancecited by 5
- 2026From Human Guidance to Autonomy: Agent Skill System for End-to-End LLM Deployment on Spatial NPUscited by 2
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
- 2026SparseCraft: Agentic Hardware-Software Co-Optimization for Sparse Computingcited by 0
- 2026SparseCraft: Agentic Hardware-Software Co-Optimization for Sparse Computing4 Oct 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026From Human Guidance to Autonomy: Agent Skill System for End-to-End LLM Deployment on Spatial NPUs27 May 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance30 Mar 2026
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 54
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 5
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 3
- 2025hdl2v: A Code Translation Dataset for Enhanced LLM Verilog Generationcited by 2
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimizationcited by 0
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTXcited by 0
- 2026FlashVector: Agent for Hierarchical Model Serving Stack Optimizationcited by 0
- 2026The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programscited by 0
- 2026The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programs17 Sep 2026
- 2026FlashVector: Agent for Hierarchical Model Serving Stack Optimization15 Sep 2026
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTX18 Aug 2026
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimization17 Aug 2026
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution12 Aug 2026
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2025Barbarians at the Gate: How AI is Upending Systems Research7 Oct 2025
- 2025hdl2v: A Code Translation Dataset for Enhanced LLM Verilog Generation5 Jun 2025