mlsanityData to 7 Oct 2026

CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning

arXiv 2507.14111 ↗First posted 18 Jul 2025cs.AI cs.DC cs.LGcited by 59

Not on the map. Why?

Cited by 25 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

The exponential growth in demand for GPU computing resources has created an urgent need for automated CUDA optimization strategies. While recent advances in LLMs show promise for code generation, current SOTA models achieve low success rates in improving CUDA speed. In this paper, we introduce CUDA-L1, an automated reinforcement learning framework for CUDA optimization that employs a novel contrastive RL algorithm. CUDA-L1 achieves significant performance improvements on the CUDA optimization task: trained on A100, it delivers an average speedup of x3.12 with a median speedup of x1.42 against default baselines over across all 250 CUDA kernels of KernelBench, with peak speedups reaching x120. In addition to the default baseline provided by KernelBench, CUDA-L1 demonstrates x2.77 over Torch Compile, x2.88 over Torch Compile with reduce overhead, x2.81 over CUDA Graph implementations, and x7.72 over cuDNN libraries. Furthermore, the model also demonstrates portability across different GPU architectures. Beyond these benchmark results, CUDA-L1 demonstrates several properties: it 1) discovers a variety of CUDA optimization techniques and learns to combine them strategically to achieve optimal performance; 2) uncovers fundamental principles of CUDA optimization, such as the multiplicative nature of optimizations; 3) identifies non-obvious performance bottlenecks and rejects seemingly beneficial optimizations that actually harm performance. The capabilities demonstrate that, RL can transform an initially poor-performing LLM into an effective CUDA optimizer through speedup-based reward signals alone, without human expertise or domain knowledge. This paradigm opens possibilities for automated optimization of CUDA operations, and holds promise to substantially promote GPU efficiency and alleviate the rising pressure on GPU computing resources.

Key facts. Cited by 59 papers in the map (data through 7 Oct 2026). Builds on 22 of its 35 references that are in the map. First posted on arXiv 18 Jul 2025.

Builds on

22 of 35 references.

References · 22

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  5. 2025Qwen3 Technical Reportcited by 8,195
  6. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  7. 2024GPT-4o System Cardcited by 4,467
  8. 2024Mixtral of Expertscited by 1,785
  9. 2016Variational Inference: A Review for Statisticianscited by 1,466
  10. 2025s1: Simple test-time scalingcited by 1,311
  11. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  12. 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
10 more
  1. 2023Instruction Tuning for Large Language Models: A Surveycited by 617
  2. 20242 OLMo 2 Furiouscited by 302
  3. 2024Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Modelcited by 258
  4. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
  5. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  6. 2024Reinforcement Learning Enhanced LLMs: A Surveycited by 69
  7. 2024HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMscited by 68
  8. 2025Evolving Deeper LLM Thinkingcited by 58
  9. 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 33
  10. 2024Understanding the Importance of Evolutionary Search in Automated Heuristic Design with Large Language Modelscited by 22

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 15; 2026: 44.

59 papers.

Sort:

By area:

  1. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
  2. 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
  3. 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 41
  4. 2025TritonRL: Training LLMs to Think and Code Triton Without Cheatingcited by 24
  5. 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
  6. 2025The FM Agentcited by 20
  7. 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 17
  8. 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Searchcited by 14
  9. 2025EvoEngineer: Mastering Automated CUDA Kernel Code Evolution with Large Language Modelscited by 13
  10. 2025CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learningcited by 13
  11. 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 11
  12. 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
38 more
  1. 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 10
  2. 2026CUDABench: Benchmarking LLMs for Text-to-CUDA Generationcited by 10
  3. 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 9
  4. 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 9
  5. 2026Hardening Agent Benchmarks with Adversarial Hacker-Fixer Loopscited by 8
  6. 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolutioncited by 7
  7. 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesiscited by 7
  8. 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learningcited by 7
  9. 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
  10. 2025LANPO: Bootstrapping Language and Numerical Feedback for Reinforcement Learning in LLMscited by 5
  11. 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 5
  12. 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systemscited by 4
  13. 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidancecited by 4
  14. 2026MaxCode: A Max-Reward Reinforcement Learning Framework for Automated Code Optimizationcited by 3
  15. 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Expertscited by 3
  16. 2026GrandCode: Achieving Grandmaster Level in Competitive Programming via Agentic Reinforcement Learningcited by 3
  17. 2026AdaExplore: Failure-Driven Adaptation and Diversity-Preserving Search for Efficient Kernel Generationcited by 3
  18. 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 2
  19. 2026FastKernels: Benchmarking GPU Kernel Generation in Productioncited by 2
  20. 2025Evolution of Kernels: Automated RISC-V Kernel Optimization with Large Language Modelscited by 1
  21. 2026Surprisal-Guided Selection: Compute-Optimal Test-Time Strategies for Execution-Grounded Code Generationcited by 1
  22. 2026DICE: Diffusion Large Language Models Excel at Generating CUDA Kernelscited by 1
  23. 2026CUCo: An Agentic Framework for Compute and Communication Co-designcited by 1
  24. 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 1
  25. 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generationcited by 1
  26. 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generationcited by 1
  27. 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generationcited by 1
  28. 2026FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applicationscited by 1
  29. 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Searchcited by 0
  30. 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
  31. 2026MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?cited by 0
  32. 2026ARL-Tangram: Unleash the Resource Efficiency in Agentic Reinforcement Learningcited by 0
  33. 2026Step-TP: A Grounded, Step-Level Dataset with Chain-of-Thought Reasoning for LLM-Guided Tensor Program Optimizationcited by 0
  34. 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generationcited by 0
  35. 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
  36. 2026Kernel Foundry: A Diagnosis-driven Evolutionary Kernel Optimizer with Multi-Expertscited by 0
  37. 2026EGG: An Expert-Guided Agent Framework for Kernel Generationcited by 0
  38. 2026Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generationcited by 0

50 most cited of 59 All 59 (JSON)