FastKernels: Benchmarking GPU Kernel Generation in Production

Gabriele Oliaro, Jaeseong Lee, Yichao Fu, Zhaoyuan Su, Owen Lu +6 more
5/22/2026
cs.LGcs.AIcs.CL
benchmark-dataset

No confident code implementation found for this paper.

Abstract

LLM-based agents for GPU kernel generation are advancing rapidly, but the benchmarks they optimize against evaluate kernels in isolation, with synthetic inputs and weak baselines, rewarding sandbox speedups that break or vanish in real inference systems. We introduce FastKernels, a benchmark of 384 tasks drawn from 47 representative architectures across 8 categories, whose kernels suffice to reimplement 94.6% (472/499) of HuggingFace Transformers architectures with outputs matching the native implementations. Each task mirrors the interface of the corresponding production module and is scored against the kernels production frameworks ship, and tasks form a compositional hierarchy, from primitives to full models, in which higher-level modules import lower-level ones. Candidates are scored at the kernel level and end to end inside the models they come from, on the production execution path, and MacroEval aggregates calibrated correctness, coverage, and speedup into a leaderboard. Seeding it with five representative agents (6,900 agent-hours), we find that kernel-level speedups of $1.6$-$6.6\times$ shrink to at most $1.25\times$ end to end, only 20% of winning kernel sets run correctly as-is, and kernel-level scores mis-rank agents: Claude Code matches or beats KDA at every level in isolation, yet KDA scores $3\times$ higher end to end. Code is available at https://github.com/Snowflake-AI-Research/fastkernels.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{oliaro2026fastkernels,
  title  = {FastKernels: Benchmarking GPU Kernel Generation in Production},
  author = {Gabriele Oliaro and Jaeseong Lee and Yichao Fu and Zhaoyuan Su and Owen Lu and Sreeram Vennam and May Jiang and Junli Wang and Hao Zhang and Zhihao Jia and Samyam Rajbhandari},
  year   = {2026},
  eprint = {2605.23215},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.23215v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.23215.svg)](https://codeofpaper.com/paper/2605.23215)

Discussion