AgentKernelArena: Benchmarking Performance and Generalization of AI Coding Agents on GPU Kernels Optimization
Sharareh Younesian, Wenwen Ouyang, sina rafati, Mehdi Rezagholizadeh, Sharon Zhou, Ji Liu, Yue Liu, Yuchen Yang, Hao Li, Ziqiong Liu, Dong Li, Vikram Appia, Zhenyu Gu, Emad Barsoum
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › GPU Kernel Optimization and Benchmarking · Type: benchmark or dataset · Keywords: GPU kernel optimization benchmark, AI coding agents, agentic code generation, performance evaluation, generalization testing, Triton optimization
Areas: Code & Coding Agents › Code Generation and Optimization › GPU Kernel Optimization; AI Agents › Agentic Decision Making › Agentic Optimization and Evaluation; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Code and Hardware Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › LLM Code Optimization
Summary
AgentKernelArena is an open-source benchmark that evaluates AI coding agents on GPU kernel optimization across 196 tasks, measuring both performance and generalization to unseen input configurations.
Explained to a 5-year-old
We made a big test for computer programs that help write fast code for graphics cards. These programs try many ways to make the code run faster. The test includes many small puzzles about changing code. We checked if the programs could work on new kinds of problems they had never seen before. The results show most programs work well, but some have trouble when the problem changes shape.
Explained to a 5-year-old, longer
We created a big collection of little coding puzzles that test how well computer helpers can make GPU code faster. GPUs are the parts of computers that do lots of math quickly, like drawing games. The puzzles involve changing code from one form to another, like turning PyTorch code into HIP code. The helpers are allowed to read the code, run a checker, and try different changes until the code works and runs fast. We also made a special test to see if the helpers can handle new sizes of problems they have never seen before. The results show that most helpers can make the code faster and still work correctly, but some helpers have trouble when the problem size changes. This helps us understand where helpers need improvement and how to make them more flexible. The test is open for others to use and add more puzzles. It aims to make AI coding tools more reliable for real-world programming tasks.
For a technical reader
AgentKernelArena provides a modular benchmark that measures AI coding agents on GPU kernel optimization across 196 tasks, including HIP-to-HIP, Triton-to-Triton, and PyTorch-to-HIP transformations. It evaluates full agent workflows in isolated environments, enforcing compilation correctness, performance gains, and an unseen-configuration generalization protocol. Empirical results show near-perfect compilation and high correctness for production agents, with speedups up to 6.89× on PyTorch-to-HIP, 6.69× on HIP-to-HIP, and 2.13× on Triton-to-Triton tasks, while highlighting limited generalization for PyTorch-to-HIP due to shape-specific assumptions. The benchmark is extensible and aims to standardize rigorous evaluation of agentic code generation for GPU optimization.
Problem
Existing GPU kernel benchmarks assess only single LLM calls and lack comprehensive testing of full agent workflows and generalization to unseen configurations, limiting the evaluation of AI coding agents' optimization capabilities.
Method
The approach creates a benchmark with 196 tasks covering HIP-to-HIP, Triton-to-Triton, and PyTorch-to-HIP optimizations, and evaluates complete agent workflows in isolated workspaces with compilation, correctness, and performance checks, plus an unseen-configuration generalization protocol.
Results
Production agents achieved near-perfect compilation and high correctness, delivering speedups up to 6.89× on PyTorch-to-HIP, 6.69× on HIP-to-HIP, and 2.13× on Triton-to-Triton tasks; unseen-configuration tests showed good transfer for HIP-to-HIP and Triton-to-Triton but notable correctness drops for PyTorch-to-HIP.
Contributions
A comprehensive benchmark with 196 tasks and an unseen-configuration evaluation protocol for assessing AI coding agents on GPU kernel optimization, along with empirical results across multiple production agents.
Limitations and assumptions
The benchmark primarily evaluates production agents and may not cover all agent types; PyTorch-to-HIP optimizations show limited generalization due to shape-specific assumptions.
Practical relevance
It provides a standardized, extensible platform for evaluating and improving AI coding agents that optimize GPU kernels, aiding the development of more capable and generalizable deep learning systems.
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