paper-with-me

홈 › Papers

From Large to Small: Transferring CUDA Optimization Expertise via Reasoning Graph

2025-10-22 · Junfeng Gong, Zhiyi Wei, Junying Chen, Cheng Liu, Huawei Li arxiv

Despite significant evolution of CUDA programming and domain-specific libraries, effectively utilizing GPUs with massively parallel engines remains difficult. Large language models (LLMs) show strong potential in generating optimized CUDA code from sequential code. However, using LLMs in practice faces two major challenges: cloud-based APIs pose risks of code leakage, and local deployment is often computationally expensive and inefficient. These drawbacks have spurred interest in small language models (SLMs), which are more lightweight and privacy-friendly. Encouragingly, recent studies show that SLMs can achieve performance comparable to LLMs on specific tasks. While SLMs can match LLMs on domain-specific tasks, their limited reasoning abilities lead to suboptimal performance in complex CUDA generation according to our experiments. To bridge this gap, we propose ReGraphT, a training-free, retrieval-augmented generation framework that transfers LLM-level reasoning to smaller models. ReGraphT organizes CUDA optimization trajectories into a structured reasoning graph, modeling the combined CUDA optimizations as state transitions, and leverages Monte Carlo Graph Search (MCGS) for efficient exploration. We also present a CUDA-specific benchmark with difficulty tiers defined by reasoning complexity to evaluate models more comprehensively. Experiments show that ReGraphT outperforms HPC-specific fine-tuned models and other retrieval-augmented approaches, achieving an average 2.33X speedup on CUDAEval and ParEval. When paired with DeepSeek-Coder-V2-Lite-Instruct and Qwen2.5-Coder-7B-Instruct, ReGraphT enables SLMs to approach LLM-level performance without the associated privacy risks or excessive computing overhead.

📄 PDF Abstract BibTeX arXiv:2510.19873

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation

2026-02-27 · Weinan Dai, Hanlin Wu, Qiying Yu, Huan-ang Gao 외 arxiv

GPU kernel optimization is fundamental to modern deep learning but remains a highly specialized task requiring deep hardware expertise. Despite strong performance in general programming, large language models (LLMs) rema…

Reinforcement LearningCode Generation

CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning

2025-07-18 · Xiaoya Li, Xiaofei Sun, Albert Wang, Jiwei Li 외

The exponential growth in demand for GPU computing resources, driven by the rapid advancement of Large Language Models, has created an urgent need for automated CUDA optimization strategies. While recent advances in LLMs…

Code GenerationGPUreinforcement-learningReinforcement Learning

cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution

2025-12-18 · Jinwu Chen, Qidie Wu, Bin Li, Lin Ma 외 arxiv

Optimizing CUDA kernels is a challenging and labor-intensive task, given the need for hardware-software co-design expertise and the proprietary nature of high-performance kernel libraries. While recent large language mod…

CUDAHercules: Benchmarking Hardware-Aware Expert-level CUDA Optimization for LLMs

2026-05-08 · Shiyang Li, Zijian Zhang, Guangyan Sun, Yuebo Luo 외 arxiv

Large language models show promise for automated CUDA programming, however even the strongest coding models (e.g., Claude-Opus-4.6) may still fall short of expert-level, architecture-aware optimization. We introduce CUDA…

EvoEngineer: Mastering Automated CUDA Kernel Code Evolution with Large Language Models

2025-10-04 · Ping Guo, Chenyu Zhu, Siyuan Chen, Fei Liu 외 arxiv

CUDA kernel optimization has become a critical bottleneck for AI performance, as deep learning training and inference efficiency directly depends on highly optimized GPU kernels. Despite the promise of Large Language Mod…