A Frustratingly Easy Improvement for Position Embeddings via Random Padding
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2018Deep contextualized word representationscited by 2,285
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
13 more
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 2016NewsQA: A Machine Comprehension Datasetcited by 330
- 2017SearchQA: A New Q&A Dataset Augmented with Context from a Search Enginecited by 221
- 2019MRQA 2019 Shared Task: Evaluating Generalization in Reading Comprehensioncited by 183
- 2022A Length-Extrapolatable Transformercited by 123
- 2020Look at the First Sentence: Position Bias in Question Answeringcited by 83
- 2021Document-level Relation Extraction as Semantic Segmentationcited by 80
- 2018What Makes Reading Comprehension Questions Easier?cited by 59
- 2022Revisiting DocRED -- Addressing the False Negative Problem in Relation Extractioncited by 57
- 2020Global-to-Local Neural Networks for Document-Level Relation Extractioncited by 43
- 2022Look to the Right: Mitigating Relative Position Bias in Extractive Question Answeringcited by 7
- 2017Contextualized Word Representations for Reading Comprehensioncited by 5
Built on by
Citing papers per year: 2023: 3; 2024: 1.
4 papers.
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2023Extending Input Contexts of Language Models through Training on Segmented Sequencescited by 0
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Survey15 Jan 2024
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey21 Nov 2023
- 2023Extending Input Contexts of Language Models through Training on Segmented Sequences23 Oct 2023
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models30 Aug 2023