CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernels
Not on the map. Why?
Abstract (arXiv)
Efficient CUDA implementations of attention mechanisms are critical to modern deep learning systems, yet supporting diverse and evolving attention variants remains challenging. Existing frameworks and compilers trade performance for flexibility, while expert-written kernels achieve high efficiency but are difficult to adapt. Recent work explores large language models (LLMs) for GPU kernel generation, but prior studies report unstable correctness and significant performance gaps for complex operators such as attention. We present CuBridge, an LLM-based framework that adapts expert-written attention kernels through a structured lift-transfer-lower workflow. CuBridge starts from expert-written CUDA attention kernels and lifts them into an executable intermediate representation that makes execution orchestration explicit while abstracting low-level CUDA syntax. Given a user-provided PyTorch specification, CuBridge generates and verifies a target IR program, then reconstructs optimized CUDA code via reference-guided lowering. Across diverse attention variants and GPU platforms, CuBridge consistently produces correct kernels and substantially outperforms general frameworks, compiler-based approaches, and prior LLM-based methods.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 6 May 2026.
Builds on
32 of 51 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Learning to summarize from human feedbackcited by 2,562
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2023Teaching Large Language Models to Self-Debugcited by 963
20 more
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 59
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 33
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2024FlashMask: Efficient and Rich Mask Extension of FlashAttentioncited by 18
- 2025VQ-LLM: High-performance Code Generation for Vector Quantization Augmented LLM Inferencecited by 12
- 2020Balancing Efficiency and Flexibility for DNN Acceleration via Temporal GPU-Systolic Array Integrationcited by 6
- 2021Characterizing and Demystifying the Implicit Convolution Algorithm on Commercial Matrix-Multiplication Acceleratorscited by 6
- 2025AttentionEngine: A Versatile Framework for Efficient Attention Mechanisms on Diverse Hardware Platformscited by 4
- 2025QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithmcited by 4
- 2023Exploring the Limits of Transfer Learning with Unified Model in the Cybersecurity Domaincited by 3
- 2025FlashFuser: Expanding the Scale of Kernel Fusion for Compute-Intensive Operators via Inter-Core Connectioncited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.