paper-with-me

홈 › Papers

Exploring Attention Map Reuse for Efficient Transformer Neural Networks

2023-01-29 · Kyuhong Shim, Jungwook Choi, Wonyong Sung

Transformer-based deep neural networks have achieved great success in various sequence applications due to their powerful ability to model long-range dependency. The key module of Transformer is self-attention (SA) which extracts features from the entire sequence regardless of the distance between positions. Although SA helps Transformer performs particularly well on long-range tasks, SA requires quadratic computation and memory complexity with the input sequence length. Recently, attention map reuse, which groups multiple SA layers to share one attention map, has been proposed and achieved significant speedup for speech recognition models. In this paper, we provide a comprehensive study on attention map reuse focusing on its ability to accelerate inference. We compare the method with other SA compression techniques and conduct a breakdown analysis of its advantages for a long sequence. We demonstrate the effectiveness of attention map reuse by measuring the latency on both CPU and GPU platforms.

📄 PDF Abstract BibTeX arXiv:2301.12444

Code (0)

등록된 구현이 없습니다.

Tasks

CPUGPUspeech-recognitionSpeech Recognition

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

UniForm: A Reuse Attention Mechanism Optimized for Efficient Vision Transformers on Edge Devices

2024-12-03 · Seul-Ki Yeom, Tae-Ho Kim

Transformer-based architectures have demonstrated remarkable success across various domains, but their deployment on edge devices remains challenging due to high memory and computational demands. In this paper, we introd…

Leveraging redundancy in attention with Reuse Transformers

2021-10-13 · Srinadh Bhojanapalli, Ayan Chakrabarti, Andreas Veit, Michal Lukasik 외

Pairwise dot product-based attention allows Transformers to exchange information between tokens in an input-dependent way, and is key to their success across diverse applications in language and vision. However, a typica…

Bishop: Sparsified Bundling Spiking Transformers on Heterogeneous Cores with Error-Constrained Pruning

2025-05-18 · Boxun Xu, Yuxuan Yin, Vikram Iyer, Peng Li

We present Bishop, the first dedicated hardware accelerator architecture and HW/SW co-design framework for spiking transformers that optimally represents, manages, and processes spike-based workloads while exploring spat…

TReX- Reusing Vision Transformer's Attention for Efficient Xbar-based Computing

2024-08-22 · Abhishek Moitra, Abhiroop Bhattacharjee, Youngeun Kim, Priyadarshini Panda

Due to the high computation overhead of Vision Transformers (ViTs), In-memory Computing architectures are being researched towards energy-efficient deployment in edge-computing scenarios. Prior works have proposed effici…

CoLAEdge-computing

Transformer-based Online CTC/attention End-to-End Speech Recognition Architecture

2020-01-15 · Haoran Miao, Gaofeng Cheng, Changfeng Gao, Pengyuan Zhang 외

Recently, Transformer has gained success in automatic speech recognition (ASR) field. However, it is challenging to deploy a Transformer-based end-to-end (E2E) model for online speech recognition. In this paper, we propo…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)Decoderspeech-recognition+1