QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithm
SKL of Processors, Institute of Computing Technology, CAS(处理器国家重点实验室,计算技术研究所,中国科学院);Intelligent Software Research Center, Institute of Software, CAS(智能软件研究中心,软件研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学)
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.
QiMeng-TensorOp: Automatically Generating High-Performance Tensor Operators with Hardware Primitives
Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Peking University(北京大学)
QiMeng-ChipV-RTL: Exploiting Information Locality for IP-level Verilog Generation
University of Science(科学大学);SKL of Processors, Institute of Computing Technology, CAS(处理器研究所,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学)
GraSAME: Injecting Token-Level Structural Information to Pretrained Language Models via Graph-guided Self-Attention Mechanism
Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI)(可扩展数据分析与人工智能中心(ScaDS.AI));TU Dresden(德累斯顿工业大学)
EMTSF:Extraordinary Mixture of SOTA Models for Time Series Forecasting
Engineering, University of Bridgeport, Bridgeport, CT, USA(工程学院,布里奇波特大学);Department of Computer Science(计算机科学系);Statistics, University of Rhode Island, Kingston, RI, USA(统计学,罗德岛大学)
Depth-Recurrent Attention Mixture (Dreamer): Giving Latent Reasoning the Attention it Deserves
Aleph Alpha Research, Heidelberg, Germany(Aleph Alpha研究机构);Technical University of Munich, Germany(慕尼黑技术大学);Research Group Social Computing, Technical University of Munich, Germany(社会计算研究组,慕尼黑技术大学);Lab1141, Germany(Lab1141研究机构);Computer Science Department, TU Darmstadt, Germany(图林根达姆施塔特技术大学计算机科学系)
Graph Attention Layer Evolves Semantic Segmentation for Road Pothole Detection: A Benchmark and Algorithms
Tongji University(同济大学);Shanghai Research Institute for Intelligent Autonomous Systems(上海智能自主系统研究院);the Hong Kong University of Science and Technology(香港科技大学);SmartMore(思谋科技);University of Thessaloniki(塞萨洛尼基大学)
Provably Improved Context-Based Offline Meta-RL with Attention and Contrastive Learning
Tencent AI Lab(腾讯AI实验室);Megvii Research Shanghai(上海旷视研究院);Tsinghua University(清华大学);Peking University(北京大学);University of Texas at Arlington(德克萨斯大学阿灵顿分校)