From Large to Small: Transferring CUDA Optimization Expertise via Reasoning Graph
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (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.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 23 of its 52 references that are in the map. First posted on arXiv 22 Oct 2025.
Builds on
23 of 52 references.
Closest ancestors · 2
Same direction, newest first
- 2024Qwen2.5-Coder Technical Report18 Sep
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generation15 Sep
Other references · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024DeepSeek-V3 Technical Reportcited by 811
- 2023StarCoder: may the source be with you!cited by 799
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2024Monte Carlo Tree Search Boosts Reasoning via Iterative Preference Learningcited by 241
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
9 more
- 2024ReDeEP: Detecting Hallucination in Retrieval-Augmented Generation via Mechanistic Interpretabilitycited by 101
- 2024On Protecting the Data Privacy of Large Language Models (LLMs): A Surveycited by 96
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
- 2024EVOR: Evolving Retrieval for Code Generationcited by 22
- 2025MCTS-RAG: Enhancing Retrieval-Augmented Generation with Monte Carlo Tree Searchcited by 21
- 2024Preserving Privacy in Large Language Models: A Survey on Current Threats and Solutionscited by 15
- 2023A Comparative Analysis of Fine-Tuned LLMs and Few-Shot Learning of LLMs for Financial Sentiment Analysiscited by 6
- 2024Deploying Open-Source Large Language Models: A performance Analysiscited by 2
- 2025Leveraging Reasoning Model Answers to Enhance Non-Reasoning Model Capabilitycited by 1
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 47
- 2026KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernelscited by 12
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimizationcited by 2
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generationcited by 1
- 2026VeriPilot: An LLM-Powered Verilog Debugging Frameworkcited by 1
- 2026Step-TP: A Grounded, Step-Level Dataset with Chain-of-Thought Reasoning for LLM-Guided Tensor Program Optimizationcited by 0
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Languagecited by 0
- 2026HyperMCTS: Hypergraph-Augmented MCTS for Long-Horizon LLM Agentscited by 0
- 2026MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Codecited by 0
- 2026MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Code4 Oct 2026
- 2026HyperMCTS: Hypergraph-Augmented MCTS for Long-Horizon LLM Agents27 Sep 2026
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language30 Aug 2026
- 2026VeriPilot: An LLM-Powered Verilog Debugging Framework22 Jun 2026
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generation15 Jun 2026
- 2026HTAM: Hierarchical Transition-Attended Memory for Operator Optimization28 May 2026
- 2026Step-TP: A Grounded, Step-Level Dataset with Chain-of-Thought Reasoning for LLM-Guided Tensor Program Optimization25 May 2026
- 2026KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernels6 May 2026
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation27 Feb 2026
- 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026OptiML: An End-to-End Framework for Program Synthesis and CUDA Kernel Optimization
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization
- 2025Tutoring LLM into a Better CUDA Optimizer
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning
- 2026AgentCompile: An LLM-Guided Compiler for Direct CUDA Inference
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning
- 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization