mlsanityData to 14 Oct 2026

CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization

arXiv 2511.01884 ↗First posted 23 Oct 2025cs.LG cs.AI cs.CLcited by 45

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

  1. 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
  2. 2025A Survey on Code Generation with LLM-based Agents31 Jul

Other references · 12

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  4. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  5. 2024A Survey on Large Language Models for Code Generationcited by 658
  6. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  7. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
  8. 2018Learning to Optimize Tensor Programscited by 140
  9. 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
  10. 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 61
  11. 2025LiquidGEMM: Hardware-Efficient W4A8 GEMM Kernel for High-Performance LLM Servingcited by 8
  12. 2025InfantAgent-Next: A Multimodal Generalist Agent for Automated Computer Interactioncited by 7

Built on by

Cited by year (2026 to 14 Oct)

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

45 papers.

Sort:

By area:

  1. 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 47
  2. 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 24
  3. 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Searchcited by 18
  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. 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 11
  8. 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvementcited by 11
  9. 2026Sol Video Inference Engine: Agent-Native Full-Stack Acceleration Framework for Efficient Video Generationcited by 8
  10. 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learningcited by 7
  11. 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 6
  12. 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
33 more
  1. 2026Making LLMs Optimize Multi-Scenario CUDA Kernels Like Expertscited by 4
  2. 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimizationcited by 4
  3. 2026DICE: Diffusion Large Language Models Excel at Generating CUDA Kernelscited by 3
  4. 2026DRTriton: Large-Scale Synthetic Data Driven Reinforcement Learning for Triton Kernel Generationcited by 3
  5. 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 3
  6. 2026FastKernels: Benchmarking GPU Kernel Generation in Productioncited by 3
  7. 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 3
  8. 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Banditscited by 2
  9. 2026CUCo: An Agentic Framework for Compute and Communication Co-designcited by 2
  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. 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPUcited by 2
  13. 2026MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?cited by 1
  14. 2026CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMscited by 1
  15. 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generationcited by 1
  16. 2026FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applicationscited by 1
  17. 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernelscited by 1
  18. 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 0
  19. 2026CUDABeaver: Benchmarking LLM-Based Automated CUDA Debuggingcited by 0
  20. 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generationcited by 0
  21. 2026EGG: An Expert-Guided Agent Framework for Kernel Generationcited by 0
  22. 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimizationcited by 0
  23. 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operatorscited by 0
  24. 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloadscited by 0
  25. 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verificationcited by 0
  26. 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimizationcited by 0
  27. 2026Simthesizer: An Agent-Driven Simulation Framework for LLM Serving Systemscited by 0
  28. 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Languagecited by 0
  29. 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimizationcited by 0
  30. 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edgecited by 0
  31. 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesiscited by 0
  32. 2026WAMJET: A Harness for World Action Model Accelerationcited by 0
  33. 2026MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Codecited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution
  2. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization
  3. 2025STARK: Strategic Team of Agents for Refining Kernels
  4. 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
  5. 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis
  6. 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
  7. 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators
  8. 2026NKI-Agent: Domain-Specific Fine-Tuning and Agentic Tool Use for Neuron Kernel Generation