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 901–1,000 of 1,012
de Lajarte, A. A., Taillades, Y. J. M. D., Aruda, J., Bongrand, P., Wightman, F. F., Salazar, D., Allan, M. F., Kalicki, C. H., L’Esperance-Kerckhoff, C., Kashi, A., et al. (2026) · Science Advances · doi:10.1126/sciadv.adz4967 · Cited by 18
Enhancing Hybrid Self-attention Structure with Relative-position-aware Bias for Speech Synthesis
Yang, S., Lu, H., Shi-ying, K., Xie, L., & Yu, D. (2019) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp.2019.8682861 · Cited by 18
“Inspired by [15], we propose to add edges between elements xi and xj to enhance the local relations.”
BackgroundMethodInfluentialTHUMT: An Open-Source Toolkit for Neural Machine Translation
Tan, Z., Zhang, J., Huang, X., Chen, G., Wang, S., Sun, M., Luan, H., & Liu, Y. (2020) · Conference of the Association for Machine Translation in the Americas · Cited by 30
Li, G., Wang, Y., Wang, J., He, J., & Huo, Y. (2021) · The International Journal of Advanced Manufacturing Technology · doi:10.1007/s00170-021-08119-7 · Cited by 18
Multi-criteria assessment of user trust in Social Reviewing Systems with subjective logic fusion
Esposito, C., Galli, A., Moscato, V., & Sperlí, G. (2021) · Information Fusion · doi:10.1016/j.inffus.2021.07.012 · Cited by 20
Ultra Fast Speech Separation Model with Teacher Student Learning
Chen, S., Wu, Y., Chen, Z., Wu, J., Yoshioka, T., Liu, S., Li, J., & Yu, X. (2021) · Interspeech (USB) · doi:10.21437/interspeech.2021-142 · Cited by 20
“The multi-head self-attention module is implemented with relative position embedding as [14, 5, 15].”
MethodCodeQA: A Question Answering Dataset for Source Code Comprehension
Liu, C., & Wan, X. (2021) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2021.findings-emnlp.223 · Cited by 49
Micro-Behavior Encoding for Session-based Recommendation
Yuan, J., Ji, W., Zhang, D., Pan, J., & Wang, X. (2022) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde53745.2022.00261 · Cited by 26
Qian, Y., Wu, J., & Zhang, Q. (2022) · Frontiers in Molecular Biosciences · doi:10.3389/fmolb.2022.963912 · Cited by 20
“To solve this issue, the position information is added by including the same dimensional position embedding (Shaw et al., 2018) at the time of input embedding, and the position embedding is shown by the following equation:”
MethodDynamic Graph Message Passing Networks for Visual Recognition
Zhang, L., Chen, M., Arnab, A., Xue, X., & Torr, P. H. S. (2022) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2022.3207500 · Cited by 24
“Specifically, we consider the relative position [4], [47], [50] between the K sampled nodes.”
BackgroundUncovering Hidden Geometry in Transformers via Disentangling Position and ContextPreprint
Song, J., & Zhong, Y. (2026) · Harvard Data Science Review · doi:10.1162/99608f92.373b4512 · Cited by 18
Beyond Sensor Data: Foundation Models of Behavioral Data from Wearables Improve Health Predictions
Erturk, E., Kamran, F., Abbaspourazad, S., Jewell, S., Sharma, H., Li, Y., Williamson, S. A., Foti, N. J., & Futoma, J. (2025) · International Conference on Machine Learning · doi:10.48550/arxiv.2507.00191 · Cited by 40
“…we consider Rotary Position Embeddings (RoPE), due to their strong performance compared to other variants, and strong theoretical properties that show their ability to flexibly encode both absolute and relative encodings (Shaw et al., 2018; Ren et al., 2021; Dufter et al., 2022; Su et al., 2024).”
Sparks of Large Audio Models: A Survey and Outlook
Latif, S., Shoukat, M., Shamshad, F., Usama, M., Ren, Y., Cuayáhuitl, H., Wang, W., Zhang, X., Togneri, R., Cambria, E., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.12792 · Cited by 17
“The authors constructed their audio tokenizer using the Descript Audio Codec (DAC) [215] and leveraged a multilayer bidirectional transformer [216] for token prediction.”
MethodLi, J., Bi, Y., Wang, S.-M., & Li, Q. (2023) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2023.3245613 · Cited by 19
“B represents the relative-distance-aware position encoding proposed in [61] and [62], which can effectively associate information across objects with positional awareness.”
BackgroundMethodRyu, J. S., Lee, S., Chu, Y., Ahn, M., Park, Y. J., & Yang, S. (2023) · PLoS ONE · doi:10.1371/journal.pone.0286916 · Cited by 18
“The transformer block consists of a relative attention [59] and feedforward neural network (FNN).”
BackgroundHuman-in-the-loop Evaluation for Early Misinformation Detection: A Case Study of COVID-19 Treatments
Mendes, E., Chen, Y., Xu, W. H., & Ritter, A. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.881 · Cited by 30
FluentSpeech: Stutter-Oriented Automatic Speech Editing with Context-Aware Diffusion Models
Jiang, Z. K., Yang, Q., Zuo, J., Ye, Z., Huang, R., Ren, Y., & Zhao, Z. (2023) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2023.findings-acl.741 · Cited by 42
Learning Accurate 3D Shape Based on Stereo Polarimetric Imaging
Huang, T., Li, H., He, K., Sui, C., Li, B., & Liu, 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.01658 · Cited by 17
““[7, 16, 2]” denotes the kernel size of 7, the output channel of 16, and the stride of 2.”
BackgroundInfluentialTariq, S., Loy-Benitez, J., & Yoo, C. (2023) · Building and Environment · doi:10.1016/j.buildenv.2023.110780 · Cited by 17
LSCA-net: A lightweight spectral convolution attention network for hyperspectral image processing
Yu, Z., & Cui, W. (2023) · Computers and Electronics in Agriculture · doi:10.1016/j.compag.2023.108382 · Cited by 17
Learning Sequence Descriptor Based on Spatio-Temporal Attention for Visual Place Recognition
Zhao, J., Feng-lin, Z., Cai, Y., Tian, G., Mu, W., Ye, C., & Feng, T. (2024) · IEEE Robotics and Automation Letters · doi:10.1109/lra.2024.3354627 · Cited by 20
“We encode the relative position between two input embed-dings x i and x j in X , into a relative positional embedding P ij ∈ R D , following [24].”
MethodDing, X., Peng, R., Chen, X., Huang, Y., Bian, J., & Zheng, Z. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3652156 · Cited by 26
“In terms of comments, a good comment is one that accurately describes the semantics of the code [20].”
Slimmable transformer with hybrid axial-attention for medical image segmentation
Hu, Y., Mu, N., Liu, L., Zhang, L., Jiang, J., & Li, X. (2024) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2024.108370 · Cited by 18
Ding, R., Chen, Y., Lan, Y.-T., & Zhang, W. (2024) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3627673.3679724 · Cited by 30
“In the realm of natural language processing, several approaches for relative position embedding (RPE) have been proposed [7, 18, 28, 30, 33].”
BackgroundMa, B., Xue, Y., Lu, Y., & Chen, J. (2025) · Expert Systems with Applications · doi:10.1016/j.eswa.2025.126803 · Cited by 19
A transformer-based real-time earthquake detection framework in heterogeneous environments
Wu, A., Khan, I., & Kwon, Y. (2025) · Scientific Reports · doi:10.1038/s41598-024-82087-2 · Cited by 19
“SA provides different weights for different parts of the input sequence to extract the essential features of the time series 35 .”
Precise length control for large language models
Butcher, B., O’Keefe, M., & Titchener, J. (2025) · Natural Language Processing Journal · doi:10.1016/j.nlp.2025.100143 · Cited by 33
Attention-based BiLSTM with positional embeddings for fake review detection
Chen, J., Zhang, T. Y., Yan, Z., Zheng, Z., Zhang, W., & Zhang, J. (2025) · Journal Of Big Data · doi:10.1186/s40537-025-01130-9 · Cited by 17
“Shaw et al. [28] introduced Relative Positional Representations (RPR), which integrate relative positional information directly into the attention mechanism, allowing models to better capture dependencies across distant tokens.”
Improving Mandarin End-to-End Speech Synthesis by Self-Attention and Learnable Gaussian Bias
Yang, F., Yang, S., Zhu, P., Yan, P., & Xie, L. (2019) · IEEE Workshop on Automatic Speech Recognition and Understanding (ASRU) · doi:10.1109/asru46091.2019.9003949 · Cited by 17
“At the same time, to overcome the problem of self-attention’s dispersing the distributions of attention [12][18], we introduce a learnable Gaussian bias to enhance localness modeling.”
Joint Model of Entity Recognition and Relation Extraction with Self-attention Mechanism
Liu, M., Zhang, Y., Li, W., & Ji, D. (2020) · ACM Transactions on Asian and Low-Resource Language Information Processing · doi:10.1145/3387634 · Cited by 20
“Shaw et al. [6] introduced self-attention mechanism to the relative position representation between elements, and the relative position representation of self-attention achieved a significant improvement over absolute position encoding of self-attention in two machine translation tasks.”
BackgroundDeep Contrast Learning Approach for Address Semantic Matching
Chen, J., Chen, J., She, X., Mao, J., & Chen, G. (2021) · Applied Sciences · doi:10.3390/app11167608 · Cited by 17
“e a is al erce ti t t t r l rl i t , fi rt according to the purpose [34].”
BackgroundToward Interactive Music Generation: A Position Paper
Dadman, S., Bremdal, B. A., Bang, B., & Dalmo, R. (2022) · IEEE Access · doi:10.1109/access.2022.3225689 · Cited by 20
“[83] proposed the relative attention mechanism, which focuses on relational features by approximating the distance between two tokens.”
BackgroundSun, B., Wang, X., Oad, A., Pervez, A., & Dong, F. (2023) · Applied Sciences · doi:10.3390/app13042488 · Cited by 20
An End-to-End Local Attention Based Model for Table Recognition
Ly, N. T., & Takasu, A. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-41679-8_2 · Cited by 21
Li, Y., Qi, S., Gao, C., Peng, Y., Lo, D., Lyu, M. R.-T., & Xu, Z. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3524461 · Cited by 21
“…1.69% for Python, respectively ( T ID and T GS in Table III) The robustness improvement may be attributed to that the relative position encoding enhances the relationship between the tokens with the adjacent preceding tokens [36], making Transformer’s predictions more accurate on code completion.”
InfluentialRelation Extraction using Explicit Context Conditioning
Singh, G., & Bhatia, P. (2019) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/n19-1147 · Cited by 17
“To this effect, our experiments showed that incorporating relative position (Shaw et al., 2018) information in the encoder to improve token representations does not lead to superior RE.”
MethodMultiple Positional Self-Attention Network for Text Classification
Dai, B., Li, J., & Xu, R. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i05.6261 · Cited by 17
“And Shaw et al. also proposed relative position encoding by adding two trainable vectors to self-attention to model localness (Shaw, Uszkoreit, and Vaswani 2018).”
BackgroundModeling Concentrated Cross-Attention for Neural Machine Translation with Gaussian Mixture Model
Zhang, S., & Feng, Y. (2021) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2021.findings-emnlp.121 · Cited by 26
SAC: Accelerating and Structuring Self-Attention via Sparse Adaptive Connection
Li, X., Meng, Y., Zhou, M., Han, Q., Wu, F. Q., & Li, J. (2020) · neural information processing systems · doi:10.48550/arxiv.2003.09833 · Cited by 28
“, 2019) enables learning long-term dependency by introducing a segment-level recurrence mechanism and a novel relative position encoding scheme (Shaw et al., 2018).”
BackgroundNot All Memories are Created Equal: Learning to Forget by ExpiringPreprint
Sukhbaatar, S., Ju, D., Poff, S., Roller, S., Szlam, A. D., Weston, J., & Fan, A. (2021) · International Conference on Machine Learning · doi:10.48550/arxiv.2105.06548 · Cited by 43
“(Shaw et al., 2018) make it possible to condition on the order of inputs by modifying the attention to a ti = Softmax ( q t k i + q t p t − i ) .”
Rethinking the Design Principles of Robust Vision TransformerPreprint
Mao, X., Qi, G., Chen, Y., Li, X., Ye, S., He, Y., & Xue, H. (2021) · arXiv (Cornell University) · Cited by 18
Async Learned User Embeddings for Ads Delivery OptimizationPreprint
Tang, M., Liu, M., Li, H., Yang, J., Wei, C., Li, B., Li, D., Xu, R., Xu, Y., Zhang, Z., et al. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2406.05898 · Cited by 24
“– Relative position encoder [11]: Calculating relative distance poses a challenge in neural networks because position indices become invisible within the network after vector embedding.”
BackgroundSequential Query Encoding For Complex Query Answering on Knowledge Graphs
Bai, J., Zheng, T., & Song, Y. (2023) · Transactions on machine learning research · doi:10.48550/arxiv.2302.13114 · Cited by 25
“Relative positional encoding (RPE) is introduced by Shaw et al. (2018).”
BackgroundBiesialska, M., Biesialska, K., & Rybiński, H. (2021) · Journal of Intelligent Information Systems · doi:10.1007/s10844-021-00664-7 · Cited by 16
“Similar to TSA, SSAN+RPR (Ambartsoumian & Popowich, 2018) also uses the trans-former encoder for the classifier.”
BackgroundInfluentialMulti-level Attention-based Domain Disentanglement for BCDR
Zhang, X., Li, J., Su, H., Zhu, L., & Shen, H. T. (2023) · ACM Transactions on Information Systems · doi:10.1145/3576925 · Cited by 21
“In this work, we leverage the attention mechanism [28] to address this concern, which has attracted considerable concern in the literature.”
BackgroundAvola, D., Cinque, L., Foresti, G. L., Lanzino, R., Marini, M. R., Mecca, A., & Scarcello, F. (2023) · Sensors · doi:10.3390/s23052655 · Cited by 18
“This is required since the attention Formula (4) does not model positional information [61] and cannot distinguish between patches in different positions.”
BackgroundDual-feature Fusion Attention Network for Small Object Segmentation
Fei, X., Li, X., Shi, C., Ren, H., Mumtaz, I., Guo, J., Wu, Y., Luo, Y., Lv, J., & Wu, X. (2023) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2023.106985 · Cited by 17
Dual-Spatial Normalized Transformer for image captioning
Hu, J., Yang, Y., An, Y., & Lu, Y. (2023) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2023.106384 · Cited by 19
Deng, G., Wu, Z., Xu, M., Wang, C., Wang, Z., & Lu, Z. (2023) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2023.3276172 · Cited by 22
“At present, the main position-encoding method involves configuring a set of learnable vectors to the same length as the input sequence [12], fixing them with sinusoidal functions [11], followed by absolute position encoding and relative position encoding [38].”
MethodMUSTIE: Multimodal Structural Transformer for Web Information Extraction
Wang, Q., Wang, J., Quan, X., Feng, F., Xu, Z., Nie, S., Wang, S., Khabsa, M., Firooz, H., & Liu, D. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.135 · Cited by 19
“ETC (Ainslie et al., 2020) and Longformer (Beltagy et al., 2020) describe a method to use a global memory with a relative attention pattern (Shaw et al., 2018, 2019) to represent the structure text input.”
MethodHybrid Transducer and Attention based Encoder-Decoder Modeling for Speech-to-Text Tasks
Tang, Y., Sun, A., Inaguma, H., Chen, X., Dong, N., Ma, X., Tomasello, P., & Pino, J. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.695 · Cited by 33
Xu, Y., Xiao, S., Qu, J., Dong, W., Li, Y., & Xia, H. (2023) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2023.3343554 · Cited by 21
“The input sequences are mapped to a constant dimension D through a linear projection matrix, and then position embedding is added to maintain position information [33].”
BackgroundSag-flownet: self-attention generative network for airfoil flow field prediction
Wang, X., Jiang, Y., Li, G., Zhang, L., & Deng, X. (2024) · Soft Computing · doi:10.1007/s00500-023-09602-x · Cited by 19
CA-Captioner: A novel concentrated attention for image captioning
Yang, X., Yang, Y., Wu, J., Sun, W., Ma, S., & Hou, Z. (2024) · Expert Systems with Applications · doi:10.1016/j.eswa.2024.123847 · Cited by 17
Li, R., Xu, J., Cao, Z., Zheng, H.-T., & Kim, H. (2024) · Applied Sciences · doi:10.3390/app14073076 · Cited by 24
“The evolution from absolute to relative position encoding [5] has been a significant milestone in the development of Transformers, allowing models to better generalize to different sequence lengths and more effectively capture the relational dynamics within sequences.”
BackgroundMasked Graph Transformer for Large-Scale Recommendation
Chen, H., Xu, Z., Yeh, C. M., Lai, V. W.-M., Zheng, Y. L., Xu, M., & Tong, H. (2024) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3626772.3657971 · Cited by 22
“In NLP domains, Relative Positional Encoding that encodes the distance between any two positions has achieved promising performance [27, 31].”
BackgroundCui, Y., Zhu, J. Q., Zhou, W., Zang, H., Ren, Y., Xu, J., Zhan, S., & Ma, W. (2024) · AIP Advances · doi:10.1063/5.0186891 · Cited by 18
Yang, C., Jiang, L., Li, Z., & Wu, J. (2024) · Robotics and Autonomous Systems · doi:10.1016/j.robot.2024.104817 · Cited by 17
Are queries and keys always relevant? A case study on transformer wave functions
Rende, R., & Viteritti, L. L. (2025) · Machine Learning Science and Technology · doi:10.1088/2632-2153/ada1a0 · Cited by 33
“Here, we consider three different mechanisms, all based on relative positional encoding [44], as appropriate for the objective of this work.”
Roumeliotis, K. I., Tselikas, N. D., & Nasiopoulos, D. Κ. (2025) · Computers, materials & continua/Computers, materials & continua (Print) · doi:10.32604/cmc.2025.059567 · Cited by 19
Distilled BERT Model in Natural Language Processing
Vakili, Y. Z., Fallah, A., & Sajedi, H. (2024) · International Conference on Computer and Knowledge Engineering · doi:10.1109/iccke65377.2024.10874673 · Cited by 25
“This allows the model to identify and understand connections between words that are far apart, addressing the limitations of previous models like RNNs and LSTMs that struggled with long-range dependencies [43, 44].”
Deformation prediction model for concrete dams considering the effect of solar radiation
Liu, M., Qi, Y., & Su, H. (2025) · Advanced Engineering Informatics · doi:10.1016/j.aei.2025.103252 · Cited by 18
SPAFormer: Sequential 3D Part Assembly with Transformers
Xu, B., Zheng, S., & Jin, Q. (2025) · International Conference on 3D Vision (3DV) · doi:10.1109/3dv66043.2025.00125 · Cited by 17
“A notable implementation is the RoPE [39], which rotates the input embedding to effectively extract relative positioning.”
Transformer-Based Classification of Transposable Element Consensus Sequences with TEclass2
Bickmann, L., Rodriguez, M., Jiang, X., & Makałowski, W. (2025) · Biology · doi:10.3390/biology15010059 · Cited by 22
TimeSAN: A Time-Modulated Self-Attentive Network for Next Point-of-Interest Recommendation
He, J., Qi, J., & Ramamohanarao, K. (2020) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn48605.2020.9207273 · Cited by 16
“[14], we capture the global context via addition:”
BackgroundFuchs, F. B., Wagstaff, E., Dauparas, J., & Posner, I. (2021) · Lecture notes in computer science · doi:10.1007/978-3-030-80209-7_63 · Cited by 25
Deep Graph-Based Character-Level Chinese Dependency Parsing
Wu, L., & Zhang, M. (2021) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2021.3067212 · Cited by 17
“…the Transformer by incorporating the relative position embeddings (RPE) into the multi-head self-attention components, which is mainly motivated by Shaw et al. (2018) [28] and Dai et al. (2019) [29], enhancing the ability of short-term connection awareness according to the objective of our task.”
BackgroundInvestigation of Practical Aspects of Single Channel Speech Separation for ASR
Wu, J., Chen, Z., Chen, S., Wu, Y., Yoshioka, T., Kanda, N., Liu, S., & Li, J. (2021) · Interspeech (USB) · doi:10.21437/interspeech.2021-921 · Cited by 16
Remote Sensing Image Scene Classification Based on Global Self-Attention Module
Li, Q., Yan, D., & Wu, W. (2021) · Remote Sensing · doi:10.3390/rs13224542 · Cited by 16
Dual-axial self-attention network for text classification
Zhang, X., Qiu, X., Pang, J., Liu, F., & Li, X. (2021) · Science China Information Sciences · doi:10.1007/s11432-019-2744-2 · Cited by 17
“[22] formulated a similar hypothesis that precise relative position information was not useful beyond a certain distance.”
BackgroundEdge detection with attention: From global view to local focus
Liu, H., Yang, Z., Zhang, H., & Wang, C. (2022) · Pattern Recognition Letters · doi:10.1016/j.patrec.2022.01.006 · Cited by 16
Time Interval Aware Self-Attention approach for Knowledge Tracing
Wei, L., Li, B., Li, Y., & Zhu, Y. Q. (2022) · Computers & Electrical Engineering · doi:10.1016/j.compeleceng.2022.108179 · Cited by 17
Boosting the Transformer with the BERT Supervision in Low-Resource Machine Translation
Yan, R., Li, J., Su, X., Wang, X., & Gao, G. (2022) · Applied Sciences · doi:10.3390/app12147195 · Cited by 18
“Baselines This paper compares the Transformer (base) trained with our algorithm with the following approaches that trained end-to-end, including Transformer (base) [3], Transformer (big) [3], Transformer-based on transfer learning [29], DeepRepre [45], RelPos [46], and BERT-fused model [16].”
MethodInfluentialConvolution-Enhanced Evolving Attention Networks
Wang, Y., Yang, Y., Li, Z., Bai, J., Zhang, M., Li, X., Yu, J., Zhang, C., Huang, G. M., & Tong, Y. (2023) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2023.3236725 · Cited by 16
“For relative positional representation [62], a matrix R = {rij} is added to reflect relative positional encoding.”
BackgroundFlexiBERT: Are Current Transformer Architectures too Homogeneous and Rigid?
Tuli, S., Dedhia, B., Tuli, S., & Jha, N. K. (2023) · Journal of Artificial Intelligence Research · doi:10.1613/jair.1.13942 · Cited by 20
Mixed Multi-Head Self-Attention for Neural Machine Translation
Cui, H., Iida, S., Hung, P.-H., Utsuro, T., & Nagata, M. (2019) · Workshop on Neural Generation and Translation (WNGT) · doi:10.18653/v1/d19-5622 · Cited by 21
“To tackle this problem, Shaw et al. (2018) presented an extension that can be used to incorporate relative position information for sequence.”
BackgroundMethodSoDA: Multi-Object Tracking with Soft Data AssociationPreprint
Hung, W.-C., Kretzschmar, H., Lin, T.-Y., Chai, Y., Yu, R., Yang, M., & Anguelov, D. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2008.07725 · Cited by 21
“Inspired by recent advances in natural language processing [9, 10, 20, 36, 43], we formulate MOT as a sequence-tosequence problem using attention models, where the input of the model is a series of frames with detections, and the output consists of the trajectories of the detected objects.”
BackgroundMethodTwo Stones Hit One Bird: Bilevel Positional Encoding for Better Length ExtrapolationPreprint
He, Z., Feng, G., Luo, S.-J., Yang, K., He, D., Xu, J., Zhang, Z., Yang, H., & Wang, L. (2024) · International Conference on Machine Learning · doi:10.48550/arxiv.2401.16421 · Cited by 29
“Keeping in mind that this encoding will play another role in handling longer sequences that are unseen during training, we employ relative positional encodings (Shaw et al., 2018; Raffel et al., 2020; Su et al., 2021; Press et al., 2022).”
MethodWhen Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Training
Wang, H., Liu, Q., Du, C., Zhu, T., Du, C., Kawaguchi, K., & Pang, T. (2025) · Transactions on machine learning research · doi:10.48550/arxiv.2411.13476 · Cited by 19
“Relative positional embeddings (Shaw et al., 2018; Ke et al., 2021) were introduced to handle variable-length sequences more effectively.”
Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization
Huang, Y., Wen, Z., Singh, A., Chi, Y., & Chen, Y. (2025) · neural information processing systems · doi:10.52202/085713-4230 · Cited by 32
PermuteFormer: Efficient Relative Position Encoding for Long Sequences
Chen, P. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.828 · Cited by 24
“Shaw et al. (2018) adds relative position embedding to keys and values, while Dai et al. (2019) adds relative position embedding to queries and keys.”
BackgroundInfluentialImproved Transformer With Multi-Head Dense Collaboration
Wang, H., Shen, X., Tu, M., Zhuang, Y., & Liu, Z. (2022) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2022.3199648 · Cited by 20
Disentangling Past-Future Modeling in Sequential Recommendation via Dual Networks
Zhang, H., Yuan, E., Guo, W., He, Z., Qin, J., Guo, H., Chen, B., Li, X., & Tang, R. (2022) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3511808.3557289 · Cited by 17
“We adopt the relative positional embedding as it is more robust than absolute positional embedding [30].”
BackgroundMethodDifferentiable Short-Term Models for Efficient Online Learning and Prediction in Monophonic Music
Bjare, M. R., Lattner, S., & Widmer, G. (2022) · Transactions of the International Society for Music Information Retrieval · doi:10.5334/tismir.123 · Cited by 15
MFCFlow: A Motion Feature Compensated Multi-Frame Recurrent Network for Optical Flow Estimation
Chen, Y., Zhu, D., Shi, W., Zhang, G., Zhang, T., Zhang, X., & Li, J. (2023) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv56688.2023.00504 · Cited by 20
“We also explore the use of 2D relative positional embedding [30] like GMA [15], allowing the attention map to depend on both the feature self-similarity and the relative position from the point.”
MethodImproving Bug Severity Prediction With Domain-Specific Representation Learning
Wei, Y., Zhang, C., & Ren, T. (2023) · IEEE Access · doi:10.1109/access.2023.3279205 · Cited by 15
“Firstly, we perform word embedding [11] and position embedding [27] on it, getting the vector representation of br : where E ∈ R d w ×| V | and P ∈ R d w ×| L | are two lookup matrices that transform br sequence into a vector. d w , | V | , and L are embedding dimensions, vocabulary sizes, and the…”
MethodNQE: N-ary Query Embedding for Complex Query Answering over Hyper-Relational Knowledge Graphs
Luo, H., Haihong, E., Yang, Y., Zhou, G., Guo, Y., Yao, T., Tang, Z., Lin, X., & Wan, K. (2023) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v37i4.25576 · Cited by 21
“Due to the heterogeneity between entities and relations within n-ary facts in HKGs, inspired by GRAN (Wang et al. 2019; Shaw, Uszkoreit, and Vaswani 2018; Wang et al. 2021), NQE utilizes a dual-heterogeneous Transformer encoder to implement n-ary projection.”
MethodAn End-to-End Air Writing Recognition Method Based on Transformer
Tan, X., Tong, J., Matsumaru, T., Dutta, V., & He, X. (2023) · IEEE Access · doi:10.1109/access.2023.3321807 · Cited by 15
“In air-writing recognition tasks, the input sequences often contain longer writing segments [41].”
BackgroundEdgeTran: Device-Aware Co-Search of Transformers for Efficient Inference on Mobile Edge Platforms
Tuli, S., & Jha, N. K. (2023) · IEEE Transactions on Mobile Computing · doi:10.1109/tmc.2023.3328287 · Cited by 20
“Its variants leverage mechanisms other than vanilla self-attention [17] to optimize performance or reduce model size and complexity.”
BackgroundChen, Z., Zhang, Y., Qi, X., Mao, Y., Zhou, X., Wang, L., & Ge, Y. (2024) · Remote Sensing · doi:10.3390/rs16020295 · Cited by 19
Hu, S., Liu, F., Song, B., Zhang, H., Lin, W. S., Liu, B., Duan, S., & Yao, Y. (2024) · Optics & Laser Technology · doi:10.1016/j.optlastec.2024.110815 · Cited by 16
Chen, S., Zhang, Z., Yang, Y., & Du, Y. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i16.29681 · Cited by 19
“In practice, we use self-attention (Shaw, Uszkoreit, and Vaswani 2018) to implement such marginal contribution approximation.”
MethodECSIC: Epipolar Cross Attention for Stereo Image Compression
Wödlinger, M., Kotera, J., Keglevic, M., Xu, J., & Sablatnig, R. (2024) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv57701.2024.00340 · Cited by 24
“The SCA module is included in all of the submodules that connect both streams –”
BackgroundMethodUSAT: A Universal Speaker-Adaptive Text-to-Speech Approach
Wang, W., Song, Y., & Jha, S. K. (2024) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2024.3393714 · Cited by 25
“The text encoder is a transformer encoder [49] with relative positional representation [50].”
MethodSoft Contrastive Sequential Recommendation
Zhang, Y., Wang, Z., Yu, W., Hu, L., Jiang, P., Gai, K., & Chen, X. (2024) · ACM Transactions on Information Systems · doi:10.1145/3665325 · Cited by 22
“Owing to success of self-attention [11, 58, 59, 65, 78] models in computer vision (CV) tasks and natural language processing (NLP) tasks, researchers also designed quite a lot of models based on Transformer-based models, such as SASRec [26], which brings self-attention into SR, BERT4Rec [60] and…”
DanceComposer: Dance-to-Music Generation Using a Progressive Conditional Music Generator
Liang, X., Li, W., Huang, L., & Gao, C. (2024) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2024.3405734 · Cited by 15
“The subsequent Trans-former encoder adopts the relative self-attention [42] to learn the periodic pattern of music beats, which is helpful in modeling the self-reference and repetitive structure in music.”
BackgroundWang, B., Hu, X., Ge, R., Xu, C., Zhang, J., Gao, Z., Shu, Z., & Polat, K. (2024) · Artificial Intelligence in Medicine · doi:10.1016/j.artmed.2024.102932 · Cited by 15
Li, K., Yang, S., Sullivan, T. M., Burd, R. S., & Marsic, I. (2024) · ACM Transactions on Knowledge Discovery from Data · doi:10.1145/3687464 · Cited by 23
“Both the absolute and relative positions between the tokens contributed to the learning of sequences [35].”
Li, Y., Li, S., Yuan, Z., Zhao, S., Wan, F., Xu, T., Zhang, H., & Wang, H. (2025) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2025.107679 · Cited by 15
Manzini, E., Vlacho, B., Franch‐Nadal, J., Escudero, J., Génova, A., Reixach, E., Andrés, E., Pizarro, I., Mauricio, D., & Perera-Lluna, A. (2025) · Expert Systems with Applications · doi:10.1016/j.eswa.2025.126876 · Cited by 18
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.
