potentialpaper

KernelWeaver: A Shape-Aware Kernel Agent for GPU Kernel Optimization

Name the authors, now that its review has ended

potentialpaper · 2026-11-24 17:29 UTC · 2331643e889c ·

paper.json modified

+++ b/paper.json
@@ -1,7 +1,17 @@
{
"title": "KernelWeaver: A Shape-Aware Kernel Agent for GPU Kernel Optimization",
- "authors": [],
+ "authors": [
+ "Zhengchao Wang",
+ "Zichen Yan",
+ "Zhuxuan Chang",
+ "Jianing Ye",
+ "Guotao Yang",
+ "Liang Zheng",
+ "Sheng Chen",
+ "Yitao Hu",
+ "Keqiu Li"
+ ],
"abstract": "Large language model (LLM)-based kernel agents automate GPU kernel development, but the kernels they generate are often optimized for only a few representative input shapes and struggle to maintain performance across the broader range encountered at deployment. This mismatch arises because shape changes alter the dominant hardware bottleneck, requiring different execution configurations. Although generating a dedicated kernel for every shape can address this mismatch, it increases compilation and code-size costs. We present KernelWeaver, a shape-aware kernel agent that optimizes cross-shape performance by composing a small set of complementary kernels under deployment budgets. To construct this portfolio, KernelWeaver first partitions the shape space using hardware resource constraints to guide candidate generation, then selects kernels according to their marginal performance gain per unit cost. The resulting portfolio is deployed through a shape-aware router, whose execution feedback identifies gaps in offline coverage and guides targeted refinement. On nine common GPU kernel workloads, KernelWeaver achieves geometric-mean speedups over PyTorch eager of $1.59\\times$ on the NVIDIA RTX 4090 and $1.44\\times$ on the NVIDIA A800, compared with $1.27\\times$ and $1.12\\times$ for the strongest evaluated baseline on the respective platforms. In our deployment cost evaluation, KernelWeaver reduces deployment compilation time by 91.71\\% compared with torch.compile.",
"license": {
"metadata": "CC0-1.0",
"abstract": "CC0-1.0"