AccelTran: A sparsity-aware accelerator for dynamic inference with transformers

S Tuli, NK Jha - IEEE Transactions on Computer-Aided Design …, 2023 - ieeexplore.ieee.org
IEEE Transactions on Computer-Aided Design of Integrated Circuits …, 2023ieeexplore.ieee.org
Self-attention-based transformer models have achieved tremendous success in the domain
of natural language processing. Despite their efficacy, accelerating the transformer is
challenging due to its quadratic computational complexity and large activation sizes.
Existing transformer accelerators attempt to prune its tokens to reduce memory access,
albeit with high compute overheads. Moreover, previous works directly operate on large
matrices involved in the attention operation, which limits hardware utilization. In order to …
Self-attention-based transformer models have achieved tremendous success in the domain of natural language processing. Despite their efficacy, accelerating the transformer is challenging due to its quadratic computational complexity and large activation sizes. Existing transformer accelerators attempt to prune its tokens to reduce memory access, albeit with high compute overheads. Moreover, previous works directly operate on large matrices involved in the attention operation, which limits hardware utilization. In order to address these challenges, this work proposes a novel dynamic inference scheme, DynaTran, which prunes activations at runtime with low overhead, substantially reducing the number of ineffectual operations. This improves the throughput of transformer inference. We further propose tiling the matrices in transformer operations along with diverse dataflows to improve data reuse, thus, enabling higher energy efficiency. To effectively implement these methods, we propose AccelTran, a novel accelerator architecture for transformers. Extensive experiments with different models and benchmarks demonstrate that DynaTran achieves higher accuracy than the state-of-the-art top- hardware-aware pruning strategy while attaining up to higher sparsity. One of our proposed accelerators, AccelTran-Edge, achieves 330K higher throughput with 93K lower energy requirement when compared to a Raspberry Pi device. On the other hand, AccelTran-Server achieves higher throughput and lower energy consumption compared to the state-of-the-art transformer co-processor, Energon. The simulation source code is available at https://github.com/jha-lab/acceltran .
ieeexplore.ieee.org
以上显示的是最相近的搜索结果。 查看全部搜索结果