English
Related papers

Related papers: FlashAttention-3: Fast and Accurate Attention with…

200 papers

Large Language Models (LLMs) with extended context lengths face significant computational challenges during the pre-filling phase, primarily due to the quadratic complexity of self-attention. Existing methods typically employ dynamic…

Machine Learning · Computer Science 2025-05-30 Yu Zhang , Dong Guo , Fang Wu , Guoliang Zhu , Dian Ding , Yiming Zhang

With the increasing volumes of Large Language Models (LLMs) and the expanding context lengths, attention computation has become a key performance bottleneck in LLM serving. For fast attention computation, recent practices often parallelize…

Distributed, Parallel, and Cluster Computing · Computer Science 2026-03-12 Di Liu , Yifei Liu , Chen Chen , Zhibin Yu , Xiaoyi Fan , Quan Chen , Minyi Guo

Large language models (LLMs) face low hardware efficiency during decoding, especially for long-context reasoning tasks. This paper introduces Step-3, a 321B-parameter VLM with hardware-aware model-system co-design optimized for minimizing…

Machine Learning · Computer Science 2025-07-28 StepFun , : , Bin Wang , Bojun Wang , Changyi Wan , Guanzhe Huang , Hanpeng Hu , Haonan Jia , Hao Nie , Mingliang Li , Nuo Chen , Siyu Chen , Song Yuan , Wuxun Xie , Xiaoniu Song , Xing Chen , Xingping Yang , Xuelin Zhang , Yanbo Yu , Yaoyu Wang , Yibo Zhu , Yimin Jiang , Yu Zhou , Yuanwei Lu , Houyi Li , Jingcheng Hu , Ka Man Lo , Ailin Huang , Binxing Jiao , Bo Li , Boyu Chen , Changxin Miao , Chang Lou , Chen Hu , Chen Xu , Chenfeng Yu , Chengyuan Yao , Daokuan Lv , Dapeng Shi , Deshan Sun , Ding Huang , Dingyuan Hu , Dongqing Pang , Enle Liu , Fajie Zhang , Fanqi Wan , Gulin Yan , Han Zhang , Han Zhou , Hanghao Wu , Hangyu Guo , Hanqi Chen , Hanshan Zhang , Hao Wu , Haocheng Zhang , Haolong Yan , Haoran Lv , Haoran Wei , Hebin Zhou , Heng Wang , Heng Wang , Hongxin Li , Hongyu Zhou , Hongyuan Wang , Huiyong Guo , Jia Wang , Jiahao Gong , Jialing Xie , Jian Zhou , Jianjian Sun , Jiaoren Wu , Jiaran Zhang , Jiayu Liu , Jie Cheng , Jie Luo , Jie Yan , Jie Yang , Jieyi Hou , Jinguang Zhang , Jinlan Cao , Jisheng Yin , Junfeng Liu , Junhao Huang , Junzhe Lin , Kaijun Tan , Kaixiang Li , Kang An , Kangheng Lin , Kenkun Liu , Lei Yang , Liang Zhao , Liangyu Chen , Lieyu Shi , Liguo Tan , Lin Lin , Lin Zhang , Lina Chen , Liwen Huang , Liying Shi , Longlong Gu , Mei Chen , Mengqiang Ren , Ming Li , Mingzhe Chen , Na Wang , Nan Wu , Qi Han , Qian Zhao , Qiang Zhang , Qianni Liu , Qiaohui Chen , Qiling Wu , Qinglin He , Qinyuan Tan , Qiufeng Wang , Qiuping Wu , Qiuyan Liang , Quan Sun , Rui Li , Ruihang Miao , Ruosi Wan , Ruyan Guo , Shangwu Zhong , Shaoliang Pang , Shengjie Fan , Shijie Shang , Shilei Jiang , Shiliang Yang , Shiming Hao , Shuli Gao , Siming Huang , Siqi Liu , Tiancheng Cao , Tianhao Cheng , Tianhao Peng , Wang You , Wei Ji , Wen Sun , Wenjin Deng , Wenqing He , Wenzhen Zheng , Xi Chen , Xiangwen Kong , Xianzhen Luo , Xiaobo Yang , Xiaojia Liu , Xiaoxiao Ren , Xin Han , Xin Li , Xin Wu , Xu Zhao , Yanan Wei , Yang Li , Yangguang Li , Yangshijie Xu , Yanming Xu , Yaqiang Shi , Yeqing Shen , Yi Yang , Yifei Yang , Yifeng Gong , Yihan Chen , Yijing Yang , Yinmin Zhang , Yizhuang Zhou , Yuanhao Ding , Yuantao Fan , Yuanzhen Yang , Yuchu Luo , Yue Peng , Yufan Lu , Yuhang Deng , Yuhe Yin , Yujie Liu , Yukun Chen , Yuling Zhao , Yun Mou , Yunlong Li , Yunzhou Ju , Yusheng Li , Yuxiang Yang , Yuxiang Zhang , Yuyang Chen , Zejia Weng , Zhe Xie , Zheng Ge , Zheng Gong , Zhenyi Lu , Zhewei Huang , Zhichao Chang , Zhiguo Huang , Zhirui Wang , Zidong Yang , Zili Wang , Ziqi Wang , Zixin Zhang , Binxing Jiao , Daxin Jiang , Heung-Yeung Shum , Xiangyu Zhang

Token pruning methods for Vision Transformers (ViTs) promise quadratic reductions in attention FLOPs by dropping uninformative patches. Yet standard variable-length attention APIs -- including FlashAttention-2's varlen and PyTorch's…

Machine Learning · Computer Science 2026-05-13 Seifeldin Abdellatif , Ahmad Almasri

Sparse attention has been proposed as a way to alleviate the quadratic cost of transformers, a central bottleneck in long-context training. A promising line of work is $\alpha$-entmax attention, a differentiable sparse alternative to…

Machine Learning · Computer Science 2026-04-17 Nuno Gonçalves , Hugo Pitorro , Vlad Niculae , Edoardo Ponti , Lei Li , Andre Martins , Marcos Treviso

State-of-the-art sparse attention methods for reducing decoding latency fall into two main categories: approximate top-$k$ (and its extension, top-$p$) and recently introduced sampling-based estimation. However, these approaches are…

The attention layer, a core component of Transformer-based LLMs, brings out inefficiencies in current GPU systems due to its low operational intensity and the substantial memory requirements of KV caches. We propose a High-bandwidth…

Hardware Architecture · Computer Science 2025-12-19 Myunghyun Rhee , Joonseop Sim , Taeyoung Ahn , Seungyong Lee , Daegun Yoon , Euiseok Kim , Kyoung Park , Youngpyo Joo , Hoshik Kim

Diffusion models excel in high-fidelity image generation but face scalability limits due to transformers' quadratic attention complexity. Plug-and-play token reduction methods like ToMeSD and ToFu reduce FLOPs by merging redundant tokens in…

Machine Learning · Computer Science 2025-12-02 Wenbo Lu , Shaoyi Zheng , Yuxuan Xia , Shengjie Wang

Recently, the Transformer machine translation system has shown strong results by stacking attention layers on both the source and target-language sides. But the inference of this model is slow due to the heavy use of dot-product attention…

Computation and Language · Computer Science 2019-06-27 Tong Xiao , Yinqiao Li , Jingbo Zhu , Zhengtao Yu , Tongran Liu

Inference with Transformer-based Large Language Models (LLMs) on long sequences is both costly and slow due to the quadratic complexity of the self-attention mechanism. We introduce Star Attention, a two-phase block-sparse approximation…

Computation and Language · Computer Science 2025-06-02 Shantanu Acharya , Fei Jia , Boris Ginsburg

Transformers, renowned for their self-attention mechanism, have achieved state-of-the-art performance across various tasks in natural language processing, computer vision, time-series modeling, etc. However, one of the challenges with deep…

Machine Learning · Computer Science 2024-11-04 Jeongwhan Choi , Hyowon Wi , Jayoung Kim , Yehjin Shin , Kookjin Lee , Nathaniel Trask , Noseong Park

Effective attention modules have played a crucial role in the success of Transformer-based large language models (LLMs), but the quadratic time and memory complexities of these attention modules also pose a challenge when processing long…

Distributed, Parallel, and Cluster Computing · Computer Science 2024-06-07 Ao Sun , Weilin Zhao , Xu Han , Cheng Yang , Zhiyuan Liu , Chuan Shi , Maosong Sun

Transformers have been successfully used in various fields and are becoming the standard tools in computer vision. However, self-attention, a core component of transformers, has a quadratic complexity problem, which limits the use of…

Computer Vision and Pattern Recognition · Computer Science 2022-06-02 Jiuk Hong , Chaehyeon Lee , Soyoun Bang , Heechul Jung

When implementations of the Transformer's self-attention layer utilize SRAM instead of DRAM, they can achieve significant speedups. The Tenstorrent Grayskull architecture provides a large SRAM, distributed across a grid of cores. This work…

Machine Learning · Computer Science 2024-07-22 Moritz Thüning

Attention mechanisms underpin the success of large language models (LLMs), yet their substantial computational and memory overhead poses challenges for optimizing efficiency and performance. A critical bottleneck arises as KV cache and…

Computation and Language · Computer Science 2025-07-24 Luoyang Sun , Cheng Deng , Jiwen Jiang , Xinjian Wu , Haifeng Zhang , Lei Chen , Lionel Ni , Jun Wang

The paradigm of Transformers using the self-attention mechanism has manifested its advantage in learning graph-structured data. Yet, Graph Transformers are capable of modeling full range dependencies but are often deficient in extracting…

Machine Learning · Computer Science 2024-09-11 Minhong Zhu , Zhenhao Zhao , Weiran Cai

Currently, one main research line in designing a more efficient vision transformer is reducing the computational cost of self attention modules by adopting sparse attention or using local attention windows. In contrast, we propose a…

Computer Vision and Pattern Recognition · Computer Science 2023-03-21 Haokui Zhang , Wenze Hu , Xiaoyu Wang

The Transformer translation model is based on the multi-head attention mechanism, which can be parallelized easily. The multi-head attention network performs the scaled dot-product attention function in parallel, empowering the model by…

Computation and Language · Computer Science 2021-09-13 Hongfei Xu , Qiuhui Liu , Josef van Genabith , Deyi Xiong

Transformers have become the backbone of neural network architecture for most machine learning applications. Their widespread use has resulted in multiple efforts on accelerating attention, the basic building block of transformers. This…

Hardware Architecture · Computer Science 2025-02-19 Dong Eun Kim , Tanvi Sharma , Kaushik Roy

Self-attention has recently been adopted for a wide range of sequence modeling problems. Despite its effectiveness, self-attention suffers from quadratic compute and memory requirements with respect to sequence length. Successful approaches…

Machine Learning · Computer Science 2020-10-27 Aurko Roy , Mohammad Saffar , Ashish Vaswani , David Grangier