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 601–700 of 1,012
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) · arXiv · doi:10.48550/arxiv.2005.09904 · Cited by 33
nn-TransUNet: An Automatic Deep Learning Pipeline for Heart MRI Segmentation
Li, Z., Zhou, D., Jin, X., & Zhu, W. (2022) · Life · doi:10.3390/life12101570 · Cited by 34
“Attention mechanism [21] is a technique which is broadly implemented”
MethodVPTR: Efficient Transformers for Video Prediction
Ye, X., & Bilodeau, G.-A. (2022) · Proceedings - International Conference on Pattern Recognition/Proceedings/International Conference on Pattern Recognition · doi:10.1109/icpr56361.2022.9956707 · Cited by 55
“We argue that RPE is beneficial because both VPTR-FAR-RPE and VPTR-NAR-RPE outperform the base models with regard to most metrics on the two datasets.”
MethodInfluentialMohammadi, E., Stokholm-Bjerregaard, M., Hansen, A. A., Nielsen, P. H., Ortíz-Arroyo, D., & Durdevic, P. (2024) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2024.107992 · Cited by 34
“Compared to previous recurrent and convolutional architectures, self-Attention has the following advantages: parallel operations (compared to RNN) and no need for deep networks to find long sentences [83].”
BackgroundMethodA novel scene coupling semantic mask network for remote sensing image segmentation
Ma, X., Lian, R., Wu, Z., Guan, R., Hong, T., Zhao, M., Ma, M., Nie, J., Du, Z., Song, S., et al. (2025) · ISPRS Journal of Photogrammetry and Remote Sensing · doi:10.1016/j.isprsjprs.2025.01.025 · Cited by 35
Context-Self Contrastive Pretraining for Crop Type Semantic Segmentation
Tarasiou, M., Güler, R. A., & Zafeiriou, S. P. (2022) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2022.3198187 · Cited by 36
“We note that in addition to relative positional encodings, absolute positional encodings have also been employed [42] but their performance has been shown to be inferior in both language [45] and vision tasks [46].”
Li, G., Lv, J., & Wang, C. (2021) · IEEE Access · doi:10.1109/access.2021.3086839 · Cited by 34
“The method based on self-attention [28] mechanism has demonstrated that attention module can make the network to extract the detailed information from the MR image and reconstruct an image close to the GT image.”
MethodLearning Light-Weight Translation Models from Deep Transformer
Li, B., Wang, Z., Liu, H., Du, Q., Xiao, T., Zhang, C., & Zhu, J. (2021) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v35i15.17561 · Cited by 43
Adversary-Aware Rumor Detection
Song, Y.-Z., Chen, Y.-S., Chang, Y.-T., Weng, S.-Y., & Shuai, H.-H. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.118 · Cited by 41
“Besides, by utilizing the hierarchical structure in the conversation thread (i.e., parent, child, before, after and self), Khoo et al. (2020) adopt the idea in Shaw et al. (2018) to perform structure-aware self-attention.”
MethodPerformance-Efficiency Trade-Offs in Unsupervised Pre-Training for Speech Recognition
Wu, F., Kim, K., Pan, J. S., Han, K. J., Weinberger, K. Q., & Artzi, Y. (2022) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp43922.2022.9747432 · Cited by 48
SHAPE: Shifted Absolute Position Embedding for Transformers
Kiyono, S., Kobayashi, S., Suzuki, J., & Inui, K. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.266 · Cited by 55
“RPE, which was originally proposed by Shaw et al. (2018), has many variants in the literature (Dai et al., 2019; Raffel et al., 2020; Huang et al., 2020; Wang et al., 2021; Wu et al., 2021).”
BackgroundResultInfluentialImage Search with Text Feedback by Deep Hierarchical Attention Mutual Information Maximization
Gu, C., Bu, J., Zhang, Z., Yu, Z. H., Ma, D., & Wang, W. (2021) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3474085.3475619 · Cited by 39
“The ability of self-attention to directly model long-distance interactions and its parallelizability, which leverages the lengths of modern hardware, has led to state-of-the-art models for various tasks [14, 46, 54].”
BackgroundCross Attention Augmented Transducer Networks for Simultaneous Translation
Liu, D., Du, M., Li, X., Li, Y., & Chen, E. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.4 · Cited by 62
“, 2017) and relative positional attention (Shaw et al., 2018) for speech encoder, and only cosine positional embedding for the decoder.”
BackgroundMethodBoosting Neural Networks to Decompile Optimized Binaries
Cao, Y., Liang, R., Chen, K., & Hu, P. (2022) · Annual Computer Security Applications Conference · doi:10.1145/3564625.3567998 · Cited by 48
Learning Efficient Multi-agent Cooperative Visual Exploration
Yu, C., Yang, X., Gao, J., Yang, H., Wang, Y., & Wu, Y. (2022) · Lecture notes in computer science · doi:10.1007/978-3-031-19842-7_29 · Cited by 49
Zhang, Z., Huang, X., & Li, J. (2023) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2023.3241366 · Cited by 41
“The LePE encoding [46] has demonstrated its superiority over absolute positional encoding (APE) [30], conditional positional encoding (CPE) [82], and relative position representation (RPE) [83].”
BackgroundA Hybrid Algorithm with Swin Transformer and Convolution for Cloud Detection
Gong, C., Long, T., Yin, R., Jiao, W., & Wang, G. (2023) · Remote Sensing · doi:10.3390/rs15215264 · Cited by 32
CoRe-Sleep: A Multimodal Fusion Framework for Time Series Robust to Imperfect Modalities
Kontras, K., Chatzichristos, C., Phan, H., Suykens, J. A. K., & Vos, M. D. (2024) · IEEE Transactions on Neural Systems and Rehabilitation Engineering · doi:10.1109/tnsre.2024.3354388 · Cited by 40
“Each unimodal and multimodal encoder has an inner and outer block of TF, each with 4 layers of post-normalization TF. Relative positional embedding [53] is only added to key vectors in attention components.”
BackgroundMethodPosition-aware Self-attention with Relative Positional Encodings for Slot FillingPreprint
Bilan, I., & Roth, B. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1807.03052 · Cited by 33
“It is used for the task of Neural Machine Translation and has an encoder-decoder structure with multiple stacked layers.”
BackgroundInfluentialConvolutional Self-Attention NetworksPreprint
Yang, B., Wang, L., Wong, D. F., Chao, L. S., & Tu, Z. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1904.03107 · Cited by 46
“In this work, we propose to model locality for SANs by restricting the model to attend to a local region via convolution operations (1D-CSANs, Figure 1(b)).”
BackgroundMethodInfluentialLoL: Longer than Longer, Scaling Video Generation to HourPreprint
Cui, J., Wu, J., Li, M., Yang, T., Li, X., Wang, R., Bai, A., Ban, Y., & Hsieh, C. (2026) · arXiv · doi:10.48550/arxiv.2601.16914 · Cited by 40
Neural Machine Translation with Adequacy-Oriented Learning
Kong, X., Tu, Z., Shi, S., Hovy, E., & Zhang, T. (2019) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v33i01.33016618 · Cited by 31
MsSVT++: Mixed-Scale Sparse Voxel Transformer With Center Voting for 3D Object Detection
Li, J., Dong, S., Ding, L., & Xu, T. (2023) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2023.3345880 · Cited by 38
“To address this challenge and enhance multi-scale feature learning, we have incorporated a scale-aware adaptive relative position encoding strategy, drawing inspiration from prior studies [58], [59], [60].”
MethodGong, T., Ju, F., & Bu, D. (2024) · Communications Biology · doi:10.1038/s42003-024-05952-w · Cited by 39
“54 , the transformerarchitecturepossessesapermutation-invariantnature;thus,we supplementthesequenceembeddingwithrelativepositionalencodings 71 .”
HR-YOLOv8: A Crop Growth Status Object Detection Method Based on YOLOv8
Zhang, J., Yang, W., Lu, Z., & Chen, D. (2024) · Electronics · doi:10.3390/electronics13091620 · Cited by 31
“Self-attention [18,23,24] has become a standard component for capturing remote interactions after success in sequential and generative modeling tasks.”
BackgroundAdaptive Multipersonalized Federated Learning for State of Health Estimation of Multiple Batteries
Wang, T., Dong, Z. Y., & Xiong, H. (2024) · IEEE Internet of Things Journal · doi:10.1109/jiot.2024.3448626 · Cited by 37
Cai, T., Merz, G. W., Charton, F., Nolte, N. S., Wilhelm, M., Cranmer, K. S., & Dixon, L. J. (2024) · Machine Learning Science and Technology · doi:10.1088/2632-2153/ad743e · Cited by 45
S2-Transformer for Mask-Aware Hyperspectral Image Reconstruction
Wang, J., Li, K., Zhang, Y., Yuan, X., & Tao, Z. (2025) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2025.3543842 · Cited by 50
“We scale the matrix multiplication by a learnable scalar β and add B as a relative position bias matrix [77].”
Scaling Up Your Kernels: Large Kernel Design in ConvNets Toward Universal Representations
Zhang, Y., Ding, X., & Yue, X. (2025) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2025.3600702 · Cited by 47
“Interestingly, we find 2D Relative Position Embedding (RPE) [67], [68], which is widely used in the transformer community, can also be viewed as a large depth-wise kernel of size (2 H − 1) × (2 W − 1) , where H and W are feature map height and width respectively.”
Neural Machine Translation with Reordering Embeddings
Chen, K., Wang, R., Utiyama, M., & Sumita, E. (2019) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/p19-1174 · Cited by 35
“Relative PE (Shaw et al., 2018): incorporates relative positional embeddings into the self-attention mechanism of Transformer.”
BackgroundSearching Better Architectures for Neural Machine Translation
Yang, F., Tian, F., Xia, Y., Qin, T., Li, X., & Liu, T. (2020) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2020.2995270 · Cited by 33
“Comparedto the standard Transformer and Transformer with relative position embedding [20], our approach outperforms the above algorithms by 1.3 and 0.9 point respectively, demonstrating the effectiveness of our NAS approach.”
BackgroundMethodInfluentialStepwise Extractive Summarization and Planning with Structured Transformers
Narayan, S., Maynez, J., Adamek, J., Pighin, D., Bratanič, B., & McDonald, R. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.339 · Cited by 39
Direction Relation Transformer for Image Captioning
Song, Z., Zhou, X., Dong, L., Tan, J., & Guo, L. (2021) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3474085.3475607 · Cited by 34
“Recently, [25] extends the self-attention mechanism to efficiently consider representations of the relative positions, or distances between sequence elements.”
BackgroundMultimodal Video Summarization via Time-Aware Transformers
Shang, X., Yuan, Z., Wang, A., & Wang, C. (2021) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3474085.3475321 · Cited by 38
“[41] proposed a relation-aware self-attention by treating the different distant relative positions as different embeddings.”
BackgroundMethodInfluentialAST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarization
Tang, Z. J., Li, C., Ge, J., Shen, X., Zhu, Z., & Luo, B. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678882 · Cited by 46
“For incorporating with the relationship matrices in self-attention, we combine the practices of Shaw et al. [14] and He et al. [15].”
MethodQing, Y., Huang, Q., Feng, L., Qi, Y., & Liu, W. (2022) · Remote Sensing · doi:10.3390/rs14030742 · Cited by 33
Context-Aware Pretraining for Efficient Blind Image Decomposition
Wang, C., Zheng, Z., Quan, R., Sun, Y., & Yang, 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.01744 · Cited by 41
“Combing with learnable relative positional embedding [46], the position calibrations of noises are further ensured and features containing vivid textures can “flow” to the corrupted regions.”
BackgroundSelf-Attentive Hawkes ProcessesPreprint
Zhang, Q., Lipani, A., Kırnap, Ö., & Yılmaz, E. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1907.07561 · Cited by 327
“Shaw et al. (2018) represented the relative position by learning an embedding matrix.”
BackgroundThe Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic GeneralizationPreprint
Csordás, R., Irie, K., & Schmidhuber, J. (2021) · International Conference on Learning Representations · doi:10.48550/arxiv.2110.07732 · Cited by 77
“Most notably, the relative positional encoding (Schmidhuber, 1992; Shaw et al., 2018; Dai et al., 2019) was found useful for improving systematic generalization of Transformers (Csord ´ as et al., 2021).”
Augmented FCN: rethinking context modeling for semantic segmentation
Zhang, D., Zhang, L., & Tang, J. (2023) · Science China Information Sciences · doi:10.1007/s11432-021-3590-1 · Cited by 35
“Another noteworthy disadvantage is the nonlocal operation and self-attention being only content-based interactions, which are not favorable for highly structured image data [23,29,31].”
BackgroundInfluentialWang, F., Shi, X., Yang, F., Song, R., Li, Q., Tan, Z., & Wang, C. (2024) · Journal of Information Security and Applications · doi:10.1016/j.jisa.2024.103784 · Cited by 45
Shao, K., Li, D., Tang, H., Zhang, Y., Xu, B., & Bhatti, U. A. (2025) · Computers and Electronics in Agriculture · doi:10.1016/j.compag.2025.110329 · Cited by 31
Learning a deep language model for microbiomes: The power of large scale unlabeled microbiome data
Pope, Q., Varma, R., Tataru, C. A., David, M. M., & Fern, X. Z. (2025) · PLoS Computational Biology · doi:10.1371/journal.pcbi.1011353 · Cited by 43
Flexible Job Shop Scheduling Problem using graph neural networks and reinforcement learning
Liu, X., Chen, X., Chau, V., Musiał, J., & Błażewicz, J. (2025) · Computers & Operations Research · doi:10.1016/j.cor.2025.107139 · Cited by 41
Protein and genomic language models uncover the unexplored diversity of bacterial immunity
Mordret, E., Hervé, A., Tesson, F., Vaysset, H., Clabby, T., Loubat, A., Shomar, H., Planel, R., Lavenir, R., Cury, J., et al. (2026) · Science · doi:10.1126/science.adv8275 · Cited by 41
Chen, Y., Song, Y., Zhang, C., Zhang, F., O’Donnell, L. J., Chrzanowski, W., & Cai, W. (2021) · IEEE International Symposium on Biomedical Imaging (ISBI) · doi:10.1109/isbi48211.2021.9434057 · Cited by 33
“Inspired by [16] which studied relative postion encoding in NLP tasks, the spatial feature of each cell is presented as relative position between the target cell and its neighboring ones.”
BackgroundExemplars-Guided Empathetic Response Generation Controlled by the Elements of Human Communication
Majumder, N., Ghosal, D., Hazarika, D., Gelbukh, A. F., Mihalcea, R. F., & Poria, S. (2022) · IEEE Access · doi:10.1109/access.2022.3193159 · Cited by 37
GFE: General Knowledge Enhanced Framework for Explainable Sequential Recommendation
Yang, Z., Dong, S., & Hu, J. (2021) · Knowledge-Based Systems · doi:10.1016/j.knosys.2021.107375 · Cited by 33
Document Graph for Neural Machine Translation
Xu, M., Li, L., Wong, D. F., Liu, Q., & Chao, L. S. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.663 · Cited by 37
Extended context-based semantic communication system for text transmission
Liu, Y., Jiang, S., Zhang, Y., Cao, K., Zhou, L., Seet, B., Zhao, H., & Wei, J. (2022) · Digital Communications and Networks · doi:10.1016/j.dcan.2022.09.023 · Cited by 37
Self-Supervised Dynamic Hypergraph Recommendation based on Hyper-Relational Knowledge Graph
Liu, Y., Xuan, H., Li, B., Wang, M., Chen, T., & Yin, H. (2023) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3583780.3615054 · Cited by 43
“Inspired by [16], we introduce learnable biases a i j , a i j ∈ R to obtain edge-aware at-”
MethodA Mixture of h - 1 Heads is Better than h Heads
Peng, H. M., Schwartz, R., Li, D., & Smith, N. A. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.587 · Cited by 45
Syntax grounded graph convolutional network for joint entity and event extraction
Zhang, J., He, Q., & Zhang, Y. (2020) · Neurocomputing · doi:10.1016/j.neucom.2020.09.044 · Cited by 33
Multilingual Neural Machine Translation for Low-Resource Languages
Lakew, S. M., Federico, M., Negri, M., & Turchi, M. (2018) · Italian Journal of Computational Linguistics · doi:10.4000/ijcol.531 · Cited by 41
“In our work we use the absolute positional encoding, but very recently the use of the relative positional information has been shown to improve the network performance (Shaw, Uszkoreit, and Vaswani 2018).”
MethodNon-autoregressive Transformer by Position LearningPreprint
Bao, Y., Zhou, H., Feng, J., Wang, M., Huang, S., Chen, J., & Li, L. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.10677 · Cited by 30
“Intuitively, we use relative position encoding in self-attention(Shaw et al., 2018), rather than absolute one that is more likely to cause position errors.”
BackgroundMethodGlobal Self-Attention Networks for Image RecognitionPreprint
Shen, Z., Bello, I., Vemulapalli, R., Jia, X., & Chen, C. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2010.03019 · Cited by 41
“Different from Wang et al. (2018); Yue et al.”
MethodEvolving Attention with Residual ConvolutionsPreprint
Wang, Y., Yang, Y., Bai, J., Zhang, M., Bai, J., Yu, J., Zhang, C., Huang, G. M., & Tong, Y. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2102.12895 · Cited by 48
“In addition, there are other research directions, including relative positional representations (Shaw et al., 2018), adaptive masks for long-range information (Sukhbaatar et al., 2019), tree-based trans-former (Shiv & Quirk, 2019), and AutoML-based evolved transformer (So et al., 2019).”
BackgroundRelational Attention: Generalizing Transformers for Graph-Structured TasksPreprint
Diao, C., & Loynd, R. (2022) · arXiv · doi:10.48550/arxiv.2210.05062 · Cited by 41
“Relative Position Vectors A number of prior works have modified self-attention to implement relative positional encodings (Ying et al., 2021; Cai & Lam, 2020b; Shaw et al., 2018; Hellendoorn et al., 2020; Dai et al., 2019).”
BackgroundAI-Assisted Programming Tasks Using Code Embeddings and Transformers
Kotsiantis, S. B., Verykios, V. S., & Tzagarakis, M. M. (2024) · Electronics · doi:10.3390/electronics13040767 · Cited by 39
Zhang, L., Xia, P., Ma, X., Yang, C., & Ding, X. (2024) · Complex & Intelligent Systems · doi:10.1007/s40747-024-01383-6 · Cited by 30
“Specifically, EGP uses Rotary Position Embedding (RoPE) [51] to encode relative position information.”
Wang, X., & El-Gohary, N. (2024) · Automation in Construction · doi:10.1016/j.autcon.2024.105539 · Cited by 31
Zhang, M., Lin, Z., Tang, S., Lin, C., Zhang, L., Dong, W., & Zhong, N. (2025) · Agriculture · doi:10.3390/agriculture15060571 · Cited by 33
DSMT: Dual-Stage Multiscale Transformer for Hyperspectral Snapshot Compressive Imaging
Luo, F., Chen, X., Guo, T., Gong, X., Zhang, L., & Zhu, C. (2025) · IEEE Transactions on Image Processing · doi:10.1109/tip.2025.3556520 · Cited by 33
“…heads along the channel dimension: In addition, we incorporate positional information again by utilizing the relative positional embedding (RPE) [31], adding a learnable parameter denote the dimension of each head and h denote the number of heads, then the self-attention of the n th head can be…”
InfluentialRevisiting End-to-End Speech-to-Text Translation From ScratchPreprint
Zhang, B., Haddow, B., & Sennrich, R. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2206.04571 · Cited by 53
“PDP is inspired by the relative position representation (Shaw et al., 2018; Raffel et al., 2020) and is formulated as below: where w ∈ R R is a trainable vector, R is a hyperparameter, and w i denotes its i -th element.”
BackgroundImproving End-to-End Speech Synthesis with Local Recurrent Neural Network Enhanced Transformer
Zheng, Y., Li, X., Xie, F., & Lü, L. (2020) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp40776.2020.9054148 · Cited by 33
“To mitigate this problem, many kinds of position embeddings [21, 22] are introduced into Transformer.”
BackgroundThe Unstoppable Rise of Computational Linguistics in Deep Learning
Henderson, J. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.561 · Cited by 37
Towards More Diverse Input Representation for Neural Machine Translation
Chen, K., Wang, R., Utiyama, M., Sumita, E., Zhao, T., Yang, M., & Zhao, H. (2020) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2020.2996077 · Cited by 29
“…[23], we implemented the following baseline methods: the vanilla Transformer model [1], a multi-head attention with disagreement regularization ( DisReg ) model [24], a Transformer model with relative positional representation ( Rel_PE ) [25], and a Transformer model with directional SAN ( DiSAN ).”
MethodDuoRAT: Towards Simpler Text-to-SQL Models
Scholak, T., Li, R., Bahdanau, D., de Vries, H., & Pal, C. (2020) · North American Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2021.naacl-main.103 · Cited by 30
“Contrary to RAT-SQL, both the encoder and the decoder are relation-aware transformers (Shaw et al., 2018).”
MethodAttention Is All You Need for Chinese Word Segmentation
Duan, S., & Zhao, H. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.317 · Cited by 31
Federated Learning with Position-Aware Neurons
Li, X., Xu, Y.-C., Song, S., Li, B., Li, Y., Shao, Y., & Zhan, D. (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.00984 · Cited by 49
“Relative position encoding [31] is more applicable to sequences with various lengths.”
BackgroundSACANet: scene-aware class attention network for semantic segmentation of remote sensing images
Ma, X., Che, R., Hong, T., Ma, M., Zhao, Z., Feng, T., & Zhang, W. (2023) · IEEE International Conference on Multimedia and Expo (ICME) · doi:10.1109/icme55011.2023.00147 · Cited by 34
“Unlike previous work in the field of natural language processing [12], we extend the words in a one-dimensional sequence to the pixels in a two-dimensional plane, considering their relative positions as a combined effect along both horizontal and vertical directions.”
A Meta-adversarial Framework for Cross-Domain Cold-Start Recommendation
Liu, Y., Wang, S., Li, X., & Sun, F. (2024) · Data Science and Engineering · doi:10.1007/s41019-024-00245-y · Cited by 31
“In this work, we use attention mechanisms [20] to address this problem.”
Cross-Lingual Dependency Parsing with Unlabeled Auxiliary Languages
Ahmad, W. U., Zhang, Z., Ma, X., Chang, K.-W., & Peng, N. (2019) · Conference on Computational Natural Language Learning · doi:10.18653/v1/k19-1035 · Cited by 41
“The “SelfAtt-Graph” parser consists of a modified self-attentional encoder (Shaw et al., 2018) and a graph-based deep bi-affine decoder (Dozat and Manning, 2017), while the “RNN-Stack” parser is composed of a Recurrent Neural Network (RNN) based encoder and a stack-pointer decoder (Ma et al., 2018).”
MethodGraph-to-Graph Transformer for Transition-based Dependency Parsing
Mohammadshahi, A., & Henderson, J. (2020) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2020.findings-emnlp.294 · Cited by 40
Position-aware self-attention based neural sequence labeling
Wei, W., Wang, Z., Mao, X.-L., Zhou, G., Zhou, P., & Jiang, S. (2020) · Pattern Recognition · doi:10.1016/j.patcog.2020.107636 · Cited by 35
“Recently, Shaw et al. [12] present an alternative approach to take the account of the relative distance between sequence elements for representation.”
BackgroundMethodInfluentialPyramidTNT: Improved Transformer-in-Transformer Baselines with Pyramid ArchitecturePreprint
Han, K., Guo, J., Tang, Y., & Wang, Y. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2201.00978 · Cited by 34
“Relative position encoding [25] is added on self-attention module to better represent relative position between tokens.”
BackgroundGao, Z., Yang, L., & Dai, Y. (2023) · IEEE Internet of Things Journal · doi:10.1109/jiot.2023.3329869 · Cited by 28
Ekanayake, M. M., Pawar, K., Harandi, M. T., Egan, G. F., & Chen, Z. (2023) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2023.107775 · Cited by 28
Mitigating Object Hallucination via Concentric Causal Attention
Xing, Y., Li, Y., Laptev, I., & Lu, S. (2024) · neural information processing systems · doi:10.52202/079017-2920 · Cited by 89
Learning Semantic Representations for Novel Words: Leveraging Both Form and Context
Schick, T., & Schütze, H. (2019) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v33i01.33016965 · Cited by 20
On the Importance of Word Order Information in Cross-lingual Sequence Labeling
Liu, Z., Winata, G. I., Cahyawijaya, S., Madotto, A., Lin, Z., & Fung, P. (2021) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v35i15.17588 · Cited by 37
“For the same task, Ahmad et al. (2018), on the other hand, leveraged a relative positional self-attention encoder (Shaw, Uszkoreit, and Vaswani 2018) to make the sequence encoder less sensitive to word order and increase the adaptation robustness for target languages that are topologically…”
BackgroundLETR: A Lightweight and Efficient Transformer for Keyword Spotting
Ding, K. Q., Zong, M., Li, J., & Li, B. (2022) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp43922.2022.9747295 · Cited by 38
Kuang, L., Zhou, C., & Yang, X. (2022) · Automated Software Engineering · doi:10.1007/s10515-022-00341-1 · Cited by 30
“Ahmad et al. (2020) employ Transformer (Vaswani et al. 2017) to extract code features incorporating relative position encoding (Shaw et al. 2018) and copy mechanism (See et al. 2017).”
MethodTransformer-Based Anchor-Free Detection of Concealed Objects in Passive Millimeter Wave Images
Yang, H., Zhang, D., Hu, A., Liu, C., Cui, T. J., & Miao, J. (2022) · IEEE Transactions on Instrumentation and Measurement · doi:10.1109/tim.2022.3175029 · Cited by 35
Self-attention Mechanism at the Token Level: Gradient Analysis and Algorithm Optimization
Liu, L., & Xu, X. (2023) · Knowledge-Based Systems · doi:10.1016/j.knosys.2023.110784 · Cited by 32
P-Transformer: Towards Better Document-to-Document Neural Machine Translation
Li, Y., Li, J., Jiang, J., Tao, S., Yang, H., & Zhang, M. (2023) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2023.3313445 · Cited by 49
“The relative position [13] provides the relative pairwise distance of the input sequence, which has been successfully applied to the sentence-level NMT model [13] and other pretraining models [19].”
BackgroundMethodDong, S., Tao, X., Zhong, R., Wang, Z.-F., Zuo, M.-Z., & Sun, J.-W. (2024) · IEEE Transactions on Learning Technologies · doi:10.1109/tlt.2023.3333669 · Cited by 28
“To improve position encoding, various techniques, including relative position encoding [79], adding relative position information to the attention module [80], and independently calculating positional correlations [81], have been proposed.”
BackgroundMethodRDGT: Enhancing Group Cognitive Diagnosis With Relation-Guided Dual-Side Graph Transformer
Yu, X., Qin, C., Shen, D., Ma, H., Zhang, L., Zhang, X., Zhu, H., & Xiong, H. (2024) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2024.3352640 · Cited by 38
“Unlike NLP tasks [46], [49], which preserve the structural information of chain-structured language by inputting position encoding in the transformer, graph-structured data is difficult to generalize such operations.”
BackgroundTarget-Aware Tracking With Spatial-Temporal Context Attention
He, K., Zhang, C., Xie, S., Li, Z., Wang, Z., & Qin, R.-G. (2024) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2024.3370981 · Cited by 29
“(5) is proposed in [27], where r ij ∈ R L × L is the relative position of index i to j , P i − j is a learnable matrix.”
BackgroundLiu, W., Li, Q., Lin, X., Yang, W., He, S., & Yu, Y. (2024) · International Journal of Computer Vision · doi:10.1007/s11263-024-02045-3 · Cited by 31
“[59] proposed to add a learnable relative position embedding to keys of attention mechanism.”
SymTC: A symbiotic Transformer-CNN net for instance segmentation of lumbar spine MRI
Chen, J., Qian, L., Ma, L., Urakov, T. M., Gu, W., & Liang, L. (2024) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2024.108795 · Cited by 31
Chen, L., Xu, J., Lin, Y., Yang, C., & Wang, Y. (2022) · Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the International Joint Conference on Natural Language Processing (AACL-IJCNLP) · doi:10.18653/v1/2022.aacl-main.12 · Cited by 28
Chen, Y., Chiang, S.-W., & Wu, M.-L. (2021) · Applied Intelligence · doi:10.1007/s10489-021-02516-x · Cited by 28
“[24] also used a sequence-to-sequence model [25] based self-attention mechanism [26] to find the correlation between law articles.”
MethodDiscourse-Aware Semantic Self-Attention for Narrative Reading Comprehension
Mihaylov, T., & Frank, A. (2019) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/d19-1257 · Cited by 41
“To address this issue, Shaw et al. (2018) proposes relative position encoding to model the distance between tokens in the context.”
BackgroundZhou, P., Fan, R., Chen, W., & Jia, J. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.00203 · Cited by 31
Relative Positional Encoding for Transformers with Linear ComplexityPreprint
Liutkus, A., Cífka, O., Wu, S.-L., Şimşekli, U., Yang, Y., & Richard, G. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2105.08399 · Cited by 71
“Although writing down the positional encoding in the attention domain is beneficial for performance (Shaw et al., 2018; Dai et al., 2019; Tsai et al., 2019), we are only aware of implementations that either require the computation of A , or clustered attention schemes, which in fine decompose A into…”
InfluentialFourier Position Embedding: Enhancing Attention's Periodic Extension for Length GeneralizationPreprint
Hua, E., Jiang, C., Lv, X., Zhang, K., Sun, Y., Fan, Y., Zhu, X., Qi, B., Ding, N., & Zhou, B. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2412.17739 · Cited by 37
“While absolute position embeddings (Vaswani, 2017) restrict the general use of positional information, methods as (Shaw et al., 2018; Yang, 2019) directly adjust the attention mechanism, another intuitive method is to redesign the position embedding (Press et al., 2021; Chi et al., 2022; Kazemnejad…”
Wang, Y., Dai, R., Liu, D., Wang, K., Yuan, X., & Liu, C. (2024) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2024.108361 · Cited by 31
Monjezi, E., Akbarizadeh, G., & Ansari-Asl, K. (2024) · IEEE Access · doi:10.1109/access.2024.3514322 · Cited by 34
Ge, J., Chen, Z., Lin, J., Zhu, J., Liu, X., Dai, J., & Zhu, X. (2025) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51701.2025.01958 · Cited by 44
“V2PE significantly improves both image and text understanding.”
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.
