KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
Peiyu Zang, Jian Tao, Jialing Zhang, Yichen Yuan, Wentao Zhang, Guang Liu, Yonghua Lin
Abstract
Modern AI systems depend on specialized accelerator kernels, whose development is complicated by increasingly diverse operators and hardware. LLMs and agentic systems promise to automate this work, but existing evaluations do not show whether their performance transfers across operator sources and hardware platforms, or what such transfer costs. We present KernelGenBench, the first unified multi-source and multi-chip infrastructure for evaluating LLM- and agent-generated Triton kernels. With a common Triton target spanning six hardware platforms, it provides the broadest cross-vendor hardware coverage among existing kernel-generation benchmarks. We report two controlled analytical views: KernelGenBench-MS (Multi-Source) covers 210 operators from PyTorch ATen, production vLLM operators, and proprietary cuBLAS routines, while KernelGenBench-MC (Multi-Chip) evaluates a semantically stable 110-operator subset across six hardware platforms. Our evaluation consumed over 15 billion tokens. Agentic execution improved correctness, but no method dominated across sources and platforms: vLLM posed the strongest correctness challenge, cuBLAS set the highest performance ceiling, and AutoKernel accuracy fell from 87% on NVIDIA to 25% on Iluvatar CoreX. These improvements were costly: specialized agents averaged 4.99 million tokens per successful operator, rising to 6.25 million for CUDA Optimized Skill. The results establish operator source, hardware platform, and agentic scaffold as distinct dimensions of kernel-generation capability, and show that success in a familiar source-hardware setting is not a reliable proxy for deployment readiness.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- 9 pages, 3 figures. Code and data are publicly available at https://github.com/flagos-ai/KernelGenBench
Related papers
Partial Routing: Trace-Tuned Delegation for Resource-Efficient Agentic Workflows
Shared title terminologycs.AISiddharth Arya, Kshitij Jain
CAPTA: Identifying LLMs Behind AI Agents
Shared title terminologycs.AIKailun Yan, Yue Huang, Sisi Duan
Dynamic Capability Scoping for Enterprise AI Agents: A Synthetic Dataset and Three-Source Permission Architecture
Shared title terminologycs.AIHalil Burak Noyan
When LLMs Over-Answer: Measuring and Mitigating Quality Issues in LLM-Based Hardware Description Language Question Answering
Shared title terminologycs.AIZiteng Hu, Jiachi Chen, Wenhao Lv et al.
HiMe: Real-Time Self-Hosted Personal Agent Platform for Health Insights with Wearable Devices
Shared title terminologycs.AIWei Liu, Siya Qi, Linhai Zhang et al.
Source-Prior-Driven Selective Adaptation for Efficient Diffusion Model Finetuning
Shared title terminologycs.AIYi Xiong, Yuan-Yuan Cheng, Xiao-Ming Fu