1
CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learning
2 Dec · Songqiao Su, Xiaoya Li, Albert Wang +3 · arXiv:2512.02551
In this paper, we propose CUDA-L2, a system that combines large language models (LLMs) and reinforcement learning (RL) to automatically optimize Half-precision General Matrix Multiply (HGEMM) CUDA kernels. Using CUDA execution speed as the RL reward, CUDA-L2 automatically optimizes HGEMM kernels across 1,000 configurations. CUDA-L2 systematically outperforms major matmul baselines to date, from the widely-used…
Project code: github.com/ornith-ai/CUDA-L2 Machine learning Artificial intelligence Matched by wording