paper-with-me

홈 › Papers

SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning

2020-12-17 · Hanrui Wang, Zhekai Zhang, Song Han

The attention mechanism is becoming increasingly popular in Natural Language Processing (NLP) applications, showing superior performance than convolutional and recurrent architectures. However, attention becomes the compution bottleneck because of its quadratic computational complexity to input length, complicated data movement and low arithmetic intensity. Moreover, existing NN accelerators mainly focus on optimizing convolutional or recurrent models, and cannot efficiently support attention. In this paper, we present SpAtten, an efficient algorithm-architecture co-design that leverages token sparsity, head sparsity, and quantization opportunities to reduce the attention computation and memory access. Inspired by the high redundancy of human languages, we propose the novel cascade token pruning to prune away unimportant tokens in the sentence. We also propose cascade head pruning to remove unessential heads. Cascade pruning is fundamentally different from weight pruning since there is no trainable weight in the attention mechanism, and the pruned tokens and heads are selected on the fly. To efficiently support them on hardware, we design a novel top-k engine to rank token and head importance scores with high throughput. Furthermore, we propose progressive quantization that first fetches MSBs only and performs the computation; if the confidence is low, it fetches LSBs and recomputes the attention outputs, trading computation for memory reduction. Extensive experiments on 30 benchmarks show that, on average, SpAtten reduces DRAM access by 10.0x with no accuracy loss, and achieves 1.6x, 3.0x, 162x, 347x speedup, and 1,4x, 3.2x, 1193x, 4059x energy savings over A3 accelerator, MNNFast accelerator, TITAN Xp GPU, Xeon CPU, respectively.

📄 PDF Abstract BibTeX arXiv:2012.09852

Code (0)

등록된 구현이 없습니다.

Tasks

CPUGPUQuantizationSentence

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

Making Every Head Count: Sparse Attention Without the Speed-Performance Trade-off

2025-11-12 · Mingkuan Zhao, Wentao Hu, Jiayin Wang, Xin Lai 외 arxiv

The design of Large Language Models (LLMs) has long been hampered by a fundamental conflict within their core attention mechanism: its remarkable expressivity is built upon a computational complexity of O(H N^2) that gro…

Computational Efficiency

ViTCoD: Vision Transformer Acceleration via Dedicated Algorithm and Accelerator Co-Design

2022-10-18 · Haoran You, Zhanyi Sun, Huihong Shi, Zhongzhi Yu 외

Vision Transformers (ViTs) have achieved state-of-the-art performance on various vision tasks. However, ViTs' self-attention module is still arguably a major bottleneck, limiting their achievable hardware efficiency. Mea…

LAPA: Log-Domain Prediction-Driven Dynamic Sparsity Accelerator for Transformer Model

2025-11-26 · Huizheng Wang, Hongbin Wang, Shaojun Wei, Yang Hu 외 arxiv

Attention-based Transformers have revolutionized natural language processing (NLP) and shown strong performance in computer vision (CV) tasks. However, as the input sequence varies, the computational bottlenecks in Trans…

Energon: Towards Efficient Acceleration of Transformers Using Dynamic Sparse Attention

2021-10-18 · Zhe Zhou, Junlin Liu, Zhenyu Gu, Guangyu Sun

In recent years, transformer models have revolutionized Natural Language Processing (NLP) and shown promising performance on Computer Vision (CV) tasks. Despite their effectiveness, transformers' attention operations are…

CPUEdge-computingGPU

HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharing

2026-02-03 · Yizhao Gao, Jianyu Wei, Qihao Zhang, Yu Cheng 외 arxiv

This work introduces Hybrid Sparse Attention (HySparse), a new architecture that interleaves each full attention layer with several sparse attention layers. While conceptually simple, HySparse strategically derives each …