KernelSmith: automated reflective kernel bring-up for new NPUs and GPUs
A service that automatically writes and tunes code for new AI chips and GPUs.
A service that automates first-pass porting and tuning of operator kernels for newly launched, thinly documented accelerators, using an LLM in a compile-profile-reflect-evolve loop guided by hardware profiling feedback and a curated knowledge base of each chip's constraints. It returns ranked, verified kernels with measured speedups over the vendor's baseline for human engineers to review and harden. Its scope is deliberately bounded: on mature, well-documented hardware, reinforcement-learning-trained agents and compilers already lead, so the service targets new silicon where no training data or mature tooling exists yet.
Concept
An automated kernel bring-up and tuning service for accelerator vendors and compiler teams. Input: a set of PyTorch operators (or ONNX subgraphs) plus access to the target chip's compiler toolchain and profiling harness. The service runs a GEPA-style reflective loop [0]: an LLM drafts kernel variants; each variant is compiled, executed, and profiled on the target hardware; utilization, latency, and numerical-accuracy feedback is returned in natural language; the optimizer diagnoses what limited performance, proposes targeted fixes, and merges complementary lessons from a set of the best-performing trade-offs among variants (for example, combining a fast-but-narrow variant with a correct-but-slow one). Output: a ranked set of verified kernels with measured utilization and latency versus the vendor's baseline, ready for human kernel engineers to review, harden, and upstream into the SDK. Sold as a per-library engagement or a subscription seat on the vendor's bring-up cluster.
Four design elements come directly from recent systems work:
- Profiling feedback as a first-class input. PRAGMA shows that agents reasoning over fine-grained hardware profiles consistently beat the same agents without profiling, averaging 2.30x speedup over PyTorch on GPU and 2.81x on CPU [4]. KernelSmith therefore makes profiler output a structured part of the reflection step, not just pass/fail timing.
- A curated knowledge base of chip constraints. Xe-Forge encodes Intel GPU rules (power-of-two warp counts, register-file modes, shared-memory sizing) that are absent from LLM training data, keeping generated kernels architecturally valid [6]. For brand-new silicon, the vendor is the only source of this knowledge — the engagement is the natural place to encode it.
- Specialist agent roles instead of one monolithic prompt. STARK's team-of-agents design, with grounded instructions and dynamic context management, produces correct solutions where single-shot and naive-refinement baselines often fail, with kernels up to 16x faster than those baselines [2].
- A template-and-search stabilization stage. A two-stage tuner found that direct LLM rewriting leaves parameter choices implicit and produces unstable gains; refactoring kernels into explicitly parameterizable templates and then autotuning those parameters yielded more stable speedups (over 3x in the best case) [5]. KernelSmith adds this as a final pass so results do not regress on re-runs.
The wedge: every new NPU and GPU ships with a thin kernel library, and hand-porting operators is months of scarce specialist work. This is exactly the setting GPU Kernel Scientist targeted — iteratively refining kernels on the AMD MI300, a newer architecture where traditional development aids are scarce, using only observed timing feedback, with LLMs compensating for limited domain expertise [3]. The work is repetitive (quantization, memory-access coalescing, tile sizing, architecture-specific workarounds applied kernel after kernel) but hardware-specific, which is why Xe-Forge applies the same optimization stages across a whole Triton codebase [6]. KernelSmith turns that grind into an automated search with humans reviewing at the end.
Why now
- GEPA demonstrates promising results as an inference-time search strategy for code optimization [0] — the reflective loop needs no fine-tuning infrastructure, so per-operator cost is API calls plus hardware time, viable as a service at chip-vendor scale.
- The compile-profile-reflect pattern is now replicated across independent teams and targets: multi-agent strategic search on KernelBench [2], profile-guided reasoning on GPU and CPU [4], evolutionary refinement on AMD MI300 [3], and staged optimization with a constraint knowledge base on Intel GPUs [6].
- The defensible niche is new, thinly documented silicon. On mature hardware, trained agents now lead: CUDA Agent, a large-scale reinforcement-learning system, reports a 100%, 100%, and 92% faster rate over torch.compile on KernelBench Level 1, 2, and 3 [1]. But building it required a data-synthesis pipeline, an automated verification and profiling environment for reward signals, and stable RL training — an ecosystem that only exists where the hardware is already well documented. A brand-new NPU has none of that yet, and its vendor is the only party with hardware access, which is precisely this service's engagement model. Bring-up data accumulated this way becomes the later upgrade path to a trained agent.
- Honest bounds: [1] is explicit that training-free refinement brings only limited gains and that general LLMs remain uncompetitive with compiler-based systems such as torch.compile on mature CUDA — so where such tooling already works well, this service adds little. All cited results are at individual-kernel scale, on benchmarks or single targets; none demonstrates a full operator library or a head-to-head win against expert human tuning. This is a first-pass bring-up accelerator, not a replacement for expert kernel engineers chasing the last 2x.
Open questions, updated by this round of evidence:
- Can LLMs interpret low-level profiling data? Partly answered: PRAGMA shows profiling-reasoned agents beat profiling-blind ones on documented GPU and CPU backends [4]. Whether this transfers to a new NPU's unfamiliar profiler semantics is untested.
- Time cost versus manual expert tuning: no cited system reports a head-to-head time comparison with human experts; measure this in the first engagement.
- Vendor access to proprietary toolchains and clusters: [3] and [6] were run by teams that already had hardware access, which weakly supports feasibility; the subscription-seat model keeps everything on the vendor's cluster, but commercial trust is unproven.
- Numerical stability and precision drift: correctness gates before profiling (as in the verification environments of [1] and [6]) catch outright errors, but floating-point drift across evolved variants needs explicit per-operator tolerances; still open.
- Ceiling of LLM-driven search: on mature hardware, trained agents [1] and compilers set a high bar, and the two-stage tuner's finding that template-plus-autotuning search is more stable than pure rewriting [5] suggests hybrids are the stronger form. The ceiling on new hardware, where compilers are immature, is unknown.
- Legal implications of LLM-generated code that may derive from proprietary or licensed kernels: unchanged and open.
Written by GLM · 22 Nov 2026 · revised 1× with new research (latest 22 Nov 2026, Gemma 4 and GLM)
AI assessment
A high-conviction play that leverages a convergence of recent research to solve a painful, high-value bottleneck in semiconductor bring-up.
- Evidence strength 5/5
- The idea is exceptionally well-supported by a convergence of multiple independent papers (GEPA, PRAGMA, STARK, Xe-Forge) that demonstrate the specific components of the proposed loop: profiling-guided reasoning, multi-agent roles, and constraint-based knowledge bases.
- Market pull 5/5
- Chip vendors face a critical, high-cost bottleneck during 'bring-up' where specialist kernel engineers are scarce and the pressure to ship a performant SDK is immense.
- Novelty & moat 4/5
- While it uses known LLM patterns, applying them specifically to the 'thinly documented' bring-up phase of new silicon creates a distinct commercial moat compared to general-purpose compilers or RL-based agents for mature hardware.
- Feasibility 3/5
- The technical components are demonstrated in lab settings, but the commercial feasibility depends on vendors granting access to proprietary toolchains and clusters, which is a significant hurdle.
- Wedge clarity 5/5
- The focus on 'first-pass porting' for new NPUs is a sharp, high-value entry point that avoids competing with mature compilers on established hardware.
- Simplicity / focus 5/5
- The product is a single, focused service with a clear input (operators/toolchain) and output (verified kernels), avoiding platform bloat.
Scored by Gemma 4 · 22 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Business analysis
The SWOT analysis reveals that KernelSmith occupies a high-value, defensible niche by targeting the 'cold-start' problem of new silicon where mature RL-based tools cannot function. While it leverages proven multi-agent and profile-guided patterns, its success depends on overcoming significant trust barriers regarding proprietary toolchain access and the inherent instability of LLM-driven code generation.
Strengths4
Weaknesses3
Opportunities3
Threats3
Essential for evaluating the internal technical strengths of the reflective loop against the external threat of mature RL-based compilers. · Generated 2026-11-22 by Gemma 4AI-generatedFull SWOT Analysis →
Who benefits
- AMDcompany
AMD's Ryzen AI NPUs are literally the hardware in the paper's kernel results (70% peak vector utilization vs 4.25% for sequential refinement), and every NPU generation faces a kernel-library bring-up bottleneck this service directly attacks.
- Qualcommcompany
Qualcomm ships Hexagon NPU SDKs where operator kernel coverage determines which models run on-device; automated reflective evolution shortens the porting grind for its engineering teams.
- Intelcompany
Intel's Core Ultra NPUs and oneAPI stack need broad kernel coverage at each silicon refresh; a compile-profile-reflect loop that already works with GPT-4o-class models gives its compiler teams a first-pass kernel generator.
- Modularcompany
Modular's MAX platform promises one computation graph across many hardware backends, which requires kernel coverage on every new accelerator — exactly the per-operator porting workload this automates.
Research it builds on
- GEPA: Reflective Prompt Evolution Can Outperform Reinforcement LearningAgrawal, Lakshya A, Tan, Shangyin, Dilara Soylu et al. · 2026 · 717 citationsAll ideas from this paper →
- CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel GenerationAll ideas from this paper →
- STARK: Strategic Team of Agents for Refining KernelsJuncheng Dong, Yang Yang, Liu, Tao et al. · 2026 · 38 citationsAll ideas from this paper →
- GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel OptimizationMartin Andrews, Sam Witteveen · 2025 · 34 citationsAll ideas from this paper →
- PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel OptimizationLei, Kelun, Yang, Hailong, Zhang, Huaitao et al. · 2025 · 20 citationsAll ideas from this paper →
- A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based OptimizationAll ideas from this paper →
- Xe-Forge: Multi-Stage LLM-Powered Kernel Optimization for Intel GPUAll ideas from this paper →