mlsanityData to 14 Oct 2026

Autocomp: A Powerful and Portable Code Optimizer for Tensor Accelerators

arXiv 2505.18574 ↗First posted 24 May 2025cs.PL cs.AI cs.ARcited by 13

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  5. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
  6. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
  7. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
  8. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  9. 2023Learning Performance-Improving Code Editscited by 106
  10. 2019Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integrationcited by 63
  11. 2023Large Language Models for Compiler Optimizationcited by 52
  12. 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
9 more
  1. 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
  2. 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
  3. 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 24
  4. 2021CoSA: Scheduling by Constrained Optimization for Spatial Acceleratorscited by 22
  5. 2021A Full-Stack Search Technique for Domain Optimized Deep Learning Acceleratorscited by 19
  6. 2025SymRTLO: Enhancing RTL Code Optimization with LLMs and Neuron-Inspired Symbolic Reasoningcited by 16
  7. 2024Verified Code Transpilation with LLMscited by 15
  8. 2023TinyMPC: Model-Predictive Control on Resource-Constrained Microcontrollerscited by 10
  9. 2024LLM-Aided Compilation for Tensor Acceleratorscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 11.

13 papers.

Sort:

By area: