Chrome Extension
WeChat Mini Program
Use on ChatGLM

An Efficient Transformer with Distance-aware Attention

2023 IEEE 9th Intl Conference on Big Data Security on Cloud (BigDataSecurity), IEEE Intl Conference on High Performance and Smart Computing, (HPSC) and IEEE Intl Conference on Intelligent Data and Security (IDS)(2023)

Cited 0|Views11
No score
Abstract
In recent years, the transformer model has become one of the main highlights of advances in natural language processing (NLP). The attention mechanism of the transformer model makes it possible to track the relations between words across very long text sequences in both forward and reverse directions. However, the complexity of the attention mechanism is quadratic and introduces a performance bottleneck in the transformer. We propose a distance-aware attention mechanism which integrates the locality information by assigning different weights to query-key pairs according to the distance between the query and the key. By doing so, we in fact shrink the dimension of the matrix in the vector matrix multiplication and reduce the complexity of the attention to O(n 2 /m). Experiments show that the distance-aware attention is superior to or close to the original model and other variants in various NLP tasks.
More
Translated text
Key words
transformer,attention,vector matrix multiplication,natural language processing,time complexity
AI Read Science
Must-Reading Tree
Example
Generate MRT to find the research sequence of this paper
Chat Paper
Summary is being generated by the instructions you defined