CAKE Co-Designs Compiler-Agent for GPU Kernel Optimization

Zihao Ye, Yingyi Huang, Hongyi Jin, Bohan Hou, Junru Shao, Zhongming Yu, Jinqi Chen, Meghan Cowan, Shiyi Cao, Shanli Xing, Hanfeng Chen, Vinod Grover, Tianqi Chen, Luis Ceze· August 14, 2026 View original

Key takeaways

  • CAKE is a compiler-agent co-design framework for optimizing GPU kernels.
  • It allows agents to create hardware-explicit schedules, improving performance.
  • CAKE significantly outperforms hand-tuned baselines and direct CUDA/PTX in benchmarks.
  • This approach promises faster AI training/inference and more efficient hardware utilization.

Who benefits

AI/ML DevelopmentHigh-Performance ComputingCloud ComputingGamingScientific Research

Summary

CAKE is a compiler-agent co-design framework that allows AI agents to author hardware-explicit GPU kernel schedules, significantly improving performance over hand-tuned baselines and direct CUDA/PTX.

Optimizing GPU kernels for peak performance is a complex task, often involving a disconnect between AI agents that generate code and the compilers that execute it. Existing approaches either treat the compiler as a black box or expose scheduling decisions through difficult abstractions. This research introduces CAKE (Compiler-Agent Co-Design for Frontier Kernel Evolution), a novel framework that bridges this gap. CAKE enables AI agents to author CAKE IR, a typed, hardware-explicit schedule representation. This intermediate representation exposes critical GPU features like warp roles, memory movement, synchronization, and pipelines, while also supporting verification, cost modeling, and localized diagnostics. The system itself is designed to evolve, with recurring failures being converted into verifier rules, IR primitives, model calibrations, and reusable optimization tactics. In benchmarks, CAKE demonstrated significant performance gains. For Flash-KMeans on B200 GPUs, the best CAKE IR candidate achieved 1.144x the speed of a tuned FlashML baseline, outperforming direct CUDA/PTX (0.928x). Beyond benchmarks, agent-generated Kimi Delta Attention achieved a 2.05x geometric-mean speedup over official FlashKDA. CAKE also improved KNN and KMeans performance by 1.42x to 2.12x across over 400 shapes and has led to four kernel changes being proposed as upstream PRs. CAKE targets NVIDIA GPUs from Ampere through Blackwell, separating single-shape evolution from library generalization and dispatch.

Why it matters

This technology can dramatically accelerate the development and optimization of high-performance GPU kernels, leading to faster AI model training and inference, and more efficient use of expensive hardware resources.

How to implement this in your domain

  1. 1Investigate CAKE's approach for automating GPU kernel optimization in high-performance computing projects.
  2. 2Experiment with CAKE IR to generate and optimize custom GPU kernels for specific AI workloads.
  3. 3Contribute to or adopt frameworks that enable compiler-agent co-design for hardware-specific optimizations.
  4. 4Benchmark CAKE-generated kernels against hand-tuned or existing library implementations for critical operations.

Original post by Zihao Ye, Yingyi Huang, Hongyi Jin, Bohan Hou, Junru Shao, Zhongming Yu, Jinqi Chen, Meghan Cowan, Shiyi Cao, Shanli Xing, Hanfeng Chen, Vinod Grover, Tianqi Chen, Luis Ceze

"arXiv:2608.12629v1 Announce Type: new Abstract: GPU kernel agents and GPU programming languages have advanced separately, leaving expert kernels difficult to reproduce. Agents usually treat the compiler as a fixed black box and receive only errors, correctness outcomes, and timin…"

View on X

Originally posted by Zihao Ye, Yingyi Huang, Hongyi Jin, Bohan Hou, Junru Shao, Zhongming Yu, Jinqi Chen, Meghan Cowan, Shiyi Cao, Shanli Xing, Hanfeng Chen, Vinod Grover, Tianqi Chen, Luis Ceze on X · view source

Want to go deeper?

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

Explore courses

More in AI Engineering & DevTools