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 401–500 of 1,012
Zero-Shot Dialogue State Tracking via Cross-Task Transfer
Lin, Z., Liu, B., Madotto, A., Moon, S., Zhou, Z., Crook, P., Wang, Z., Zhou, Y., Cho, E., Subba, R., et al. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.622 · Cited by 87
“, 2020), an encoder-decoder Transformer with relative position embeddings (Shaw et al., 2018).”
BackgroundMethodVampNet: Music Generation via Masked Acoustic Token ModelingPreprint
García, H. F., Seetharaman, P., Kumar, R., & Pardo, B. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2307.04686 · Cited by 66
“The VampNet architecture (for both coarse and coarseto-fine models) consists of a bidirectional transformer [18] with relative attention [30] and an embedding dimension of 1280 and 20 attention heads.”
MethodSequence Length is a Domain: Length-based Overfitting in Transformer Models
Varis, D., & Bojar, O. (2021) · Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.650 · Cited by 76
“Based on their results, the replacement of the absolute positional embeddings with a variation of relative-position embeddings (Shaw et al., 2018; Neishi and Yoshinaga, 2019) seems like a promising approach towards alleviating the length overfitting problem.”
BackgroundKern, P., Heilbron, M., de Lange, F. P., & Spaak, E. (2022) · eLife · doi:10.7554/elife.80935 · Cited by 59
“, 2017) and relative self-attention (Shaw et al., 2018), which better capture long-range structure in sequences than e.”
BackgroundStressD: 2D Stress estimation using denoising diffusion model
Jadhav, Y., Berthel, J. T., Hu, C., Panat, R. P., Beuth, J., & Farimani, A. B. (2023) · Computer Methods in Applied Mechanics and Engineering · doi:10.1016/j.cma.2023.116343 · Cited by 69
Federated and edge learning for large language models
Piccialli, F., Chiaro, D., Qi, P., Bellandi, V., & Damiani, E. (2024) · Information Fusion · doi:10.1016/j.inffus.2024.102840 · Cited by 50
“…‘‘Attention is All You Need’’ in 2017 [27] that a truly groundbreaking leap occurred in the realm of LLMs. Founded on the self-attention mechanism [28] and frequently pre-trained on extensive text corpora, Transformers empowered models to encompass the entire context of a sentence or document,…”
Functional Interpolation for Relative Positions Improves Long Context Transformers
Li, S.-D., You, C., Guruganesh, G., Ainslie, J., Ontanon, S., Zaheer, M., Sanghai, S. K., Yang, Y.-M., Kumar, S., & Bhojanapalli, S. (2024) · International Conference on Learning Representations · doi:10.48550/arxiv.2310.04418 · Cited by 99
“Shaw et al. (2018) are the first to introduce RPE to Transformers and their proposed method adds position encodings to the key (and optionally the value) in the attention layer, instead of the input.”
BackgroundMethodShortformer: Better language modeling using shorter inputs
Press, O., Smith, N. A., & Lewis, M. (2021) · Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · doi:10.18653/v1/2021.acl-long.427 · Cited by 55
“Attention TransformerXL (Dai et al., 2019) caches and attends to previous representations using an attention sublayer that uses relative positioning (Shaw et al., 2018).”
BackgroundMethodDocument Modeling with Graph Attention Networks for Multi-grained Machine Reading Comprehension
Zheng, B., Wen, H., Liang, Y., Duan, N., Che, W., Jiang, D., Zhou, M., & Liu, T. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.599 · Cited by 57
Enhanced deep bottleneck transformer model for skin lesion classification
Nakai, K., Chen, Y., & Han, X. (2022) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2022.103997 · Cited by 62
TGAN-AD: Transformer-Based GAN for Anomaly Detection of Time Series Data
Xu, L., Xu, K., Qin, Y., Li, Y., Huang, X., Lin, Z., Ye, N., & Ji, X. (2022) · Applied Sciences · doi:10.3390/app12168085 · Cited by 65
“Shaw et al. [27] proposed the concept of relative position coding, so that Transformer can adapt to sequences of different lengths.”
BackgroundWarpformer: A Multi-scale Modeling Approach for Irregular Clinical Time Series
Zhang, J., Zheng, S., Cao, W., Bian, J., & Li, J. (2023) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3580305.3599543 · Cited by 124
“Besides, inspired by the success of relative positional encoding in sequence learning [36], we develop f rel (·, ·) to encode relative-time information.”
Zhang, Z., Zhou, L., Ao, J., Liu, S., Dai, L.-R., Li, J., & Wei, F. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.108 · Cited by 83
A survey of unmanned aerial vehicles and deep learning in precision agriculture
Wang, D., Zhao, M., Li, Z., Xu, S., Wu, X., Ma, X., & Liu, X. (2024) · European Journal of Agronomy · doi:10.1016/j.eja.2024.127477 · Cited by 64
Transformers Can Do Arithmetic with the Right Embeddings
McLeish, S., Bansal, A., Stein, A., Jain, N., Kirchenbauer, J., Bartoldson, B. R., Kailkhura, B., Bhatele, A. S., Geiping, J., Schwarzschild, A., et al. (2024) · neural information processing systems · doi:10.52202/079017-3430 · Cited by 121
Two-Level Transformer and Auxiliary Coherence Modeling for Improved Text Segmentation
Glavaš, G., & Somasundaran, S. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i05.6284 · Cited by 89
MUSE: Parallel Multi-Scale Attention for Sequence to Sequence LearningPreprint
Zhao, G., Sun, X., Xu, J., Zhang, Z., & Luo, L. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.09483 · Cited by 66
“1 Transformer (relative position) (Shaw et al., 2018) 29.”
InfluentialCorrupted Image Modeling for Self-Supervised Visual Pre-TrainingPreprint
Fang, Y., Dong, L., Bao, H., Wang, X., & Wei, F. (2022) · arXiv · doi:10.48550/arxiv.2202.03382 · Cited by 77
Shortformer: Better Language Modeling using Shorter Inputs
Press, O., Smith, N. A., & Lewis, M. (2020) · arXiv · doi:10.48550/arxiv.2012.15832 · Cited by 55
A Unified Query-based Paradigm for Point Cloud Understanding
Yang, Z., Jiang, L., Sun, Y., Schiele, B., & Jia, J. (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.00835 · Cited by 71
“Inspired by [39, 54], we adopt contextual relative positional encoding which fits our Q-Block well.”
MethodGreening Large Language Models of Code
Shi, J., Yang, Z., Kang, H. J., Xu, B., He, J., & Lo, D. (2024) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Society (ICSE-SEIS) · doi:10.1145/3639475.3640097 · Cited by 77
“The position embedding type offers three choices: absolute, relative_key [63], and relative_key_query [37].”
BackgroundWang, T., Yu, Z., Fang, J., Xie, J., Feng, Y., Zhang, H., Zhang, L., Du, M., Li, L., & Ning, X. (2024) · Information Fusion · doi:10.1016/j.inffus.2024.102871 · Cited by 59
Lattice Transformer for Speech Translation
Zhang, P., Ge, N., Chen, B., & Fan, K. (2019) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/p19-1649 · Cited by 63
“We first borrow the idea from the relative positional embedding (Shaw et al., 2018) to maximally encode the information of the lattice graph into its corresponding relative positional matrix.”
BackgroundMethodResultInfluentialAPE at Scale and Its Implications on MT Evaluation Biases
Freitag, M., Caswell, I., & Roy, S. (2019) · Proceedings of the Fourth Conference on Machine Translation (Volume 1: Research Papers) · doi:10.18653/v1/w19-5204 · Cited by 53
Program Synthesis and Semantic Parsing with Learned Code Idioms
Shin, E. C. R., Allamanis, M., Brockschmidt, M., & Polozov, A. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1906.10816 · Cited by 47
“Specifically, we initialize a representation for each column, table, and word in the question, and then update these representations using 4 layers of relation-aware self-attention [32] using a graph that describes the relations between columns and tables in the schema.”
MethodText classification using improved bidirectional transformer
Tezgider, M., Yildiz, B., & Aydın, G. (2021) · Concurrency and Computation Practice and Experience · doi:10.1002/cpe.6486 · Cited by 59
A Survey on Data-Driven Runoff Forecasting Models Based on Neural Networks
Sheng, Z., Wen, S., Feng, Z.-K., Gong, J., Shi, K., Guo, Z., Yang, Y., & Huang, T. (2023) · IEEE Transactions on Emerging Topics in Computational Intelligence · doi:10.1109/tetci.2023.3259434 · Cited by 54
“Eachencoderblockanddecoderblockcontains Multi-Head-Attention[71]composedofSelf-Attention[72], wheretheencoderblockcontainsoneMulti-HeadAttention, andthedecoderblockcontainstwoMulti-HeadAttention,one ofwhichisMaskedMulti-HeadAttention,usedtopreventfuture informationleakage.”
Abdollahi, M., Yeganli, S. F., Baharloo, M. M., & Baniasadi, A. (2024) · Electronics · doi:10.3390/electronics14010120 · Cited by 87
Atzeni, M., & Reforgiato Recupero, D. (2020) · Future Generation Computer Systems · doi:10.1016/j.future.2019.10.012 · Cited by 50
Lee, J., Cho, S.-H., & Kim, M. (2024) · ETRI Journal · doi:10.4218/etrij.2023-0275 · Cited by 64
SLTUNET: A Simple Unified Model for Sign Language TranslationPreprint
Zhang, B., Müller, M., & Sennrich, R. (2023) · International Conference on Learning Representations · doi:10.48550/arxiv.2305.01778 · Cited by 66
“We didn’t see obvious benefit from the relative positional representation (Shaw et al., 2018).”
BackgroundMethodInfluentialMultiscanning-Based RNN–Transformer for Hyperspectral Image Classification
Zhou, W., Kamata, S., Wang, H., & Xue, X. (2023) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2023.3277014 · Cited by 64
“Meanwhile, modeling recurrence is crucial for capturing important properties of input sequences, such as structural representations [29], [30] and positional embedding [31].”
MethodSundararaman, D., Subramanian, V., Wang, G., Si, S., Shen, D., Wang, D., & Carin, L. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.06156 · Cited by 54
“Instead of absolute positional embeddings, (Shaw, Uszkoreit, and Vaswani, 2018) experimented with relative positional embeddings or distance between sequences and found that it led to a drastic improvement in performance.”
BackgroundVideo prediction by efficient transformers
Ye, X., & Bilodeau, G.-A. (2022) · Image and Vision Computing · doi:10.1016/j.imavis.2022.104612 · Cited by 67
“To investigate the influence of relative positional encodings for all VPTR variants, we substituted the 2D absolute positional encoding of all local spatial MHSA module with a learned 2D RPE, which give us VPTR-NAR-RPE, VPTR-PAR-RPE and VPTR-FAR-RPE.”
BackgroundInfluentialAn Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5
Lin, G., Liu, K., Xia, X., & Yan, R. (2022) · Sensors · doi:10.3390/s23010097 · Cited by 54
“The traditional Transformer structure uses a global self-attention mechanism [26], which greatly increases the amount of computation.”
Transformer fusion for indoor RGB-D semantic segmentation
Wu, Z., Zhou, Z., Allibert, G., Stolz, C., Demonceaux, C., & Ma, C. (2024) · Computer Vision and Image Understanding · doi:10.1016/j.cviu.2024.104174 · Cited by 56
Self-attention enhanced deep residual network for spatial image steganalysis
Xie, G., Ren, J., Marshall, S., Zhao, H., Li, R., & Chen, R. (2023) · Digital Signal Processing · doi:10.1016/j.dsp.2023.104063 · Cited by 53
Learnable Fourier Features for Multi-Dimensional Spatial Positional Encoding
Li, Y., Si, S., Li, G., Hsieh, C., & Bengio, S. (2021) · neural information processing systems · doi:10.48550/arxiv.2106.02795 · Cited by 180
“Our work is different from the body of work on relative positional encoding, which directly represents pairwise positional relation between query and key [28, 13, 2, 27].”
Five A$^{+}$ Network: You Only Need 9K Parameters for Underwater Image EnhancementPreprint
Jiang, J., Tian, Y., Bai, J., Chen, S., Chai, W., Jun, 石. S., Liu, Y., & Chen, E. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2305.08824 · Cited by 105
“To reduce model complexity, some computationally expensive operators and operations such as large-kernel convolutions [8, 10, 13] and self-attention [3, 4, 5, 43, 50, 62] were discarded while channel dimensions are precisely restricted to control the number of parameters.”
BackgroundSmBoP: Semi-autoregressive Bottom-up Semantic Parsing
Rubin, O., & Berant, J. (2021) · Workshop on Structured Prediction for NLP (SPNLP) · doi:10.18653/v1/2021.spnlp-1.2 · Cited by 57
“14 Second, RAT-SQL uses relational-aware selfattention (Shaw et al., 2018) to encode the structure”
MethodSpatial-Temporal Interval Aware Sequential POI Recommendation
Wang, E., Jiang, Y., Xu, Y., Wang, L., & Yang, Y. (2022) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde53745.2022.00202 · Cited by 65
“Differently, [46] focuses on learning the relative positional relations among tokens rather than directly learning positions.”
BackgroundFaceFormer: Aggregating Global and Local Representation for Face Hallucination
Wang, Y., Lü, T., Zhang, Y., Wang, Z., Jiang, J., & Xiong, Z. (2022) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2022.3224940 · Cited by 57
“For all Transformer blocks in the FaceFormer, we use the popular relative position encoding [52] that has been widely used in vision Transform-ers [39], [53].”
MethodConditional variational transformer for bearing remaining useful life prediction
Wei, Y., & Wu, D. (2023) · Advanced Engineering Informatics · doi:10.1016/j.aei.2023.102247 · Cited by 50
Multi-modal deep learning for credit rating prediction using text and numerical data streams
Tavakoli, M., Chandra, R., Tian, F., & Bravo, C. (2025) · Applied Soft Computing · doi:10.1016/j.asoc.2025.112771 · Cited by 68
“Cross-attention is similar to self-attention Shaw et al. (2018); the only di ff erence is that cross-attention uses input from two di ff erent sequences or modalities, with the query and value vectors generated from one modality and the key vector from the other.”
Conv-Transformer Transducer: Low Latency, Low Frame Rate, Streamable End-to-End Speech Recognition
Huang, W., Hu, W., Yeung, Y. T., & Chen, X. (2020) · Interspeech (USB) · doi:10.21437/interspeech.2020-2361 · Cited by 61
Towards All Weather and Unobstructed Multi-Spectral Image Stitching: Algorithm and Benchmark
Jiang, Z., Zhang, Z., Fan, X., & Liu, R. (2022) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3503161.3547966 · Cited by 67
“In this paper, we develop a fast correlation cost, where a self attention [41] based quadrature cost is introduced, including horizontal and vertical costs.”
MethodDeepTP: A Deep Learning Model for Thermophilic Protein Prediction
Zhao, J., Yan, W., & Yang, Y. (2023) · International Journal of Molecular Sciences · doi:10.3390/ijms24032217 · Cited by 53
“The self-attention mechanism [26] efficiently processes a given level of information in parallel.”
BackgroundVULGEN: Realistic Vulnerability Generation Via Pattern Mining and Deep Learning
Nong, Y., Ou, Y., Pradel, M., Chen, F., & Cai, H. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00211 · Cited by 69
“Different from traditional Transformer that leverages an absolute positional encoding layer, we use a relative positional encoding layer [39] to captures the relative information be-tween tokens.”
EstraNet: An Efficient Shift-Invariant Transformer Network for Side-Channel Analysis
Hajra, S., Chowdhury, S., & Mukhopadhyay, D. (2023) · IACR Transactions on Cryptographic Hardware and Embedded Systems · doi:10.46586/tches.v2024.i1.336-374 · Cited by 63
Local All-Pair Correspondence for Point Tracking
Cho, S., Huang, J., Nam, J., An, H., Kim, S., & Lee, J. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-72684-2_18 · Cited by 96
NL-EDIT: Correcting Semantic Parse Errors through Natural Language Interaction
Elgohary, A., Meek, C., Richardson, M., Fourney, A., Ramos, G., & Awadallah, A. H. (2021) · Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2021.naacl-main.444 · Cited by 16
DA-Transformer: Distance-aware Transformer
Wu, C., Wu, F., & Huang, Y. (2021) · Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2021.naacl-main.166 · Cited by 35
FPT: Fine-Grained Detection of Driver Distraction Based on the Feature Pyramid Vision Transformer
Wang, H., Chen, J., Huang, Z., Li, B., Lv, J., Xi, J., Wu, B., Zhang, J., & Wu, Z. (2022) · IEEE Transactions on Intelligent Transportation Systems · doi:10.1109/tits.2022.3219676 · Cited by 59
“Compared with PVT, Twins is greatly improved in position encoding, and experiments in [50] show that conditional position encoding (PEG) does improve the accuracy of the classification compared with relative position encoding [51], [52] and absolute position encoding.”
BackgroundDTCNet: Transformer-CNN Distillation for Super-Resolution of Remote Sensing Image
Lin, C., Mao, X., Qiu, C., & Zou, L. (2024) · IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · doi:10.1109/jstars.2024.3409808 · Cited by 51
“Specifically, the self-attention mechanism comprises three components: 1) query vectors, 2) key vectors, and 3) value vectors[32].”
BackgroundAccurate Spatial Gene Expression Prediction by Integrating Multi-Resolution Features
Chung, Y., Ha, J. H., Im, K. C., & Lee, J. S. (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.01101 · Cited by 113
“The embedding process within the neighbor encoder involves a sequence of self-attention blocks, each integrated with relative position encoding [23].”
MethodPositional encoding in transformer-based time series models: a survey
Irani, H., & Metsis, V. (2026) · International Journal of Machine Learning and Cybernetics · doi:10.1007/s13042-026-03151-z · Cited by 77
“Learnable positional encoding provides more flexibility by allowing the model to learn the positional representations during training.”
Li, R., Lin, G., He, T., Liu, F., & Shen, C. (2021) · 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/cvpr46437.2021.00043 · Cited by 65
Efficient Training of Language Models to Fill in the Middle
Bavarian, M., Jun, H., Tezak, N., Schulman, J., McLeavey, C., Tworek, J., & Chen, M. (2022) · arXiv · doi:10.48550/arxiv.2207.14255 · Cited by 47
“The only architectural modification we introduce is the use of relative attention [Shaw et al., 2018, Dai et al., 2019] rather than learned positional embeddings.”
MethodRelative molecule self-attention transformer
Maziarka, Ł., Majchrowski, D., Danel, T., Gaiński, P., Tabor, J., Podolak, I. T., Morkisz, P. M., & Jastrzȩbski, S. (2024) · Journal of Cheminformatics · doi:10.1186/s13321-023-00789-7 · Cited by 78
Swin MAE: Masked autoencoders for small datasets
Xu, Z., Dai, Y., Liu, F., Chen, W., Liu, Y., Shi, L., Liu, S., & Zhou, Y. (2023) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2023.107037 · Cited by 58
Deep Representation Learning: Fundamentals, Technologies, Applications, and Open Challenges
Payandeh, A., Baghaei, K. T., Fayyazsanavi, P., Ramezani, S. B., Chen, Z., & Rahimi, S. (2023) · IEEE Access · doi:10.1109/access.2023.3335196 · Cited by 64
“While previous work on relative positional encoding existed [342], Transformer-XL introduces two additional features: a global content and location bias, and the replacement of trainable positional embeddings with sinusoid embeddings.”
BackgroundWang, X., Liu, X., & Bai, Y. (2024) · Applied Energy · doi:10.1016/j.apenergy.2024.123357 · Cited by 48
Low-Rank and Locality Constrained Self-Attention for Sequence Modeling
Guo, Q., Qiu, X., Xue, X., & Zhang, Z. (2019) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2019.2944078 · Cited by 52
“And the recent work [13], [14] also adds this bias into the Transformer model, but their work does still not disentangle the locality from the low-rank constraint.”
BackgroundCompute and Memory Efficient Universal Sound Source Separation
Tzinis, E., Wang, Z., Jiang, X., & Smaragdis, P. (2021) · Journal of Signal Processing Systems · doi:10.1007/s11265-021-01683-x · Cited by 65
“In a second step we apply a self-attention module [32] to combine them.”
MethodNRTSI: Non-Recurrent Time Series Imputation
Shan, S., Li, Y., & Oliva, J. B. (2023) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp49357.2023.10095054 · Cited by 73
“Though the absolute time is used in (1), the relative time that is conceptually similar to the relative positional embedding [41] for Transformers can also be used, and we leave it for future work.”
BackgroundAn end-to-end CNN with attentional mechanism applied to raw EEG in a BCI classification task
Lashgari, E., Ott, J., Connelly, A., Baldi, P., & Maoz, U. (2021) · Journal of Neural Engineering · doi:10.1088/1741-2552/ac1ade · Cited by 49
“Now, in the self-attention part of the network [39, 40], we 1st initialize the weights for the query (Q), key (K), and value (V).”
Li, Y., Zeng, G., Zhang, Y., Wang, J., Jin, Q., Sun, L., Zhang, Q., Lian, Q., Qian, G., Xia, N., et al. (2021) · IEEE Journal of Biomedical and Health Informatics · doi:10.1109/jbhi.2021.3129245 · Cited by 55
“4, where the position encoding method is relative-distance-aware position encoding [50]–[52] with Rh and Rw for height and width.”
MethodGe, H., Wang, L., Liu, M., Zhao, X., Zhu, Y., Pan, H., & Liu, Y. (2023) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2023.3244805 · Cited by 55
“Self-attention [51], [52] is a kind of attention model that uses an input tensor to compute the attention weights and reweights the input tensor by these weights.”
BackgroundCOVAD: Content-oriented video anomaly detection using a self attention-based deep learning model
Shao, W., Rajapaksha, P., Wei, Y., Li, D., Crespi, N., & Luo, Z. (2023) · Virtual Reality & Intelligent Hardware · doi:10.1016/j.vrih.2022.06.001 · Cited by 54
KeyPoint Relative Position Encoding for Face Recognition
Kim, M., Su, Y., Liu, F., Jain, A. K., & Liu, X. (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.00031 · Cited by 70
When Attention Meets Fast Recurrence: Training Language Models with Reduced Compute
Lei, T. (2021) · Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.602 · Cited by 55
“, 2020), relative position (Shaw et al., 2018; Press et al., 2021), nearest-neighbor interpolation (Khandelwal et al.”
BackgroundMethodChallenges of Neural Machine Translation for Short Texts
Wan, Y., Yang, B., Wong, D. F., Chao, L. S., Yao, L., Zhang, H., & Chen, B. (2022) · Computational Linguistics · doi:10.1162/coli_a_00435 · Cited by 47
“…directions such as data augmentation (Sugiyama and Yoshinaga 2019; Li and Specia 2019; Wan et al. 2020a), localness modeling (Yang et al. 2018; Shaw, Uszkoreit, and Vaswani 2018; Wu et al. 2019; Xu et al. 2019), and contextual representation enhancement (Voita, Sennrich, and Titov 2019;…”
BackgroundA digital twin dosing system for iron reverse flotation
Zhang, D., & Gao, X. (2022) · Journal of Manufacturing Systems · doi:10.1016/j.jmsy.2022.03.006 · Cited by 48
PortaSpeech: Portable and High-Quality Generative Text-to-SpeechPreprint
Ren, Y., Liu, J., & Zhao, Z. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.15166 · Cited by 79
“The encoder consists of multiple feed-forward Transformer blocks [25] with relative position encoding [28] following Glow-TTS [8].”
MethodA Survey on Large Language Models: Applications, Challenges, Limitations, and Practical Usage
Hadi, M. U., tashi, Q. A., Qureshi, R., Shah, A., muneer, A., Irfan, M., Zafar, A., Shaikh, M. B., Akhtar, N., Wu, J., et al. (2023) · doi:10.36227/techrxiv.23589741.v1 · Cited by 370
Multi-scale local-temporal similarity fusion for continuous sign language recognition
Xie, P., Cui, Z. M., Du, Y., Zhao, M., Cui, J., Wang, B., & Hu, X. (2022) · Pattern Recognition · doi:10.1016/j.patcog.2022.109233 · Cited by 52
Zhao, H., Wu, B., Zhang, M., Jiang, L., Tian, F., Xie, Y., Zeng, H., Zheng, Z., Ma, Z., Wang, M., et al. (2025) · ISPRS Journal of Photogrammetry and Remote Sensing · doi:10.1016/j.isprsjprs.2025.01.034 · Cited by 50
Dynamic Layer Aggregation for Neural Machine Translation with Routing-by-Agreement
Dou, Z.-Y., Tu, Z., Wang, X., Wang, L., Shi, S., & Zhang, T. (2019) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v33i01.330186 · Cited by 57
OpenNMT System Description for WNMT 2018: 800 words/sec on a single-core CPU
Sénellart, J., Zhang, D., Wang, B., Klein, G., Ramatchandirin, J.-P., Crego, J., & Rush, A. M. (2018) · doi:10.18653/v1/w18-2715 · Cited by 44
“Transformer networks (Vaswani et al., 2017) are the current state-of-the art in many machine translation tasks (Shaw et al., 2018).”
BackgroundLattice-Based Transformer Encoder for Neural Machine Translation
Xiao, F., Li, J., Zhao, H., Wang, R., & Chen, K. (2019) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/p19-1298 · Cited by 51
“We modified Equations (1) and (3) in the same way of Shaw et al. (2018) to indicate edge relation: where r K ij and r V ij are relation embeddings which are added to the keys and values to indicate relation between input tokens t i and t j , namely edges e p : q and e k : l in lattice graph,…”
BackgroundMañas, O., Rodríguez, P., Ahmadi, S., Nematzadeh, A., Goyal, Y., & Agrawal, A. (2023) · Conference of the European Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2023.eacl-main.185 · Cited by 66
Perbet, P., Guindon, L., Côté, J.-F., & Béland, M. (2024) · Remote Sensing of Environment · doi:10.1016/j.rse.2024.114107 · Cited by 47
On the Relation between Position Information and Sentence Length in Neural Machine Translation
Neishi, M., & Yoshinaga, N. (2019) · Conference on Computational Natural Language Learning · doi:10.18653/v1/k19-1031 · Cited by 67
“The approach by Shaw et al. (2018) is not the only way to incorporate relative position into Trans-former.”
BackgroundMethodInfluentialShallow-to-Deep Training for Neural Machine Translation
Li, B., Wang, Z., Liu, H., Jiang, Y., Du, Q., Xiao, T., Wang, H., & Zhu, J. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.72 · Cited by 61
Interpreting Depression From Question-Wise Long-Term Video Recording of SDS Evaluation
Xie, W., Liang, L., Lu, Y., Wang, C., Shen, J., Luo, H., & Liu, X. (2021) · IEEE Journal of Biomedical and Health Informatics · doi:10.1109/jbhi.2021.3092628 · Cited by 43
“It has been the core block of many successful systems [45].”
BackgroundMasked face recognition with convolutional visual self-attention network
Ge, Y., Liu, H., Du, J., Li, Z., & Wei, Y. (2022) · Neurocomputing · doi:10.1016/j.neucom.2022.10.025 · Cited by 47
“coding [40] that can achieve the translation equivariant while preventing the permutation equivariant.”
Group Equivariant Stand-Alone Self-Attention For VisionPreprint
Romero, D. W., & Cordonnier, J.-B. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2010.00977 · Cited by 57
“Introduced by Shaw et al. (2018), relative encodings consider the relative distance between the query token – the token we compute the representation of –, and the key token, – the token we attend to –.”
BackgroundMulti-head or Single-head? An Empirical Comparison for Transformer TrainingPreprint
Liu, L., Liu, J., & Han, J. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2106.09650 · Cited by 63
“Many efforts have been made to improve Transformer, e.g., relative position encoding [Shaw et al., 2018] or replacing dot-product attention with locality-sensitive hashing [Kitaev et al., 2020].”
CrossFormer: A Versatile Vision Transformer Based on Cross-scale AttentionPreprint
Wang, W., Lu, Y., Chen, L., Cai, D., He, X., & Liu, W. (2021) · arXiv (Cornell University) · Cited by 63
Imitating Interactive Intelligence
Abramson, J., Ahuja, A., Barr, I., Brussee, A., Carnevale, F., Cassin, M., Chhaparia, R., Clark, S., Damoc, B., Dudzik, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2012.05672 · Cited by 43
“Together, the 65 vectors comprised the input to an 8-layer, 8-head transformer Vaswani et al. (2017) with size 512 embeddings and MLP layers, using relative position encoding Shaw et al. (2018).”
MethodSun, Q., Li, J., Yuan, H., Fu, X., Peng, H., Ji, C., Li, Q., & Yu, P. S. (2022) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3511808.3557419 · Cited by 70
“Inspired by the position in transformer [36, 43], we use an anchor-based position encoding method to capture the relative position of unlabeled nodes with respect to all the labeled nodes of the graph.”
MethodWang, F., Xiahou, T., Xian, Z., He, P., Yang, T., Niu, J., Liu, C., & Liu, Y. (2024) · Reliability Engineering & System Safety · doi:10.1016/j.ress.2024.110198 · Cited by 43
Panigrahi, S., Adhikary, D. R. D., & Pattanayak, B. K. (2025) · Scientific Reports · doi:10.1038/s41598-025-09311-5 · Cited by 44
“…where, X SEA : Output of the SEA X : Input feature maps ⊗ : Element-wise multiplication operation s : Output of the excitation operation The SEA can reduce computational complexity in the hybrid architecture, enabling the network to prioritize key features and ignore irrelevant ones 45 .”
The NiuTrans Machine Translation Systems for WMT19
Li, B., Li, Y., Xu, C., Lin, Y., Liu, J., Liu, H., Wang, Z., Zhang, Y., Xu, N., Wang, Z., et al. (2019) · Conference on Machine Translation (WMT) · doi:10.18653/v1/w19-5325 · Cited by 67
“Pre-Norm Transformer-RPR: We found Transformer-RPR (Shaw et al., 2018) which simultaneously incorporating relative position information with sinusoidal position encodings for sequences in pre-norm style could outperform the pre-norm Transformer with the same encoder depth.”
MethodTemporally Guided Music-to-Body-Movement Generation
Kao, H.-K., & Su, L. (2020) · ACM International Conference on Multimedia (ACM MM) · doi:10.1145/3394171.3413848 · Cited by 51
“To solve the problem, we apply the relative position encoding [25] in the scaled dot-product self-attention.”
MethodAutoQA: From Databases To QA Semantic Parsers With Only Synthetic Training Data
Xu, S., Semnani, S., Campagna, G., & Lam, M. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.31 · Cited by 35
Seizure prediction in scalp EEG based channel attention dual-input convolutional neural network
Sun, B., Lv, J.-J., Rui, L.-G., Yang, Y., Chen, Y.-G., Ma, C., & Gao, Z. (2021) · Physica A Statistical Mechanics and its Applications · doi:10.1016/j.physa.2021.126376 · Cited by 43
With a Little Help from my Temporal Context: Multimodal Egocentric Action Recognition
Kazakos, E., Huh, J., Nagrani, A., Zisserman, A., & Damen, D. (2021) · British Machine Vision Conference (BMVC) · doi:10.5244/c.35.171 · Cited by 57
An Improved Model for Voicing Silent Speech
Gaddy, D., & Klein, D. (2021) · doi:10.18653/v1/2021.acl-short.23 · Cited by 68
“To capture the time-invariant nature of the task, we use relative position embeddings as described by Shaw et al. (2018) rather than absolute position embeddings.”
MethodResFormer: Scaling ViTs with Multi-Resolution Training
Tian, R., Wu, Z., Dai, Q., Hu, H., Qiao, Y., & Jiang, 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.02176 · Cited by 76
“Meanwhile, efficacy of relative position embeddings (RPB) is widely validated in both language [12, 45] and vision tasks [5, 35, 60].”
Background
Metadata
- Authors
- Shaw, P., Uszkoreit, J., & Vaswani, A.
- Affiliations
- Google (United States) (US)
- Venue
- Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers)
- Published
- 2018
- Pages
- 464-468
- OpenAlex
- W2789541106
- Semantic Scholar
- c8efcc854d97dfc2a42b83316a2109f9d166e43f
- Cited by
- 2,505
- References
- 13
- Citations by year
- 2026: 165 · 2025: 406 · 2024: 397 · 2023: 456 · 2022: 355 · 2021: 368 · 2020: 203 · 2019: 130 · 2018: 25
- FWCI
- 74.09
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
- Keywords
- self-attention, positional encoding, transformer models, sequence modeling
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.
