Developing efficient CUDA kernels is a fundamental yet challenging task in the generative AI industry. Recent research leverages Large Language Models (LLMs) to automatically convert PyTorch reference implementations to CUDA kernels, significantly reducing engineering effort. State-of-the-art LLMs, such as GPT-5.2 and Claude-Sonnet-4.5, still struggle with this task. To address this challenge, we propose DRTriton, a scalable learning framework for training LLMs to convert PyTorch programs into highly optimized Triton kernels, which are then compiled to CUDA kernels at runtime. DRTriton consists of three key components: (i) a data synthetic algorithm CSP-DAG that guarantees full coverage and unbiased uniform sampling over the operator space with controlled difficulty; (ii) a curriculum RL framework with decoupled rewards that jointly optimizes conversion success rate and execution speed; and (iii) a test-time search algorithm that further improves the execution speed of the generated Triton kernels. With a warmup stage of SFT on limited PyTorch-Triton pairs curated using existing LLMs, DRTriton trained by RL on synthesized PyTorch programs generalizes effectively to real-world CUDA kernels that are challenging even for human experts. Experimental results show that DRTriton-7B achieves speedup over PyTorch on 92% of KernelBench Level 2 tasks, compared to 23% for GPT-5.2 and 19% for Claude-Sonnet-4.5.
TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operators
Tianjin University(天津大学);Harbin Institute of Technology(哈尔滨工业大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Tsinghua University(清华大学)
KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits
Key Lab of HCST (PKU), MOE(HCST关键实验室(北京大学));SCS, Peking University, Beijing, China(SCS,北京大学,北京,中国);Hong Kong University of Science(香港科学大学);East China Normal University, Shanghai, China(华东师范大学,上海,中国);Department of Computer Science, Tianjin University, Tianjin, China(天津大学计算机科学系,天津,中国);School of Computing Science, Simon Fraser University, Burnaby, BC, Canada(Simon Fraser大学计算机科学学院,Burnaby,BC,加拿大);University of Texas at Dallas, USA(德克萨斯大学达拉斯分校,美国);Beijing Tongming Lake Information Technology Application Innovation Center, China(北京同铭湖信息技术应用创新中心,中国);Fudan University Institute of Systems for Advanced Computing, China(复旦大学高级计算系统研究所,中国);Shanghai Institute of Systems for Open Computing, China(上海开放计算系统研究所,中国)
Beyond Homogeneous Attention: Memory-Efficient LLMs via Fourier-Approximated KV Cache
School of Computer Science, Fudan University(复旦大学计算机科学学院);Shanghai Innovation Institute(上海创新研究院);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Shanghai AI Lab(上海AI实验室)