Piecewise-Linear Approximation of Self-Attention and Its Accuracy-Aware Training for Area-Efficient Vision Transformer Inference Accelerator
Vision Transformer (ViT) is a neural network model specialized for image processing, introduced in 2021. The key feature of ViT is self-attention, which allows it to capture a wide range of correlations within an image effectively. However, its biggest drawback is its hardware-hungry characteristics. This paper proposes an areaefficient hardware implementation for self-attention. The proposed approach introduces piecewise linear approximation to both multiplication and Softmax functions. Additionally, we showcase a training method suitable for multiplication and Softmax functions, where the corresponding circuits are significantly simplified through the piecewise-linear approximation. Evaluation using CIFAR-10 demonstrated that our approximation to self-attention achieved comparable image classification accuracy to the model without the approximation. Moreover, with the proposed method, we experimentally confirmed that the area of the self-attention processing circuit could be reduced by 64.0% compared to the existing method applying 8-bit integer quantization to all the weights in self-attention.
Authors
- Tohru Ishihara (ORCID: https://orcid.org/0000-0002-1650-9958)
- Takahiro Kawamura (ORCID: https://orcid.org/0000-0002-2765-6232)
- Yutaka Masuda (ORCID: https://orcid.org/0000-0003-3374-2484)
Institutions
- Nagoya University (JP)
Publication Details
- Published
- 2025-04-23
- DOI
- https://doi.org/10.1109/isqed65160.2025.11014475
- Citations
- 1
- Primary Topic
- CCD and CMOS Imaging Sensors
- Type
- article
- Field-Weighted Citation Impact
- 0.73
Funders
- University of Tokyo