potentialpaper

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

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:52 UTC · 2d4e27fb4809 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "SaboBZsQiW"
- }
- ],
- "title": "KernelWeaver: A Shape-Aware Kernel Agent for GPU Kernel Optimization",
- "authors": [],
- "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.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "3497e3b3-df17-457c-b7ce-07d36e3b6ddb"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "KernelWeaver: A Shape-Aware Kernel Agent for GPU Kernel Optimization",
+ "authors": [],
+ "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"
+ }
+}