CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Developing efficient CUDA kernels is increasingly critical for AI applications such as large-scale LLM training. However, manual kernel design is both costly and time-consuming, motivating automatic approaches that leverage LLMs for code generation. Existing methods for automatic kernel generation, however, often produce low-efficiency kernels, incur high computational overhead, and fail to generalize across settings. In this work, we propose CudaForge, a training-free multi-agent workflow for CUDA kernel generation and optimization. Our workflow is inspired by the iterative workflow of human experts, which contains steps such as developing initial kernels, testing correctness, analyzing hardware feedback, and iterative improvement. More specifically, CudaForge employs two LLM agents: a Coder and a Judge, that iteratively generate, correct, and optimize CUDA kernels, while integrating hardware feedback such as Nsight Compute (NCU) metrics. In extensive evaluations, we show that CudaForge, by leveraging base models like OpenAI-o3, achieves 97.6% correctness of generated kernels and an average 1.68× speedup over PyTorch baselines, substantially surpassing state-of-the-art models including OpenAI-o3 and Kevin on KernelBench.Beyond accuracy and speed, CudaForge demonstrates strong generalization across GPUs (A100, RTX 6000, 4090, 3090) and base models (OpenAI-o3, GPT-5, gpt-oss-120B, Claude-Sonnet-4, QwQ-32B), while maintaining high efficiency. In particular, generating an optimized kernel takes about 26.5 minutes on one RTX6000 and incurs about 0.3 API cost, which is significantly cheaper than existing agentic work that costs 6 H100 hours and 5 API cost per kernel. Our results highlight that multi-agent, training-free workflows can enable cost-effective, generalizable, and high-performance CUDA kernel optimization. Code available at https://github.com/OptimAI-Lab/CudaForge
Key facts. Cited by 45 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 14 of its 22 references that are in the map. First posted on arXiv 23 Oct 2025.
Builds on
14 of 22 references.
Closest ancestors · 2
Same direction, newest first
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
- 2025A Survey on Code Generation with LLM-based Agents31 Jul
Other references · 12
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2018Learning to Optimize Tensor Programscited by 140
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 61
- 2025LiquidGEMM: Hardware-Efficient W4A8 GEMM Kernel for High-Performance LLM Servingcited by 8
- 2025InfantAgent-Next: A Multimodal Generalist Agent for Automated Computer Interactioncited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 44.
45 papers.
Sort:
By area:
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 47
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 24
- 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Searchcited by 18
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 13
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 12
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 11
- 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvementcited by 11
- 2026Sol Video Inference Engine: Agent-Native Full-Stack Acceleration Framework for Efficient Video Generationcited by 8
- 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learningcited by 7
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 6
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
33 more
- 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Expertscited by 4
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimizationcited by 4
- 2026DICE: Diffusion Large Language Models Excel at Generating CUDA Kernelscited by 3
- 2026DRTriton: Large-Scale Synthetic Data Driven Reinforcement Learning for Triton Kernel Generationcited by 3
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 3
- 2026FastKernels: Benchmarking GPU Kernel Generation in Productioncited by 3
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 3
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Banditscited by 2
- 2026CUCo: An Agentic Framework for Compute and Communication Co-designcited by 2
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimizationcited by 2
- 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPUcited by 2
- 2026MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?cited by 1
- 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMscited by 1
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generationcited by 1
- 2026FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applicationscited by 1
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 0
- 2026CUDABeaver: Benchmarking LLM-Based Automated CUDA Debuggingcited by 0
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generationcited by 0
- 2026EGG: An Expert-Guided Agent Framework for Kernel Generationcited by 0
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimizationcited by 0
- 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operatorscited by 0
- 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloadscited by 0
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verificationcited by 0
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimizationcited by 0
- 2026Simthesizer: An Agent-Driven Simulation Framework for LLM Serving Systemscited by 0
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Languagecited by 0
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimizationcited by 0
- 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edgecited by 0
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesiscited by 0
- 2026WAMJET: A Harness for World Action Model Accelerationcited by 0
- 2026MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Codecited by 0
- 2026MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Code4 Oct 2026
- 2026WAMJET: A Harness for World Action Model Acceleration1 Oct 2026
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesis28 Sep 2026
- 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edge28 Sep 2026
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language30 Aug 2026
- 2026Simthesizer: An Agent-Driven Simulation Framework for LLM Serving Systems25 Aug 2026
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimization21 Aug 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvement20 Aug 2026
- 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloads15 Aug 2026
- 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operators3 Aug 2026
33 more
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applications20 Jul 2026
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation2 Jul 2026
- 2026EGG: An Expert-Guided Agent Framework for Kernel Generation25 Jun 2026
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization24 Jun 2026
- 2026Sol Video Inference Engine: Agent-Native Full-Stack Acceleration Framework for Efficient Video Generation21 Jun 2026
- 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPU3 Jun 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimization28 May 2026
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generation26 May 2026
- 2026FastKernels: Benchmarking GPU Kernel Generation in Production22 May 2026
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimization19 May 2026
- 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMs8 May 2026
- 2026CUDABeaver: Benchmarking LLM-Based Automated CUDA Debugging8 May 2026
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernels6 May 2026
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimization30 Mar 2026
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization24 Mar 2026
- 2026DRTriton: Large-Scale Synthetic Data Driven Reinforcement Learning for Triton Kernel Generation23 Mar 2026
- 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Search22 Mar 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?12 Mar 2026
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization10 Mar 2026
- 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Experts7 Mar 2026
- 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learning3 Mar 2026
- 2026CUCo: An Agentic Framework for Compute and Communication Co-design2 Mar 2026
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation27 Feb 2026
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model22 Feb 2026
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning15 Feb 2026
- 2026DICE: Diffusion Large Language Models Excel at Generating CUDA Kernels12 Feb 2026
- 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan 2026
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits24 Nov 2025
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 47
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 12
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 11
- 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvementcited by 11
- 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learningcited by 7
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2026FastKernels: Benchmarking GPU Kernel Generation in Productioncited by 3
- 2026CUCo: An Agentic Framework for Compute and Communication Co-designcited by 2
- 2026FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applicationscited by 1
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 0
12 most cited of 19 All 19 (JSON)
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language30 Aug 2026
- 2026Simthesizer: An Agent-Driven Simulation Framework for LLM Serving Systems25 Aug 2026
- 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvement20 Aug 2026
- 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloads15 Aug 2026
- 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operators3 Aug 2026
- 2026FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applications20 Jul 2026
- 2026EGG: An Expert-Guided Agent Framework for Kernel Generation25 Jun 2026
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels2 Jun 2026
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generation26 May 2026
- 2026FastKernels: Benchmarking GPU Kernel Generation in Production22 May 2026
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr 2026
12 newest of 19 All 19 (JSON)
- 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Searchcited by 18
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 13
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 6
- 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Expertscited by 4
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimizationcited by 4
- 2026DICE: Diffusion Large Language Models Excel at Generating CUDA Kernelscited by 3
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 3
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 3
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimizationcited by 2
- 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPUcited by 2
- 2026MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?cited by 1
12 most cited of 20 All 20 (JSON)
- 2026MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Code4 Oct 2026
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesis28 Sep 2026
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimization21 Aug 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 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
- 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPU3 Jun 2026
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimization28 May 2026
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimization19 May 2026
- 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMs8 May 2026
- 2026CUDABeaver: Benchmarking LLM-Based Automated CUDA Debugging8 May 2026
12 newest of 20 All 20 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
- 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis
- 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
- 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators
- 2026NKI-Agent: Domain-Specific Fine-Tuning and Agentic Tool Use for Neuron Kernel Generation