arrow
Return

BinaryFormer: A Hierarchical-Adaptive Binary Vision Transformer (ViT) for Efficient Computing

delete2024-08-01
delete0
PRE
AI
M
Miaohui Wang
Z
Zhuowei Xu
B
Bin Zheng
W
Wuyuan Xie *
DOI:10.1109/TII.2024.3396520delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Vision Transformer (ViT) has recently demonstrated impressive nonlinear modeling capabilities and achieved state-of-the-art performance in various industrial applications, such as object recognition, anomaly detection, and robot control. However, their practical deployment can be hindered by high storage requirements and computational intensity. To alleviate these challenges, we propose a binary transformer called BinaryFormer, which quantizes the learned weights of the ViT module from 32-b precision to 1 b. Furthermore, we propose a hierarchical-adaptive architecture that replaces expensive matrix operations with more affordable addition and bit operations by switching between two attention modes. As a result, BinaryFormer is able to effectively compress the model size as well as reduce the computation cost of ViT. Experimental results on the ImageNet-1K benchmark datasets show that BinaryFormer reduces the size of a typical ViT model by an average of 27.7x and converts over 99% of multiplication operations into bit operations while maintaining reasonable accuracy.
Keywords:
Transformers
Convolution
Quantization (signal)
Training
Computational modeling
Informatics
Task analysis
Binary compression
model optimization
Vision Transformer (ViT)

Journal

IEEE Transactions on Industrial Informatics cover
IEEE Transactions on Industrial Informatics
IF:
9.9
Papers:
8.3K
Citations:
6.0W

Organization

S
shenzhen university
Scholars:
4.5W
Papers: 3.4W
Citations: 72