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 301–400 of 1,012
On Position Embeddings in BERT
Wang, B., Shang, L., Lioma, C., Jiang, X., Yang, H., Liu, Q., & Simonsen, J. G. (2021) · Research at the University of Copenhagen (University of Copenhagen) · Cited by 133
GET: Group Event Transformer for Event-Based Vision
Peng, Y., Zhang, Y., Xiong, Z., Sun, X., & Wu, F. H. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00555 · Cited by 125
“Bp is the relative position bias (RPB), as in [52, 48].”
BackgroundBiophysics-based protein language models for protein engineering
Gelman, S., Johnson, B., Freschlin, C. R., Sharma, A., D’Costa, S., Peters, J., Gitter, A., & Romero, P. A. (2025) · Nature Methods · doi:10.1038/s41592-025-02776-2 · Cited by 69
“We implemented relative position embeddings as described by Shaw et al. 13 .”
InfluentialLength Generalization in Arithmetic Transformers
Jelassi, S., d'Ascoli, S., Domingo-Enrich, C., Wu, Y., Li, Y., & Charton, F. (2023) · arXiv · doi:10.48550/arxiv.2306.15400 · Cited by 76
“Several techniques have then been introduced to address this problem: new position embeddings Shaw et al. (2018); Dai et al. (2019); Raffel et al. (2020); Huang et al. (2020); Kiyono et al. (2021); Su et al. (2021); Press et al. (2021), introducing new tokens Newman et al. (2020), new attention…”
BackgroundMethodInfluentialA Survey of Automatic Source Code Summarization
Zhang, C., Wang, J., Zhou, Q., Xu, T. X., Tang, K., Gui, H., & Liu, F. (2022) · Symmetry · doi:10.3390/sym14030471 · Cited by 105
SKIER: A Symbolic Knowledge Integrated Model for Conversational Emotion Recognition
Li, W., Zhu, L., Mao, R., & Cambria, E. (2023) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v37i11.26541 · Cited by 69
“Finally, a 3-channel convolutional self-attention mechanism (CoAtt) (Dai et al. 2021; Shaw, Uszkoreit, and Vaswani 2018) is applied for fusing the symbolic knowledge.”
MethodGenerating Realistic Brain MRIs via a Conditional Diffusion Probabilistic Model
Peng, W., Adeli, E., Bosschieter, T. M., Park, S. H., Zhao, Q., & Pohl, K. M. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-43993-3_2 · Cited by 107
“We then capture the dependencies across slices by feeding the index sets C and P and the corresponding slices (i.e., X C and X P t built from X 0 ∼ q ) into an attention network [20].”
MethodApplication of Transformers in Cheminformatics
Luong, K.-D., & Singh, A. K. (2024) · Journal of Chemical Information and Modeling · doi:10.1021/acs.jcim.3c02070 · Cited by 87
ViTO: Vision Transformer-Operator
Ovadia, O., Kahana, A., Stinis, P., Turkel, E., Givoli, D., & Karniadakis, G. E. (2024) · Computer Methods in Applied Mechanics and Engineering · doi:10.1016/j.cma.2024.117109 · Cited by 101
Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano CompositionsPreprint
Huang, Y.-S., & Yang, Y. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.00212 · Cited by 90
“For example, with the help of a relative positional encoding method [Shaw et al. , 2018], Music Transformer [Huang et al. , 2019] Transformer-XL [Dai et al. , 2019] extends Transformer by introducing the notion of recurrence and revising the positional encoding scheme.”
MethodA Contemporary Survey on Deepfake Detection: Datasets, Algorithms, and Challenges
Gong, L. Y., & Li, X. J. (2024) · Electronics · doi:10.3390/electronics13030585 · Cited by 75
“A temporal attention block is inserted after each spatial attention block, and the relative position embedding [47] applied on each temporal attention block is used to distinguish the order of frames.”
MethodAugmenting Self-attention with Persistent Memory
Sukhbaatar, S., Grave, E., Lample, G., Jegou, H., & Joulin, A. (2019) · arXiv · doi:10.48550/arxiv.1907.01470 · Cited by 75
“Dai et al. [8] introduces a caching mechanism, relying on the relative position embeddings from Shaw et al. [35], which makes inference in these models much more efficient for unbounded sequences.”
BackgroundVideo2Music: Suitable music generation from videos using an Affective Multimodal Transformer model
Kang, J., Poria, S., & Herremans, D. (2024) · Expert Systems with Applications · doi:10.1016/j.eswa.2024.123640 · Cited by 116
“In contrast to the standard Transformer model, which uses positional si-nusoids for timing information, we incorporate relative position representations (Shaw et al., 2018).”
MethodPfeffer, M. A., Ling, S. H., & Wong, J. K. W. (2024) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2024.108705 · Cited by 91
FormNet: Structural Encoding beyond Sequential Modeling in Form Document Information Extraction
Lee, C.-Y., Li, C.-L., Dozat, T., Perot, V., Su, G., Hua, N., Ainslie, J., Wang, R., Fujii, Y., & Pfister, T. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.260 · Cited by 74
Optimizing Deeper Transformers on Small Datasets
Xu, P., Kumar, D., Yang, W., Zi, W., Tang, K., Huang, C., Cheung, J. C. K., Prince, S. J. D., & Cao, Y. (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.163 · Cited by 53
“…is a layer normalization (Ba et al., 2016) layer, and In order to bias the transformer toward some pre-existing relational features between the inputs, Shaw et al. (2018) described a way to represent relative position information in a self-attention layer by changing Equation 1 as follows:…”
BackgroundMethodLearning to represent programs with heterogeneous graphs
Zhang, K., Wang, W., Zhang, H., Li, G., & Jin, Z. G. (2022) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3524610.3527905 · Cited by 89
“After that, a sine function is conducted upon the timestamps to obtain the positional encoding of each node, which is similar to the previous work [37, 42].”
MethodLearning Adversarial Transformer for Symbolic Music Generation
Zhang, N. (2020) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2020.2990746 · Cited by 66
“Huang et al. [12] combined the relative attention [32] mechanism into the transformer and generated long-term music structure at the scale of 2000 tokens.”
BackgroundSymbolic Music Generation with Transformer-GANs
Muhamed, A., Li, L., Shi, X., Yaddanapudi, S., Chi, W., Jackson, D., Suresh, R., Lipton, Z. C., & Smola, A. J. (2021) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v35i1.16117 · Cited by 103
“Music Transformer uses the relative attention mechanism (Shaw, Uszkoreit, and Vaswani 2018) to generate long-term music structure at the scale of 2000 tokens.”
MethodLeveraging Slot Descriptions for Zero-Shot Cross-Domain Dialogue StateTracking
Lin, Z., Liu, B., Moon, S., Crook, P., Zhou, Z., Wang, Z., Yu, Z., Madotto, A., Cho, E., & Subba, R. (2021) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2021.naacl-main.448 · Cited by 73
Self-Attention Networks Can Process Bounded Hierarchical Languages
Yao, S., Peng, B.-H., Papadimitriou, C., & Narasimhan, K. (2021) · Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2021.acl-long.292 · Cited by 124
“Our proof requires certain assumptions about the positional encodings, an issue that is often considered in empirical papers (Ke et al., 2021; Shaw et al., 2018; Wang et al., 2020; Shiv and Quirk, 2019) but not in the more theoretical literature.”
BackgroundFINDINGS OF THE IWSLT 2021 EVALUATION CAMPAIGN
Anastasopoulos, A., Bojar, O., Bremerman, J., Cattoni, R., Elbayad, M., Federico, M., Ma, X., Nakamura, S., Negri, M., Niehues, J., et al. (2021) · International Conference on Spoken Language Translation (IWSLT) · doi:10.18653/v1/2021.iwslt-1.1 · Cited by 130
“…with Conformer (used to replace the Transformer blocks in the encoder), relative position encoding (to improve acoustic modeling and generalize better for unseen sequence lengths; Shaw et al., 2018), and stacked acoustic and textual encoding (to better encode the speech features; Xu et al., 2021a).”
MethodTime Series Forecasting of Motor Bearing Vibration Based on Informer
Yang, Z., Liu, L., Li, N., & Tian, J. (2022) · Sensors · doi:10.3390/s22155858 · Cited by 72
“Currently, relative position encoding operates on the attention matrix before softmax, which has a theoretical drawback [44,45].”
BackgroundLearning to Rotate: Quaternion Transformer for Complicated Periodical Time Series Forecasting
Chen, W., Wang, W., Peng, B., Wen, Q., Zhou, T., & Sun, L. (2022) · Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining · doi:10.1145/3534678.3539234 · Cited by 69
“To investigate the relative positional information in sequence, [4, 20] propose to encode the position difference into Transformers, namely relative positional encodings.”
BackgroundLogGD: Detecting Anomalies from System Logs with Graph Neural Networks
Xie, Y., Zhang, H., & Babar, M. A. (2022) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs57517.2022.00039 · Cited by 96
“classification [49] and language translation [50].”
SpeechLM: Enhanced Speech Pre-Training With Unpaired Textual Data
Zhang, Z.-Q., Chen, S., Zhou, L., Wu, Y., Ren, S., Liu, S.-J., Yao, Z., Gong, X., Dai, L., Li, J., et al. (2022) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2024.3379877 · Cited by 80
“1) Speech Transformer: Following HuBERT [4], we use a standard Transformer [22] as the backbone of the Speech Transformer, equipped with relative position embedding [23].”
MethodDai, W., Zhu, W., Zhou, G., Liu, G., Xu, J., Zhou, H., Hu, Y., Liu, Z., Li, J., & Li, L. (2024) · Plant Phenomics · doi:10.34133/plantphenomics.0218 · Cited by 81
“These embedding vectors are then processed through a series of Transformer blocks, each of which contains the self-attention mechanism [26], Mix-FFN (a hybrid feedforward network), and patch embedding modules, which further process the disease features to capture the global dependencies.”
MethodRethinking Positional EncodingPreprint
Zheng, J., Ramasinghe, S., & Lucey, S. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2107.02561 · Cited by 93
“Since then, using positional encoding in language models became a common trend [29, 5, 24, 10, 13].”
GRPE: Relative Positional Encoding for Graph TransformerPreprint
Park, W., Chang, W., Lee, D., Kim, J., & Hwang, S.-W. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2201.12787 · Cited by 103
“We reformulate relative positional encoding for 1D sequence data (Shaw et al., 2018) to incorporate graph-specific properties, such as spatial relation or edges between nodes.”
MethodAttention! A Lightweight 2D Hand Pose Estimation Approach
Santavas, N., Kansizoglou, I., Bampis, L., Karakasis, E., & Gasteratos, A. C. (2020) · IEEE Sensors Journal · doi:10.1109/jsen.2020.3018172 · Cited by 74
“[31], positional encodings were added to the input embeddings followed by a Self-Attention mechanism with relative position embeddings, enabling translation equivariance, while preventing permutation equivariance [33].”
MethodValid, Plausible, and Diverse Retrosynthesis Using Tied Two-Way Transformers with Latent Variables
Kim, E., Lee, D., Kwon, Y., Park, M., & Choi, Y.-S. (2021) · Journal of Chemical Information and Modeling · doi:10.1021/acs.jcim.0c01074 · Cited by 90
Deihim, A., Alonso, E., & Apostolopoulou, D. (2023) · Neural Networks · doi:10.1016/j.neunet.2023.09.039 · Cited by 81
Txt2Img-MHN: Remote Sensing Image Generation From Text Using Modern Hopfield Networks
Xu, Y., Yu, W., Ghamisi, P., Kopp, M., & Hochreiter, S. (2023) · IEEE Transactions on Image Processing · doi:10.1109/tip.2023.3323799 · Cited by 89
“Self-attention learning is a commonly used technique in machine translation [61] and image interpretation [62].”
MethodDynamic Graph Representation Learning With Neural Networks: A Survey
Yang, L., Chatelain, C., & Adam, S. (2023) · IEEE Access · doi:10.1109/access.2024.3378111 · Cited by 62
“Given the maturity of such models and their applicability for large sparse graphs, they have been applied with success on many downstream tasks.”
BackgroundPre-Training Transformers as Energy-Based Cloze Models
Clark, K., Luong, M.-T., Le, Q. V., & Manning, C. D. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.20 · Cited by 93
“The neural architectures of our models are identical to BERT-Base (Devlin et al., 2019), although we believe incorporating additions such as relative position encodings (Shaw et al., 2018) would improve results.”
MethodTRQ3DNet: A 3D Quasi-Recurrent and Transformer Based Network for Hyperspectral Image Denoising
Pang, L., Gu, W., & Cao, X. (2022) · Remote Sensing · doi:10.3390/rs14184598 · Cited by 78
“Finally, we perform a 1 × 1 × 1 3D convolution operation on the element-wise sum of this feature map and the QRU3D layer output, generating the input of the next QRU3D layer.”
MethodGenerating Medical Reports from Patient-Doctor Conversations Using Sequence-to-Sequence Models
Enarvi, S., Amoia, M., Del-Agua Teba, M., Delaney, B., Diehl, F., Hahn, S., Harris, K., McGrath, L., Pan, Y., Pinto, J., et al. (2020) · Proceedings of the First Workshop on Natural Language Processing for Medical Conversations · doi:10.18653/v1/2020.nlpmc-1.4 · Cited by 56
“We use relative position representations (Shaw et al., 2018) that are added inside the attention mechanism, which we found to work slightly better.”
MethodSeismic velocity inversion transformer
Wang, H., Lin, J., Dong, X., Lu, S., Li, Y., & Yang, B. (2023) · Geophysics · doi:10.1190/geo2022-0283.1 · Cited by 82
Self-Attention: A Better Building Block for Sentiment Analysis Neural Network Classifiers
Ambartsoumian, A., & Popowich, F. P. (2018) · Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis (WASSA) · doi:10.18653/v1/w18-6219 · Cited by 78
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.v3 · Cited by 53
Self-Attention with Structural Position Representations
Wang, X., Tu, Z., Wang, L., & Shi, S. (2019) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/d19-1145 · Cited by 81
“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 .”
InfluentialDual self-attention with co-attention networks for visual question answering
Liu, Y., Zhang, X., Zhang, Q., Li, C., Huang, F., Tang, X., & Li, Z. (2021) · Pattern Recognition · doi:10.1016/j.patcog.2021.107956 · Cited by 77
Graph Representation Learning and Its Applications: A Survey
Hoang, V. T., Jeon, H.-J., You, E.-S., Yoon, Y., Jung, S., & Lee, O. (2023) · Sensors · doi:10.3390/s23084168 · Cited by 83
Transformer Meets Remote Sensing Video Detection and Tracking: A Comprehensive Survey
Jiao, L., Zhang, X., Liu, X., Liu, F., Yang, S., Ma, W., Li, L., Chen, P., Feng, Z., Guo, Y., et al. (2023) · IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · doi:10.1109/jstars.2023.3289293 · Cited by 77
“4, like sinusoidal functions [10], [30], [108], [124], relative positional encodings [25], [136], [138], [142], learnable embeddings [12], [22], [141], [143], [144], and dynamic position”
BackgroundCalibrated geometric deep learning improves kinase–drug binding predictions
Luo, Y., Liu, Y., & Peng, J. (2023) · Nature Machine Intelligence · doi:10.1038/s42256-023-00751-0 · Cited by 83
“We used the relative positional encoding 62 , an extension of the positional encoding introduced in the Transformer model 63 .”
Link Prediction on N-ary Relational Facts: A Graph-based Approach
Wang, Q., Wang, H., Lyu, Y., & Zhu, Y. T. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.35 · Cited by 84
Transformer for Handwritten Text Recognition Using Bidirectional Post-decoding
Wick, C., Zöllner, J., & Grüning, T. (2021) · Lecture notes in computer science · doi:10.1007/978-3-030-86334-0_8 · Cited by 87
Do Transformer Modifications Transfer Across Implementations and Applications?Preprint
Narang, S., Chung, H. W., Tay, Y., Fedus, W., Févry, T., Matena, M. S., Malkan, K., Fiedel, N., Shazeer, N., Lan, Z., et al. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2102.11972 · Cited by 89
“Relative attention (Shaw et al., 2018) replaced the absolute position embeddings by those based on relative distance between tokens (clipped to a maximum distance hyperparameter k ).”
BackgroundGroup Recommendation with Latent Voting Mechanism
Guo, L., Yin, H., Wang, Q., Cui, B., Huang, Z. H., & Cui, L. (2020) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde48307.2020.00018 · Cited by 81
“With the above intuitions, we leverage the self-attention mechanism [21], [22], which has achieved great success in many areas, to solve the preference aggregation problem in OGR, and propose a GroupSA framework to model how a group consensus is reached.”
MethodA CNN-Attention Network for Continuous Estimation of Finger Kinematics from Surface Electromyography
Geng, Y., Yu, Z., Long, Y., Qin, L., Chen, Z., Li, Y., Guo, X., & Li, G. (2022) · IEEE Robotics and Automation Letters · doi:10.1109/lra.2022.3169448 · Cited by 70
AST-trans: code summarization with efficient tree-structured attention
Tang, Z. J., Shen, X., Li, C., Ge, J., Huang, L., Zhu, Z., & Luo, B. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3510224 · Cited by 93
“[36] proposed replacing them with relative position embeddings, which has shown more effective in code summarization tasks [1].”
BackgroundMotion In-Betweening via Two-Stage Transformers
Qin, J., Zheng, Y., & Zhou, K. (2022) · ACM Transactions on Graphics · doi:10.1145/3550454.3555454 · Cited by 93
“We do not adopt the conventional approach of learning a fixed-size lookup table with relative positional encodings [Huang et al. 2018; Shaw et al. 2018] for the same reason as the pekf .”
BackgroundMethodLocal–Global Feature-Aware Transformer Based Residual Network for Hyperspectral Image Denoising
Wang, F., Li, J., Yuan, Q., & Zhang, L. (2022) · IEEE Transactions on Geoscience and Remote Sensing · doi:10.1109/tgrs.2022.3229361 · Cited by 69
“Based on the above operations, we then follow [29], [32], and [58] by adding a relative position bias B in computing our self-attention operation: where is the learnable encoding and randomly initialized.”
MMGRec: Multimodal Generative Recommendation with Transformer Model
Liu, H., Wei, Y., Song, X., Guan, W., Li, Y.-F., & Nie, L. (2026) · ACM Transactions on Multimedia Computing Communications and Applications · doi:10.1145/3838594 · Cited by 72
“MovieLens TikTok Kwai R@10 N@10 R@10 N@10 R@10 N@10 w/o PE 0.2696 0.1850 0.1152 0.0765 0.0517 0.0427 Default PE 0.2732 0.1853 0.1180 0.0778 0.0545 0.0441 Ours 0.2804 0.1898 0.1269 0.0802 0.0567 0.0470”
InfluentialAI Safety in Generative AI Large Language Models: A SurveyPreprint
Chua, J., Li, Y., Yang, S.-Y., Wang, C., & Yao, L. (2024) · arXiv.org · doi:10.48550/arxiv.2407.18369 · Cited by 50
“For example, Shaw et al. Shaw et al. (2018) and Dai et al. Dai et al. (2019) explore relative positional encoding, incorporating relative position dependencies.”
BackgroundERNIE-Doc: A Retrospective Long-Document Modeling Transformer
Ding, S., Shang, J.-Y., Wang, S.-H., Sun, Y., Tian, H., Wu, H., & Wang, H. (2021) · Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2021.acl-long.227 · Cited by 68
“Additionally, we employed relative positional embedding (Shaw et al., 2018) in our model pretraining because it is necessary for reusing hidden state without causing temporal confusion (Dai et al., 2019).”
MethodSun, C., Zhou, X., Zhang, M., & Qin, A. (2023) · Sensors · doi:10.3390/s23208529 · Cited by 72
“F 1 score = 2 × Precision × Recall Precision + Recall (12)”
BackgroundDFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation
Yin, B.-W., Cao, J.-L., Cheng, M., & Hou, Q. (2025) · 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/cvpr52734.2025.01802 · Cited by 114
“Inspired by [12, 41, 48] that perform positional encoding to provide spatial information for each token, our geometry self-attention can be achieved by introducing the geometry prior G into the self-attention mechanism via a decay manner.”
Hard-Coded Gaussian Attention for Neural Machine Translation
You, W., Sun, S., & Iyyer, M. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.687 · Cited by 57
Empirical study of transformers for source code
Chirkova, N., & Troshin, S. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468611 · Cited by 77
Global-and-Local Relative Position Embedding for Unsupervised Video Summarization
Jung, Y., Cho, D., Woo, S., & Kweon, I. S. (2020) · Lecture notes in computer science · doi:10.1007/978-3-030-58595-2_11 · Cited by 79
“The module is designed to aggregate the global context non-locally [33], and to be aware of the relative position between frames [29].”
BackgroundMethodInfluentialChen, L., Wang, W., Zhou, T., & Yang, Y. (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.01512 · Cited by 78
“Due to the permutation invariant nature of the attention operation, [58] learns and encodes position embeddings into Transformer tokens.”
BackgroundUnleashing Vanilla Vision Transformer with Masked Image Modeling for Object Detection
Fang, Y. K., Yang, S., Wang, S., Ge, Y., Shan, Y., & Wang, X. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00574 · Cited by 84
““rel pos”: using relative position biases [43, 46], which usually improves ∼ 1 AP but adds training time and memory.”
MethodNext-Gen Medical Imaging: U-Net Evolution and the Rise of Transformers
Zhang, C. H., Deng, X., & Ling, S. H. (2024) · Sensors · doi:10.3390/s24144668 · Cited by 71
“Another approach involves absolute position encoding, integrating segment encoding and relative positional information into the token attention matrix [90,91].”
BackgroundPURS: Personalized Unexpected Recommender System for Improving User Satisfaction
Pan, L., Que, M., Jiang, Z., Hu, Y. G., & Tuzhilin, A. (2020) · ACM Conference on Recommender Systems (RecSys) · doi:10.1145/3383313.3412238 · Cited by 79
“to incorporate self-attentive mechanism [41] during the sequence modeling process.”
MethodGTA: Graph Truncated Attention for Retrosynthesis
Seo, S.-W., Song, Y. Y., Yang, J. Y., Bae, S., Lee, H., Shin, J., Hwang, S. J., & Yang, E. (2021) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v35i1.16131 · Cited by 92
“Relative positional encoding (Shaw, Uszkoreit, and Vaswani 2018) is used with maximum relative distance of 4.”
MethodPiSLTRc: Position-Informed Sign Language Transformer With Content-Aware Convolution
Xie, P., Zhao, M., & Hu, X. (2021) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2021.3109665 · Cited by 67
Aloysius, N., Geetha, M. K., & Nedungadi, P. (2021) · IEEE Access · doi:10.1109/access.2021.3122921 · Cited by 68
“In this research direction, the relative position scheme of Shaw et al. [20] was adopted, with the modified MHA module.”
BackgroundMethodInfluentialImproving Face-Based Age Estimation With Attention-Based Dynamic Patch Fusion
Wang, H., Sánchez, V., & Li, C. (2022) · IEEE Transactions on Image Processing · doi:10.1109/tip.2021.3139226 · Cited by 72
“To make it efficient when dealing with structured data like images and multi-dimensional features, we adopt the relative positional encoding in [66] and [49].”
MethodZhang, X., Wang, G., Meng, X., Wang, S., Zhang, Y., Rodríguez‐Patón, A., Wang, J., & Wang, X. (2022) · Briefings in Bioinformatics · doi:10.1093/bib/bbac296 · Cited by 64
Peng, Y., Liu, Y., Tu, B., & Zhang, Y. (2023) · IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · doi:10.1109/jstars.2023.3234302 · Cited by 64
“The encoding component is composed of multiple encoder layers, each of which is made up of two sublayers: self-attention and feed-forward network [57].”
BackgroundMa, Y., & Wang, R. (2023) · Pattern Recognition · doi:10.1016/j.patcog.2023.109905 · Cited by 67
An ensemble of CNNs with self-attention mechanism for DeepFake video detection
Omar, K., Sakr, R. H., & Alrahmawy, M. F. (2023) · Neural Computing and Applications · doi:10.1007/s00521-023-09196-3 · Cited by 71
“In our proposed architecture, we use the independent version, similar to the one used in [49], where a 2D relative position w i (cid:4) j is added to the attention weight to achieve the property of translation equivariance.”
Vision transformers in domain adaptation and domain generalization: a study of robustness
Alijani, S., Fayyad, J., & Najjaran, H. (2024) · Neural Computing and Applications · doi:10.1007/s00521-024-10353-5 · Cited by 76
“In addition to the fixed positional encoding employed in the original transformer, other models have explored the use of learned positional encoding [55] and relative positional encoding [17, 56, 57].”
Tao, L., Zhang, H., Jing, H., Liu, Y., Yan, D., Wei, G., & Xue, X. (2025) · Remote Sensing · doi:10.3390/rs17010162 · Cited by 78
Cameras as Relative Positional Encoding
Li, R., Yi, B., Liu, J., Gao, H., Ma, Y., & Kanazawa, A. (2025) · neural information processing systems · doi:10.52202/085713-0540 · Cited by 146
ATISS: Autoregressive Transformers for Indoor Scene Synthesis
Paschalidou, D., Kar, A., Shugrina, M., Kreis, K., Geiger, A., & Fidler, S. (2021) · arXiv · doi:10.48550/arxiv.2110.03675 · Cited by 62
“Transformers for Set Generation: Transformer models [56] demonstrated impressive results on various tasks such as machine translation [50, 39], language-modeling [2, 10], object detection [33, 3, 66], image recognition [14, 53], semantic segmentation [60] as well as on image [42, 26, 5, 15, 54] and music [11] generati…”
MethodFVT: Finger Vein Transformer for Authentication
Huang, J., Luo, W., Yang, W., Zheng, A., Lian, F., & Kang, W. (2022) · IEEE Transactions on Instrumentation and Measurement · doi:10.1109/tim.2022.3173276 · Cited by 72
A generalized-template-based graph neural network for accurate organic reactivity prediction
Chen, S., & Jung, Y. (2022) · Nature Machine Intelligence · doi:10.1038/s42256-022-00526-z · Cited by 76
A time-aware self-attention based neural network model for sequential recommendation
Zhang, Y., Yang, B., Liu, H., & Li, D. (2022) · Applied Soft Computing · doi:10.1016/j.asoc.2022.109894 · Cited by 69
Graph Hawkes Transformer for Extrapolated Reasoning on Temporal Knowledge Graphs
Sun, H., Geng, S., Zhong, J., Han, H., & He, K. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.507 · Cited by 74
“Although researchers have designed a variety of position encoding methods (Devlin et al., 2019; Shaw et al., 2018; Dai et al., 2019; Ke et al., 2021), most of them do not apply to our scenario due to the following two reasons: (1) These position encoding methods are performed in the discrete domain…”
MethodContext-aware Self-Attention Networks for Natural Language Processing
Yang, B., Wang, L., Wong, D. F., Shi, S., & Tu, Z. (2021) · Neurocomputing · doi:10.1016/j.neucom.2021.06.009 · Cited by 73
Dual Attentive Sequential Learning for Cross-Domain Click-Through Rate Prediction
Li, P., Jiang, Z., Que, M., Hu, Y., & Tuzhilin, A. (2021) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3447548.3467140 · Cited by 71
“As the transaction records for sequential recommendations often contain many items irrelevant to the next choice, attention mechanism [34, 43] is often utilized to weight the observed items with different relevance to build an attentive context that outputs the proper next item with a high probability.”
BackgroundMethodMaking Transformers Solve Compositional Tasks
Ontañón, S., Ainslie, J., Fisher, Z., & Cvicek, V. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.251 · Cited by 110
The Ethical Implications of Generative Audio Models: A Systematic Literature Review
Barnett, J. (2023) · Proceedings of the AAAI/ACM Conference on AI Ethics and Society · doi:10.1145/3600211.3604686 · Cited by 93
“Music generation is particularly tricky due to the long-term relational dependencies of melodies and other musical structure that may have occurred at a timestamp far earlier than the current frame needing to be generated [28], but self-attention and relative positioning [53] enabled that hurdle to be overcome.”
BackgroundMcMaster, C., Chan, J., Liew, D. F. L., Su, E., Frauman, A. G., Chapman, W. W., & Pires, D. E. V. (2022) · Journal of Biomedical Informatics · doi:10.1016/j.jbi.2022.104265 · Cited by 73
Heterogeneous Graph Transformer for Graph-to-Sequence Learning
Yao, S., Wang, T., & Wan, X. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.640 · Cited by 91
“Shaw et al. (2018) propose the relation-aware self-attention which learns explicit embeddings for pair-wise relationships between input elements.”
BackgroundSpeech Emotion Recognition UsingConvolutional Neural Network and Long-Short TermMemory
Dangol, R., Alsadoon, A., Prasad, P. W. C., Seher, I., & Alsadoon, O. H. (2020) · Multimedia Tools and Applications · doi:10.1007/s11042-020-09693-w · Cited by 61
Encoding Musical Style with Transformer AutoencodersPreprint
Choi, K., Hawthorne, C., Simon, I., Dinculescu, M., & Engel, J. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1912.05537 · Cited by 60
“…operates over absolute positional encodings of each token in a given sequence (Vaswani et al., 2017), Music Transformer replaces this with relative attention (Shaw et al., 2018), which allows the model to keep better track of regularity based on event orderings and periodicity in the performance.”
BackgroundInfluentialData Diversification: A Simple Strategy For Neural Machine Translation
Nguyen, X.-P., Joty, S., Wu, K., & Aw, A. T. (2020) · neural information processing systems · doi:10.48550/arxiv.1911.01986 · Cited by 100
“For instance, Shaw et al. (2018) and Ahmed et al. (2017) propose minor modifications to improve the Transformer model with slight gains in performance.”
BackgroundMethodInfluentialA Length-Extrapolatable Transformer
Sun, Y., Dong, L., Patra, B., Ma, S., Huang, S., Benhaim, A., Chaudhary, V., Song, X., & Wei, F. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.816 · Cited by 59
ShadowGNN: Graph Projection Neural Network for Text-to-SQL Parser
Chen, Z., Chen, L., Zhao, Y., Cao, R., Xu, Z., Zhu, S., & Yu, K. (2021) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2021.naacl-main.441 · Cited by 79
Zero-Shot Rumor Detection with Propagation Structure via Prompt Learning
Lin, H., Yi, P., Ma, J., Jiang, H., Luo, Z., Shi, S., & Liu, R. (2023) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v37i4.25651 · Cited by 104
MLIC ++ : Linear Complexity Multi-Reference Entropy Modeling for Learned Image Compression
Jiang, W., Yang, J., Zhai, Y., Gao, F., & Wang, R. (2025) · ACM Transactions on Multimedia Computing Communications and Applications · doi:10.1145/3719011 · Cited by 114
MVS2D: Efficient Multiview Stereo via Attention-Driven 2D Convolutions
Yang, Z., Ren, Z., Shan, Q., & Huang, Q. (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.00838 · Cited by 80
TrajFormer: Efficient Trajectory Classification with Transformers
Liang, Y., Ouyang, K., Wang, Y., Liu, X., Chen, H., Zhang, J., Zheng, Y., & Zimmermann, R. (2022) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3511808.3557481 · Cited by 93
“Moreover, a simple concatenation of the spatio-temporal interval information only brings marginal improvement (see base vs. base+CAPE), and we have similar observations in base vs. base+RPE.”
BackgroundMethodInfluentialZhu, C., Pu, Y., Yang, K., Yang, Q., & Chen, C. L. P. (2023) · IEEE Transactions on Instrumentation and Measurement · doi:10.1109/tim.2023.3277937 · Cited by 71
“This has been proven to be effective in some work [30].”
BackgroundLi, X., Li, X., Zhang, M., Dong, Q., Zhang, M., Wang, Z., & Wei, P. (2024) · Computers and Electronics in Agriculture · doi:10.1016/j.compag.2024.108762 · Cited by 64
Tree-structured Attention with Hierarchical AccumulationPreprint
Nguyen, X.-P., Joty, S., Hoi, S. C. H., & Socher, R. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.08046 · Cited by 72
“For example, it has achieved state-of-the-art performance in machine translation tasks (Vaswani et al., 2017; Shaw et al., 2018; Ott et al., 2018; Wu et al., 2019) and self-supervised representational learning (Devlin et al.”
Unsupervised translation of programming languages
Roziere, B. (2026) · doi:10.70675/416f6582z4576z444eza710z5e930d59bf97 · Cited by 57
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.
