SWAT: An Efficient Swin Transformer Accelerator Based on FPGA

被引:1
|
作者
Dong, Qiwei [1 ]
Xie, Xiaoru [1 ]
Wang, Zhongfeng [1 ]
机构
[1] Nanjing Univ, Sch Elect Sci & Engn, Nanjing, Peoples R China
基金
国家重点研发计划;
关键词
Swin Transformer; sparsity; dataflow; FPGA;
D O I
10.1109/ASP-DAC58780.2024.10473931
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Swin Transformer achieves greater efficiency than Vision Transformer by utilizing local self-attention and shifted windows. However, existing hardware accelerators designed for Transformer have not been optimized for the unique computation flow and data reuse property in Swin Transformer, resulting in lower hardware utilization and extra memory accesses. To address this issue, we develop SWAT, an efficient Swin Transformer Accelerator based on FPGA. Firstly, to eliminate the redundant computations in shifted windows, a novel tiling strategy is employed, which helps the developed multiplier array to fully utilize the sparsity. Additionally, we deploy a dynamic pipeline interleaving dataflow, which not only reduces the processing latency but also maximizes data reuse, thereby decreasing access to memories. Furthermore, customized quantization strategies and approximate calculations for non-linear calculations are adopted to simplify the hardware complexity with negligible network accuracy loss. We implement SWAT on the Xilinx Alveo U50 platform and evaluate it with Swin-T on the ImageNet dataset. The proposed architecture can achieve improvements of 2.02x similar to 3.11x in power efficiency compared to existing Transformer accelerators on FPGAs.
引用
收藏
页码:515 / 520
页数:6
相关论文
共 50 条
  • [1] A data efficient transformer based on Swin Transformer
    Yao, Dazhi
    Shao, Yunxue
    [J]. VISUAL COMPUTER, 2024, 40 (04): : 2589 - 2598
  • [2] A data efficient transformer based on Swin Transformer
    Dazhi Yao
    Yunxue Shao
    [J]. The Visual Computer, 2024, 40 : 2589 - 2598
  • [3] Energy Efficient FPGA-Based Binary Transformer Accelerator for Edge Devices
    Du, Congpeng
    Ko, Seok-Bum
    Zhang, Hao
    [J]. 2024 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, ISCAS 2024, 2024,
  • [4] AN ACCELERATOR OF EFFICIENT DSP BASED ON FPGA
    Zhang Boyu
    Zou Ha
    Tang Ming
    Lin Qiutong
    [J]. 2022 19TH INTERNATIONAL COMPUTER CONFERENCE ON WAVELET ACTIVE MEDIA TECHNOLOGY AND INFORMATION PROCESSING (ICCWAMTIP), 2022,
  • [5] HPTA: A High Performance Transformer Accelerator Based on FPGA
    Han, Yuntao
    Liu, Qiang
    [J]. 2023 33RD INTERNATIONAL CONFERENCE ON FIELD-PROGRAMMABLE LOGIC AND APPLICATIONS, FPL, 2023, : 27 - 33
  • [6] ViA: A Novel Vision-Transformer Accelerator Based on FPGA
    Wang, Teng
    Gong, Lei
    Wang, Chao
    Yang, Yang
    Gao, Yingxue
    Zhou, Xuehai
    Chen, Huaping
    [J]. IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2022, 41 (11) : 4088 - 4099
  • [7] An efficient swin transformer-based method for underwater image enhancement
    Wang, Rong
    Zhang, Yonghui
    Zhang, Jian
    [J]. MULTIMEDIA TOOLS AND APPLICATIONS, 2023, 82 (12) : 18691 - 18708
  • [8] An efficient swin transformer-based method for underwater image enhancement
    Rong Wang
    Yonghui Zhang
    Jian Zhang
    [J]. Multimedia Tools and Applications, 2023, 82 : 18691 - 18708
  • [9] An Efficient FPGA-Based Accelerator Design for Convolution
    Song, Peng-Fei
    Pan, Jeng-Shyang
    Yang, Chun-Sheng
    Lee, Chiou-Yng
    [J]. 2017 IEEE 8TH INTERNATIONAL CONFERENCE ON AWARENESS SCIENCE AND TECHNOLOGY (ICAST), 2017, : 494 - 500
  • [10] An Efficient FPGA-based Accelerator for Deep Forest
    Zhu, Mingyu
    Luo, Jiapeng
    Mao, Wendong
    Wang, Zhongfeng
    [J]. 2022 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS 22), 2022, : 3334 - 3338