arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08467cs.LG
收藏

CUDAHercules:用于LLM的硬件感知专家级CUDA优化基准测试

CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMs

University of Minnesota(明尼苏达大学);Northeastern University(东北大学)

Shiyang Li, Zijian Zhang, Guangyan Sun, Yuebo Luo, Winson Chen, Yanzhi Wang, Mingyi Hong, Caiwen Ding

AI总结:

CUDAHercules基准测试评估生成CUDA代码与人类专家级优化的差距,揭示自动化CUDA编程在硬件感知和优化策略上的不足。

摘要:

大型语言模型在自动化CUDA编程中展现出潜力,但即使最强的编码模型(如Claude-Opus-4.6)仍难以达到专家级、架构感知的优化水平。我们引入CUDAHercules基准测试,评估生成的CUDA代码与端到端的人类专家SOTA系统之间的差距。该基准测试涵盖Ampere、Hopper和Blackwell GPU上的单个内核、模块级运算符、完整应用及未解决的挑战任务,通过领域特定的语义验证器进行端到端任务筛选。评估Claude-Opus-4.6和GPT-5.4等模型显示,可运行的CUDA代码与专家级CUDA工程之间存在显著差距:模型常能编译并通过测试,但很少能恢复出匹配专家性能所需的优化策略。应用语义进一步降低了成功率,而迭代或工具增强的反馈可以提高正确性,但会逐渐偏向于缓慢的回退实现。这些结果表明,自动化CUDA编程仍远未完全解决,需要更强的硬件推理能力、更好的工具使用以及将代码理解与硬件架构基础智能联系起来的训练目标。

英文摘要:

Large language models show promise for automated CUDA programming, however even the strongest coding models (e.g., Claude-Opus-4.6) may still fall short of expert-level, architecture-aware optimization. We introduce CUDAHercules, a benchmark that evaluates generated CUDA against end-to-end human-expert SOTA systems. It spans single kernels, module-level operators, full applications, and unsolved challenge tasks across Ampere, Hopper, and Blackwell GPUs, with end-to-end tasks gated by domain-specific semantic validators. Evaluating models such as Claude-Opus-4.6 and GPT-5.4 shows a large gap between runnable CUDA and expert CUDA engineering: models often compile and pass tests, but rarely recover the optimization strategies needed to match expert performance. Application semantics further reduce success, and iterative or tool-augmented feedback can improve correctness while drifting toward slow fallback implementations. These results show that automated CUDA programming remains far from fully solved and requires stronger hardware reasoning, better tool use, and training objectives that connect code understanding to hardware architecture-grounded intelligence.

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

↑