arXiv paper· systems for machine learning / GPU kernel optimization· method paper with empirical evaluation

KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization

Aheli Poddar, Sanskar Prasad, Arindam Samanta, Subha Chakraborty, Vishal Goyal, Rohit Singh Rathaur

cs.DC · cs.AI · cs.LG

Quick verdict

Claims end-to-end-verified LLM optimization of compiled PyTorch models (1.40/1.15/1.07× geomean on KernelBench); rigorous gates, but internal count inconsistencies and no competing-system baseline.

Summary

KernelOPT is a multi-agent system that treats torch.compile output as a structured artifact for GPU kernel optimization: it preserves vendor library calls (cuBLAS/cuDNN), targets only Inductor-generated Triton sub-kernels, and drives five profiling-guided agents (planner, executor, summarizer, profiler, deterministic strategy analyst) in a beam search using Nsight Compute metrics. A four-gate cascade—static validation, multi-seed correctness, model-level verification with a float64-fallback error ratio, and a 3% end-to-end performance gate—filters candidates; failing candidates fall back to the compiler baseline. On 250 KernelBench problems using Claude Sonnet 4.6 on one H200, reported geometric-mean speedups over torch.compile (max-autotune) are 1.40× (Level 1), 1.15× (Level 2), and 1.07× (Level 3): 94 problems optimized, 85 fell back, 72% of fallbacks attributed to vendor-library dominance. An ablation on 50 sampled problems shows removing any component (beam, NCU profiling, memory, perf gate, multi-iteration) drops the optimization rate from 38% to ≤10%. Main limitations: a single-LLM, single-GPU setup with no direct comparison against competing LLM kernel optimizers, no variance/confidence reporting, and internal inconsistencies between Table 1 and appendix counts that need reconciliation.

Review complete

Assessment at a glance

systems for machine learning / GPU kernel optimization

4

risk flags identified

● high 1

● medium 3

● low 0

Reproducibility readinessmedium
Code & data availableyes
Review confidencemedium
AI text signal0/20 passages flagged
Deep research viableCode-reproducibleNeeds GPU

5 strengths · 5 weaknesses · 5 author questions

AI text signal = Binoculars zero-shot detector score over 20 sampled passages (Fast-DetectGPT co-reported) — absence does not prove human authorship, and a flag does not imply misconduct.

Levels reflect verification complexity — not a quality score. Evolve never rates your paper.

Key claims under review

  • Treating a compiled PyTorch model as a structured artifact — preserving cuBLAS/cuDNN dispatch and optimizing only Inductor-generated Triton sub-kernels — yields consistent speedups over torch.compile: geometric means of 1.40× (L1), 1.15× (L2), and 1.07× (L3) across all 250 KernelBench problems.
  • The four-gate verification cascade guarantees that every output either improves on or preserves the compiler baseline, with zero regressions across all 250 problems.
  • Every orchestration component is necessary: an ablation on 50 sampled problems shows removing beam search, NCU profiling, experience memory, the perf gate, or multi-iteration search drops the optimization rate from 38% to ≤10%, and removing inductor-aware filtering yields zero L2 optimizations.
  • KernelOPT is the first system to combine Inductor-aware compiled-model optimization, NCU-guided planning, and end-to-end model-level verification with a compiler-baseline fallback.
  • 72% of the 85 fallbacks stem from vendor-library dominance, bounding where LLM kernel optimization can help on modern GPU stacks.

Strengths

  • Verification-first design delivers a demonstrable no-regression guarantee

    The four-gate cascade (§4.4, Table 3) verifies re-stitched models end-to-end; Table 9 covers all 250 problems and reports zero regressions — every outcome is improved, matched, or a baseline-preserving fallback. The 15 L1 perf-gate rejections (§6.2) concretely show Gate 4 catching per-kernel wins (up to 5.84× per-kernel on kernel 049) that do not survive model-level dispatch overhead.

  • Component-level ablation with statistical testing

    Table 2/6 (§6.4): removing beam search, NCU profiling, memory, perf gate, or multi-iteration drops optimization rate from 38% to ≤10% on 50 outcome-stratified sampled problems; Fisher's exact tests are reported (all five n=50 comparisons p<0.01). 'No inductor-aware' (C6, L2-only) yields 0/20, supporting the central dispatch-respecting thesis.

  • Honest, complete fallback taxonomy

  • Strong artifact and protocol disclosure

  • Self-aware case studies attribute gains correctly

Weaknesses

  • No head-to-head baseline against competing LLM kernel optimizers

  • Internally inconsistent headline counts

  • No variance, confidence intervals, or noise characterization

  • Verification tolerance drift vs the claimed KernelBench-standard protocol

  • Prompt-level guidance contradicts its own showcased optimization

Full Review Report

$1.99 · one-time

Unlock the complete preliminary analysis Evolve produced for this paper.

Report preview

KernelOPT: Structured Preliminary Review

The remaining sections cover Methodology Assessment, Statistical Evidence, Results & Reproducibility, Limitations & Risks, and Verdict & Recommendations.

  • All 5 strengths & 5 weaknesses, analyzed in detail
  • 4 risk flags with severity, section & reviewer questions
  • Methods & statistical evidence assessment
  • 5 questions a peer reviewer would ask
  • Full six-dimension evaluation report & recommendations

One-time purchase · this paper only

One-time purchase, this paper only. AI-generated preliminary analysis — not peer review.

Frequently asked questions

What is KernelOPT and how does it speed up PyTorch models?

KernelOPT is a multi-agent LLM system that optimizes models compiled with torch.compile. Instead of treating the compiled model as a black box, it keeps vendor library calls (cuBLAS for matrix multiplication, cuDNN for convolution), uses LLM agents guided by NVIDIA Nsight Compute profiles to rewrite only the generated Triton sub-kernels, re-stitches them into the model, and verifies the whole model end-to-end with a four-gate cascade (static checks, multi-seed correctness, float64-referenced model-level verification, and a 3% performance gate). If nothing passes, the original compiler output is kept.

How much faster is KernelOPT than torch.compile?

On all 250 KernelBench problems on an NVIDIA H200 GPU, the paper reports geometric-mean end-to-end speedups over torch.compile with max-autotune of 1.40× on Level 1 (100 single-operator problems), 1.15× on Level 2 (100 composite operators), and 1.07× on Level 3 (50 full model architectures). 94 of 250 problems were optimized; on 85 the system fell back to the compiler baseline, with no reported regressions.

Is KernelOPT's code available and can the results be reproduced?

The code is public at github.com/TorchedHat/KernelOPT, and all hyperparameters, prompts, hardware (H200), and benchmarking settings are documented. However, exact reproduction requires an H200, NCU profiling permissions, and paid access to Claude Sonnet 4.6 via Google Cloud Vertex AI, and LLM non-determinism means exact numbers will vary between runs.

Why do 72% of KernelOPT's fallbacks happen?

Because the compiled models are dominated by calls to NVIDIA's vendor libraries (cuBLAS for GEMM, cuDNN for convolution), which already run near hardware peak on the H200. In those cases replacing library calls with LLM-generated Triton code does not help, so KernelOPT's synthesis stage detects the library dominance and preserves the compiler baseline instead of wasting optimization effort.

About this review

This is an AI-generated preliminary review by Evolve.Pub, produced from the openly available text of the paper. It is not peer review and does not represent the authors' views. The canonical record of the paper is at the publisher link above.

  • Review is based on embedded text extraction: figures (Fig. 1-6), their underlying plot data, and Table 9's dense per-kernel layout are parsed from text and may contain OCR/extraction artifacts.
  • Several count discrepancies (e.g., Figure 3 caption vs Panel A, Panel B buckets vs Panel A) are internal to the extracted text and cannot all be attributed to extraction; at least the L3 12-vs-14 conflict spans two independently stated tables.
  • Appendices listing prompt templates were included, but any supplementary material beyond the PDF text (ablation problem list is present; claimed supplementary files were not verifiable).
  • Reported speedup claims could not be independently recomputed from the text alone; the geomean values are taken as stated in the abstract, §5, and §6.1.

Go deeper on this paper

Wrote a paper? Stress-test it before reviewers do.

Upload your manuscript for the same structured scrutiny — reasoning, statistics, evidence, figures, and reproducibility.

Scan your paper
KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization | Evolve.Pub