SASDenSebLE: A Compact Vision Transformer Inference Architecture With Saturation-Approximate Softmax Dataflow Enabling Sequence-Parallelism Boosted Layer-Fusion Execution
- 16 April 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
- Vol. 44 (11) , 4290-4303
Abstract
Transformer-based neural networks (NNs) have been dominant in modern AI due to their superior accuracy and generalization over traditional models. However, the quadratic complexity and dataflow challenges of self-attention hinder their efficient deployment on edge devices, especially for latency-sensitive, single-batch inference. Limited data parallelism necessitates both pipeline and tensor parallelism. Specifically, sequence parallelism offers strong scaling potential in domain-specific accelerators (DSAs), but is constrained by the temporal dependencies involved in the max-finding operations of softmax. This work presents SASDenSebLE, a compact, scalable vision Transformer (ViT) inference architecture co-designed with a max-finding-free softmax approximation across micro-architecture, architecture, and algorithm levels. A dense-sparse-hybrid datapath transforms large-value softmax operations into linear projections, enabling layer-fusion. A hierarchical system further improves sequence parallelism without excessive on-chip buffering or off-chip traffic. Experiments show up to $2.83\times $ , $28.02\times $ , and $1.40\times $ speedup over baseline DSAs and a state-of-the-art ViT accelerator design, respectively, with negligible accuracy loss. Demonstration on the camera encoder of a recent bird’s-eye-view model shows up to $10.82\times $ speedup over a typical edge GPU.
Keywords
Funding Information
- National Natural Science Foundation of China (62374101)
This publication has 26 references indexed in Scilit:
- HAIMA: A Hybrid SRAM and DRAM Accelerator-in-Memory Architecture for Transformer2023
- ViTCoD: Vision Transformer Acceleration via Dedicated Algorithm and Accelerator Co-Design2023
- BEVFormer: Learning Bird’s-Eye-View Representation from Multi-camera Images via Spatiotemporal Transformers2022
- A-ViT: Adaptive Tokens for Efficient Vision Transformer2022
- TransPIM: A Memory-based Acceleration via Software-Hardware Co-Design for Transformer2022
- Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformers2021
- SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning2021
- A^3: Accelerating Attention Mechanisms in Neural Networks with Approximation2020
- Scaling equations for the accurate prediction of CMOS device performance from 180 nm to 7 nmIntegration, 2017
- ImageNet: A large-scale hierarchical image database2009