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 101–200 of 1,012
Predicting RNA-seq coverage from DNA sequence as a unifying model of gene regulation
Linder, J., Srivastava, D., Yuan, H., Agarwal, V., & Kelley, D. R. (2025) · Nature Genetics · doi:10.1038/s41588-024-02053-6 · Cited by 418
“Second, repeated application of a self-attention (or transformer) block enables long-range interaction and exchange between every pair of sequence positions [27, 28].”
Chen, H., Li, C., Wang, G., Li, X., Mamunur Rahaman, M., Sun, H., Hu, W., Li, Y., Liu, W., Sun, C., et al. (2022) · Pattern Recognition · doi:10.1016/j.patcog.2022.108827 · Cited by 240
Normalized and Geometry-Aware Self-Attention Network for Image Captioning
Guo, L., Liu, J., Zhu, X., Yao, P., Lu, S., & Lu, H. (2020) · 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr42600.2020.01034 · Cited by 250
Generative models for graph-based protein design
Ingraham, J., Garg, V., Barzilay, R., & Jaakkola, T. (2019) · neural information processing systems · Cited by 678
Learning and Evaluating Contextual Embedding of Source Code
Kanade, A., Maniatis, P., Balakrishnan, G., & Shi, K. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.2001.00059 · Cited by 143
“The Transformer model has been extended to incorporate explicitly provided structural information (Shaw et al., 2018).”
MethodLarge language models in law: A survey
Lai, J., Gan, W., Wu, J., Qi, Z., & Yu, P. S. (2024) · AI Open · doi:10.1016/j.aiopen.2024.09.002 · Cited by 406
Protein structure generation via folding diffusion
Wu, K. E., Yang, K. K., van den Berg, R., Alamdari, S., Zou, J. Y., Lu, A. X., & Amini, A. P. (2024) · Nature Communications · doi:10.1038/s41467-024-45051-2 · Cited by 178
“, 2017) with relative positional embeddings (Shaw et al., 2018).”
A Survey on Large Language Models for Code Generation
Jiang, J., Wang, F., Shen, J., Kim, S., & Kim, S. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3747588 · Cited by 251
“Fine-tune Techniques”
BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer
Sun, F., Liu, J., Wu, J. F., Pei, C., Lin, X., Ou, W., & Jiang, P. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1904.06690 · Cited by 251
“Recently, there is a rising enthusiasm for applying purely attention-based neural networks to model sequential data for their effectiveness and efficiency [30, 32, 38, 46].”
BackgroundA systematic study of key elements underlying molecular property prediction
Deng, J., Yang, Z., Wang, H., Ojima, I., Samaras, D., & Wang, F. (2023) · Nature Communications · doi:10.1038/s41467-023-41948-6 · Cited by 213
“To support arbi-trarylengthofSMILESstringsatinference,relativepositionalencoding is used 47 .”
Two-Stream Convolution Augmented Transformer for Human Activity Recognition
Li, B., Cui, W., Wang, W., Zhang, L., Chen, Z., & Wu, M. (2021) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v35i1.16103 · Cited by 224
“Unfortunately, existing positional encodings methods, e.g. , absolute encodings (Vaswani et al. 2017) or relative encodings (Shaw, Uszkoreit, and Vaswani 2018) are all de-fined on a single point: they assign a unique and highly-discriminative encoding for each single point.”
MethodHuman-AI Ensembles: When Can They Work?
Choudhary, V., Marchetti, A., Shrestha, Y. R., & Puranam, P. (2025) · Journal of Management · doi:10.1177/01492063231194968 · Cited by 194
“These deep learning networks speci fi cally rely on advanced “ transformer ” architectures (Vaswani et al., 2017), and aim to imitate attention-directing mechanisms in human cognitive systems (Shaw, Uszkoreit, & Vaswani, 2018).”
Molecule Attention TransformerPreprint
Maziarka, Ł., Danel, T., Mucha, S., Rataj, K., Tabor, J., & Jastrzȩbski, S. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.08264 · Cited by 294
“Multiple prior works have augmented self-attention in Transformer using domain-specific knowledge (Chen et al., 2018; Shaw et al., 2018; Bello et al., 2019; Guo et al., 2019).”
BackgroundCSWin-UNet: Transformer UNet with cross-shaped windows for medical image segmentation
Liu, X., Gao, P., Yu, T., Wang, F., & Yuan, R.-Y. (2025) · Information Fusion · doi:10.1016/j.inffus.2024.102634 · Cited by 202
“Unlike previous positional encoding methods [27], [28], LePE directly manipulates the results of attention weights rather than being added to the computation of attention.”
MethodSwin3D: A Pretrained Transformer Backbone for 3D Indoor Scene Understanding
Yang, Y., Guo, Y., Xiong, J.-Y., Liu, Y., Pan, H., Wang, P., Tong, X., & Guo, B. (2025) · Computational Visual Media · doi:10.26599/cvm.2025.9450383 · Cited by 282
Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing
Lin, X. V., Socher, R., & Xiong, C. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.438 · Cited by 181
“…re-surge of interest for text-to-SQL semantic parsing (Androutsopoulos et al., 1995), by virtue of newly released large-scale datasets (Zhong et al., 2017; Yu et al., 2018; Zhang et al., 2019) and matured neural network modeling tools (Vaswani et al., 2017; Shaw et al., 2018; De-vlin et al., 2019).”
BackgroundIshiwatari, T., Yasuda, Y., Miyazaki, T., & Goto, J. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.597 · Cited by 209
“A common response to this issue is to encode information about absolute position features (Vaswani et al., 2017) or relative position features (Shaw et al., 2018), where these encodings are added to nodes (utterances) or edges (relationships).”
BackgroundMethodTowards Robust Vision Transformer
Mao, X., Qi, G., Chen, Y., Li, X., Duan, R., Ye, S., He, Y., & Xue, H. (2022) · 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52688.2022.01173 · Cited by 224
“Concerning the ways of positional encoding, learned absolute, sin-cos absolute, learned relative [35], input-conditioned [3] position representations are compared.”
BackgroundVision Transformers for Image Classification: A Comparative Survey
Wang, Y., Deng, Y., Zheng, Y., Chattopadhyay, P., & Wang, L. (2025) · Technologies · doi:10.3390/technologies13010032 · Cited by 174
“Several adaptive positional encoding mechanisms [7,26–28] were introduced and proved to make improvements compared to original permanent positional encoding.”
Towards Robust Vision Transformer
Mao, X., Qi, G., Chen, Y., Li, X., Duan, R., Ye, S., He, Y., & Xue, H. (2021) · arXiv · doi:10.48550/arxiv.2105.07926 · Cited by 224
“Concerning the ways of positional encoding, learned absolute, sin-cos absolute, learned relative [35], input-conditioned [3] position representations are compared.”
BackgroundBlockGCN: Redefine Topology Awareness for Skeleton-Based Action Recognition
Zhou, Y., Yan, X., Cheng, Z.-Q., Yan, Y., Dai, Q., & Hua, X.-S. (2024) · 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52733.2024.00200 · Cited by 184
“Relative Positional Encodings : Relative positional information has proven important in various domains, including Natural Language Processing [6, 15, 33] and Computer Vision [21, 22, 26, 41, 52].”
Multi-Head Attention with Disagreement Regularization
Li, J., Tu, Z., Yang, B., Lyu, M. R., & Zhang, T. (2018) · Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d18-1317 · Cited by 190
“…from being able to improve the performance of multi-head attention in other tasks such as reading comprehension and language inference, to being able to combine with other techniques (Shaw et al., 2018; Shen et al., 2018; Dou et al., 2018; Yang et al., 2018) to further improve performance.”
BackgroundInterpretable Rumor Detection in Microblogs by Attending to User Interactions
Khoo, L. M. S., Chieu, H. L., Qian, Z., & Jiang, J. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i05.6405 · Cited by 193
HCTNet: A hybrid CNN-transformer network for breast ultrasound image segmentation
He, Q., Yang, Q., & Xie, M. (2023) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2023.106629 · Cited by 198
Xu, B., Wang, Q., Lyu, Y., Zhu, Y., & Mao, Z. (2021) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v35i16.17665 · Cited by 192
Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of View
Lu, Y., Li, Z., He, D., Sun, Z., Dong, B., Qin, T., Wang, L., & Liu, T. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1906.02762 · Cited by 108
SumGNN: multi-typed drug interaction prediction via efficient knowledge graph summarization
Yu, Y., Huang, K., Zhang, C., Glass, L. M., Sun, J., & Xiao, C. (2021) · Bioinformatics · doi:10.1093/bioinformatics/btab207 · Cited by 191
“Inspired by the relation-aware transformer architecture (Shaw et al., 2018), we use selfattention mechanism, which takes account into all neighbor nodes in the subgraph to generate the attention weight.”
BackgroundMethodInfluentialEnd-to-End Transformer-Based Models in Textual-Based NLP
Rahali, A., & Akhloufi, M. A. (2023) · AI · doi:10.3390/ai4010004 · Cited by 164
LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document UnderstandingPreprint
Xu, Y., Xu, Y., Lv, T., Cui, L., Wei, F., Wang, G., Lu, Y., Florencio, D. A. F., Zhang, C., Che, W., et al. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2012.14740 · Cited by 324
“D relative position representations (Shaw et al., 2018; Raffel et al., 2020; Bao et al., 2020), we pro-pose the spatial-aware self-attention mechanism for LayoutLMv2, which involves a 2-”
BackgroundConveRT: Efficient and Accurate Conversational Representations from Transformers
Henderson, M., Casanueva, I., Mrkšić, N., Su, P.-H., Wen, T.-H., & Vulić, I. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.196 · Cited by 176
Large Language Models in Education: Vision and Opportunities
Gan, W.-S., Qi, Z.-L., Wu, J.-Y., & Lin, J. (2023) · BigData Congress [Services Society] · doi:10.1109/bigdata59044.2023.10386291 · Cited by 193
“It utilizes self-attention mechanisms to handle the dependency relationships within input sequences [40].”
BackgroundLGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations
Cao, R., Chen, L., Chen, Z., Zhao, Y., Zhu, S., & Yu, K. (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.198 · Cited by 138
“C, it treats all relations, either 1 -hop or multi-hop, in the same manner (relative position embedding, Shaw et al., 2018) in a complete graph.”
DIET: Lightweight Language Understanding for Dialogue SystemsPreprint
Bunk, T., Varshneya, D., Vlasov, V., & Nichol, A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2004.09936 · Cited by 251
“Transformer To encode context across the complete sentence, we use a 2 layer trans-former (Vaswani et al., 2017) with relative position attention (Shaw et al., 2018).”
MethodGraphiT: Encoding Graph Structure in TransformersPreprint
Mialon, G., Chen, D., Selosse, M., & Mairal, J. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2106.05667 · Cited by 277
“In relative position encoding, which was proposed later [26, 30], positional information is added to the attention logits and in the values.”
BackgroundModeling Localness for Self-Attention Networks
Yang, B., Tu, Z., Wong, D. F., Meng, F., Chao, L. S., & Zhang, T. (2018) · Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d18-1475 · Cited by 196
“Both Shaw et al. (2018) and our work have shown that explicitly modeling locality for self-attention networks can improve the model performance.”
BackgroundMethodInfluentialAttention-Aware Multi-Stroke Style Transfer
Yao, Y., Ren, J., Xie, X., Liu, W., Liu, Y.-J., & Wang, J. (2019) · 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2019.00156 · Cited by 190
“[20] proposes to incorporate relative position information for se-”
BackgroundGraph Transformer for Graph-to-Sequence Learning
Cai, D., & Lam, W. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i05.6243 · Cited by 184
Hyperbolic Attention NetworksPreprint
Gülçehre, Ç., Denil, M., Malinowski, M., Razavi, A. S., Pascanu, R., Hermann, K. M., Battaglia, P., Bapst, V., Raposo, D. C., Santoro, A., et al. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1805.09786 · Cited by 263
Protein structure generation via folding diffusion
Wu, K. E., Yang, K. K., Berg, R. V. D., Zou, J. Y., Lu, A. X., & Amini, A. P. (2022) · arXiv · doi:10.48550/arxiv.2209.15611 · Cited by 193
“, 2017) with relative positional embeddings (Shaw et al., 2018).”
Selva, J., Johansen, A. S., Escalera, S., Nasrollahi, K., Moeslund, T. B., & Clapés, A. (2023) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2023.3243465 · Cited by 169
“We find different variants of relative PEs applied to VTs, for instance [10], [33], [84] are based on decomposable attention [91], whereas [83] follows the approach of relation-aware attention [88].”
BackgroundMethodRobustScanner: Dynamically Enhancing Positional Clues for Robust Text Recognition
Yue, X., Kuang, Z., Lin, C., Sun, H., & Zhang, W. (2020) · Lecture Notes in Computer Science · doi:10.1007/978-3-030-58529-7_9 · Cited by 180
Developing Real-Time Streaming Transformer Transducer for Speech Recognition on Large-Scale Dataset
Chen, X., Wu, Y., Wang, Z., Liu, S., & Li, J. (2021) · ICASSP 2021 - 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · doi:10.1109/icassp39728.2021.9413535 · Cited by 169
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.v4 · Cited by 103
Associating Objects with Transformers for Video Object Segmentation
Yang, Z., Wei, Y., & Yang, Y. (2021) · neural information processing systems · doi:10.48550/arxiv.2106.02638 · Cited by 307
“Rel: use relative positional embedding [35] on the local attention.”
BackgroundMethodLanguage Modeling with Deep Transformers
Irie, K., Zeyer, A., Schlüter, R., & Ney, H. (2019) · Interspeech 2019 · doi:10.21437/interspeech.2019-2225 · Cited by 170
“There are active investigations on positional encoding variants to improve self-attention (e.g., [11, 23]).”
BackgroundFlexible Diffusion Modeling of Long Videos
Harvey, W., Naderiparizi, S., Masrani, V., Weilbach, C., & Wood, F. (2022) · neural information processing systems · doi:10.52202/068431-2027 · Cited by 120
Unifying Vision-and-Language Tasks via Text Generation
Cho, J., Lei, J., Tan, H. X., & Bansal, M. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2102.02779 · Cited by 179
“In contrast, T5 adds relative position bias to each self-attention layer (Shaw et al., 2018).”
BackgroundD-former: a U-shaped Dilated Transformer for 3D medical image segmentation
Wu, Y., Liao, K., Chen, J., Wang, J., Chen, D. Z., Gao, H., & Wu, J. (2023) · Neural Computing and Applications · doi:10.1007/s00521-022-07859-1 · Cited by 172
“Compared to APE, SPE, and RPE, our DPE improves them by 4.05%, 2.79%, and 2.48% in the average DSC, respectively.”
MethodInfluentialThe Expando-Mono-Duo Design Pattern for Text Ranking with Pretrained Sequence-to-Sequence ModelsPreprint
Pradeep, R., Nogueira, R. F., & Lin, J. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2101.05667 · Cited by 246
“We were able to do so in T5 since the models were trained with relative positional encodings [48] and thus can (hopefully) generalize to contexts larger than those seen during training.”
MethodA Survey of Deep Learning Techniques for Neural Machine Translation
Yang, S., Wang, Y., & Chu, X. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.07526 · Cited by 95
“self-attention mechanism with awareness of utilizing representations of relative positions, which demonstrated to have a significant improvements in two MT tasks [147].”
BackgroundPosition Information in Transformers: An Overview
Dufter, P., Schmitt, M., & Schütze, H. (2022) · Computational Linguistics · doi:10.1162/coli_a_00445 · Cited by 175
“(4) Last, they extend the method by Shaw et al. (2018) to not only add relative positions to the key, but also to the query in Eq.”
BackgroundMethodInfluentialMargin-based Parallel Corpus Mining with Multilingual Sentence Embeddings
Artetxe, M., & Schwenk, H. (2019) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/p19-1309 · Cited by 175
A Comprehensive Survey on Long Context Language ModelingPreprint
Liu, J., Zhu, D., Bai, Z., He, Y., Liao, H., Que, H., Wang, Z., Zhang, C., Zhang, G., Zhang, J., et al. (2025) · arXiv · doi:10.13140/rg.2.2.22279.51369 · Cited by 229
Transformer Dissection: An Unified Understanding for Transformer’s Attention via the Lens of Kernel
Tsai, Y.-H. H., Bai, S., Yamada, M., Morency, L.-P., & Salakhutdinov, R. (2019) · Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · doi:10.18653/v1/d19-1443 · Cited by 173
“…allows us to explore new family of attention while at the same time offering a framework to categorize previous attention variants (Vaswani et al., 2017; Shaw et al., 2018; Huang et al., 2018b; Dai et al., 2019; Child et al., 2019; Lee et al., 2018; Wang et al., 2018; Tsai et al., 2019a).”
BackgroundMethodInfluentialA comparative atlas of single-cell chromatin accessibility in the human brain
Li, Y. E., Preissl, S., Miller, M., Johnson, N. D., Wang, Z., Jiao, H., Zhu, C., Wang, Z., Xie, Y., Poirion, O., et al. (2023) · Science · doi:10.1126/science.adf7044 · Cited by 173
“To inject positional information, we add relative positional encodings (87).”
BackgroundHYDRO-3D: Hybrid Object Detection and Tracking for Cooperative Perception Using 3D LiDAR
Meng, Z., Xia, X., Xu, R., Liu, W., & Ma, J. (2023) · IEEE Transactions on Intelligent Vehicles · doi:10.1109/tiv.2023.3282567 · Cited by 166
“Remark 2: It should be noted that the concatenation method used in this work is not unique and can be replaced by other dedi-catedfusionmethodssuchasself-attention[63]andmulti-model bilinearpooling[64],aslongastheyarecapabletofusethe differentorheterogeneousfeaturesforobjectdetection.”
MethodA Survey on Document-level Neural Machine Translation: Methods and Evaluation
Maruf, S., Saleh, F., & Haffari, G. (2021) · ACM Computing Surveys · doi:10.1145/3441691 · Cited by 253
“20 relative attention [107] encoder, decoder Zh→En, En→De Deixis, Ellipsis [147] Lexical cohesion”
BackgroundMinTL: Minimalist Transfer Learning for Task-Oriented Dialogue Systems
Lin, Z., Madotto, A., Winata, G. I., & Fung, P. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.273 · Cited by 226
Explicit Sparse Transformer: Concentrated Attention Through Explicit SelectionPreprint
Zhao, G., Lin, J.-Y., Zhang, Z., Ren, X., Su, Q., & Sun, X. (2019) · arXiv.org · doi:10.48550/arxiv.1912.11637 · Cited by 172
“…- 34.5 Weighted Transformer (Ahmed et al., 2017) 28.9 - - Universal Transformer (Dehghani et al., 2018) 28.9 - - Layer-wise Coordination (He et al., 2018) 29.1 - - Transformer(relative position) (Shaw et al., 2018) The output is the expectation of the value following the sparsified distribution A .”
InfluentialA Comprehensive Review of Deep Learning-Based PCB Defect Detection
Chen, X., Wu, Y., He, X., & Ming, W. (2023) · IEEE Access · doi:10.1109/access.2023.3339561 · Cited by 190
“This method transforms the input image dimensions [H, W, F] into two dimensions To Transformer’s spatial location information deficiency, Bello extended the concept from [51] and bolstered Attention’s prowess by incorporating relative position coding along the width and height dimensions.”
MethodLargeKernel3D: Scaling up Kernels in 3D Sparse CNNs
Chen, Y., Liu, J., Zhang, X., Qi, X., & Jia, J. (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.01296 · Cited by 261
“In contrast, relative position encoding [54] takes the relative relationship into consideration.”
BackgroundSpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing
Ao, J., Wang, R., Zhou, L., Wang, C., Ren, S., Wu, Y., Liu, S., Ko, T., Li, Q., Zhang, Y., et al. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.393 · Cited by 144
Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
Press, O., Smith, N. A., & Lewis, M. (2021) · arXiv · doi:10.48550/arxiv.2108.12409 · Cited by 161
RayMVSNet++: Learning Ray-Based 1D Implicit Fields for Accurate Multi-View Stereo
Shi, Y., Xi, J., Hu, D., Cai, Z., & Xu, K. (2023) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2023.3296163 · Cited by 160
“The reason might be that transformer, which is designed for modeling non-local relations, does not explicitly encode relative or absolute position information [50], making it less suitable to our zero-crossing position searching problem.”
BackgroundData-driven stock forecasting models based on neural networks: A review
Bao, W., Cao, Y., Yang, Y., Che, H., Huang, J., & Wen, S. (2024) · Information Fusion · doi:10.1016/j.inffus.2024.102616 · Cited by 219
Lighter and Better: Low-Rank Decomposed Self-Attention Networks for Next-Item Recommendation
Fan, X., Liu, Z., Lian, J., Zhao, W. X., Xie, X., & Wen, J.-R. (2021) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3404835.3462978 · Cited by 212
“Besides, both absolute (LightSANs−ape) [5] and relative [11] position encoding are worse than decoupled position encoding, which verifies the rationality of decoupling items’ relevance and sequential relations.”
BackgroundAn End-to-End Blind Image Quality Assessment Method Using a Recurrent Network and Self-Attention
Zhou, M., Lan, X., Wei, X., Liao, X., Mao, Q., Li, Y., Wu, C., Xiang, T., & Fang, B. (2022) · IEEE Transactions on Broadcasting · doi:10.1109/tbc.2022.3215249 · Cited by 165
“Many studies on adding relative position information to the transformer model have been conducted [47], [48], [49].”
BackgroundTu, Z., & Coley, C. W. (2022) · Journal of Chemical Information and Modeling · doi:10.1021/acs.jcim.2c00321 · Cited by 221
Efficient Methods for Natural Language Processing: A Survey
Treviso, M. V., Ji, T., Lee, J.-U., van Aken, B., Cao, Q., Ciosici, M. R., Hassid, M., Heafield, K., Hooker, S., Martins, P. H., et al. (2022) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00577 · Cited by 189
“, 2020) and the positional encoding (Shaw et al., 2018; Press et al., 2022).”
Large language models: a survey of their development, capabilities, and applications
Annepaka, Y., & Pakray, P. (2024) · Knowledge and Information Systems · doi:10.1007/s10115-024-02310-4 · Cited by 166
A Survey on Large Language Models with some Insights on their Capabilities and LimitationsPreprint
Matarazzo, A., & Torlone, R. (2025) · arXiv · doi:10.48550/arxiv.2501.04040 · Cited by 217
Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive SurveyPreprint
Huang, Y.-P., Xu, J., Jiang, Z., Lai, J., Li, Z., Yao, Y., Chen, T., Yang, L., Xin, Z., & Ma, X.-X. (2023) · arXiv.org · doi:10.48550/arxiv.2311.12351 · Cited by 141
“Some variants have recently emerged, including trainable embeddings [26] to learn an embedding mapping and relative embeddings [149] based on relative positions.”
BackgroundReasoning Over Semantic-Level Graph for Fact Checking
Zhong, W., Xu, J., Tang, D., Xu, Z., Duan, N., Zhou, M., Wang, J., & Yin, J. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.549 · Cited by 151
Xu, Y., Du, B., & Zhang, L. (2021) · IEEE Transactions on Image Processing · doi:10.1109/tip.2021.3118977 · Cited by 162
Transformer Hawkes ProcessPreprint
Zuo, S., Jiang, H., Li, Z., Zhao, T., & Zha, H. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.09291 · Cited by 177
“Other temporal encoding methods can also be applied, such as the relative position representation model (Shaw et al., 2018), where two temporal encoding matrices are learned instead of predefined.”
MethodYu, Z., Shen, Y., Shi, J., Zhao, H., Cui, Y., Zhang, J., Torr, P. H. S., & Zhao, G. (2023) · International Journal of Computer Vision · doi:10.1007/s11263-023-01758-1 · Cited by 189
Improve Transformer Models with Better Relative Position Embeddings
Huang, Z., Liang, D., Xu, P., & Xiang, B. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.298 · Cited by 106
A Practical Survey on Faster and Lighter Transformers
Fournier, Q., Caron, G. M., & Aloise, D. (2023) · ACM Computing Surveys · doi:10.1145/3586074 · Cited by 145
“Note that contrary to the attention introduced by [9], the relative attention [96] explicitly models the input positions.”
BackgroundSPT-code: sequence-to-sequence pre-training for learning source code representations
Niu, C., Li, C., Ng, V., Ge, J., Huang, L., & Luo, B. (2022) · Proceedings of the 44th International Conference on Software Engineering · doi:10.1145/3510003.3510096 · Cited by 105
“For JCSD, PCSD and CodeSearchNet’s Java/Python datasets, we adopt NerualCodeSum [2], which employs Relative Position [48] and Copy Attention [46] upon vanilla Transformer [54], as another baseline 11 .”
MethodTransformer Language Models without Positional Encodings Still Learn Positional Information
Haviv, A., Ram, O., Press, O., Izsak, P., & Levy, O. (2022) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2022.findings-emnlp.99 · Cited by 220
Efficient Training of Visual Transformers with Small Datasets
Liu, Y., Sangineto, E., Bi, W., Sebe, N., Lepri, B., & Nadai, M. D. (2021) · neural information processing systems · doi:10.48550/arxiv.2106.03746 · Cited by 180
“In [38, 64], relative positional embedding [52] is used, where the position of each token is represented relatively to the others.”
MethodFoley Music: Learning to Generate Music from Videos
Gan, C., Huang, D. Y., Chen, P., Tenenbaum, J. B., & Torralba, A. B. (2020) · Lecture notes in computer science · doi:10.1007/978-3-030-58621-8_44 · Cited by 204
RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL
Qi, J., Tang, J., He, Z., Wan, X., Cheng, Y., Zhou, C., Wang, X., Zhang, Q., & Lin, Z. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.211 · Cited by 187
CSI-Fingerprinting Indoor Localization via Attention-Augmented Residual Convolutional Neural Network
Zhang, B., Sifaou, H., & Li, G. Y. (2023) · IEEE Transactions on Wireless Communications · doi:10.1109/twc.2023.3235449 · Cited by 160
“incorporate relative positional encodings [40] to (11):”
Shehzad, A., Xia, F., Abid, S., Peng, C.-Y., Yu, S., Zhang, D.-Y., & Verspoor, K. M. (2024) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2025.3646122 · Cited by 102
“Self-attention is a core mechanism that enables models to relate di ff erent parts of the input sequence to each other [25].”
Learning to Efficiently Sample from Diffusion Probabilistic Models
Watson, D., Ho, J., Norouzi, M., & Chan, W. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2106.03802 · Cited by 48
“…has been key to the recent success of DDPMs, and as shown by Ho et al. [2020], Nichol and Dhariwal [2021], augmenting UNet with self-attention [Shaw et al., 2018] in scales where attention is computationally feasible has helped bring DDPMs closer to the current state-of-the-art autoregressive…”
Niu, Z., & Mak, B. K.-W. (2020) · Lecture notes in computer science · doi:10.1007/978-3-030-58517-4_11 · Cited by 174
“Relative positional encoding [19] is used instead of the absolute position encoding [22].”
MethodComprehensive Exploration of Synthetic Data Generation: A SurveyPreprint
Bauer, A., Trapp, S., Stenger, M., Leppich, R., Kounev, S., Leznik, M., Chard, K., & Foster, I. T. (2024) · arXiv · doi:10.48550/arxiv.2401.02524 · Cited by 216
Matcha-TTS: A Fast TTS Architecture with Conditional Flow Matching
Mehta, S., Tu, R., Beskow, J., Székely, É., & Henter, G. E. (2024) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp48485.2024.10448291 · Cited by 319
“Glow-TTS [21], VITS [22], and Grad-TTS instead use relative positional embeddings [23].”
BackgroundRotary Position Embedding for Vision Transformer
Heo, B., Park, S., Han, D., & Yun, S. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-72684-2_17 · Cited by 353
Entroformer: A Transformer-based Entropy Model for Learned Image CompressionPreprint
Qian, Y., Lin, M., Sun, X., Tan, Z., & Jin, R. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2202.05492 · Cited by 250
“In order for spatial information of the latents, one common approach is to use biased attention weights based on relative relation [Shaw et al., 2018].”
MethodUnifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code
Zhang, Z., Chen, C., Liu, B., Liao, C., Gong, Z., Yu, H., Li, J., & Wang, R. (2024) · Transactions on machine learning research · doi:10.13140/rg.2.2.32710.69440/1 · Cited by 210
Global Relational Models of Source Code
Hellendoorn, V. J., Sutton, C. A., Singh, R., & Maniatis, P. (2020) · International Conference on Learning Representations · Cited by 220
NEZHA: Neural Contextualized Representation for Chinese Language Understanding
Wei, V. J., Ren, X., Li, X., Huang, W., Liao, Y., Wang, Y., Lin, J., Jiang, X., Chen, X., & Liu, Q. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1909.00204 · Cited by 79
“Later on, [11] proposes a parametric relative positional encoding for Transformer.”
BackgroundLambdaNetworks: Modeling Long-Range Interactions Without Attention
Bello, I. (2021) · arXiv · doi:10.48550/arxiv.2102.08602 · Cited by 129
“Linear attention via kernel factorization Linear attention is typically obtained by reinterpreting attention as a similarity kernel and leveraging a low-rank kernel factorization as Attention(Q,K,V ) = softmax(QKT )V ∼ φ(Q)(φ(KT )V ) (3) for some feature function φ. Computing φ(KT )V ∈ R|k|×|v| first bypasses the need…”
BackgroundInfluentialOn Difficulties of Cross-Lingual Transfer with Order Differences: A Case Study on Dependency Parsing
Ahmad, W. U., Zhang, Z., Ma, X., Hovy, E. H., Chang, K.-W., & Peng, N. (2019) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/n19-1253 · Cited by 158
“In the case of parsing, relative positional representations may be more useful as indicated by the improvements brought by the directional relative position representations (“SelfAtt-Relative+Dir”) (Shaw et al., 2018).”
BackgroundMethodInfluentialCui, B., Liu, M., Li, S., Jin, Z., Zeng, Y., & Lin, X. (2023) · Atmospheric Pollution Research · doi:10.1016/j.apr.2023.101833 · Cited by 139
Convolutional Self-Attention Networks
Yang, B., Wang, L., Wong, D. F., Chao, L. S., & Tu, Z. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1407 · Cited by 128
“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)).”
BackgroundMethodInfluentialYang, J., Kang, G., & Kan, Q. (2022) · International Journal of Fatigue · doi:10.1016/j.ijfatigue.2022.106851 · Cited by 129
Feature Re-Embedding: Towards Foundation Model-Level Performance in Computational Pathology
Tang, W., Zhou, F., Huang, S., Zhu, X. P., Zhang, Y., & Лю, Б. (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.01078 · Cited by 211
“We note this is because the original version can incorporate positional information into the core attention matrix to model positional information more directly.”
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.
