mlsanityData to 14 Oct 2026

The Locality and Symmetry of Positional Encodings

arXiv 2310.12864 ↗First posted 19 Oct 2023cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Positional Encodings (PEs) are used to inject word-order information into transformer-based language models. While they can significantly enhance the quality of sentence representations, their specific contribution to language models is not fully understood, especially given recent findings that various positional encodings are insensitive to word order. In this work, we conduct a systematic study of positional encodings in Bidirectional Masked Language Models (BERT-style) , which complements existing work in three aspects: (1) We uncover the core function of PEs by identifying two common properties, Locality and Symmetry; (2) We show that the two properties are closely correlated with the performances of downstream tasks; (3) We quantify the weakness of current PEs by introducing two new probing tasks, on which current PEs perform poorly. We believe that these results are the basis for developing better PEs for transformer-based language models. The code is available at faGithub~ urlhttps://github.com/tigerchen52/localitysymmetry

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 40 of its 72 references that are in the map. First posted on arXiv 19 Oct 2023.

Builds on

40 of 72 references.

References · 40

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  9. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  11. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  12. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
28 more
  1. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  2. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  3. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  4. 2018Self-Attention with Relative Position Representationscited by 1,120
  5. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  6. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  7. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
  8. 2018Universal Transformerscited by 647
  9. 2017Convolutional Sequence to Sequence Learningcited by 552
  10. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
  11. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  12. 2018SentEval: An Evaluation Toolkit for Universal Sentence Representationscited by 294
  13. 2016Fine-grained Analysis of Sentence Embeddings Using Auxiliary Prediction Taskscited by 216
  14. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  15. 2021Masked Language Modeling and the Distributional Hypothesis: Order Word Matters Pre-training for Littlecited by 177
  16. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
  17. 2018Multilingual Constituency Parsing with Self-Attention and Pre-Trainingcited by 117
  18. 2018Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Contextcited by 113
  19. 2021Position Information in Transformers: An Overviewcited by 103
  20. 2020Shortformer: Better Language Modeling using Shorter Inputscited by 76
  21. 2020Out of Order: How Important Is The Sequential Order of Words in a Sentence in Natural Language Understanding Tasks?cited by 73
  22. 2019Positional Encoding to Control Output Sequence Lengthcited by 56
  23. 2019Encoding word order in complex embeddingscited by 53
  24. 2020What Do Position Embeddings Learn? An Empirical Study of Pre-Trained Language Model Positional Encodingcited by 52
  25. 2021BERT & Family Eat Word Salad: Experiments with Text Understandingcited by 44
  26. 2022Word Order Does Matter (And Shuffled Language Models Know It)cited by 32
  27. 2021Local Structure Matters Most: Perturbation Study in NLUcited by 10
  28. 2019Assessing the Ability of Self-Attention Networks to Learn Word Ordercited by 9

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.