arXiv 2606.26453v1Jun 24, 2026

Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization

Jiading Gai et al.

Brief context

Publication timing, weekly edition context, and source links for this brief.

Published

Jun 24, 2026, 11:28 PM

Current score

75

Original paper

The executive brief below is grounded in the source paper and linked back to the arXiv abstract.

We present KernelPro, a closed-loop multi-agent system that automatically generates, profiles, and iteratively optimizes GPU kernel code by integrating large language model (LLM) code generation with hardware profiler feedback and pluggable bottleneck detection tools. KernelPro introduces four contributions: (1) a semantic feedback operator that encodes expert heuristics as pluggable micro-profiling tools, transforming raw hardware metrics into actionable natural language guidance; (2) a two-stage tool invocation architecture where roofline-based bottleneck classification filters which specialized analysis tools execute, combining kernel-level (ncu), instruction-level (SASS), and system-level (nsys) profiling; (3) a domain-adapted MCTS with progressive widening, asymmetric branching, log-reward calibration, dead-end pruning, and search memory for cross-iteration learning; and (4) direct CuTe source-level code generation via autonomous code search over the CUTLASS/CuTe codebase. On KernelBench, KernelPro achieves geometric mean speedups of 2.42x/4.69x/5.30x on Levels 1/2/3, establishing state-of-the-art performance across all difficulty levels. On VeOmni's expert-optimized MoE training kernels, KernelPro achieves 1.23x over hand-tuned Triton by generating a from-scratch raw-CUDA+CuTe Hopper WGMMA kernel. Ablation studies demonstrate that each design component independently and significantly improves optimization quality: micro-profiling tools (p < 0.0001 vs raw metrics), MCTS search (26% higher geometric mean vs greedy, p = 0.004), and proactive tool orchestration (23% improvement, p = 0.035). Finally, KernelPro is the first CUDA kernel coding agent to optimize energy efficiency beyond the speed-only focus of prior systems, demonstrating an 11.6% measured energy reduction at matched speed.

Score 75Full-paper briefinfraagentstraininginference

Executive brief

A short business-reader brief that explains why the paper matters now and what to watch or do next.

Why this is worth your attention

KernelPro points to a practical shift in AI infrastructure: GPU kernel tuning may become less dependent on scarce human CUDA experts and more like an automated compile-profile-search loop. The paper’s claim is concrete—structured micro-profiling plus LLM code generation produced large benchmark speedups and even beat an expert Triton MoE kernel on H100—but the business implication is broader: training and inference teams may get a new lever for reducing GPU spend without changing models. Take it seriously as an early systems result, not a finished procurement category; the remaining questions are search cost, portability, and whether independent teams can reproduce the gains on real production workloads.

  • The paper’s strongest result is not just that an LLM writes CUDA; it is that executable profiling tools translate hardware symptoms into engineer-like guidance the model can act on. That matters because raw profiler dumps can make the model worse, while structured diagnosis produced much larger gains in the authors’ ablations.
  • For AI infrastructure, compiler, and optimization-tool vendors, the buying question is not “do you use an LLM?” but “do you have a closed loop that compiles, validates, profiles, diagnoses, and searches?” KernelPro’s results suggest deterministic, bottleneck-filtered tool orchestration beats letting the model casually choose which tools to call.
  • If your costs are dominated by large-scale training or high-volume inference, the near-term opportunity is not broad software automation; it is shaving bottleneck kernels that run constantly. The paper reports large KernelBench speedups and a narrower but more business-relevant 1.23× win over an expert Triton MoE training kernel on H100.
  • This is not a push-button optimizer with zero operational cost: candidates must be generated, compiled, validated, profiled, and often rejected. The evidence is strongest on KernelBench and NVIDIA A100/H100 tooling, and one complex case needed 46 iterations for only 3 valid solutions.
  • The energy result is intriguing because it points beyond latency to power and data-center efficiency, but it is still a preliminary matched-speed case study. The practical adoption signal would be open artifacts plus independent tests on production kernels, different GPUs, and real training or inference pipelines.

Evidence ledger

The strongest claims in the brief, along with the confidence and citation depth behind them.

capabilityhighp.14

KernelPro reports state-of-the-art geometric-mean speedups on KernelBench Levels 1/2/3 with full task coverage.

capabilityhighp.15

Structured micro-profiling tools were the largest independent contributor in ablations, substantially outperforming raw profiler metrics.

traininghighp.40

KernelPro reports a 1.23× improvement over an expert-tuned Triton baseline for an MoE grouped-GEMM training kernel on H100.

caveathighp.36

Complex optimizations can require substantial trial-and-error, with many failed compile or correctness attempts.

Related briefs

More plain-English summaries from the archive with nearby topics or operator relevance.

cs.LG

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

Taras Sereda et al.

cs.CR

Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agents

Praneeth Narisetty et al.

cs.LG

SharQ: Bridging Activation Sparsity and FP4 Quantization for LLM Inference

Haoqian Meng et al.

cs.AI

Semantic Early-Stopping for Iterative LLM Agent Loops

Sahil Shrivastava

Thank you to arXiv for use of its open access interoperability. This product was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.
LightDark