arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.16819cs.CLcs.AIcs.LG
收藏

AgentKernelArena: GPU核优化代理的通用化意识基准测试

AgentKernelArena: Generalization-Aware Benchmarking of GPU Kernel Optimization Agents

AMD

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

AI总结:

本文提出AgentKernelArena,一个用于评估GPU核优化代理的开源基准,通过隔离工作区和统一评分机制,测试代理在不同任务和硬件目标上的性能和通用化能力,发现大多数任务在正确性和编译效率上表现优异,但在PyTorch到HIP的转换任务中存在显著的正确性下降。

摘要:

GPU核优化对于高效深度学习系统日益关键,但编写高性能核仍然需要大量的低级专业知识。最近的AI编码代理可以迭代阅读代码、调用编译器和性能分析器,并优化实现,但现有的核基准测试仅评估单个LLM调用而非完整的代理工作流程,且未包含核到核的优化和未见过的配置泛化测试。我们提出了AgentKernelArena,一个开源的基准测试,用于衡量AI编码代理在GPU核优化上的能力。该基准测试包含196个任务,涵盖HIP到HIP的优化、Triton到Triton的优化以及PyTorch到HIP的转换,并在隔离的工作区中使用门控编译、正确性和性能检查,集中评分和一个未见过的配置泛化协议,测试优化是否转移到代理从未见过的输入配置。在包括Cursor Agent、Claude Code和Codex Agent在内的生产代理中,我们发现大多数任务在正确性和编译效率上表现优异,最强配置在PyTorch到HIP任务中平均加速达6.89倍,在HIP到HIP任务中达6.69倍,在Triton到Triton任务中达2.13倍。我们的未见过的配置评估显示,HIP到HIP和Triton到Triton的优化大多能转移到未见过的输入形状,而PyTorch到HIP的转换则表现出显著的正确性下降,表明生成核的代理经常硬编码形状特定的假设。AgentKernelArena被设计为一个模块化、可扩展的框架,用于严格评估跨代理、任务和硬件目标的代理GPU核优化。

英文摘要:

GPU kernel optimization is increasingly critical for efficient deep learning systems, but writing high-performance kernels still requires substantial low-level expertise. Recent AI coding agents can iteratively read code, invoke compilers and profilers, and refine implementations, yet existing kernel benchmarks evaluate single LLM calls rather than full agent workflows, and none include both kernel-to-kernel optimization and unseen-configuration generalization testing. We present AgentKernelArena, an open-source benchmark for measuring AI coding agents on GPU kernel optimization. The benchmark contains 196 tasks spanning HIP-to-HIP optimization, Triton-to-Triton optimization, and PyTorch-to-HIP translation, and evaluates complete agent workflows in isolated workspaces using gated compilation, correctness, and performance checks, centralized scoring and an unseen-configuration generalization protocol that tests whether optimizations transfer to input configurations the agent never observed. Across production agents including Cursor Agent, Claude Code, and Codex Agent, we find near-perfect compilation and high correctness rates on most task categories, with the strongest configurations achieving mean speedups of up to 6.89x on PyTorch-to-HIP, 6.69x on HIP-to-HIP, and 2.13x on Triton-to-Triton tasks. Our unseen-configuration evaluation shows that HIP-to-HIP and Triton-to-Triton optimizations largely transfer to unseen input shapes, while PyTorch-to-HIP exhibits substantial correctness drops, indicating that agents generating kernels from scratch frequently hardcode shape-specific assumptions. AgentKernelArena is designed as a modular, extensible framework for rigorous evaluation of agentic GPU kernel optimization across agents, tasks, and hardware targets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑