HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformers

被引:25
|
作者
Dong, Peiyan [1 ]
Sun, Mengshu [1 ]
Lu, Alec [2 ]
Xie, Yanyue [1 ]
Liu, Kenneth [2 ]
Kong, Zhenglun [1 ]
Meng, Xin [1 ]
Li, Zhengang [1 ]
Lin, Xue [1 ]
Fang, Zhenman [2 ]
Wang, Yanzhi [1 ]
机构
[1] Northeastern Univ, Boston, MA 02115 USA
[2] Simon Fraser Univ, Burnaby, BC, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Vision Transformer; FPGA Accelerator; Hardware and Software Co-design; Data-level Sparsity;
D O I
10.1109/HPCA56546.2023.10071047
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
While vision transformers (ViTs) have continuously achieved new milestones in the field of computer vision, their sophisticated network architectures with high computation and memory costs have impeded their deployment on resource-limited edge devices. In this paper, we propose a hardware-efficient image-adaptive token pruning framework called HeatViT for efficient yet accurate ViT acceleration on embedded FPGAs. Based on the inherent computational patterns in ViTs, we first adopt an effective, hardware-efficient, and learnable head-evaluation token selector, which can be progressively inserted before transformer blocks to dynamically identify and consolidate the non-informative tokens from input images. Moreover, we implement the token selector on hardware by adding miniature control logic to heavily reuse existing hardware components built for the backbone ViT. To improve the hardware efficiency, we further employ 8-bit fixed-point quantization and propose polynomial approximations with regularization effect on quantization error for the frequently used nonlinear functions in ViTs. Compared to existing ViT pruning studies, under the similar computation cost, HeatViT can achieve 0.7%similar to 8.9% higher accuracy; while under the similar model accuracy, HeatViT can achieve more than 28.4%similar to 65.3% computation reduction, for various widely used ViTs, including DeiT-T, DeiT-S, DeiT-B, LV-ViT-S, and LV-ViT-M, on the ImageNet dataset. Compared to the baseline hardware accelerator, our implementations of HeatViT on the Xilinx ZCU102 FPGA achieve 3.46x similar to 4.89x speedup with a trivial resource utilization overhead of 8%similar to 11% more DSPs and 5%similar to 8% more LUTs.
引用
收藏
页码:442 / 455
页数:14
相关论文
共 50 条
  • [41] TOKEN-CONSISTENT DROPOUT FOR CALIBRATED VISION TRANSFORMERS
    Popovic, Nikola
    Paudel, Danda Pani
    Probst, Thomas
    Van Gool, Luc
    2023 IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, ICIP, 2023, : 1030 - 1034
  • [42] TIA: Token Importance Transferable Attack on Vision Transformers
    Fu, Tingchao
    Li, Fanxiao
    Zhang, Jinhong
    Zhu, Liang
    Wang, Yuanyu
    Zhou, Wei
    INFORMATION SECURITY AND CRYPTOLOGY, INSCRYPT 2023, PT II, 2024, 14527 : 91 - 107
  • [43] Hardware-efficient adaptive equalizer for inter-satellite coherent laser communication systems
    Zhao, Yuanfan
    Ju, Cheng
    Liu, Na
    Wang, Dongdong
    Li, Changhong
    Xie, Peng
    OPTICAL ENGINEERING, 2024, 63 (01)
  • [44] A hardware-efficient DAC for direct digital synthesis
    Jensen, HT
    Galton, I
    ISCAS 96: 1996 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS - CIRCUITS AND SYSTEMS CONNECTING THE WORLD, VOL 4, 1996, : 97 - 100
  • [45] Hardware-Efficient Neighbor-Guided SGM Optical Flow for Low Power Vision Applications
    Xiang, Jiang
    Li, Ziyun
    Kim, Hun Seok
    Chakrabarti, Chaitali
    2016 IEEE INTERNATIONAL WORKSHOP ON SIGNAL PROCESSING SYSTEMS (SIPS), 2016, : 1 - 6
  • [46] EBBINNOT: A Hardware-Efficient Hybrid Event-Frame Tracker for Stationary Dynamic Vision Sensors
    Mohan, Vivek
    Singla, Deepak
    Pulluri, Tarun
    Ussa, Andres
    Gopalakrishnan, Pradeep Kumar
    Sun, Pao-Sheng
    Ramesh, Bharath
    Basu, Arindam
    IEEE INTERNET OF THINGS JOURNAL, 2022, 9 (21) : 20902 - 20917
  • [47] On Constructing Secure and Hardware-Efficient Invertible Mappings
    Dubrova, Elena
    2016 IEEE 46TH INTERNATIONAL SYMPOSIUM ON MULTIPLE-VALUED LOGIC (ISMVL 2016), 2016, : 211 - 216
  • [48] Hardware-Efficient Autonomous Quantum Memory Protection
    Leghtas, Zaki
    Kirchmair, Gerhard
    Vlastakis, Brian
    Schoelkopf, Robert J.
    Devoret, Michel H.
    Mirrahimi, Mazyar
    PHYSICAL REVIEW LETTERS, 2013, 111 (12)
  • [49] Hardware-Efficient Bilateral Filtering for Stereo Matching
    Yang, Qingxiong
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2014, 36 (05) : 1026 - 1032
  • [50] Construction and Hardware-Efficient Decoding of Raptor Codes
    Zeineddine, Hady
    Mansour, Mohammad M.
    Puri, Ranjit
    IEEE TRANSACTIONS ON SIGNAL PROCESSING, 2011, 59 (06) : 2943 - 2960