NeurIPS 2026QuestionsPapersAreasAboutMarkdown

CUDABeaver: Benchmarking LLM-Based Automated CUDA Debugging

Shiyang Li, Haoyang Chen, Mattia Fazzini, Caiwen Ding

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Agents, Evals & Benchmarks › Hardware-Accelerated Code and System Benchmarking · Type: benchmark or dataset · Keywords: GPU debugging, LLM code repair, benchmark, evaluation metric, performance preservation

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

CUDABEAVER creates a benchmark of real failing GPU code workspaces and a protocol-conditional pass@k metric to evaluate whether LLM fixers truly repair bugs without sacrificing performance.

Explained to a 5-year-old

Computers that run games and AI sometimes make mistakes in their code. We made a set of broken code examples that people actually messed up. We ask AI helpers to fix the code, but we also check if the fix makes the program slower. This helps us see if the AI really understands the problem or just makes a safe but slow version.

Explained to a 5-year-old, longer

When we use powerful computers called GPUs, the programs that run on them can have bugs that are hard to find. These bugs happen because the computer hardware, the way the code is written, and the memory work together in tricky ways. To test if AI can fix these bugs, we collected real examples of broken code from people who tried to write GPU programs. Each example includes the broken code, the commands to run it, the error messages, and a place where only one part of the code can be edited. We then ask AI to fix the code and see if it really solves the problem. We also look at whether the fix keeps the program fast or just makes it slower but still passes the tests. This way we can tell if the AI truly understands the bug or just makes a safe, slower version that avoids the problem. We tested many AI models on many examples and found that when we allow a lot of slowdown, the AI looks much better, but even a small requirement for speed can dramatically lower its success rate.

For a technical reader

The paper introduces a benchmark of real failing GPU code workspaces, each with build/test commands, error evidence, and a single editable file. It proposes a pass@k metric that conditions on the fixer, corpus, and protocol axes to separate true repairs from performance-degraded replacements. Evaluation across 213 tasks and seven frontier LLMs shows that protocol-aware assessment reveals large variations in debugging ability, with success dropping up to 40 percentage points when performance constraints are tightened.

Problem

Debugging GPU kernel code is difficult because failures stem from hardware, compiler, memory, and asynchronous execution interactions. Existing LLM-based repair evaluations may accept solutions that pass tests but are much slower, making it unclear if the bug is truly fixed.

Method

The approach builds a collection of real failing GPU code workspaces, each providing broken code, build/test commands, error evidence, and a single editable file. It also introduces a protocol-conditional evaluation metric that explicitly accounts for the fixer, corpus, and protocol dimensions.

Results

Using the proposed protocol-conditional metric, the approach shows that high performance-loss tolerance inflates success rates, while stricter performance requirements can reduce measured success by up to 40 percentage points.

Contributions

A collection of real failing GPU code workspaces with detailed error evidence and a single editable file, and a protocol-conditional evaluation metric that separates fixer, corpus, and protocol axes.

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