mlsanityData to 14 Oct 2026

CUDA-LLM: LLMs Can Write Efficient CUDA Kernels

arXiv 2506.09092 ↗First posted 10 Jun 2025cs.LG cs.AIcited by 34

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated strong capabilities in general-purpose code generation. However, generating the code which is deeply hardware-specific, architecture-aware, and performance-critical, especially for massively parallel GPUs, remains a complex challenge. In this work, we explore the use of LLMs for the automated generation and optimization of CUDA programs, with the goal of producing high-performance GPU kernels that fully exploit the underlying hardware. To address this challenge, we propose a novel framework called Feature Search and Reinforcement (FSR). FSR jointly optimizes compilation and functional correctness, as well as the runtime performance, which are validated through extensive and diverse test cases, and measured by actual kernel execution latency on the target GPU, respectively. This approach enables LLMs not only to generate syntactically and semantically correct CUDA code but also to iteratively refine it for efficiency, tailored to the characteristics of the GPU architecture. We evaluate FSR on representative CUDA kernels, covering AI workloads and computational intensive algorithms. Our results show that LLMs augmented with FSR consistently guarantee correctness rates. Meanwhile, the automatically generated kernels can outperform general human-written code by a factor of up to 179× in execution speeds. These findings highlight the potential of combining LLMs with performance reinforcement to automate GPU programming for hardware-specific, architecture-sensitive, and performance-critical applications.

Key facts. Cited by 34 papers in the map (data through 14 Oct 2026). Builds on 3 of its 10 references that are in the map. First posted on arXiv 10 Jun 2025.

Builds on

3 of 10 references.

References · 3

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  3. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 9; 2026: 25.

34 papers.

Sort:

By area:

  1. 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 61
  2. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 51
  3. 2025EvoEngineer: Mastering Automated CUDA Kernel Code Evolution with Large Language Modelscited by 13
  4. 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 13
  5. 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 12
  6. 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
  7. 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvementcited by 11
  8. 2026CUDABench: Benchmarking LLMs for Text-to-CUDA Generationcited by 10
  9. 2026Sol Video Inference Engine: Agent-Native Full-Stack Acceleration Framework for Efficient Video Generationcited by 8
  10. 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolutioncited by 7
  11. 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
  12. 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardwarecited by 5
22 more
  1. 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programscited by 5
  2. 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systemscited by 4
  3. 2026MaxCode: A Max-Reward Reinforcement Learning Framework for Automated Code Optimizationcited by 4
  4. 2026Fine-Tuning GPT-5 for GPU Kernel Generationcited by 4
  5. 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Expertscited by 4
  6. 2025KForge: Program Synthesis for Diverse AI Hardware Acceleratorscited by 3
  7. 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programscited by 3
  8. 2026OptiML: An End-to-End Framework for Program Synthesis and CUDA Kernel Optimizationcited by 3
  9. 2026daVinci-kernel: Co-Evolving Skill Selection, Summarization, and Utilization via RL for GPU Kernel Optimizationcited by 3
  10. 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
  11. 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimizationcited by 2
  12. 2025Evolution of Kernels: Automated RISC-V Kernel Optimization with Large Language Modelscited by 1
  13. 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generationcited by 1
  14. 2025CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Searchcited by 0
  15. 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Acceleratorscited by 0
  16. 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimizationcited by 0
  17. 2026Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss?cited by 0
  18. 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimizationcited by 0
  19. 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Languagecited by 0
  20. 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimizationcited by 0
  21. 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edgecited by 0
  22. 2026WAMJET: A Harness for World Action Model Accelerationcited by 0