KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization
Aheli Poddar, Sanskar Prasad, Arindam Samanta, Subha Chakraborty, Vishal Goyal, Rohit Singh Rathaur
Key points
From the paper's conclusion- Present KernelOPT, a multi-agent system that treats compiled models as structured artifacts for GPU kernel optimization.
- KernelOPT achieves geometric mean speedups over torch.compile of 1.40$ imes$ (Level 1: 51/100), 1.15$ imes$ (Level 2: 31/100), and 1.07$ imes$ (Level 3: 12/50) across all problems.
- The system preserves vendor library calls and targets generated Triton sub-kernels using five profiling-guided LLM agents, with a four-gate verification cascade to filter candidates and verify the re-stitched model end-to-end.
Abstract
Deep learning inference and training performance depends critically on GPU kernel efficiency. Modern compilers such as PyTorch Inductor automatically generate GPU kernels from high-level model code, but frequently underperform expert-written implementations by wide margins. Recent LLM-assisted kernel optimizers can close this gap for standalone kernels, yet treat compiled models as black boxes, generally optimizing individual standalone kernels without respecting the compiler's structural decisions or verifying the model end-to-end. We present KernelOPT, a multi-agent system that treats compiled models as structured artifacts. It preserves vendor library calls (cuBLAS, cuDNN) and exclusively targets generated Triton sub-kernels using five profiling-guided LLM agents. A four-gate verification cascade of static validation, multi-seed correctness, model-level float64-fallback verification, and performance gating filters candidates during optimization and verifies the re-stitched model end-to-end. If no candidate passes all four gates, the system preserves the compiler baseline. The system accepts PyTorch nn.Modules, standalone Triton kernels, and Helion kernels. Evaluated on 250 KernelBench problems, KernelOPT achieves geometric mean speedups over \texttt{torch.compile} of 1.40$\times$ (Level 1: 51/100), 1.15$\times$ (Level 2: 31/100), and 1.07$\times$ (Level 3: 12/50) across all problems.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Present KernelOPT, a multi-agent system that treats compiled models as structured artifacts for GPU kernel optimization.
- KernelOPT achieves geometric mean speedups over torch.compile of 1.40$ imes$ (Level 1: 51/100), 1.15$ imes$ (Level 2: 31/100), and 1.07$ imes$ (Level 3: 12/50) across all problems.
- The system preserves vendor library calls and targets generated Triton sub-kernels using five profiling-guided LLM agents, with a four-gate verification cascade to filter candidates and verify the re-stitched model end-to-end.
Readers' thoughts
No reader thoughts yet.
Related papers
- Ask, Don't Equip: Question-Driven Coding Agents for Deep Kernel OptimizationarXiv · 2026
- AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence VerificationarXiv · 2026
- Correct First, Fast Second: What a Local 7B Code Model Can and Cannot Do for GPU Kernel OptimizationarXiv · 2026
- MaxKernel: Agentic Kernel Generation for TPUsarXiv · 2026
- How to Train Your Little Dragon: Teaching a Small Language Model to Construct and Refine GPU Optimization ScriptsarXiv · 2026
- ModelBlaster: Closing the Performance Gap through Learning-Augmented Agents Across Models, Kernels and Hardware BackendsarXiv · 2026