EUVIMEDOpdag EUVIMED
Crossref

BSViT: A Bit-Serial Vision Transformer Accelerator Exploiting Dynamic Patch and Weight Bit-Group Quantization

Gang Wang, Siqi Cai, Wenjie Li, Dongxu Lyu, Guanghui He

IEEE Transactions on Circuits and Systems I: Regular Papers · 2024-09 · 71 (9) · 4064-4077

DOI: 10.1109/tcsi.2024.3426653 ↗

At a glance

Journal article in IEEE Transactions on Circuits and Systems I: Regular Papers, 2024-09. Written by Gang Wang and 4 co-authors. Cited 25 times so far (Crossref); 37 references. Funded by: National Natural Science Foundation of China.

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Vision Transformers (ViTs) have achieved remarkable success in computer vision (CV) and are increasingly recognized as the new backbone for vision-language multi-modal tasks. Despite their success, the high computational cost associated with ViTs hinders their inference efficiency. In this paper, we introduce BSViT, a bit-serial Vision Transformer accelerator enhanced by algorithm-hardware co-design. BSViT can efficiently accelerate both plain and hierarchical Vision Transformer inference. At the algorithm level, we propose a post-training quantization scheme named dynamic patch and weight bit-group quantization. We first introduce a dynamic patch quantization (DPQ) scheme to dynamically allocate bit-width to different image patches based on their importance, thus reducing bit width and saving computation without significantly impacting accuracy. Second, we propose a weight bit-group quantization (BGQ) scheme to evenly distribute bits within groups and achieve workload balance across processing elements (PEs). At the hardware level, we propose a term-separate bit-serial accelerator to efficiently support DPQ and BGQ. We introduce dense and sparse bit-serial PEs to manipulate the dense least significant term (LST) and sparse most significant term (MST) workloads. A dense-sparse hybrid dataflow is devised to efficiently balance the two kinds of workloads. Our experiments show that BSViT can achieve up to $1.95\times $ speedup and $2.72\times $ energy efficiency compared to state-of-the-art (SOTA) bit-serial accelerators and achieve up to $3.69\times $ energy efficiency compared to SOTA Transformer accelerators.

Funding

  • National Natural Science Foundation of China

Cite

APA

Wang, G., Cai, S., Li, W., Lyu, D., & He, G. (2024). BSViT: A Bit-Serial Vision Transformer Accelerator Exploiting Dynamic Patch and Weight Bit-Group Quantization. IEEE Transactions on Circuits and Systems I: Regular Papers, 71(9), 4064-4077. https://doi.org/10.1109/tcsi.2024.3426653

Vancouver

Wang G, Cai S, Li W, Lyu D, He G. BSViT: A Bit-Serial Vision Transformer Accelerator Exploiting Dynamic Patch and Weight Bit-Group Quantization. IEEE Transactions on Circuits and Systems I: Regular Papers. 2024;71(9):4064-4077. doi:10.1109/tcsi.2024.3426653

BibTeX
@article{Wang2024,
  author = {Wang, Gang and Cai, Siqi and Li, Wenjie and Lyu, Dongxu and He, Guanghui},
  title = {BSViT: A Bit-Serial Vision Transformer Accelerator Exploiting Dynamic Patch and Weight Bit-Group Quantization},
  journal = {IEEE Transactions on Circuits and Systems I: Regular Papers},
  year = {2024},
  volume = {71},
  number = {9},
  pages = {4064--4077},
  doi = {10.1109/tcsi.2024.3426653}
}
Start for free →