paper-with-me

홈 › Papers

Autocomp: LLM-Driven Code Optimization for Tensor Accelerators

2025-05-24 · Charles Hong, Sahil Bhatia, Alvin Cheung, Yakun Sophia Shao

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 like 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 categories of representative workloads and two different accelerators, we demonstrate that Autocomp-optimized code runs 5.6x (GEMM) and 2.7x (convolution) faster than the vendor-provided library, and outperforms expert-level hand-tuned code by 1.4x (GEMM), 1.1x (convolution), and 1.3x (fine-grained linear algebra). 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.

📄 PDF Abstract BibTeX arXiv:2505.18574

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

SparseMap: A Sparse Tensor Accelerator Framework Based on Evolution Strategy

2025-08-18 · Boran Zhao, Haiming Zhai, Zihang Yuan, Hetian Liu 외 arxiv

The growing demand for sparse tensor algebra (SpTA) in machine learning and big data has driven the development of various sparse tensor accelerators. However, most existing manually designed accelerators are limited to …

Reinforcement Learning

Agile Autotuning of a Transprecision Tensor Accelerator Overlay for TVM Compiler Stack

2020-04-20 · Dionysios Diamantopoulos, Burkhard Ringlein, Mitra Purandare, Gagandeep Singh 외

Specialized accelerators for tensor-operations, such as blocked-matrix operations and multi-dimensional convolutions, have been emerged as powerful architecture choices for high-performance Deep-Learning computing. The r…

PowerFusion: A Tensor Compiler with Explicit Data Movement Description and Instruction-level Graph IR

2023-07-11 · Zixuan Ma, Haojie Wang, Jingze Xing, Liyan Zheng 외

Deep neural networks (DNNs) are of critical use in different domains. To accelerate DNN computation, tensor compilers are proposed to generate efficient code on different domain-specific accelerators. Existing tensor com…

GPU

Piper: Multidimensional Planner for DNN Parallelization

2021-12-01 · NeurIPS 2021 12 · Jakub M. Tarnawski, Deepak Narayanan, Amar Phanishayee

The rapid increase in sizes of state-of-the-art DNN models, and consequently the increase in the compute and memory requirements of model training, has led to the development of many execution schemes such as data parall…

You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completion

2020-07-05 · Roei Schuster, Congzheng Song, Eran Tromer, Vitaly Shmatikov

Code autocompletion is an integral feature of modern code editors and IDEs. The latest generation of autocompleters uses neural language models, trained on public open-source code repositories, to suggest likely (not jus…

Code CompletionData PoisoningModel Poisoning