Lune

DAC2024顶会

SWAT: Scalable and Efficient Window Attention-based Transformers Acceleration on FPGAs

Zhenyu Bai, Pranav Dangi, Huize Li, Tulika Mitra

摘要

Efficiently supporting long context length is crucial for Transformer models. The quadratic complexity of the self-attention computation plagues traditional Transformers. Sliding window-based static sparse attention mitigates the problem by limiting the attention scope of the input tokens, reducing the theoretical complexity from quadratic to linear. Although the sparsity induced by window attention is highly structured, it does not align perfectly with the microarchitecture of the conventional accelerators, leading to sub-optimal implementation. In response, we propose a dataflow-aware FPGA-based accelerator design, SWAT, that efficiently leverages the sparsity to achieve scalable performance for long input. The proposed microarchitecture is based on a design that maximizes data reuse by using a combination of row-wise dataflow, kernel fusion optimization, and an input-stationary design considering the distributed memory and computation resources of FPGA. Consequently, it achieves up to 22× and 5.7× improvement in latency and energy efficiency compared to the baseline FPGA-based accelerator and 15× energy efficiency compared to GPU-based solution.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • PADE: A Predictor-Free Sparse Attention Accelerator via Unified Execution and Stage Fusion 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • PADE: A Predictor-Free Sparse Attention Accelerator via Unified Execution and Stage Fusion 引用了 Big Bird: Transformers for Longer Sequences
  • PADE: A Predictor-Free Sparse Attention Accelerator via Unified Execution and Stage Fusion 引用了 MCBP: A Memory-Compute Efficient LLM Inference Accelerator Leveraging Bit-Slice-enabled Sparsity and Repetitiveness
  • Long Range Arena : A Benchmark for Efficient Transformers 引用了 Big Bird: Transformers for Longer Sequences
  • MCBP: A Memory-Compute Efficient LLM Inference Accelerator Leveraging Bit-Slice-enabled Sparsity and Repetitiveness 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Long Range Arena : A Benchmark for Efficient Transformers
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Big Bird: Transformers for Longer Sequences
  • A Data-Driven Dynamic Execution Orchestration Architecture 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • A Data-Driven Dynamic Execution Orchestration Architecture 引用了 Big Bird: Transformers for Longer Sequences
  • Accelerating Sparse Transformer Inference on GPU 引用了 Big Bird: Transformers for Longer Sequences
  • Accelerating Sparse Transformer Inference on GPU 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encoding 引用了 Long Range Arena : A Benchmark for Efficient Transformers
  • Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encoding 引用了 Big Bird: Transformers for Longer Sequences
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. MCBP: A Memory-Compute Efficient LLM Inference Accelerator Leveraging Bit-Slice-enabled Sparsity and RepetitivenessHuizheng Wang, Zichuan Wang, Zhiheng Yue, Yousheng Long 等MICRO 2025 · 10 次引用
  2. PADE: A Predictor-Free Sparse Attention Accelerator via Unified Execution and Stage FusionHuizheng Wang, Hongbin Wang, Zichuan Wang, Zhiheng Yue 等HPCA 2026 · 2 次引用
  3. Accelerating Sparse Transformer Inference on GPUWenhao Dai, Haodong Deng, Mengfei Rong, Xinyu Yang 等PPoPP 2026 · 1 次引用
  4. A Data-Driven Dynamic Execution Orchestration ArchitectureZhenyu Bai, Pranav Dangi, Rohan Juneja, Zhaoying Li 等ASPLOS 2026

它引用的 Paper11

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  2. Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
  3. Long Range Arena : A Benchmark for Efficient TransformersYi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen 等ICLR 2021 · 881 次引用
  4. Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image EncodingPengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao 等ICCV 2021 · 384 次引用
  5. Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable ArchitectureLiqiang Lu, Yicheng Jin, Hangrui Bi, Zizhang Luo 等MICRO 2021 · 221 次引用

相关 Paper

  1. A length adaptive algorithm-hardware co-design of transformer on FPGA through sparse attention and dynamic pipeliningHongwu Peng, Shaoyi Huang, Shiyang Chen, Bingbing Li 等DAC 2022 · 49 次引用
  2. SALO: an efficient spatial accelerator enabling hybrid sparse attention mechanisms for long sequencesGuan Shen, Jieru Zhao, Quan Chen, Jingwen Leng 等DAC 2022 · 37 次引用
  3. Efficient Transformer Inference with Statically Structured Sparse AttentionSteve Dai, Hasan Genc, Rangharajan Venkatesan, Brucek KhailanyDAC 2023 · 11 次引用
  4. SpARC: Token Similarity-Aware Sparse Attention Transformer Accelerator via Row-wise ClusteringHan Cho, Dongjun Kim, Seung-Eon Hwang, Jongsun ParkDAC 2024 · 7 次引用
  5. FLAT: An Optimized Dataflow for Mitigating Attention BottlenecksSheng-Chun Kao, Suvinay Subramanian, Gaurav Agrawal, Amir Yazdanbakhsh 等ASPLOS 2023 · 68 次引用
黄昏的海面,两侧是细线勾勒的悬崖