Atrex-Bench and AKA Evaluate LLM-Generated GPU Kernels

Lingyun Yang, Yuxiao Wang, Shenghao Liang, Linfeng Yang, Daocheng Ying, Chunbo You, Rui Zhang, Luping Wang, Yinghao Yu, Guodong Yang, Liping Zhang· July 17, 2026 View original

Summary

Atrex-Bench is a new trace-driven benchmark for GPU kernel generation, revealing that even top vanilla LLMs achieve only ~10% of hardware roofline on production operators. To address this, Atrex-Kernel-Agent (AKA) is introduced, a profile-driven optimization agent that iteratively refines kernels, matching or exceeding hand-tuned production baselines.

Existing benchmarks for GPU kernel generation often use synthetic problems, which don't accurately reflect real-world production workloads. To provide a more realistic assessment, Atrex-Bench has been developed. This new benchmark comprises 30 operators and 440 shapes directly sampled from full-cluster production inference traces, weighted by their observed GPU time. Evaluations using Atrex-Bench show that even the most advanced vanilla coding agents achieve only about 10% of the hardware's theoretical peak performance on these production operators. Furthermore, apparent correctness often stems from PyTorch fallbacks rather than truly optimized, model-generated kernels. To close this significant performance gap, researchers also released Atrex-Kernel-Agent (AKA). This profile-driven optimization agent employs an iterative measure-revise search process, incorporating "optimization dropout" to escape stalled search contexts. It leverages a layered GPU-optimization knowledge base, including 298 reference kernel files and 244 optimization documents, along with external API/ISA references. A controlled case study demonstrated AKA's ability to convert previously unoptimized fallbacks into high-performing kernels. These kernels either matched or surpassed the performance of hand-tuned production baselines, highlighting the agent's effectiveness in generating production-ready GPU code.

Why it matters

For professionals in AI infrastructure and high-performance computing, this research provides a critical benchmark for evaluating LLM-generated code and introduces an agent that can significantly improve the efficiency and performance of GPU kernels, directly impacting the cost and speed of AI inference.

How to implement this in your domain

  1. 1Adopt production-trace-driven benchmarks like Atrex-Bench to realistically evaluate LLM-generated code performance.
  2. 2Investigate integrating AI-powered optimization agents, such as AKA, into GPU kernel development workflows.
  3. 3Develop internal knowledge bases of GPU optimization techniques and reference kernels to guide AI agents.
  4. 4Prioritize performance profiling and iterative refinement for LLM-generated code to ensure production readiness.

Who benefits

Cloud ComputingAI InfrastructureHigh-Performance ComputingData CentersGaming

Key takeaways

  • LLM-generated GPU kernels are often far from production-ready without optimization.
  • Atrex-Bench provides a realistic, trace-driven benchmark for GPU kernel generation.
  • Atrex-Kernel-Agent (AKA) is an AI agent that optimizes LLM-generated kernels.
  • AKA can match or exceed hand-tuned production baselines, significantly boosting performance.

Original post by Lingyun Yang, Yuxiao Wang, Shenghao Liang, Linfeng Yang, Daocheng Ying, Chunbo You, Rui Zhang, Luping Wang, Yinghao Yu, Guodong Yang, Liping Zhang

"arXiv:2607.14541v1 Announce Type: new Abstract: Existing GPU kernel generation benchmarks draw problems from synthetic or curated sources that diverge from deployed workloads. We present Atrex-Bench, a benchmark whose 30 operators and 440 shapes are sampled directly from full-clu…"

View on X

Originally posted by Lingyun Yang, Yuxiao Wang, Shenghao Liang, Linfeng Yang, Daocheng Ying, Chunbo You, Rui Zhang, Luping Wang, Yinghao Yu, Guodong Yang, Liping Zhang on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses