mlsanityData to 14 Oct 2026

KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators

arXiv 2606.02963 ↗First posted 1 Jun 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Production inference increasingly targets a heterogeneous mix of accelerators. Agentic pipelines interleave reasoning, tool calls, and multi-agent coordination, each with distinct compute and memory profiles. For optimal efficiency, each stage should run on the accelerator best suited to it. This creates a systems challenge: each pipeline now requires high-performance kernels across a growing set of hardware backends and programming models. Writing these kernels by hand is time-consuming, demands deep low-level expertise, and does not scale as kernel complexity grows. Recently, Large Language Models (LLMs) have been leveraged for automatic kernel generation, but challenges in low-level code generation and cross-backend generalization persist. We present KForge, a cross-platform framework built around an iterative refinement loop driven by two collaborating LLM-based agents: a generation agent that produces and progressively refines kernels using compilation and correctness feedback, and a performance-analysis agent that interprets profiling data, from programmatic APIs to GUI-based tools, and emits recommendations that steer the next round of synthesis. The loop alternates between functional passes, which drive a candidate to correctness, and optimization passes, which close the performance gap to hand-tuned baselines. We evaluate KForge on two backends with very different baseline reference availability. On NVIDIA B200, KForge achieves a 2.12% improvement in end-to-end throughput compared to TensorRT-LLM on the gpt-oss-20b inference speed benchmark. On Intel Arc B580, KForge generates Triton kernels achieving a 5.13× geometric mean speedup over the faster of PyTorch eager and torch.compile on 37 GEMM + tail-ops workloads from KernelBench Level 2, primarily via operator fusion and mixed-precision execution.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 18 references that are in the map. First posted on arXiv 1 Jun 2026.

Builds on

9 of 18 references.

References · 9

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  3. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
  4. 2018Online normalizer calculation for softmaxcited by 162
  5. 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 126
  6. 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 34
  7. 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limitscited by 18
  8. 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 12
  9. 2025Efficient and Scalable Agentic AI with Heterogeneous Systemscited by 11

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
  2. 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
  3. 2025KForge: Program Synthesis for Diverse AI Hardware Accelerators
  4. 2026Towards Automated Kernel Generation in the Era of LLMs
  5. 2026MKEvolve: A Modular Multi-Agent Framework for Kernel Code Generation
  6. 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis
  7. 2025STARK: Strategic Team of Agents for Refining Kernels
  8. 2026EGG: An Expert-Guided Agent Framework for Kernel Generation