Self-Attention with Relative Position Representations
Open accessThe DOI matches its Crossref record; 17 of the 17 references it cites were found in a registry or an index.
Abstract
Peter Shaw, Jakob Uszkoreit, Ashish Vaswani. Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers). 2018.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source says what the claim attributes to it.
In the citing paper
“However, relative positional encodings not only come with extra computational costs, but also require modifying the implementation of the standard Transformers.”
From Conditional Positional Encodings for Vision Transformers (2021) · cites this paper as Shaw et al., 2018
The cited source says what the claim attributes to it.
In the citing paper
“For RPE, we follow (Shaw et al., 2018) and set the local range hyper-parameter K as 8, with which we obtain 70.5%.”
From Conditional Positional Encodings for Vision Transformers (2021) · cites this paper as Shaw et al., 2018
The cited source says what the claim attributes to it.
In the citing paper
“These methods include augmenting token embeddings with absolute position embeddings (Vaswani et al. 2017; Radford et al. 2018; Brown et al. 2020; Zhang et al. 2022), utilizing relative position embeddings or biases (Shaw et al. 2018; Dai et al. 2019; Raffel et al. 2020), or employing rotary position embeddings (Su et al. 2021; Chowdhery et al. 2022).”
From Large language models (LLMs): survey, technical frameworks, and future challenges (2024) · cites this paper as Shaw et al. 2018
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 9×
“We compared our model using only relative position representations to the baseline Transformer (Vaswani et al., 2017) with sinusoidal position encodings.”
BackgroundMethodInfluentialSelf-citationAdam: A Method for Stochastic Optimization
Kingma, D. P., & Ba, J. (2014) · arXiv · doi:10.48550/arxiv.1412.6980 · Cited by 98,946 · cited 2×
“We used the Adam optimizer (Kingma and Ba, 2014) with β1 = 0.”
MethodRethinking the Inception Architecture for Computer Vision
Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., & Wojna, Z. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.308 · Cited by 32,138
Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
Cho, K., van Merrienboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., & Bengio, Y. (2014) · Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.3115/v1/d14-1179 · Cited by 25,545 · cited 2×
“, 2017), or a combination of recurrence and attention (Bahdanau et al., 2014; Cho et al., 2014; Luong et al., 2015; Wu et al., 2016) as basic building blocks.”
BackgroundSequence to Sequence Learning with Neural Networks
Sutskever, I., Vinyals, O., & Le, Q. V. (2014) · arXiv · doi:10.48550/arxiv.1409.3215 · Cited by 17,766 · cited 2×
“Recent approaches to sequence to sequence learning typically leverage recurrence (Sutskever et al., 2014), convolution (Gehring et al., 2017; Kalch-brenner et al., 2016), attention (Vaswani et al., 2017), or a combination of recurrence and attention (Bahdanau et al., 2014; Cho et al., 2014; Lu-ong…”
BackgroundNeural Machine Translation by Jointly Learning to Align and Translate
Bahdanau, D., Cho, K., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1409.0473 · Cited by 16,213 · cited 2×
“, 2017), or a combination of recurrence and attention (Bahdanau et al., 2014; Cho et al., 2014; Luong et al., 2015; Wu et al., 2016) as basic building blocks.”
BackgroundVeličković, P., Cucurull, G., Casanova, A., Romero, A., Liò, P., & Bengio, Y. (2017) · arXiv · doi:10.48550/arxiv.1710.10903 · Cited by 12,107
Veličković, P., Casanova, A., Liò, P., Cucurull, G., Romero, A., & Bengio, Y. (2017) · arXiv (Cornell University) · doi:10.17863/cam.48429 · Cited by 8,657
Effective Approaches to Attention-based Neural Machine Translation
Luong, T., Pham, H., & Manning, C. D. (2015) · Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d15-1166 · Cited by 8,382
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
Wu, Y., Schuster, M., Chen, Z., Le, Q. V., Norouzi, M., Macherey, W., Krikun, M., Cao, Y., Gao, Q., Macherey, K., et al. (2016) · arXiv · doi:10.48550/arxiv.1609.08144 · Cited by 5,319
Cited by
Items 501–600 of 1,012
Jin, J., Liu, Z., Nasiri, A., Cui, Y., Louis, S., Zhang, A., Zhao, Y., & Hu, J. (2021) · Proteins Structure Function and Bioinformatics · doi:10.1002/prot.26065 · Cited by 48
“This method to learn attention weights can be used to deal with most content-focused problems, considering that some relative position information could be handled by CNN layers or relative-distance encoding.(25) But in the MHC-peptide binding problems, uncovering the absolute position importance will provide key info…”
MethodXie, Y., Ueda, Y., & Sugiyama, M. (2021) · Energies · doi:10.3390/en14185873 · Cited by 42
“The aij represents the weight coefficient between elements xi and xj, which is computed using a softmax function [33]:”
MethodInfluentialSource Code Summarization with Structural Relative Position Guided Transformer
Gong, Z., Gao, C., Wang, Y., Gu, W., Peng, Y., & Xu, Z. (2022) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner53432.2022.00013 · Cited by 54
Dynamic graph transformer for 3D object detection
Ren, S., Pan, X., Zhao, W., Nie, B., & Han, B. (2022) · Knowledge-Based Systems · doi:10.1016/j.knosys.2022.110085 · Cited by 46
MQTransformer: Multi-Horizon Forecasts with Context Dependent and Feedback-Aware AttentionPreprint
Eisenach, C., Patel, Y., & Madeka, D. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2009.14799 · Cited by 54
“Our work differs from previous work on relative position encodings (Dai et al., 2019; Huang et al., 2018; Shaw et al., 2018) in that we learn a representation from a time series of indicator variables which encode events relevant to the target application (such as holidays and promotions).”
BackgroundResultThe Piano Inpainting ApplicationPreprint
Hadjeres, G., & Crestel, L. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2107.05944 · Cited by 55
“These recent models for expressive piano generation relied on the latest advances involving the Transformer architecture [25] and their variants [3, 24, 2, 16] to improve generation quality but seldom considered the inference speed as a key element.”
MethodMOMENT: a family of open time-series foundation models
Goswami, M., Szafer, K., Choudhry, A., Cai, Y., Li, S., & Dubrawski, A. (2024) · arXiv · doi:10.48550/arxiv.2402.03885 · Cited by 41
“Specifically, we remove the additive bias from the Layer Norm (Ba et al., 2016), and place it before the residual skip connections (He et al., 2016), and use the relation positional embedding scheme (Shaw et al., 2018).”
MethodDialogVED: A Pre-trained Latent Variable Encoder-Decoder Model for Dialog Response Generation
Chen, W., Gong, Y., Wang, S., Yao, B., Qi, W., Wei, Z., Hu, X., Zhou, B., Mao, Y., Chen, W., et al. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.333 · Cited by 64
“Relative Position Embeddings It has recently become more common to use relative position embeddings, which produce a different learned embedding according to the offset between the “key” and “query” being compared in the self-attention mechanism (Shaw et al., 2018; Raffel et al., 2019).”
BackgroundA controllable generative model for generating pavement crack images in complex scenes
Zhang, H., Qian, Z., Zhou, W., Min, Y., & Liu, P. (2024) · Computer-Aided Civil and Infrastructure Engineering · doi:10.1111/mice.13171 · Cited by 45
“In order to enhance the model’s generation capability, the authors introduce the Atten-Res module, which is based on the self-attention module and draws inspiration from the concept of self-attention (Shaw et al., 2018).”
MethodLv, S., Yang, B., Wang, R., Lu, S., Tian, J., Zheng, W., Chen, X., & Yin, L. (2024) · Systems · doi:10.3390/systems12100420 · Cited by 45
Synchronous bidirectional inference for neural sequence generation
Zhang, J., Zhou, L., Zhao, Y., & Zong, C. (2020) · Artificial Intelligence · doi:10.1016/j.artint.2020.103234 · Cited by 45
Wake Word Detection with Streaming Transformers
Wang, Y., Lv, H., Povey, D., Xie, L., & Khudanpur, S. P. (2021) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp39728.2021.9414777 · Cited by 51
Self-attention-based time-variant neural networks for multi-step time series forecasting
Gao, C., Zhang, N., Li, Y., Bian, F., & Wan, H. (2022) · Neural Computing and Applications · doi:10.1007/s00521-021-06871-1 · Cited by 44
HIE-SQL: History Information Enhanced Network for Context-Dependent Text-to-SQL Semantic Parsing
Zheng, Y., Wang, H., Dong, B., Wang, X., & Li, C. (2022) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2022.findings-acl.236 · Cited by 53
LGT-Net: Indoor Panoramic Room Layout Estimation with Geometry-Aware Transformer Network
Jiang, Z., Xiang, Z., Xu, J., & Zhao, M. (2022) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52688.2022.00170 · Cited by 59
Unifying Layout Generation with a Decoupled Diffusion Model
Hui, M., Zhang, Z., Zhang, X., Xie, W., Wang, Y., & Lu, Y. (2023) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52729.2023.00193 · Cited by 76
“We integrate such relation information into the generation process via relative position embedding proposed in [25], formulated by:”
MethodPawar, S., Towhidul, S. M., Zaman, S. M. M., Jain, V., Chadha, A. R., & Das, A. (2024) · arXiv (Cornell University) · doi:10.13140/rg.2.2.16805.06884 · Cited by 59
Transformer-Based Global Zenith Tropospheric Delay Forecasting Model
Zhang, H., Yao, Y., Xu, C., Xu, W., & Shi, J. (2022) · Remote Sensing · doi:10.3390/rs14143335 · Cited by 42
“The transformer uses recurrent layers for local processing and interpretable self-at-tention layers for long-term The transformer selects relevant features and a series of gating layers to suppress unnecessary components, enabling outstanding performance in the ZTD time-series forecasts [40,41].”
BackgroundPointConvFormer: Revenge of the Point-based Convolution
Wu, W., Li, F., & Shan, Q. (2023) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52729.2023.02088 · Cited by 59
“It has been shown to outperform absolute positional encodings in many papers [61,9,93].”
BackgroundJagadeesh, B., & Kumar, G. A. (2024) · Applied Soft Computing · doi:10.1016/j.asoc.2024.111709 · Cited by 44
Quan, R., Qiu, Z., Wan, H., Yang, Z., & Li, X. (2024) · iScience · doi:10.1016/j.isci.2024.111126 · Cited by 41
How Does Selective Mechanism Improve Self-Attention Networks?
Geng, X., Wang, L., Wang, X., Qin, B., Liu, T., & Tu, Z. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.269 · Cited by 51
Recurrence and Self-attention vs the Transformer for Time-Series Classification: A Comparative Study
Katrompas, A., Ntakouris, T., & Metsis, V. (2022) · Lecture notes in computer science · doi:10.1007/978-3-031-09342-5_10 · Cited by 57
CharFormer: A Glyph Fusion based Attentive Framework for High-precision Character Image Denoising
Shi, D., Diao, X., Shi, L., Tang, H., Chi, Y., Li, C., & Xu, H. (2022) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3503161.3548208 · Cited by 60
“where query, key, and value matricesQ,K,V are calculated by their corresponding projection matrices with the patch X ; B represents learnable relative position encoding [31].”
MethodLSG Attention: Extrapolation of Pretrained Transformers to Long Sequences
Condevaux, C., & Harispe, S. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-33374-3_35 · Cited by 66
Xformer: Hybrid X-Shaped Transformer for Image Denoising
Zhang, J., Zhang, Y., Gu, J., Dong, J., Kong, L., & Yang, X. (2024) · International Conference on Learning Representations · doi:10.48550/arxiv.2303.06440 · Cited by 75
“We formulate the self-attention process in i th window as where ˆ X i is the output feature map in i th window and B is the relative position encoding (RPE) [41, 38].”
MethodBrain tumor classification in VIT-B/16 based on relative position encoding and residual MLP
Hong, S., Wu, J. X., Zhu, L., & Chen, W. (2024) · PLoS ONE · doi:10.1371/journal.pone.0298102 · Cited by 51
ALGAN: Time Series Anomaly Detection with Adjusted-LSTM GAN
Bashar, M. A., & Nayak, R. (2025) · International Journal of Data Science and Analytics · doi:10.1007/s41060-025-00810-2 · Cited by 40
“While standard self-attention mechanisms are permutation-invariant and may struggle to preserve the sequential structure of the data [43], they are highly effective at capturing long-range dependencies by assigning varying levels of importance to different parts of the input-regardless of their…”
Improving Transformer with Sequential Context Representations for Abstractive Text Summarization
Cai, T., Shen, M., Peng, H., Jiang, L., & Dai, Q. (2019) · Lecture notes in computer science · doi:10.1007/978-3-030-32233-5_40 · Cited by 50
“Shaw et al. [12] extend the self-attention mechanism to efficiently consider representations of the relative positions.”
BackgroundMulti-head enhanced self-attention network for novelty detection
Zhang, Y., Gong, Y., Zhu, H., Bai, X. P., & Tang, W. (2020) · Pattern Recognition · doi:10.1016/j.patcog.2020.107486 · Cited by 42
Probabilistically Masked Language Model Capable of Autoregressive Generation in Arbitrary Word Order
Liao, Y., Jiang, X., & Liu, Q. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.24 · Cited by 47
Self-Attention with Cross-Lingual Position Representation
Ding, L., Wang, L., & Tao, D. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.153 · Cited by 44
Chord Conditioned Melody Generation With Transformer Based Decoders
Choi, K., Park, J., Heo, W., Jeon, S., & Park, J. (2021) · IEEE Access · doi:10.1109/access.2021.3065831 · Cited by 39
“Shaw et al. [30] suggested relative self-attention that models relative distance between elements more explicitly.”
BackgroundCoDesc: A Large Code–Description Parallel Dataset
Hasan, M., Muttaqueen, T., Ishtiaq, A. A., Mehrab, K. S., Haque, M. M. A., Hasan, T., Ahmad, W. U., Iqbal, A., & Shahriyar, R. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.18 · Cited by 52
Exploiting Positional Information for Session-Based Recommendation
Qiu, R., Huang, Z. H., Chen, T., & Yin, H. (2021) · ACM Transactions on Information Systems · doi:10.1145/3473339 · Cited by 46
“However, in language modeling, the relative positions between words are more important than the absolute positions in a sentence, which makes the original positional encoding deprecated in recent languagemodels [9, 36, 52].”
BackgroundKnowing What it is: Semantic-Enhanced Dual Attention Transformer
Ma, Y., Ji, J., Sun, X., Zhou, Y., Wu, Y., Huang, F., & Ji, R. (2022) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2022.3164787 · Cited by 44
“ALL EXPERIMENTS ADOPT RELATIVE POSITION ENCODING LIKE [83].”
BackgroundMethodInfluentialTransformer Based Defense GAN Against Palm-Vein Adversarial Attacks
Li, Y., Ruan, S., Qin, H., Deng, S., & El‐Yacoubi, M. A. (2023) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2023.3243782 · Cited by 42
“The typical methods are absolute position encoding [55], [57], relative position encoding [62], and learnable position embedding [63].”
MethodMeta-Polyp: A Baseline for Efficient Polyp Segmentation
Trinh, Q.-H. (2023) · Proceedings - IEEE Symposium on Computer-Based Medical Systems · doi:10.1109/cbms58004.2023.00312 · Cited by 47
“1), which is different from the Convformer encoder, but have the idea of the previous Convformer block from Meta-former [7], that can capture the global information, also we include the local feature by the Pointwise Convolution, then the SelfAttention mechanism [14] is applied, in this case, the weights W ∈ RW idth×H…”
MethodGenerative Pre-trained Transformer (GPT) based model with relative attention for de novo drug design
Haroon, S., Hafsath, C. A., & Jereesh, A. S. (2023) · Computational Biology and Chemistry · doi:10.1016/j.compbiolchem.2023.107911 · Cited by 47
Convolutional Neural Network With Multihead Attention for Human Activity Recognition
Tan, T.-H., Chang, Y.-L., Wu, J.-R., Chen, Y.-F., & Alkhaleefah, M. (2023) · IEEE Internet of Things Journal · doi:10.1109/jiot.2023.3294421 · Cited by 41
“The attention mechanism can enhance the efficiency of neural network learning when dealing with significant amounts of information by enabling the model to selectively process crucial input information, which can help optimize the learning process [24].”
BackgroundSimple, Fast, Accurate Intent Classification and Slot Labeling for Goal-Oriented Dialogue Systems
Gupta, A., Hewitt, J., & Kirchhoff, K. (2019) · Annual Meeting of the Special Interest Group on Discourse and Dialogue · doi:10.18653/v1/w19-5906 · Cited by 49
“This is similar to the very recent preprint work of Bilan and Roth (2018), who use linearly increasing bucket sizes; we found exponentially increasing sizes to work well compared to the constant bucket sizes of Shaw et al. (2018).”
BackgroundResultPolar Relative Positional Encoding for Video-Language Segmentation
Ning, K., Xie, L., Wu, F. Q., & Tian, Q. C. (2020) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2020/132 · Cited by 49
“Existing work about positional encoding [Shaw et al. , 2018; Bello et al. , 2019] are based on feature grids.”
BackgroundResultInfluentialThe encoding method of position embeddings in vision transformer
Jiang, K., Peng, P., Lian, Y., & Xu, W. (2022) · Journal of Visual Communication and Image Representation · doi:10.1016/j.jvcir.2022.103664 · Cited by 39
Positional Attention Guided Transformer-Like Architecture for Visual Question Answering
Mao, A., Yang, Z. X., Lin, K., Xuan, J., & Liu, Y. (2022) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2022.3216770 · Cited by 41
“[37] simplified the method in [36] by adding relative positional encoding as inductive bias.”
BackgroundMethodConditional Video Diffusion Network for Fine-Grained Temporal Sentence Grounding
Liu, D., Zhu, J., Fang, X., Xiong, Z., Wang, H., Li, R., & Zhou, P. (2023) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2023.3334019 · Cited by 65
“Relative position embeddings [73], [74] is added to input video features so that the network can distinguish the order of frames without an absolute notion of time index.”
BackgroundWang, Z.-F., Li, L., Zeng, C.-Y., Dong, S., & Sun, J.-W. (2025) · Expert systems with applications · doi:10.1016/j.eswa.2024.125392 · Cited by 38
Generating Logical Forms from Graph Representations of Text and Entities
Shaw, P. M., Massey, P., Chen, A., Piccinno, F., & Altün, Y. (2019) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/p19-1010 · Cited by 42
“The second formulation represents edge labels as additive vectors using the same formulation as Shaw et al. (2018), where W r ∈ R d (cid:48) × d is a learned matrix shared by all edge labels, and w l ∈ R d is a learned embedding vector per edge label l .”
BackgroundMethodSelf-citationODE Transformer: An Ordinary Differential Equation-Inspired Model for Sequence Generation
Li, B., Du, Q., Zhou, T., Yi, J., Zhou, S., Zeng, X., Xiao, T., Zhu, J., Liu, X., & Zhang, M. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.571 · Cited by 52
Transformer-Based Named Entity Recognition on Drone Flight Logs to Support Forensic Investigation
Silalahi, S., Ahmad, T., & Studiawan, H. (2023) · IEEE Access · doi:10.1109/access.2023.3234605 · Cited by 43
“Inspired by the success of bidirectional LSTM, TENER incorporates direction-aware positional encoding to give the attention mechanism ability to model which direction of a certain context comes from [50] and [51], which is then called AdaTrans.”
MethodVideo Object Grounding Using Semantic Roles in Language Description
Sadhu, A., Chen, K., & Nevatia, R. (2020) · 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr42600.2020.01043 · Cited by 36
“As [54] notes, this removes the computation efficiency in the original transformer due to computation of ai,j for all pairs, and more importantly, the efficient batch matrix multiplication cannot”
BackgroundMethodInfluentialDar, S. S., Rehman, M. Z. U., Bais, K., Haseeb, M. A., & Kumar, N. (2025) · Expert Systems with Applications · doi:10.1016/j.eswa.2024.125337 · Cited by 36
“We compute the attention scores on the pooled features using a self-attention mechanism [46].”
Relative Positional Encoding for Speech Recognition and Direct Translation
Pham, N.-Q., Ha, T.-L., Nguyen, T. N., Nguyen, T., Salesky, E., Stüker, S., Niehues, J., & Waibel, A. H. (2020) · Interspeech (USB) · doi:10.21437/interspeech.2020-2526 · Cited by 45
LG-DBNet: Local and Global Dual-Branch Network for SAR Image Denoising
Liu, S., Tian, S., Zhao, Y., Hu, Q., Li, B., & Zhang, Y. (2024) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2024.3362510 · Cited by 36
“The self-attention of each head can, therefore, be expressed as : where B is the relative position encoding with learnable parameters (for details, please refer to the literature [31]), which effectively solves the problem of information loss due to the lack of directionality of the transformer.”
BackgroundVisionLLaMA: A Unified LLaMA Backbone for Vision Tasks
Chu, X., Su, J., Zhang, B., & Shen, C.-H. (2024) · European Conference on Computer Vision · doi:10.1007/978-3-031-72848-8_1 · Cited by 43
“In contrast, the relative ones as in [56] pay attention to the relations of input tokens and can handle variable lengths of sequences.”
BackgroundA First Look at Generative Artificial Intelligence-Based Music Therapy for Mental Disorders
Shen, L., Zhang, H., Zhu, C., Li, R., Qian, K., Meng, W., Tian, F., Hu, B., Schuller, B. W., & Yamamoto, Y. (2024) · IEEE Transactions on Consumer Electronics · doi:10.1109/tce.2024.3514633 · Cited by 44
A Human-Like Semantic Cognition Network for Aspect-Level Sentiment Classification
Lei, Z., Yang, Y., Yang, M., Zhao, W. D., Guo, J. F., & Liu, Y. (2019) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v33i01.33016650 · Cited by 40
“…H r of the context, Then, motivated by the superiority of attention models in sentence semantic composition (Lin et al. 2017; Shen et al. 2018; Shaw, Uszkoreit, and Vaswani 2018), we also design a target-aware attention mechanism to learn the compositional weights about the hidden states of…”
BackgroundAssessing the Ability of Self-Attention Networks to Learn Word Order
Yang, B., Wang, L., Wong, D. F., Chao, L. S., & Tu, Z. (2019) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/p19-1354 · Cited by 36
“, 2017) is generally deployed to capture sequential information for SAN (Vaswani et al., 2017; Shaw et al., 2018).”
Positional Context Aggregation Network for Remote Sensing Scene Classification
Zhang, D., Li, N., & Ye, Q. (2019) · IEEE Geoscience and Remote Sensing Letters · doi:10.1109/lgrs.2019.2937811 · Cited by 37
“In addition, self-attention was proposed in the last two years to capture the long-range dependence [6], [7].”
BackgroundInfluentialLocation Attention for Extrapolation to Longer Sequences
Dubois, Y., Dagan, G., Hupkes, D., & Bruni, E. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.39 · Cited by 48
Syntax-Aware Data Augmentation for Neural Machine Translation
Duan, S., Zhao, H., & Zhang, D. (2023) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2023.3301214 · Cited by 41
“Relative position representations [17] in the self-attention mechanism are proposed to replace the absolute position encoding, and it enhances the ability to capture the local information of the input sentence.”
BackgroundLim, S., & Lee, Y. O. (2021) · Proceedings - International Conference on Pattern Recognition/Proceedings/International Conference on Pattern Recognition · doi:10.1109/icpr48806.2021.9412555 · Cited by 41
Representations for Question Answering from Documents with Tables and Text
Zayats, V., Toutanova, K., & Ostendorf, M. (2021) · Conference of the European Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2021.eacl-main.253 · Cited by 44
ReconVAT: A Semi-Supervised Automatic Music Transcription Framework for Low-Resource Real-World Data
Cheuk, K. W., Herremans, D., & Su, L. (2021) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3474085.3475405 · Cited by 38
“The concatenated output Yonset ⊕ Yframe is fed to a relative local 1D self-attention layer [32, 35] to obtain the posteriorgram Ypost ∈ [0, 1]T×88.”
MethodGao, L., Niu, K., Jiao, B., Wang, P., & Zhang, Y. (2023) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2023.3273719 · Cited by 37
“The transformer [72] has advanced many natural language processing tasks [53], [73], [74], which inspires its applications in vision tasks.”
BackgroundDEU-Net: Dual-Encoder U-Net for Automated Skin Lesion Segmentation
Karimi, A., Faez, K., & Nazari, S. (2023) · IEEE Access · doi:10.1109/access.2023.3337528 · Cited by 38
“In the MaxViT framework, Relative self-attention [27], [53], [54], [55] has been chosen over standard self-attention [25], [26] to introduce a relative learned bias to the attention weights.”
MethodSelf-Feedback DETR for Temporal Action Detection
Kim, J., Lee, M., & Heo, J. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00944 · Cited by 47
“‘relative’ stands for deploying relative attention [39] to self-attention of the encoder.”
BackgroundImproved YOLOv7 model for underwater sonar image object detection
Qin, K. S., Liu, D., Fei, W., Zhou, J., Yang, J., & Zhang, W. (2024) · Journal of Visual Communication and Image Representation · doi:10.1016/j.jvcir.2024.104124 · Cited by 42
Next Point-of-Interest Recommendation With Adaptive Graph Contrastive Learning
Rao, X., Jiang, R., Shang, S., Chen, L., Han, P., Yao, B., & Kalnis, P. (2024) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2024.3509480 · Cited by 35
Advancing BCI with a transformer-based model for motor imagery classification
Liao, W., Liu, H., & Wang, W. (2025) · Scientific Reports · doi:10.1038/s41598-025-06364-4 · Cited by 48
BiQGEMM: Matrix Multiplication with Lookup Table for Binary-Coding-Based Quantized DNNs
Jeon, Y., Park, B., Kwon, S. J., Kim, B., Yun, J., & Lee, D. (2020) · International Conference for High Performance Computing, Networking, Storage and Analysis (SC) · doi:10.1109/sc41405.2020.00099 · Cited by 52
API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentations
Shahbazi, R., Sharma, R., & Fard, F. H. (2021) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc52881.2021.00049 · Cited by 47
Transformer Language Models with LSTM-Based Cross-Utterance Information Representation
Sun, G., Zhang, C., & Woodland, P. C. (2021) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp39728.2021.9414477 · Cited by 47
“(2), as described in [11, 36].”
Audio-Visual Speech Recognition is Worth $32\times 32\times 8$ Voxels
Serdyuk, D., Braga, O., & Siohan, O. (2021) · IEEE Workshop on Automatic Speech Recognition and Understanding (ASRU) · doi:10.1109/asru51503.2021.9688191 · Cited by 45
A Global-Information-Constrained Deep Learning Network for Digital Elevation Model Super-Resolution
Han, X., Ma, X., Li, H., & Chen, Z. (2023) · Remote Sensing · doi:10.3390/rs15020305 · Cited by 37
Transformer based tooth classification from cone-beam computed tomography for dental charting
Gao, S., Li, X., Li, Z., Li, Z., & Deng, Y. (2022) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2022.105880 · Cited by 35
Li, C., Liu, X., & Shutao Li, A. (2023) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2023.3326545 · Cited by 43
“The attention of ˆ F ki can be calculated based on the relative position embedding strategy [47] as follows : where and V k W i represent the query , key , and value tokens in the i th window when the head number is k , respectively.”
BackgroundMSFT: A multi-scale feature-based transformer model for arrhythmia classification
Zhang, X., Lin, M., Hong, Y., Xiao, H., Chen, C., & Chen, H. (2024) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2024.106968 · Cited by 41
On the localness modeling for the self-attention based end-to-end speech synthesis
Yang, S., Lu, H., Kang, S., Xue, L., Xiao, J., Su, D., Xie, L., & Yu, D. (2020) · Neural Networks · doi:10.1016/j.neunet.2020.01.034 · Cited by 37
“Besides, local contexts generally play an important role in sequential modeling (Shaw, Uszkoreit, & Vaswani, 2018; Yang et al., 2019; Yang, Tu, Wong, Meng, et al., 2018), but self-attention conducts weighed averaging on the whole sentence, which may lead to the dispersion of the attention…”
BackgroundMethodInfluentialAssemble Foundation Models for Automatic Code Summarization
Gu, J., Salza, P., & Gall, H. C. (2022) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner53432.2022.00112 · Cited by 55
Generalized Classification of Satellite Image Time Series with Thermal Positional Encoding
Nyborg, J., Pelletier, C., & Assent, I. (2022) · IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · doi:10.1109/cvprw56347.2022.00145 · Cited by 48
“Another line of work is relative positional encoding [3,10, 44], which encodes the positional difference between each pair in the input sequence instead of the absolute position of individual elements.”
BackgroundDCAE: A dual conditional autoencoder framework for the reconstruction from EEG into image
Zeng, H., Xia, N., Tao, M., Pan, D., Zheng, H., Wang, C., Xu, F., Zakaria, W., & Dai, G. (2022) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2022.104440 · Cited by 36
Cloudformer: A Cloud-Removal Network Combining Self-Attention Mechanism and Convolution
Wu, P., Pan, Z., Tang, H., & Hu, Y. (2022) · Remote Sensing · doi:10.3390/rs14236132 · Cited by 35
GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot LearningPreprint
Zhao, H., Liu, S., Ma, C., Xu, H., Fu, J., Deng, Z., Kong, L., & Liu, Q. (2023) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2023.05.30.542904 · Cited by 56
“It utilizes the relative position embedding method [57] to represent sequential structure.”
MethodEffective Long-Context Scaling of Foundation Models
Xiong, W., Liu, J., Molybog, I., Zhang, H., Bhargava, P., Hou, R., Martin, L., Rungta, R., Sankararaman, K. A., Oguz, B., et al. (2024) · Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers) · doi:10.18653/v1/2024.naacl-long.260 · Cited by 33
Interval-enhanced Graph Transformer solution for session-based recommendation
Wang, H., YaWen, Z., Chen, J., Han, N., & Chen, H. (2022) · Expert Systems with Applications · doi:10.1016/j.eswa.2022.118970 · Cited by 37
TS-Fastformer: Fast Transformer for Time-series Forecasting
Lee, S., Hong, J., Liu, L., & Choi, W. (2024) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3630637 · Cited by 52
“Therefore, positional encoding that adds deterministic vectors using sinusoidal functions has limitations in representing sequential information of time-series input [ 31 ].”
BackgroundWhite patchy skin lesion classification using feature enhancement and interaction transformer module
Li, Z., Jiang, S. S., Fan, X., Li, C., Li, S., Gao, T., He, K., Chen, J., Zhang, J., & Zhang, J. (2025) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2025.107819 · Cited by 35
AgileFormer: Spatially agile and scalable transformer for medical image segmentation
Qiu, P., Yang, J., Kumar, S., Ghosh, S. S., & Sotiras, A. (2025) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2025.108842 · Cited by 35
I Know What You Asked: Graph Path Learning using AMR for Commonsense Reasoning
Lim, J., Oh, D., Jang, Y., Yang, K., & Lim, H. (2020) · International Conference on Computational Linguistics · doi:10.18653/v1/2020.coling-main.222 · Cited by 42
Select, Extract and Generate: Neural Keyphrase Generation with Layer-wise Coverage Attention
Ahmad, W. U., Bai, X. P., Lee, S., & Chang, K.-W. (2021) · doi:10.18653/v1/2021.acl-long.111 · Cited by 46
“We use relative positional encoding (Shaw et al., 2018) to inject order information of the keyphrase terms.”
MethodChase: A Large-Scale and Pragmatic Chinese Dataset for Cross-Database Context-Dependent Text-to-SQL
Guo, J., Si, Z., Wang, Y., Liu, Q., Fan, M. Y., Lou, J., Yang, Z., & Liu, T. (2021) · doi:10.18653/v1/2021.acl-long.180 · Cited by 64
“Then, the linking results are jointly encoded with q and DB using a relation-aware self-attention trans-former (Shaw et al., 2018).”
MethodZhu, S., Liao, B. Y., Hua, Y., Zhang, C., Wan, F., & Qing, X. (2022) · ISA Transactions · doi:10.1016/j.isatra.2022.07.016 · Cited by 34
Seiler, M. V., Prager, R. P., Kerschke, P., & Trautmann, H. (2022) · Genetic and Evolutionary Computation Conference (GECCO) · doi:10.1145/3512290.3528834 · Cited by 34
“Next, as proposed by [26] we include a third parameter, ∆max that limits the maximum distance in the kNN-graph search to preserve local neighborhood.”
BackgroundMethodInfluentialChen, S., Lan, J., Liu, H., Chen, C., & Wang, X. (2022) · Drones · doi:10.3390/drones6120415 · Cited by 36
Khan, M., Khan, N., Begum, S., & Qureshi, M. I. (2023) · foresight · doi:10.1108/fs-02-2021-0044 · Cited by 37
Position-Aware Relational Transformer for Knowledge Graph Embedding
Li, G., Sun, Z., Hu, W. P., Cheng, G., & Qu, Y. (2023) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2023.3262937 · Cited by 37
“Although Transformer has a strong ability for sequence modeling, the core component—the self-attention (SA) module—is permutation-invariant [47], i.e., it is invariant to the token order.”
BackgroundMethodInfluentialVariable-rate discrete representation learningPreprint
Dieleman, S., Nash, C., Engel, J., & Simonyan, K. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2103.06089 · Cited by 47
An End-to-End Network for Emotion-Cause Pair ExtractionPreprint
Singh, A., Hingane, S., Wani, S., & Modi, A. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2103.01544 · Cited by 33
“For the primary task, every ordered pair (ci, cj) is represented by concatenating ri , r c j and peij , wherein peij is the positional embedding vector representing the relative positioning between the two clauses i, j in the document (Shaw et al., 2018).”
InfluentialVideo-Infinity: Distributed Long Video GenerationPreprint
Tan, Z., Yang, X., Liu, S., & Wang, X. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2406.16260 · Cited by 39
“The original attention module require simultaneous access to all input tokens [22].”
Background
Metadata
- Authors
- Shaw, P., Uszkoreit, J., & Vaswani, A.
- Affiliations
- Google (United States) (US)
- Venue
- Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers)
- Published
- 2018
- Pages
- 464-468
- OpenAlex
- W2789541106
- Semantic Scholar
- c8efcc854d97dfc2a42b83316a2109f9d166e43f
- Cited by
- 2,505
- References
- 13
- Citations by year
- 2026: 165 · 2025: 406 · 2024: 397 · 2023: 456 · 2022: 355 · 2021: 368 · 2020: 203 · 2019: 130 · 2018: 25
- FWCI
- 74.09
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
- Keywords
- self-attention, positional encoding, transformer models, sequence modeling
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.
