pith. sign in

arxiv: 2506.20807 · v2 · pith:L5CQPOBTnew · submitted 2025-06-25 · 💻 cs.LG · cs.AI· cs.PF· cs.SE

GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimization

classification 💻 cs.LG cs.AIcs.PFcs.SE
keywords kernelcodeoptimizationarchitecturalexperimentsiterativekernelsknowledge
0
0 comments X
read the original abstract

Optimizing GPU kernels for high performance is a complex task, often demanding deep architectural knowledge, extensive profiling, and iterative experimentation. This challenge is amplified when targeting newer or less-documented GPU architectures where traditional development aids are scarce. This paper introduces an LLM-powered "GPU Kernel Scientist," an automated methodology for iteratively refining accelerator kernels. Our methodology employs LLMs in a multi-stage, evolutionary process: (a) strategically selecting promising prior code versions as a basis for new iterations; (b) generating hypotheses for optimization experiments, based on existing code and assimilated knowledge from general GPU literature; and (c) autonomously implementing these experiments through code modification and subsequent submission to an external evaluation system, using only observed timing data as performance feedback. We detail how this approach navigates the challenges of the AMD MI300 target architecture and leverages LLMs to compensate for limited domain-specific human expertise. In addition to our results, we present the architectural design, operational workflow, and qualitative insights, highlighting the potential of LLM-driven agents to democratise and accelerate GPU kernel optimization, especially in resource-constrained or rapidly updating hardware environment.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 6 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

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

    cs.LG 2026-06 conditional novelty 7.0

    KernelPro combines LLM code generation, roofline-guided tool orchestration, and domain-adapted MCTS to produce GPU kernels that outperform prior automated and some hand-tuned baselines on KernelBench and VeOmni workloads.

  2. Unlocking LLM Code Correction with Iterative Feedback Loops

    cs.SE 2026-06 unverdicted novelty 6.0

    Empirical evaluation finds reasoning LLMs improve code correction across iterations using execution feedback and outperform non-reasoning models, with syntactic and runtime errors easier to fix than logical ones.

  3. Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineages

    cs.AI 2026-05 unverdicted novelty 6.0

    KLineage derives verified optimization skills from backward lineages of expert GPU kernels to guide LLM agents toward higher-quality and more efficient kernels than memory-based baselines.

  4. Optimas: An Intelligent Analytics-Informed Generative AI Framework for Performance Optimization

    cs.PF 2026-04 unverdicted novelty 6.0

    Optimas deploys a multi-agent LLM workflow to convert performance diagnostics into correct code transformations, delivering 100% valid code and performance gains in 98.82% of 3,410 experiments across benchmarks and HP...

  5. Glia: A Human-Inspired AI for Automated Systems Design and Optimization

    cs.AI 2025-10 unverdicted novelty 6.0

    Glia deploys a multi-agent LLM workflow with reasoning, experimentation, and analysis agents to generate interpretable algorithms for request routing, scheduling, and auto-scaling in distributed GPU clusters, reaching...

  6. AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization

    cs.LG 2026-03 unverdicted novelty 5.0

    AscendOptimizer combines kernel rewinding for reusable experience with evolutionary search on hardware feedback to optimize Ascend NPU operators, delivering 1.21x geometric-mean speedup and faster performance on 53.47...