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 801–900 of 1,012
Recurrent Positional Embedding for Neural Machine Translation
Chen, K., Wang, R., Utiyama, M., & Sumita, E. (2019) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/d19-1139 · Cited by 24
“Besides, we reported results of the existing works (Vaswani et al., 2017; Chen et al., 2018; Shaw et al., 2018; Hao et al., 2019; Liu et al., 2019; Chen et al., 2019).”
BackgroundResultInfluentialAdvances in Deep Learning Methods for Visual Tracking: Literature Review and Fundamentals
Zhang, X., Jiang, R.-H., Fan, C., Tong, T.-Y., Wang, T., & Huang, P. (2021) · Machine Intelligence Research · doi:10.1007/s11633-020-1274-8 · Cited by 25
Code Generation from Natural Language with Less Prior Knowledge and More Monolingual Data
Norouzi, S., Tang, K., & Cao, Y. (2021) · doi:10.18653/v1/2021.acl-short.98 · Cited by 31
“(2019) adapts the transformer relative position encoding (Shaw et al., 2018) to express relations among the database schema elements as well as with the input text spans.”
BackgroundAn Effective Non-Autoregressive Model for Spoken Language Understanding
Cheng, L., Jia, W., & Yang, W. (2021) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3459637.3482229 · Cited by 24
“Although we have tried to obtain dependency information via self-attention with relative position representations [27], it is not enough for the sequence labeling task like SF.”
MethodPrager, R. P., Seiler, M. V., Trautmann, H., & Kerschke, P. (2022) · Lecture notes in computer science · doi:10.1007/978-3-031-14714-2_1 · Cited by 22
Vector Quantized Contrastive Predictive Coding for Template-based Music GenerationPreprint
Hadjeres, G., & Crestel, L. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2004.10120 · Cited by 29
“We note that the alignment between the codes and the generated sequence allows to use relative attention on both the encoder and the decoder, which has proven to be beneficial to Transformer architectures [35].”
MethodMaxViT-UNet: Multi-Axis Attention for Medical Image SegmentationPreprint
Khan, A. R., & Khan, A. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2305.08396 · Cited by 39
“The relative self-attention mechanism [41, 42, 43, 19] adds a learnable relative bias to the attention weights, which proved to improve the self-attention mechanism.”
BackgroundOn Provable Length and Compositional GeneralizationPreprint
Ahuja, K., & Mansouri, A. (2024) · arXiv.org · doi:10.48550/arxiv.2402.04875 · Cited by 23
“Shaw et al. (2018) discovered the drawbacks of absolute positional embeddings and suggested relative positional embeddings as an alternative.”
BackgroundUniversal Length Generalization with Turing Programs
Hou, K., Brandfonbrener, D., Kakade, S., Jelassi, S., & Malach, E. (2024) · arXiv.org · doi:10.48550/arxiv.2407.03310 · Cited by 29
“Shaw et al. [44] were early to notice that the weak length generalization of Transformers was due to the choice of absolute positional encoding.”
BackgroundA Call for New Recipes to Enhance Spatial Reasoning in MLLMsPreprint
Zhang, H., Li, C., Wu, W., Mao, S.-G., Xia, Y., Vulic, I., Zhang, Z., Wang, L., Tan, T.-P., & Wei, F.-R. (2025) · arXiv.org · doi:10.48550/arxiv.2504.15037 · Cited by 11
“There are two primary methods in position embedding for Vision Transformer: Absolute Positional Embedding (APE) [53, 55] and Relative Position Embedding (RPE) [56, 57].”
Positional embeddings and zero-shot learning using BERT for molecular-property prediction
Mswahili, M. E., Hwang, J., Rajapakse, J. C., Jo, K., & Jeong, Y.-S. (2025) · Journal of Cheminformatics · doi:10.1186/s13321-025-00959-9 · Cited by 23
AISE: Attending to Intent and Slots Explicitly for better spoken language understanding
Yang, P., Ji, D. H., Ai, C., & Li, B. (2020) · Knowledge-Based Systems · doi:10.1016/j.knosys.2020.106537 · Cited by 21
Real-time single-channel speech enhancement based on causal attention mechanism
Fan, J., Yang, J., Zhang, X., & Yao, Y. (2022) · Applied Acoustics · doi:10.1016/j.apacoust.2022.109084 · Cited by 21
Gong, P., Sun, Q., Cheng, L., Zhang, Z., Ge, S., Chen, J., & Zhang, L. (2023) · Frontiers in Genetics · doi:10.3389/fgene.2022.1032768 · Cited by 27
“As a special, self-attention (Shaw et al., 2018; Hou et al., 2019), which calculates the response at a position in the sequence by attending to all positions within the same sequence has achieved notable success in modeling complicated relations (Gao et al.”
BackgroundDeepfake Detection with Spatio-Temporal Consistency and Attention
Chen, Y., Akhtar, N., Haldar, N. A. H., & Mian, A. S. (2022) · International Conference on Digital Image Computing: Techniques and Applications (DICTA) · doi:10.1109/dicta56598.2022.10034609 · Cited by 28
“The inter-patch features can be extracted by an self-attention module, which is then combined with a self-attention mechanism that maps global dependencies [44].”
Research on Chinese traditional opera costume recognition based on improved YOLOv5
Liu, K., Lin, K., & Zhu, C. (2023) · Heritage Science · doi:10.1186/s40494-023-00883-x · Cited by 26
“In the last two years, many researchers have proposed the concept of attentional mechanism [39].”
BackgroundCUI-Net: a correcting uneven illumination net for low-light image enhancement
Chao, K., Song, W., Shao, S., Liu, D., Liu, X., & Zhao, X. (2023) · Scientific Reports · doi:10.1038/s41598-023-39524-5 · Cited by 22
Site-Invariant Meta-Modulation Learning for Multisite Autism Spectrum Disorders Diagnosis
Lee, J., Kang, E., Heo, D.-W., & Suk, H. (2023) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2023.3311195 · Cited by 25
“Restrictions apply. b) Element-Attention (Att): The element-attention M Att is defined by self-attention [40] as follows : where d f represents the dimension of a f F .”
Fire in Focus: Advancing Wildfire Image Segmentation by Focusing on Fire Edges
Wang, G., Wang, F., Zhou, H., & Lin, H. (2024) · Forests · doi:10.3390/f15010217 · Cited by 21
Defects recognition of pine nuts using hyperspectral imaging and deep learning approaches
Peng, D., Chen, J., Wang, J., Zhai, Y., Qi, H., Zhou, L., Peng, J., & Zhang, C. (2024) · Microchemical Journal · doi:10.1016/j.microc.2024.110521 · Cited by 23
Air target intent recognition method combining graphing time series and diffusion models
Chenghai, L. I., Wang, K., Song, Y., Wang, P., & Li, L. (2024) · Chinese Journal of Aeronautics · doi:10.1016/j.cja.2024.08.008 · Cited by 22
TULIP: Token-length Upgraded CLIP
Najdenkoska, I., Derakhshani, M. M., Asano, Y. M., van Noord, N., Worring, M., & Snoek, C. G. M. (2025) · International Conference on Learning Representations · doi:10.48550/arxiv.2410.10034 · Cited by 28
“To address the challenge of comprehensively modeling the pairwise distances between tokens, more flexible positional encoding methods have been proposed (Shaw et al., 2018; Su et al., 2024; Golovneva et al., 2024).”
MethodGuo, Z., & Feng, L. (2024) · Stochastic Environmental Research and Risk Assessment · doi:10.1007/s00477-024-02840-x · Cited by 28
“It then finds the correspond - ing embedding vectors in a pre-defined list to determine and embed these relative positions (Shaw et al. 2018; Huang and Yang 2020).”
Liu, C., Wang, W., Lian, J., & Jiao, W. (2025) · Frontiers in Public Health · doi:10.3389/fpubh.2024.1442114 · Cited by 26
Transformers over Directed Acyclic Graphs
Luo, Y., Thost, V., & Shi, L. (2023) · neural information processing systems · doi:10.52202/075280-2070 · Cited by 41
Improving Self-Attention Networks With Sequential Relations
Zheng, Z., Huang, S., Weng, R., Dai, X., & Chen, J. (2020) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2020.2996807 · Cited by 28
“…position of “love” is 2 and the relative position between “love” and “watermelon” is +1, while “watermelon” is in the forward direction of “love”. given word, where the position embedding indicates either the absolute position in the sentence [1], or the position relative to a specific word [4].”
BackgroundMethodInfluentialImmidisetti, R., Hu, S., & Patel, V. M. (2021) · IEEE International Joint Conference on Biometrics (IJCB) · doi:10.1109/ijcb52358.2021.9484353 · Cited by 24
“[31] incorporates relative positional bias [28] in key, query and value as illustrated in Figure 2 (b), thereby effectively associating information with positional awareness.”
BackgroundExploiting Vector Attention and Context Prior for Ultrasound Image Segmentation
Xu, L., Gao, S., Shi, L., Wei, B., Liu, X., Zhang, J., & He, Y. (2021) · Neurocomputing · doi:10.1016/j.neucom.2021.05.033 · Cited by 24
Language Representation Models: An Overview
Schomacker, T., & Tropmann-Frick, M. (2021) · Entropy · doi:10.3390/e23111422 · Cited by 29
“[8], p. 2, not only considers the findings of [25] but combines the relative and absolute position to exceed the results of previous models.”
BackgroundResultTransformer-XL Based Music Generation with Multiple Sequences of Time-valued NotesPreprint
Wu, X., Wang, C., & Lei, Q. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2007.07244 · Cited by 21
“pre-training language models (Devlin et al., 2019), text-to-speech synthesis (Li et al., 2019), and speech recognition (Mohamed et al., 2019). Employing Transformer with relative attention mechanism (Shaw et al., 2018), Music Transformer (Huang et al., 2018) was proposed for generating piano music with long-term struc…”
BackgroundMethodInfluentialLanguage Models are Good TranslatorsPreprint
Wang, S., Tu, Z., Tan, Z., Wang, W., Sun, M., & Liu, Y. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2106.13627 · Cited by 32
Chiplet Cloud: Building AI Supercomputers for Serving Large Generative Language ModelsPreprint
Peng, H., Davidson, S., Shi, R., Song, S. L., & Taylor, M. B. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2307.02666 · Cited by 24
“10 TPUv4 Ours TCO per 1K Tokens ($) T o k e n G e n e r a t i o n L a t e n c y ( m s )”
BackgroundA survey of transformer architectures for autonomous driving
Chu, F., Li, H., Xie, L., & Zhao, J. (2025) · Expert Systems with Applications · doi:10.1016/j.eswa.2025.130338 · Cited by 29
Portfolio Optimization with 2D Relative-Attentional Gated Transformer
Kim, T. W., & Khushi, M. (2020) · IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE) · doi:10.1109/csde50874.2020.9411635 · Cited by 20
“For the Transformer, three encoder layers, eight heads, 128- dimensional vectors for attention hidden layers, and 512- dimensional vectors for feed-forward network layers are used.”
MethodInfluentialEnhancing Attention Models via Multi-head Collaboration
Wang, H., & Tu, M. (2020) · International Conference on Asian Language Processing · doi:10.1109/ialp51396.2020.9310460 · Cited by 22
A Multi-Level Attention Model for Evidence-Based Fact Checking
Kruengkrai, C., Yamagishi, J., & Wang, X. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.217 · Cited by 35
Adaptive aggregation with self‐attention network for gastrointestinal image classification
Li, S., Cao, J., Yao, J., Zhu, J., He, X., & Jiang, Q. (2022) · IET Image Processing · doi:10.1049/ipr2.12495 · Cited by 21
On the application of BERT models for nanopore methylation detection
Zhang, Y., Hatakeyama, S., Yamaguchi, K., Furukawa, Y., Miyano, S., Yamaguchi, R., & Imoto, S. (2021) · IEEE International Conference on Bioinformatics and Biomedicine (BIBM) · doi:10.1109/bibm52615.2021.9669841 · Cited by 24
Table2Graph: Transforming Tabular Data to Unified Weighted Graph
Zhou, K., Liu, Z., Chen, R., Li, L., Choi, S.-H., & Hu, X. (2022) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2022/336 · Cited by 41
“We compute the probability adjacency matrix A with self attention as follows [Shaw et al. , 2018]: (1) W l , W r ∈ R d × d ′ are trainable matrices; σ is activation function; function Softmax is applied in row-wise fashion to normalize the link weights of one column to the others.”
MethodXuan, P., Wu, X., Cui, H., Jin, Q., Wang, L., Zhang, T., Nakaguchi, T., & Duh, H. B. L. (2022) · Applied Soft Computing · doi:10.1016/j.asoc.2022.109905 · Cited by 21
Ren, H., Yang, M., & Jiang, P. (2023) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2023.106723 · Cited by 20
Hoang, T. L., & Ta, V. C. (2023) · Expert Systems with Applications · doi:10.1016/j.eswa.2023.122096 · Cited by 21
DETR Does Not Need Multi-Scale or Locality Design
Lin, Y., Yuan, Y., Zhang, Z., Li, C., Zheng, N., & Hu, H. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00602 · Cited by 44
“Swin Transformers [34, 33] highlight the importance of relative position bias for Transformer-based visual recognition, where some early variants can be found in both language and vision domains [23, 41, 24, 10, 25, 8, 48].”
BackgroundWang, W., Zhou, L., Ye, K., Sun, H., & Hong, S. (2024) · IET Signal Processing · doi:10.1049/2024/6666395 · Cited by 20
“Transformer-based methods usually require the inclusion of an embedding layer to make the model more sensitive to relative position [35].”
MethodZhou, X., Wang, J., Shan, B., & He, Y. (2024) · Remote Sensing · doi:10.3390/rs16081376 · Cited by 20
Automated pixel-level pavement marking detection based on a convolutional transformer
Zhang, H., He, A., Dong, Z., Zhang, A. A., Liu, Y., Zhan, Y., Wang, K. C. P., & Lin, Z. (2024) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2024.108416 · Cited by 20
Complementing Event Streams and RGB Frames for Hand Mesh Reconstruction
Jiang, J., Zhou, X., Wang, B., Deng, X., Xu, C., & Shi, B. (2024) · 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/cvpr52733.2024.02356 · Cited by 27
“We employ relative position encoding [40] to apply temporal attention f TA for each token within the hand feature for sequential S steps: where F TAH t are the final latent hand features.”
FOREST2SEQ: Revitalizing Order Prior for Sequential Indoor Scene Synthesis
Sun, Q., Zhou, H., Zhou, W., Li, L., & Li, H. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-72698-9_15 · Cited by 32
AlphaNet: scaling up local-frame-based neural network interatomic potentials
Yin, B., Wang, J., Du, W., Wang, P., Ying, P., Jia, H., Zhang, Z., Du, Y., Gomes, C. P., Duan, C., et al. (2025) · npj Computational Materials · doi:10.1038/s41524-025-01817-w · Cited by 31
“Positional embeddings are known to improve and stabilize the training of transformers 54 .”
PaTH Attention: Position Encoding via Accumulating Householder Transformations
Yang, S., Shen, Y., Wen, K., Tan, S., Mishra, M., Ren, L., Panda, R., & Kim, Y. (2025) · neural information processing systems · doi:10.52202/085713-2080 · Cited by 37
Mixup Multi-Attention Multi-Tasking Model for Early-Stage Leukemia Identification
Mathur, P., Piplani, M., Sawhney, R., Jindal, A., & Shah, R. R. (2020) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp40776.2020.9054672 · Cited by 20
“Thus, we incorporate pointwise attention logits as demonstrated by [13] to define a relationship ai,j that explains how a pixel ix,y attends to another pixel jx,y .”
MethodPersonalized Flight Itinerary Ranking at Fliggy
Huang, J., Yang, L., Sun, S., Zhang, B., & Huang, J. (2020) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3340531.3412735 · Cited by 23
“…if there are no user features, (13) is modified as Then the user attention score after the Softmax function can be viewed as the probability chosen by user u In the training phase, we use the booking flight itineraries as labels and minimize the loss function where y z ∈ { 0 , 1 } is the…”
BackgroundMethodDiscourse Self-Attention for Discourse Element Identification in Argumentative Student Essays
Song, W., Song, Z., Fu, R., Liu, L., Cheng, M., & Liu, T. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.225 · Cited by 24
“In addition to the sinusoidal position representation proposed by Vaswani et al. (2017), there are also other variations to bias the selection of attentive regions (Shen et al., 2018; Shaw et al., 2018; Yang et al., 2019).”
BackgroundInvestigating Self-Attention Network for Chinese Word Segmentation
Gan, L., & Zhang, Y. (2020) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2020.3030487 · Cited by 21
“On the other hand, it has been shown that a local attention mechanism has its unique advantages over global attention for certain NLP tasks [43]–[45].”
BackgroundResSaNet: A Hybrid Backbone of Residual Block and Self-Attention Module for Masked Face Recognition
Chang, W.-Y., Tsai, M.-Y., & Lo, S.-C. (2021) · IEEE International Conference on Computer Vision Workshops · doi:10.1109/iccvw54120.2021.00170 · Cited by 21
“periments in BoTNet [32], and utilize the relative position encodings [29] in order to achieve better performance.”
MethodGeometryMotion-Transformer: An End-to-End Framework for 3D Action Recognition
Liu, J., Guo, J., & Xu, D. (2022) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2022.3198011 · Cited by 24
“Inspired by the relative position encoding (RPE) methods [65], [66], which incorporate the relative distance of each pair of embeddings into the attention mechanism to further enhance the language modeling capability, the coordinate block aims to provide relative position encoding information for…”
Method2DSegFormer: 2-D Transformer Model for Semantic Segmentation on Aerial Images
Li, X., Cheng, Y., Fang, Y., Liang, H., & Xu, S. (2022) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2022.3223416 · Cited by 24
“Shaw et al. [19] proposed RPE by modeling input tokens as a fully connected graph, where each edge in the graph is presented by a learnable vector that encodes the relative position between the two tokens connected by the edge.”
BackgroundMethodSensing in Smart Cities: A Multimodal Machine Learning Perspective
Sadiq, T., & Omlin, C. W. P. (2025) · Smart Cities · doi:10.3390/smartcities9010003 · Cited by 26
“The self-attention layer [55] operates within a transformer, particularly for multimodal data like images (processed via CNNs) and text.”
Multi-Unit Transformers for Neural Machine Translation
Yan, J., Meng, F., & Zhou, J. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.77 · Cited by 22
Unaligned Multimodal Sequences for Depression Assessment From Speech
Zhao, Z., & Wang, K. (2022) · Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC) · doi:10.1109/embc48229.2022.9871556 · Cited by 32
“More specifically, self-attention is combined with a convolution generation adversaril network to balance the long-term regional dependency and computational efficiency [18], [19], which compensates the disadvantage introduced by the convolutional generative adversarial networks.”
BackgroundZeng, P., Hu, G., Zhou, X., Li, S., & Liu, P. (2022) · Applied Intelligence · doi:10.1007/s10489-022-04263-z · Cited by 19
“Shaw et al. [22] proposed relative position encoding, in which the idea of obtaining position information from the input is abandoned; instead position encoding occurs within the self-attention mechanism.”
BackgroundHierarchical Transformer for Scalable Graph Learning
Zhu, W., Wen, T., Song, G., Ma, X., & Wang, L. (2023) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2023/523 · Cited by 33
Streamlined Global and Local Features Combinator (SGLC) for High Resolution Image Dehazing
Benjdira, B., Ali, A. M., & Koubâa, A. (2023) · IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · doi:10.1109/cvprw59228.2023.00184 · Cited by 21
“Relative position coding bias Z was applied in the attention module inspired by[31], [32].”
MethodTomato Fruit Detection Using Modified Yolov5m Model with Convolutional Neural Networks
Tsai, F.-T., Nguyen, V.-T., Duong, T.-P., Phan, Q.-H., & Lien, C.-H. (2023) · Plants · doi:10.3390/plants12173067 · Cited by 22
Li, H., Xiao, Y., Cheng, C., & Song, X. (2023) · Sensors · doi:10.3390/s23187870 · Cited by 19
“PE containing a 3 × 3 depth-wise convolution can learn the local representation better than absolute position encoding (APE) [34] and relative position encoding (RPE) [30,45].”
BackgroundWang, S., Wang, X., Gao, H., & Xiong, J. (2023) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3581783.3612169 · Cited by 28
“It allows the model to pay attention to different parts separately and thus obtains a stronger representation[26].”
BackgroundYOLO-DD: Improved YOLOv5 for Defect Detection
Wang, J., Wang, W., Zhang, Z., Lin, X., Zhao, J., Chen, M., & Luo, L. (2024) · Computers, materials & continua/Computers, materials & continua (Print) · doi:10.32604/cmc.2023.041600 · Cited by 27
Swin2‐MoSE: A new single image supersolution model for remote sensing
Rossi, L., Bernuzzi, V., Fontanini, T., Bertozzi, M., & Prati, A. (2025) · IET Image Processing · doi:10.1049/ipr2.13303 · Cited by 27
“The UFormer [26] introduces U-shaped encoder-decoder structure with a window-based system to alleviate self-attention calculation, similar to the Swin Transformer [17] approach.”
Improving Video Summarization by Exploring the Coherence Between Corresponding Captions
Ye, C., Chen, W., Hu, B., Zhang, L., Zhang, Y., & Mao, Z. (2025) · IEEE Transactions on Image Processing · doi:10.1109/tip.2025.3598709 · Cited by 35
“Inspired by the success of self-attention layers and Trans-former architectures in the NLP field [47], [48], researchers proposed attention mechanism-based backbones such as ViT [49] to extract visual features insted of traditional CNN architecture.”
Mitigating the Position Bias of Transformer Models in Passage Re-ranking
Hofstätter, S., Lipani, A., Althammer, S., Zlabinger, M., & Hanbury, A. (2021) · Lecture notes in computer science · doi:10.1007/978-3-030-72113-8_16 · Cited by 29
I2Net: Mining intra-video and inter-video attention for temporal action localization
Zhang, W., Wang, B., Ma, S., Zhang, Y., & Zhao, Y. (2021) · Neurocomputing · doi:10.1016/j.neucom.2021.02.085 · Cited by 20
2LSPE: 2D Learnable Sinusoidal Positional Encoding using Transformer for Scene Text Recognition
Raisi, Z., Naiel, M. A., Younes, G., Wardell, S., & Zelek, J. (2021) · Canadian Conference on Computer and Robot Vision · doi:10.1109/crv52889.2021.00024 · Cited by 29
Generating Music Transition by Using a Transformer-Based Model
Hsu, J.-L., & Chang, S.-J. (2021) · Electronics · doi:10.3390/electronics10182276 · Cited by 25
“After Shaw’s [30] paper was published, subsequent studies of transformers [25,26] started to employ relative positional encoding in the models.”
MethodPseudo-Labeling for Massively Multilingual Speech Recognition
Lugosch, L., Likhomanenko, T., Synnaeve, G., & Collobert, R. (2022) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp43922.2022.9746832 · Cited by 45
Chen, X., Wu, Y., Xu, W., Li, J. H., Dong, H., & Chen, Y. (2021) · Symmetry · doi:10.3390/sym14010008 · Cited by 21
“Therefore, inspired by this idea, a channel-spacial attention module [39] is designed for feature refinement by enhancing key points and crucial feature channels.”
BackgroundHow to Dissect a Muppet: The Structure of Transformer Embedding Spaces
Mickus, T., Paperno, D., & Constant, M. (2022) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00501 · Cited by 36
“3In the case of relative positional embeddings applied to value projections (Shaw et al., 2018), it is rather straightforward to follow the same logic so as to include relative positional offset in the most appropriate term.”
BackgroundNath, S., Pradipta, G., Hu, C., Yang, T., Khailany, B., & Ren, H. M. (2022) · International Conference on Computer Aided Design · doi:10.1145/3508352.3549442 · Cited by 19
“the relative position representation (RPR) [15] indices on the”
BackgroundMethodInfluentialHybrid Attention-Based Encoder–Decoder Fully Convolutional Network for PolSAR Image Classification
Fang, Z., Zhang, G., Dai, Q., Xue, B., & Wang, P. (2023) · Remote Sensing · doi:10.3390/rs15020526 · Cited by 21
Self-Attention with Structural Position RepresentationsPreprint
Wang, X., Tu, Z., Wang, L., & Shi, S. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1909.00383 · Cited by 23
“Given an input sequence X = { x 1 , . . . , x I } ∈ R I × d , the model first transforms Figure 1: Illustration of (a) the standard sequential position encoding (Vaswani et al., 2017; Shaw et al., 2018), and (b) the proposed structural position encoding .”
InfluentialModeling Dynamic Attributes for Next Basket RecommendationPreprint
Chen, Y., Li, J., Liu, C., Li, C., Anderle, M., McAuley, J., & Xiong, C. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.11654 · Cited by 26
“Positional embeddings [20] that commonly used to identify item positions is also used in this paper.”
MethodRevitalizing CNN Attentions via Transformers in Self-Supervised Visual Representation Learning
Ge, C., Liang, Y., Song, Y., Jiao, J., Wang, J., & Luo, P. (2021) · neural information processing systems · doi:10.48550/arxiv.2110.05340 · Cited by 44
“We experimentally find that using learnable parameter configuration in positional encoding improves recognition performance and adopt [52] in CARE.”
MethodToeplitz Neural Network for Sequence ModelingPreprint
Qin, Z., Han, X., Sun, W., He, B.-W., Li, D., Li, D., Dai, Y., Kong, L., & Zhong, Y. (2023) · International Conference on Learning Representations · doi:10.48550/arxiv.2305.04749 · Cited by 59
“There are mainly two types of positional embeddings: the absolute positional embedding (Vaswani et al., 2017) and the relative position embedding (Shaw et al., 2018).”
BackgroundControllable Music Production with Diffusion Models and Guidance GradientsPreprint
Levy, M., Giorgi, B. D., Weers, F., Katharopoulos, A., & Nickson, T. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2311.00613 · Cited by 33
Thus Spake Long-Context Large Language ModelPreprint
Liu, X., Li, R., Huang, M., Liu, Z., Song, Y., Guo, Q., He, S., Wang, Q., Li, L., Liu, Q., et al. (2025) · arXiv · doi:10.48550/arxiv.2502.17129 · Cited by 23
Song, Z., Lu, Q., Xu, H., Zhu, H., Buckeridge, D. L., & Li, Y. (2024) · ACM International Conference on Bioinformatics, Computational Biology, and Health Informatics (ACM-BCB) · doi:10.1145/3698587.3701364 · Cited by 28
Distance Matters in Human-Object Interaction Detection
Wang, G., Guo, Y., Wong, Y., & Kankanhalli, M. (2022) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3503161.3547793 · Cited by 21
“Other methods also consider the relative position between inputs by taking it as learned relative bias embedding [39] or part of the attention weights [33, 48].”
MethodQin, Y., Xie, H., Ding, S., Tan, B., Li, Y., Zhao, B., & Ye, M. (2022) · Applied Intelligence · doi:10.1007/s10489-022-04049-3 · Cited by 18
“The Music Transformer [18] uses the relative attention mechanism [30] to generate an enduring structure in the composition.”
MethodClassification of Edge-dependent Labels of Nodes in Hypergraphs
Choe, M., Kim, S., Yoo, J., & Shin, K. (2023) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3580305.3599274 · Cited by 27
“Thus, we compare WithinOrderPE with two relative positional encodings: Shaw et al. [53] and GraphIT [42], using diffusion kernels [31] (DK) and the p-step random-walk kernel [42] (PRWK) for calculating distances between nodes.”
MethodEnd-to-End Video Scene Graph Generation With Temporal Propagation Transformer
Zhang, Y., Pan, Y., Yao, T., Huang, R., Mei, T., & Chen, C. W. (2023) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2023.3283879 · Cited by 34
“…obtained by (1) to mask empty detections in trajectory, and the primary attention weight e t,τi is measured as: where PE is the relative position encodings [57] of R ( T his +1) → 256 to encode time interval information, d hidden = 256 is the hidden dimension, and W 1 , W 2 are parametric matrices.”
MethodZhou, Y., Gong, W., Sun, Y., Li, L., Gu, K., & Wu, J. (2023) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2023.3310276 · Cited by 20
Song, R. F., Sun, X., & Liu, G. (2023) · IEEE Transactions on Instrumentation and Measurement · doi:10.1109/tim.2023.3311071 · Cited by 18
“encoding [37] is applied to the attention module, and its calculation process is as follows:”
MethodPłotka, S., Grzeszczyk, M. K., Brawura-Biskupski-Samaha, R., Gutaj, P., Lipa, M., Trzcinski, T. P., Išgum, I., Sánchez, C. I., & Sitek, A. (2023) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2023.107602 · Cited by 19
Rethinking Position Embedding Methods in the Transformer Architecture
Zhou, X., Ren, Z., Zhou, S., Jiang, Z., Yu, T., & Luo, H. (2024) · Neural Processing Letters · doi:10.1007/s11063-024-11539-7 · Cited by 19
“However, the performance comparison between these two methods has been a subject of debate in some studies [5, 14].”
Learning to Detect and Localize Multilingual Bugs
Yang, H., Nong, Y., Zhang, T., Luo, X., & Cai, H. (2024) · Proceedings of the ACM on software engineering. · doi:10.1145/3660804 · Cited by 31
Attention‐enhanced multiscale feature fusion network for pancreas and tumor segmentation
Dong, K., Hu, P., Zhu, Y., Tian, Y., Li, X., Zhou, T., Bai, X., Liang, T., & Li, J. (2024) · Medical Physics · doi:10.1002/mp.17385 · Cited by 22
CDF-YOLOv8: City Recognition System Based on Improved YOLOv8
Lu, P., Jia, Y., Zeng, W., & Wei, P. (2024) · IEEE Access · doi:10.1109/access.2024.3471690 · Cited by 22
“Focal modulation simplifies this by first compiling spatial context at varying levels into modulators [25], like Figure 6, where q is a query projection function.”
MethodRIMformer: An End-to-End Transformer for FMCW Radar Interference Mitigation
Zhang, Z., Chen, G., Weng, Y., Yang, S., Jia, Z., & Chen, J. (2024) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2024.3487855 · Cited by 23
“Moreover, inspired by [38], relative position encoding is used, and the attention expression can be calculated as where S rel is a variable representing the relative positions of elements, which can be learned during the training process.”
BackgroundA hierarchical transformer-based network for multivariate time series classification
Tang, Y., Wei, Y., Li, T., Zheng, X., & Ji, C. (2025) · Information Systems · doi:10.1016/j.is.2025.102536 · Cited by 19
SignEdgeLVM transformer model for enhanced sign language translation on edge devices
Damdoo, R., & Kumar, P. (2025) · Discover Computing · doi:10.1007/s10791-025-09509-1 · Cited by 19
“8 [47].”
Influential
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.
