QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithm
Not on the map. Why?
Abstract (arXiv)
The attention operator remains a critical performance bottleneck in large language models (LLMs), particularly for long-context scenarios. While FlashAttention is the most widely used and effective GPU-aware acceleration algorithm, it must require time-consuming and hardware-specific manual implementation, limiting adaptability across GPU architectures. Existing LLMs have shown a lot of promise in code generation tasks, but struggle to generate high-performance attention code. The key challenge is it cannot comprehend the complex data flow and computation process of the attention operator and utilize low-level primitive to exploit GPU performance. To address the above challenge, we propose an LLM-friendly Thinking Language (LLM-TL) to help LLMs decouple the generation of high-level optimization logic and low-level implementation on GPU, and enhance LLMs' understanding of attention operator. Along with a 2-stage reasoning workflow, TL-Code generation and translation, the LLMs can automatically generate FlashAttention implementation on diverse GPUs, establishing a self-optimizing paradigm for generating high-performance attention operators in attention-centric algorithms. Verified on A100, RTX8000, and T4 GPUs, the performance of our methods significantly outshines that of vanilla LLMs, achieving a speed-up of up to 35.16x. Besides, our method not only surpasses human-optimized libraries (cuDNN and official library) in most scenarios but also extends support to unsupported hardware and data types, reducing development time from months to minutes compared with human experts.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 20 of its 38 references that are in the map. First posted on arXiv 14 Jun 2025.
Builds on
20 of 38 references.
References · 20
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2023The Falcon Series of Open Language Modelscited by 535
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2014cuDNN: Efficient Primitives for Deep Learningcited by 245
8 more
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 185
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
- 2018NVIDIA Tensor Core Programmability, Performance & Precisioncited by 79
- 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generationcited by 73
- 2023FlashDecoding++: Faster Large Language Model Inference on GPUscited by 71
- 2023L2MAC: Large Language Model Automatic Computer for Extensive Code Generationcited by 30
- 2025QiMeng-TensorOp: Automatically Generating High-Performance Tensor Operators with Hardware Primitivescited by 5
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generationcited by 19
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimizationcited by 11
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernels6 May 2026
- 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan 2026
- 2025QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generation25 Nov 2025
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimization9 Nov 2025