Sequence Length is a Domain: Length-based Overfitting in Transformer Models
Not on the map. Why?
Abstract (arXiv)
Transformer-based sequence-to-sequence architectures, while achieving state-of-the-art results on a large number of NLP tasks, can still suffer from overfitting during training. In practice, this is usually countered either by applying regularization methods (e.g. dropout, L2-regularization) or by providing huge amounts of training data. Additionally, Transformer and other architectures are known to struggle when generating very long sequences. For example, in machine translation, the neural-based systems perform worse on very long sequences when compared to the preceding phrase-based translation approaches (Koehn and Knowles, 2017). We present results which suggest that the issue might also be in the mismatch between the length distributions of the training and validation data combined with the aforementioned tendency of the neural networks to overfit to the training data. We demonstrate on a simple string editing task and a machine translation task that the Transformer model performance drops significantly when facing sequences of length diverging from the length distribution in the training data. Additionally, we show that the observed drop in performance is due to the hypothesis length corresponding to the lengths seen by the model during training rather than the length of the input sequence.
Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Builds on 19 of its 27 references that are in the map. First posted on arXiv 15 Sep 2021.
Builds on
19 of 27 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
7 more
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2018Achieving Human Parity on Automatic Chinese to English News Translationcited by 119
- 2020We Need to Talk About Random Splitscited by 70
- 2019Very Deep Self-Attention Networks for End-to-End Speech Recognitioncited by 46
- 2020Super-Human Performance in Online Low-latency Recognition of Conversational Speechcited by 20
- 2020Announcing CzEng 2.0 Parallel Corpus with over 2 Gigawordscited by 17
- 2021Sentence Concatenation Approach to Data Augmentation for Neural Machine Translationcited by 8
Built on by
Citing papers per year: 2022: 6; 2023: 8; 2024: 13; 2025: 3; 2026: 4.
34 papers.
Sort:
By area:
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
- 2023Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformerscited by 59
- 2024AllSpark: Reborn Labeled Features from Unlabeled in Transformer for Semi-Supervised Semantic Segmentationcited by 35
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Taskscited by 29
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 25
- 2022Language model acceptability judgements are not always robust to contextcited by 22
- 2024MathWriting: A Dataset For Handwritten Mathematical Expression Recognitioncited by 20
- 2024Training LLMs over Neurally Compressed Textcited by 16
- 2024AMES: Asymmetric and Memory-Efficient Similarity Estimation for Instance-level Retrievalcited by 16
- 2022CAREER: A Foundation Model for Labor Sequence Datacited by 10
- 2025Data Quality Issues in Multilingual Speech Datasets: The Need for Sociolinguistic Awareness and Proactive Language Planningcited by 10
22 more
- 2023Grounded Image Text Matching with Mismatched Relation Reasoningcited by 8
- 2023Assessing Privacy Risks in Language Models: A Case Study on Summarization Taskscited by 8
- 2024Improving Black-box Robustness with In-Context Rewritingcited by 8
- 2024Self-Modifying State Modeling for Simultaneous Machine Translationcited by 5
- 2024How Effective are State Space Models for Machine Translation?cited by 5
- 2022Using Developer Discussions to Guide Fixing Bugs in Softwarecited by 3
- 2022Extending the Scope of Out-of-Domain: Examining QA models in multiple subdomainscited by 2
- 2023DSS: Synthesizing long Digital Ink using Data augmentation, Style encoding and Split generationcited by 2
- 2024DataSculpt: Crafting Data Landscapes for Long-Context LLMs through Multi-Objective Partitioningcited by 2
- 2024Exploring Language Model Generalization in Low-Resource Extractive QAcited by 2
- 2024Domain adapted machine translation: What does catastrophic forgetting forget and why?cited by 2
- 2023Hawk: An Industrial-strength Multi-label Document Classifiercited by 1
- 2023Token-Level Fitting Issues of Seq2seq Modelscited by 1
- 2025TextTIGER: Text-based Intelligent Generation with Entity Prompt Refinement for Text-to-Image Generationcited by 1
- 2025Early-stopping for Transformer model trainingcited by 1
- 2022Preventing RNN from Using Sequence Length as a Featurecited by 0
- 2023Latent Feature-based Data Splits to Improve Generalisation Evaluation: A Hate Speech Detection Case Studycited by 0
- 2024Adversarial Testing as a Tool for Interpretability: Length-based Overfitting of Elementary Functions in Transformerscited by 0
- 2026Understanding Transformer Encoder-Decoder Representations through Bernoulli Dropoutcited by 0
- 2026Learning Page Order in Shuffled WOO Releasescited by 0
- 2026Efficient Extractive Summarization with MAMBA-Transformer Hybrids for Low-Resource Scenarioscited by 0
- 2026Doc2FRC: Length-Consistent Document-Level Machine Translation via Fixed-Range Chunkingcited by 0
- 2026Doc2FRC: Length-Consistent Document-Level Machine Translation via Fixed-Range Chunking11 Sep 2026
- 2026Efficient Extractive Summarization with MAMBA-Transformer Hybrids for Low-Resource Scenarios1 Mar 2026
- 2026Learning Page Order in Shuffled WOO Releases11 Feb 2026
- 2026Understanding Transformer Encoder-Decoder Representations through Bernoulli Dropout24 Jan 2026
- 2025Early-stopping for Transformer model training17 Oct 2025
- 2025Data Quality Issues in Multilingual Speech Datasets: The Need for Sociolinguistic Awareness and Proactive Language Planning21 Jun 2025
- 2025TextTIGER: Text-based Intelligent Generation with Entity Prompt Refinement for Text-to-Image Generation25 Apr 2025
- 2024Domain adapted machine translation: What does catastrophic forgetting forget and why?23 Dec 2024
- 2024Adversarial Testing as a Tool for Interpretability: Length-based Overfitting of Elementary Functions in Transformers17 Oct 2024
- 2024Exploring Language Model Generalization in Low-Resource Extractive QA27 Sep 2024
- 2024DataSculpt: Crafting Data Landscapes for Long-Context LLMs through Multi-Objective Partitioning2 Sep 2024
- 2024AMES: Asymmetric and Memory-Efficient Similarity Estimation for Instance-level Retrieval6 Aug 2024
22 more
- 2024How Effective are State Space Models for Machine Translation?7 Jul 2024
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling11 Jun 2024
- 2024Self-Modifying State Modeling for Simultaneous Machine Translation4 Jun 2024
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum21 May 2024
- 2024MathWriting: A Dataset For Handwritten Mathematical Expression Recognition16 Apr 2024
- 2024Training LLMs over Neurally Compressed Text4 Apr 2024
- 2024AllSpark: Reborn Labeled Features from Unlabeled in Transformer for Semi-Supervised Semantic Segmentation4 Mar 2024
- 2024Improving Black-box Robustness with In-Context Rewriting13 Feb 2024
- 2023DSS: Synthesizing long Digital Ink using Data augmentation, Style encoding and Split generation29 Nov 2023
- 2023Latent Feature-based Data Splits to Improve Generalisation Evaluation: A Hate Speech Detection Case Study16 Nov 2023
- 2023Assessing Privacy Risks in Language Models: A Case Study on Summarization Tasks20 Oct 2023
- 2023Grounded Image Text Matching with Mismatched Relation Reasoning2 Aug 2023
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun 2023
- 2023Token-Level Fitting Issues of Seq2seq Models8 May 2023
- 2023Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers2 Mar 2023
- 2023Hawk: An Industrial-strength Multi-label Document Classifier15 Jan 2023
- 2022Language model acceptability judgements are not always robust to context18 Dec 2022
- 2022Preventing RNN from Using Sequence Length as a Feature16 Dec 2022
- 2022Using Developer Discussions to Guide Fixing Bugs in Software11 Nov 2022
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Tasks1 Nov 2022
- 2022Extending the Scope of Out-of-Domain: Examining QA models in multiple subdomains9 Apr 2022
- 2022CAREER: A Foundation Model for Labor Sequence Data16 Feb 2022
- 2024AllSpark: Reborn Labeled Features from Unlabeled in Transformer for Semi-Supervised Semantic Segmentationcited by 35
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Taskscited by 29
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 25
- 2022Language model acceptability judgements are not always robust to contextcited by 22
- 2024MathWriting: A Dataset For Handwritten Mathematical Expression Recognitioncited by 20
- 2024Training LLMs over Neurally Compressed Textcited by 16
- 2024AMES: Asymmetric and Memory-Efficient Similarity Estimation for Instance-level Retrievalcited by 16
- 2022CAREER: A Foundation Model for Labor Sequence Datacited by 10
- 2025Data Quality Issues in Multilingual Speech Datasets: The Need for Sociolinguistic Awareness and Proactive Language Planningcited by 10
- 2023Grounded Image Text Matching with Mismatched Relation Reasoningcited by 8
- 2023Assessing Privacy Risks in Language Models: A Case Study on Summarization Taskscited by 8
- 2024Improving Black-box Robustness with In-Context Rewritingcited by 8
12 most cited of 28 All 28 (JSON)
- 2026Doc2FRC: Length-Consistent Document-Level Machine Translation via Fixed-Range Chunking11 Sep 2026
- 2026Learning Page Order in Shuffled WOO Releases11 Feb 2026
- 2026Understanding Transformer Encoder-Decoder Representations through Bernoulli Dropout24 Jan 2026
- 2025Early-stopping for Transformer model training17 Oct 2025
- 2025Data Quality Issues in Multilingual Speech Datasets: The Need for Sociolinguistic Awareness and Proactive Language Planning21 Jun 2025
- 2025TextTIGER: Text-based Intelligent Generation with Entity Prompt Refinement for Text-to-Image Generation25 Apr 2025
- 2024Domain adapted machine translation: What does catastrophic forgetting forget and why?23 Dec 2024
- 2024Adversarial Testing as a Tool for Interpretability: Length-based Overfitting of Elementary Functions in Transformers17 Oct 2024
- 2024Exploring Language Model Generalization in Low-Resource Extractive QA27 Sep 2024
- 2024DataSculpt: Crafting Data Landscapes for Long-Context LLMs through Multi-Objective Partitioning2 Sep 2024
- 2024AMES: Asymmetric and Memory-Efficient Similarity Estimation for Instance-level Retrieval6 Aug 2024
- 2024Self-Modifying State Modeling for Simultaneous Machine Translation4 Jun 2024
12 newest of 28 All 28 (JSON)