paper-with-me

홈 › Papers

KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning

2026-02-15 · Kris Shengjun Dong, Sahil Modi, Dima Nikiforov, Sana Damani, Edward Lin, Siva Kumar Sastry Hari, Christos Kozyrakis 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.

📄 PDF Abstract BibTeX arXiv:2602.14293

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning

2025-07-18 · Xiaoya Li, Xiaofei Sun, Albert Wang, Jiwei Li 외

The exponential growth in demand for GPU computing resources, driven by the rapid advancement of Large Language Models, has created an urgent need for automated CUDA optimization strategies. While recent advances in LLMs…

Code GenerationGPUreinforcement-learningReinforcement Learning

CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMs

2026-05-08 · Shiyang Li, Zijian Zhang, Guangyan Sun, Yuebo Luo 외 arxiv

Large language models show promise for automated CUDA programming, however even the strongest coding models (e.g., Claude-Opus-4.6) may still fall short of expert-level, architecture-aware optimization. We introduce CUDA…

CUDABeaver: Benchmarking LLM-Based Automated CUDA Debugging

2026-05-08 · Shiyang Li, Haoyang Chen, Mattia Fazzini, Caiwen Ding arxiv

Debugging CUDA programs has long been challenging because failures often arise from subtle interactions among hardware behavior, compiler decisions, memory hierarchy, and asynchronous execution. More importantly, with th…

PyGraph: Robust Compiler Support for CUDA Graphs in PyTorch

2025-03-25 · Abhishek Ghosh, Ajay Nayak, Ashish Panwar, Arkaprava Basu

CUDA Graphs -- a recent hardware feature introduced for NVIDIA GPUs -- aim to reduce CPU launch overhead by capturing and launching a series of GPU tasks (kernels) as a DAG. However, deploying CUDA Graphs faces several c…

CPUGPU

Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization

2025-09-16 · Robert Tjarko Lange, Qi Sun, Aaditya Prasad, Maxence Faldor 외 arxiv

Recent advances in large language models (LLMs) demonstrate their effectiveness in scaling test-time compute for software engineering tasks. However, these approaches often focus on high-level solutions, with limited att…