mlsanityData to 7 Oct 2026

Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels

arXiv 2607.24762 ↗First posted 2 Jun 2026cs.AI cs.PFcited by 1

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

Abstract (arXiv)

Machine learning models are increasingly embedded in everyday software, and most of their runtime is spent in a small set of compute kernels such as matrix multiplication, convolution, and normalization. Optimizing these kernels is one of the most direct ways to reduce latency and cost, but it has traditionally required expert engineers to hand-write low-level GPU code. Agentic systems built on large language models (LLMs) can now generate and optimize kernels with far less human effort, yet existing tools are largely evaluated on randomly generated tensors and isolated kernels, emit standalone CUDA code that developers must manually reintegrate, mostly target only LLM PyTorch models, and offer limited support for inspecting and debugging results. We present Kernel Forge, an open-source, end-to-end agentic harness that accepts any unmodified PyTorch model in place. Kernel Forge supports vision, diffusion, and LLM workloads, uses Monte Carlo Tree Search (MCTS) to explore multiple optimization paths rather than a single linear refinement chain, and ships with a graphical user interface for monitoring progress, inspecting candidate kernels, and debugging failures. We evaluate Kernel Forge on four PyTorch models spanning vision, diffusion, and LLM workloads on an NVIDIA DGX Spark with GB10 GPU. With only 50 optimization iterations per kernel, it optimizes 14 kernels to outperform PyTorch eager mode, reaching 1.52× on adaptiveavgpool2d in ResNet-50, 1.70× on groupnorm in Stable Diffusion 3.5 Medium, 2.83× on softmax in Gemma 4 E2B, and 1.54× on softmax in Qwen 3.5 35B-A3B.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 42 references that are in the map. First posted on arXiv 2 Jun 2026.

Builds on

22 of 42 references.

Closest ancestors · 3

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. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep

Other references · 19

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  5. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  7. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
  8. 2017Efficient Processing of Deep Neural Networks: A Tutorial and Surveycited by 427
  9. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  10. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
  11. 2018Learning to Optimize Tensor Programscited by 138
  12. 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
7 more
  1. 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generationcited by 35
  2. 2025Geak: Introducing Triton Kernel AI Agent & Evaluation Benchmarkscited by 31
  3. 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systemscited by 20
  4. 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 12
  5. 2026CUDABench: Benchmarking LLMs for Text-to-CUDA Generationcited by 10
  6. 2026KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernelscited by 10
  7. 2025A Systematic Characterization of LLM Inference on GPUscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation
  2. 2025STARK: Strategic Team of Agents for Refining Kernels
  3. 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization
  4. 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe
  5. 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language
  6. 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
  7. 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution
  8. 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization