AccelEval: A Whole-Program Benchmark for LLM-Generated CPU-to-GPU Code Acceleration
Chendong Song, Tianci Bu, Meixuan Wang, Zijie Zhou
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › GPU Kernel Optimization and Benchmarking · Type: benchmark or dataset · Keywords: LLM code generation, GPU acceleration benchmark, CPU-to-GPU optimization, performance evaluation, CUDA patterns
Areas: Code & Coding Agents › Code Generation and Optimization › LLM Code Benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Code and Hardware Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › LLM Code Optimization
Summary
AccelEval is a whole-program benchmark that evaluates LLM-generated CPU-to-CUDA acceleration across diverse tasks and scales, providing correctness oracles, speedup measurements, and a peak-attainment metric.
Explained to a 5-year-old
We made a big test that checks if computers can turn simple instructions into fast GPU code. The test has many different tasks, like games and science problems. It checks if the code works and how fast it runs. We tried many smart computer programs to see how well they do. We also learned which tricks help the programs run faster.
Explained to a 5-year-old, longer
Imagine you have a recipe that tells a computer how to do a boring job on a regular computer (CPU). You want the computer to do the same job super fast on a special computer (GPU). Making that happen is tricky because you need the code to be correct and fast. The researchers created a big collection of many different jobs taken from real programs, like video games and scientific calculations. Each job has a clear answer that tells you if the code is right, and they also measure how much faster the GPU version runs compared to the CPU version. They then asked several smart AI programs to try to solve these jobs and saw how well each one performed. Some AI programs could solve most of the jobs and make them run much faster, while others struggled. The researchers also looked at the best solutions and found common tricks that help speed things up, and they showed that teaching those tricks to the AI programs makes them even faster. This whole setup helps people understand how well AI can help make computer programs run quickly on GPUs.
For a technical reader
The paper presents a benchmark that evaluates LLMs on end-to-end CPU-to-GPU code generation, measuring correctness, speedup, and how close the generated code gets to optimal performance. It reports that the best models achieve 38/42 correct tasks with 71.2× speedup and reach 0.75× of human-written CUDA performance. The authors also extract acceleration patterns from successful solutions and demonstrate that feeding these patterns back to models improves speedup by 1.78× compared to generic guidance.
Problem
Accelerating existing CPU programs to run efficiently on GPUs using LLM-generated code is challenging because current benchmarks only test isolated operators and lack end-to-end correctness and performance metrics.
Method
The approach creates a benchmark containing multiple tasks derived from public repositories and HPC suites, each with deterministic correctness oracles and multiple input scales, and evaluates LLMs on end-to-end speedup and a peak-attainment metric.
Results
The strongest LLM passes 38 out of 42 tasks with a 71.2× geometric-mean speedup over CPU, and on 11 human-written CUDA tasks it reaches 0.75× of human performance. Additionally, using pattern guidance from the benchmark improves speedup by 1.78× versus 1.18× for generic tips.
Contributions
The paper introduces a whole-program benchmark with deterministic correctness oracles, multiple input scales, and a peak-attainment metric, and it analyzes LLM behavior across diverse tasks and GPU architectures. It also identifies 43 acceleration patterns and shows that pattern guidance can improve LLM acceleration performance.
Practical relevance
It provides a reproducible platform for diagnosing and improving LLM-generated GPU code, helping practitioners evaluate and enhance acceleration solutions.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction