mlsanityData to 7 Oct 2026

A Frustratingly Easy Improvement for Position Embeddings via Random Padding

arXiv 2305.04859 ↗First posted 8 May 2023cs.CL cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

Position embeddings, encoding the positional relationships among tokens in text sequences, make great contributions to modeling local context features in Transformer-based pre-trained language models. However, in Extractive Question Answering, position embeddings trained with instances of varied context lengths may not perform well as we expect. Since the embeddings of rear positions are updated fewer times than the front position embeddings, the rear ones may not be properly trained. In this paper, we propose a simple but effective strategy, Random Padding, without any modifications to architectures of existing pre-trained language models. We adjust the token order of input sequences when fine-tuning, to balance the number of updating times of every position embedding. Experiments show that Random Padding can significantly improve model performance on the instances whose answers are located at rear positions, especially when models are trained on short contexts but evaluated on long contexts. Our code and data will be released for future research.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 25 of its 31 references that are in the map. First posted on arXiv 8 May 2023.

Builds on

25 of 31 references.

References · 25

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  8. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  9. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  10. 2018Deep contextualized word representationscited by 2,285
  11. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  12. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
13 more
  1. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
  2. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
  3. 2016NewsQA: A Machine Comprehension Datasetcited by 330
  4. 2017SearchQA: A New Q&A Dataset Augmented with Context from a Search Enginecited by 221
  5. 2019MRQA 2019 Shared Task: Evaluating Generalization in Reading Comprehensioncited by 183
  6. 2022A Length-Extrapolatable Transformercited by 123
  7. 2020Look at the First Sentence: Position Bias in Question Answeringcited by 83
  8. 2021Document-level Relation Extraction as Semantic Segmentationcited by 80
  9. 2018What Makes Reading Comprehension Questions Easier?cited by 59
  10. 2022Revisiting DocRED -- Addressing the False Negative Problem in Relation Extractioncited by 57
  11. 2020Global-to-Local Neural Networks for Document-Level Relation Extractioncited by 43
  12. 2022Look to the Right: Mitigating Relative Position Bias in Extractive Question Answeringcited by 7
  13. 2017Contextualized Word Representations for Reading Comprehensioncited by 5

Built on by

Cited by year

Citing papers per year: 2023: 3; 2024: 1.

4 papers.