KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Optimizing CUDA code across multiple generations of GPU architectures is challenging, as achieving peak performance requires an extensive exploration of an increasingly complex, hardware-specific optimization space. Traditional compilers are constrained by fixed heuristics, whereas finetuning Large Language Models (LLMs) can be expensive. However, agentic workflows for CUDA code optimization have limited ability to aggregate knowledge from prior exploration, leading to biased sampling and suboptimal solutions. We propose KernelBlaster, a Memory-Augmented In-context Reinforcement Learning (MAIC-RL) framework designed to improve CUDA optimization search capabilities of LLM-based GPU coding agents. KernelBlaster enables agents to learn from experience and make systematically informed decisions on future tasks by accumulating knowledge into a retrievable Persistent CUDA Knowledge Base. We propose a novel profile-guided, textual-gradient-based agentic flow for CUDA generation and optimization to achieve high performance across generations of GPU architectures. KernelBlaster guides LLM agents to systematically explore high-potential optimization strategies beyond naive rewrites. Compared to the PyTorch baseline, our method achieves geometric mean speedups of 1.43x, 2.50x, and 1.50x on KernelBench Levels 1, 2, and 3, respectively. We release KernelBlaster as an open-source agentic framework, accompanied by a test harness, verification components, and a reproducible evaluation pipeline.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 33 references that are in the map. First posted on arXiv 15 Feb 2026.
Builds on
15 of 33 references.
Closest ancestors · 3
Same direction, newest first
- 2025Pie: A Programmable Serving System for Emerging LLM Applications28 Oct
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization23 Oct
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discovery16 Jun
Other references · 12
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2022Compute Trends Across Three Eras of Machine Learningcited by 161
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 59
- 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 33
- 2022Large Language Models can Implement Policy Iterationcited by 31
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2024Sparse Autoencoders Reveal Temporal Difference Learning in Large Language Modelscited by 15
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidancecited by 4
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimizationcited by 4
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 2
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimizationcited by 1
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generationcited by 1
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 0
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
- 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Acceleratorscited by 0
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimizationcited by 0
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimizationcited by 0
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization22 Aug 2026
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution12 Aug 2026
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation2 Jul 2026
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization24 Jun 2026
- 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators1 Jun 2026
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimization28 May 2026
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineages27 May 2026
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimization19 May 2026
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr 2026
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance30 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generation