Papers

Omokage 框架评测 28 个编程智能体如何优化 GPU HPC 内核

Omokage: Understanding How Agents Develop and Optimize HPC Kernels on GPUs

Why we picked it

这篇论文把 28 个编程模型拉到 B300 GPU 上做 CUDA 内核移植,还拆解了它们的优化行为,不只给排名。结论很有反直觉:多数模型不用 profiler,用了也未必变快。做性能工程或评估 coding agent 的人应该看看。

论文 Omokage 评估通用编程智能体在 GPU 高性能计算(HPC)内核上的优化过程,而非只看端到端加速比。测试在 NVIDIA B300 GPU 上进行,涵盖 Claude Code、Antigravity、Codex、OpenCode 四个框架中的 28 个模型,将 30 个 PolyBench 内核从串行 C 移植到 CUDA,且不设预算限制。

Body

框架采用沙箱隔离执行、隐藏标准答案,用确定性验证配合 LLM 辅助的 bug 复现,并以研究者验证的 roofline 上界衡量成绩。结果 Gemini 4 Neon 达到上界的 2.0 倍几何均值,Opus 5.5 达到 1.6 倍,而最强的开源权重模型 Kimi K3 只有 0.32 倍。旗舰模型通过未经提示的降精度加精度恢复、时间分块和换算法等手段突破 roofline 上界,三个旗舰模型各自最多改动五个内核的算法。

轨迹分析显示,定量性能建模和假设-实现-验证循环在四个大型 Claude 模型和 Gemini 4 Neon 中稳定同时出现;但与传统性能工程流程不同,大多数模型即使开启 profiler 也极少使用,用了之后内核变快和变慢的频率大致相当。Neon 擅长算法级优化,Opus 5.5 更强于针对硬件特性的内核优化。

Original · arXiv cs.LG

Omokage: Understanding How Agents Develop and Optimize HPC Kernels on GPUs

Coding agents are becoming a part of performance engineering. However, existing evaluations mostly report end-to-end speedups under fixed budgets rather than examining how agents optimize code. In this paper, we evaluate general coding agents on GPU high-performance computing (HPC) kernels. We build Omokage, a sandbox-based inspection framework: it isolates execution, hides ground truth, pairs deterministic verification with LLM-assisted bug reproduction, and analyzes the code and execution traces an agent leaves behind. On NVIDIA B300 GPUs, 28 models across Claude Code, Antigravity, Codex, and OpenCode port 30 PolyBench kernels from serial C to CUDA without a budget limit. We measure attainment against researcher-validated roofline bounds and verify floating-point solutions against a higher-precision reference and integer solutions exactly. Gemini 4 Neon reaches a geometric mean of $2.0\times$ of the bound and Opus 5.5 reaches $1.6\times$, while the best open-weight model, Kimi K3, reaches only $0.32\times$. Frontier models exceed the bound through unprompted reduced precision with accuracy recovery, temporal blocking, and algorithm changes. The three flagship models change the algorithm on up to five kernels each. At the time of our tests, Neon is stronger at algorithmic optimizations and Opus 5.5 at kernel optimizations for hardware features. Trace analysis shows that quantitative performance modeling and a hypothesize-implement-verify loop appear consistently together in the four large Claude models and Gemini 4 Neon. However, unlike traditional performance-engineering workflows, most models rarely use a profiler even when enabled, and using one makes kernels faster about as often as slower. Beyond ranking models, our framework and findings can help performance engineers, practitioners, and model developers understand where coding agents succeed and where they still fall short.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Gemini 4 Neon, Claude, Kimi K3, CUDA.

Source attribution: curated from arXiv cs.LG (@Lingqi Zhang, Jens Domke, Chen Zhuang, Du Wu, Zhengyang Bai, Mohamed Wahib).