KernelClaw: A Multi-Agent Framework for GPU Kernel Optimization with Dual-Memory Mechanisms

kernelclaw:-a-multi-agent-framework-for-gpu-kernel-optimization-with-dual-memory-mechanisms

KernelClaw: A Multi-Agent Framework for GPU Kernel Optimization with Dual-Memory Mechanisms

[Submitted on 10 Mar 2026 (v1), last revised 18 Oct 2026 (this version, v2)]

View PDF HTML (experimental)

Abstract:Improving GPU kernel efficiency is crucial for efficient AI systems. Recent work has explored leveraging large language models (LLMs) for GPU kernel generation and optimization. However, existing LLM-based kernel optimization pipelines typically rely on opaque, implicitly learned heuristics within the LLMs to determine optimization strategies. This leads to inefficient trial-and-error and weakly interpretable optimizations. Our key insight is to replace implicit heuristics with expert optimization knowledge that is aware of task trajectories. Specifically, we present KernelClaw, a multi-agent framework with a dual-level memory architecture. KernelClaw operates by coordinating agents with long-term memory of reusable expert knowledge and short-term memory to prevent repetitive backtracking. On KernelBench Levels 1-3, KernelClaw achieves a 100% success rate and average speedups of 6.98x, 7.89x, and 1.94x over Torch Eager on Levels 1, 2, and 3, respectively, outperforming prior baselines. Code is available at this https URL.

Submission history

From: Qitong Sun [view email]
[v1] Tue, 10 Mar 2026 13:43:38 UTC (1,357 KB)
[v2] Sun, 18 Oct 2026 04:26:39 UTC (3,376 KB)