mlsanityData to 14 Oct 2026

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

arXiv 2510.19873 ↗First posted 22 Oct 2025cs.LG cs.AI cs.PLcited by 10

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

  1. 2024Qwen2.5-Coder Technical Report18 Sep
  2. 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generation15 Sep

Other references · 21

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  4. 2024Qwen2.5 Technical Reportcited by 4,942
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2024DeepSeek-V3 Technical Reportcited by 811
  9. 2023StarCoder: may the source be with you!cited by 799
  10. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  11. 2024Monte Carlo Tree Search Boosts Reasoning via Iterative Preference Learningcited by 241
  12. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
9 more
  1. 2024ReDeEP: Detecting Hallucination in Retrieval-Augmented Generation via Mechanistic Interpretabilitycited by 101
  2. 2024On Protecting the Data Privacy of Large Language Models (LLMs): A Surveycited by 96
  3. 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
  4. 2024EVOR: Evolving Retrieval for Code Generationcited by 22
  5. 2025MCTS-RAG: Enhancing Retrieval-Augmented Generation with Monte Carlo Tree Searchcited by 21
  6. 2024Preserving Privacy in Large Language Models: A Survey on Current Threats and Solutionscited by 15
  7. 2023A Comparative Analysis of Fine-Tuned LLMs and Few-Shot Learning of LLMs for Financial Sentiment Analysiscited by 6
  8. 2024Deploying Open-Source Large Language Models: A performance Analysiscited by 2
  9. 2025Leveraging Reasoning Model Answers to Enhance Non-Reasoning Model Capabilitycited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 10.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026OptiML: An End-to-End Framework for Program Synthesis and CUDA Kernel Optimization
  2. 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization
  3. 2025Tutoring LLM into a Better CUDA Optimizer
  4. 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning
  5. 2026AgentCompile: An LLM-Guided Compiler for Direct CUDA Inference
  6. 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning
  7. 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution
  8. 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization