paper-with-me

홈 › Papers

EGG: An Expert-Guided Agent Framework for Kernel Generation

2026-06-25 · Yaochen Han, Ke Fan, Hongxu Jiang, Wanqi Xu, Weiyu Xie, Runhua Zhang, Chenhui Zhu, Yixiang Zhang arxiv

High-performance GPU kernels are critical for reducing the exponentially growing computational costs of large language models (LLMs), but their development heavily relies on manual tuning by domain experts. While recent advances in LLM-based approaches show promise for automating kernel generation, they still struggle to achieve both correctness and high performance. This limitation primarily arises from the lack of domain-specific optimization guidance, hindering effective exploration of the optimization space. We propose EGG, an Expert-Guided Agent Framework for Kernel Generation, which incorporates expert optimization principles to guide LLMs' decisions. Inspired by expert workflows, we decompose kernel generation into two hierarchical stages: 1) algorithmic structure design, which establishes a high-quality computational structure foundation; 2) hardware-specific tuning, which performs targeted adjustments through parallel mapping, tensor tiling, and memory optimization. This staged decomposition defines explicit optimization objectives, structuring the design space to achieve progressive refinement. To this end, a stage-aware multi-agent collaboration mechanism is designed for inter and intra-stage context management, ensuring stable optimization trajectories. Experiments on KernelBench and real-world workloads show that EGG achieves a 2.13x average speedup over PyTorch, outperforming existing agent-based and RL-based approaches.

📄 PDF Abstract BibTeX arXiv:2606.26758

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimization

2025-11-09 · Kelun Lei, Hailong Yang, Huaitao Zhang, Xin You 외 arxiv

Designing high-performance kernels requires expert-level tuning and a deep understanding of hardware characteristics. Recent advances in large language models (LLMs) have enabled automated kernel generation, yet most exi…

KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization

2026-03-10 · Qitong Sun, Jun Han, Tianlin Li, Zhe Tang 외 arxiv

Improving GPU kernel efficiency is crucial for advancing AI systems. Recent work has explored leveraging large language models (LLMs) for GPU kernel generation and optimization. However, existing LLM-based kernel optimiz…

AscendCraft: Automatic Ascend NPU Kernel Generation via DSL-Guided Transcompilation

2026-01-30 · Zhongzhen Wen, Shudi Shao, Zhong Li, Yu Ge 외 arxiv

The performance of deep learning models critically depends on efficient kernel implementations, yet developing high-performance kernels for specialized accelerators remains time-consuming and expertise-intensive. While r…

MaxKernel: Agentic Kernel Generation for TPUs

2026-09-03 · Shangkun Wang, Nina Cai, Charles Hoong, Julian Walker 외 arxiv

Designing and authoring high-performance custom kernels for accelerators is a complex task that requires deep hardware-level expertise. Large Language Models (LLM) can be leveraged together with real-time compiler feedba…

cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution

2025-12-18 · Jinwu Chen, Qidie Wu, Bin Li, Lin Ma 외 arxiv

Optimizing CUDA kernels is a challenging and labor-intensive task, given the need for hardware-software co-design expertise and the proprietary nature of high-performance kernel libraries. While recent large language mod…