MKEvolve Framework Generates Efficient Kernel Code for Accelerators

Jason Yoo, Rajarshi Saha, Shaowei Zhu, Tao Yu, Wei Tang, Youngsuk Park· July 24, 2026 View original

Summary

MKEvolve is a modular multi-agent framework that iteratively co-evolves PyTorch module decompositions and LLM-generated kernel code for hardware accelerators. It refines decompositions and improves subkernels, leading to configurable, interpretable, and adaptable kernels while reducing LLM token usage.

Despite advancements in large language model (LLM) based code generation, creating accurate and high-performing kernels for hardware accelerators remains a significant challenge in scaling modern machine learning workloads. This bottleneck often limits the efficiency of AI systems. Researchers have introduced MKEvolve, a novel modular multi-agent framework designed to address this issue. MKEvolve operates by iteratively co-evolving two key components: a modular decomposition of complex PyTorch modules and the LLM-generated kernel code for each resulting submodule. The framework continuously refines these decompositions through splitting and fusing operations across iterations. Concurrently, MKEvolve independently enhances each subkernel using an LLM-driven beam search. The outcome is a set of kernels that are programmatic compositions of independently verified subkernels. This modularity makes the kernels highly configurable, allowing for swappable implementations, and interpretable, as errors and speedups can be traced to specific subkernels. Furthermore, they are readily adaptable to related model architectures. Experiments using Triton on KernelBench L2 and L3 demonstrate that MKEvolve improves both correctness and speedup over direct end-to-end synthesis baselines, while also reducing LLM token usage by up to 35%.

Why it matters

For professionals developing or deploying ML models, this framework offers a path to significantly improve the performance and efficiency of their models on hardware accelerators, reducing computational costs and speeding up development cycles.

How to implement this in your domain

  1. 1Evaluate current kernel generation workflows for bottlenecks and inefficiencies.
  2. 2Investigate MKEvolve's approach for potential integration into internal ML engineering practices.
  3. 3Experiment with modular decomposition strategies for complex PyTorch models.
  4. 4Develop internal benchmarks to compare MKEvolve's performance against existing kernel optimization methods.
  5. 5Train engineering teams on techniques for LLM-driven code refinement and modular kernel design.

Who benefits

AI/ML DevelopmentCloud ComputingHigh-Performance ComputingAutomotiveRobotics

Key takeaways

  • Generating efficient kernels for hardware accelerators is a major bottleneck in ML scaling.
  • MKEvolve is a framework that co-evolves modular PyTorch decompositions and LLM-generated kernels.
  • The resulting kernels are configurable, interpretable, and adaptable.
  • MKEvolve improves correctness, speedup, and reduces LLM token usage compared to baselines.

Original post by Jason Yoo, Rajarshi Saha, Shaowei Zhu, Tao Yu, Wei Tang, Youngsuk Park

"arXiv:2607.20501v1 Announce Type: new Abstract: Despite rapid progress in LLM-based code generation, writing correct and performant kernels for hardware accelerators remains a key bottleneck in scaling modern ML workloads. We present MKEvolve (Modular Kernel Evolve), a framework…"

View on X

Originally posted by Jason Yoo, Rajarshi Saha, Shaowei Zhu, Tao Yu, Wei Tang, Youngsuk Park on X · view source

Want to go deeper?

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

Explore courses