mlsanityData to 7 Oct 2026

EGG: An Expert-Guided Agent Framework for Kernel Generation

arXiv 2606.26758 ↗First posted 25 Jun 2026cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 21 of its 34 references that are in the map. First posted on arXiv 25 Jun 2026.

Builds on

21 of 34 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization23 Oct
  2. 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
  3. 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr
  4. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges14 Jan

Other references · 17

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  3. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  4. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
  5. 2024A Survey on Large Language Models for Code Generationcited by 646
  6. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  7. 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 73
  8. 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
  9. 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 59
  10. 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
  11. 2025AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMscited by 38
  12. 2025Geak: Introducing Triton Kernel AI Agent & Evaluation Benchmarkscited by 31
5 more
  1. 2025TritonRL: Training LLMs to Think and Code Triton Without Cheatingcited by 24
  2. 2023Stream-K: Work-centric Parallel Decomposition for Dense Matrix-Matrix Multiplication on the GPUcited by 22
  3. 2025TritonForge: Profiling-Guided Framework for Automated Triton Kernel Optimizationcited by 15
  4. 2025CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learningcited by 13
  5. 2025KForge: Program Synthesis for Diverse AI Hardware Acceleratorscited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025STARK: Strategic Team of Agents for Refining Kernels
  2. 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
  3. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization
  4. 2026Towards Automated Kernel Generation in the Era of LLMs
  5. 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe
  6. 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis
  7. 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
  8. 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization