PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
November 9, 20250 citationsOpen Access

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

View Full Paper
ZZZijian ZhangRWRong WangSLShiyang Li

Key Points

  • CudaForge achieves 1.68x speedup in CUDA kernel optimization compared to PyTorch baselines.
  • Evaluation demonstrates 97.6% correctness in generated kernels across multiple GPUs and base models.
  • The framework leverages hardware feedback with tools like Nsight Compute to enhance performance.
  • Results suggest that multi-agent methods can enable significant cost reductions in kernel generation processes.

Abstract

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

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Zhang et al. (2025) studied this question.

synapsesocial.com/papers/690fdcdaf60c54d04ea37fb5https://doi.org/10.48550/arxiv.2511.01884
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1EvoEngineer: Mastering Automated CUDA Kernel Code Evolution with Large Language Models2025
  2. 2GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimization2025 · 1 citations
  3. 3Automatic Static Analysis-Guided Optimization of CUDA Kernels2024
  4. 4Geak: Introducing Triton Kernel AI Agent & Evaluation Benchmarks2025
  5. 5Luthier: Bridging Auto-Tuning and Vendor Libraries for Efficient Deep Learning Inference2025 · 2 citations