Shortformer: Better Language Modeling using Shorter Inputs
Not on the map. Why?
Abstract (arXiv)
Increasing the input length has been a driver of progress in language modeling with transformers. We identify conditions where shorter inputs are not harmful, and achieve perplexity and efficiency improvements through two new methods that decrease input length. First, we show that initially training a model on short subsequences before moving on to longer ones both reduces overall training time and, surprisingly, substantially improves perplexity. Second, we show how to improve the efficiency of recurrence methods in transformers, which let models condition on previously processed tokens when generating sequences that exceed the maximal length the transformer can handle at once. Existing methods require computationally expensive relative position embeddings; we introduce a simple alternative of adding absolute position embeddings to queries and keys instead of to word embeddings, which efficiently produces superior results. We show that these recurrent models also benefit from short input lengths. Combining these techniques speeds up training by a factor of 1.65, reduces memory usage, and substantially improves perplexity on WikiText-103, without adding any parameters.
Key facts. Cited by 76 papers in the map (data through 14 Oct 2026). First posted on arXiv 31 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 17; 2022: 13; 2023: 21; 2024: 13; 2025: 8; 2026: 4.
76 papers.
Sort:
By area:
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,135
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2023Localizing Model Behavior with Path Patchingcited by 195
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 194
- 2024Lessons from the Trenches on Reproducible Evaluation of Language Modelscited by 179
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2021A Token-level Reference-free Hallucination Detection Benchmark for Free-form Text Generationcited by 138
- 2021Position Information in Transformers: An Overviewcited by 103
38 more
- 2021Finetuning Pretrained Transformers into RNNscited by 96
- 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 88
- 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2022General-purpose, long-context autoregressive modeling with Perceiver ARcited by 60
- 2024MambaByte: Token-free Selective State Space Modelcited by 59
- 2024Compression Represents Intelligence Linearlycited by 56
- 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 54
- 2023The Local Learning Coefficient: A Singularity-Aware Complexity Measurecited by 51
- 2022Staged Training for Transformer Language Modelscited by 49
- 2024Loss Landscape Degeneracy and Stagewise Development in Transformerscited by 40
- 2021The Stability-Efficiency Dilemma: Investigating Sequence Length Warmup for Training GPT Modelscited by 36
- 2023Anticipatory Music Transformercited by 36
- 2021When Attention Meets Fast Recurrence: Training Language Models with Reduced Computecited by 34
- 2024SpaceByte: Towards Deleting Tokenization from Large Language Modelingcited by 34
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 33
- 2021GNN-LM: Language Modeling based on Global Contexts via GNNcited by 27
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
- 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
- 2024Curriculum Learning for Small Code Language Modelscited by 22
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
- 2023Generative Models as a Complex Systems Science: How can we make sense of large language model behavior?cited by 19
- 2022ChapterBreak: A Challenge Dataset for Long-Range Language Modelscited by 18
- 2022The Curious Case of Absolute Position Embeddingscited by 17
- 2021Efficient Contrastive Learning via Novel Data Augmentation and Curriculum Learningcited by 14
- 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routingcited by 13
- 2024Progress and Opportunities of Foundation Models in Bioinformaticscited by 13
- 2024Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequencescited by 13
- 2023Large GPT-like Models are Bad Babies: A Closer Look at the Relationship between Linguistic Competence and Psycholinguistic Measurescited by 11
- 2021Revisiting Simple Neural Probabilistic Language Modelscited by 10
- 2021Testing the Generalization of Neural Language Models for COVID-19 Misinformation Detectioncited by 10
- 2022Black-box language model explanation by context length probingcited by 7
- 2024Fisher Information-based Efficient Curriculum Federated Learning with Large Language Modelscited by 6
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 6
- 2022Better Language Model with Hypernym Class Predictioncited by 5
- 2025From Global to Local: A Scalable Benchmark for Local Posterior Samplingcited by 5
50 most cited of 76 All 76 (JSON)
- 2026Branch-Centric Tokenization and Test-Time Augmentation for Skeleton Generation5 Sep 2026
- 2026Learning to Solve Complex Problems via Dataset Decomposition23 Feb 2026
- 2026Position Encoding with Random Float Sampling Enhances Length Generalization of Transformers15 Feb 2026
- 2026Failure Modes in Multi-Hop QA: The Weakest Link Effect and the Recognition Bottleneck18 Jan 2026
- 2025Length-MAX Tokenizer for Language Models25 Nov 2025
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space25 Nov 2025
- 2025Progressive Growing of Patch Size: Curriculum Learning for Accelerated and Improved Medical Image Segmentation27 Oct 2025
- 2025From Global to Local: A Scalable Benchmark for Local Posterior Sampling29 Jul 2025
- 2025PIPE: Physics-Informed Position Encoding for Alignment of Satellite Images and Time Series27 May 2025
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corpora10 Apr 2025
- 2025Bigger But Not Better: Small Neural Language Models Outperform Large Language Models in Detection of Thought Disorder25 Mar 2025
- 2025Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibration1 Feb 2025
38 more
- 2024Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequences6 Nov 2024
- 2024Predictor-Corrector Enhanced Transformers with Exponential Moving Average Coefficient Learning5 Nov 2024
- 2024Fisher Information-based Efficient Curriculum Federated Learning with Large Language Models30 Sep 2024
- 2024dnaGrinder: a lightweight and high-capacity genomic foundation model24 Sep 2024
- 2024Curriculum Learning for Small Code Language Models14 Jul 2024
- 2024LETS-C: Leveraging Text Embedding for Time Series Classification9 Jul 2024
- 2024Lessons from the Trenches on Reproducible Evaluation of Language Models23 May 2024
- 2024SpaceByte: Towards Deleting Tokenization from Large Language Modeling22 Apr 2024
- 2024Compression Represents Intelligence Linearly15 Apr 2024
- 2024Progress and Opportunities of Foundation Models in Bioinformatics6 Feb 2024
- 2024Loss Landscape Degeneracy and Stagewise Development in Transformers4 Feb 2024
- 2024MambaByte: Token-free Selective State Space Model24 Jan 2024
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Survey15 Jan 2024
- 2023Paloma: A Benchmark for Evaluating Language Model Fit16 Dec 2023
- 2023Catwalk: A Unified Language Model Evaluation Framework for Many Datasets15 Dec 2023
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Survey1 Dec 2023
- 2023Advancing State of the Art in Language Modeling28 Nov 2023
- 2023Large GPT-like Models are Bad Babies: A Closer Look at the Relationship between Linguistic Competence and Psycholinguistic Measures8 Nov 2023
- 2023Lil-Bevo: Explorations of Strategies for Training Language Models in More Humanlike Ways26 Oct 2023
- 2023How Much Context Does My Attention-Based ASR System Need?24 Oct 2023
- 2023Manifold-Preserving Transformers are Effective for Short-Long Range Encoding22 Oct 2023
- 2023The Locality and Symmetry of Positional Encodings19 Oct 2023
- 2023The Local Learning Coefficient: A Singularity-Aware Complexity Measure23 Aug 2023
- 2023Generative Models as a Complex Systems Science: How can we make sense of large language model behavior?31 Jul 2023
- 2023Lost in the Middle: How Language Models Use Long Contexts6 Jul 2023
- 2023Leveraging Cross-Utterance Context For ASR Decoding29 Jun 2023
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution27 Jun 2023
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval23 Jun 2023
- 2023Anticipatory Music Transformer14 Jun 2023
- 2023The Information Pathways Hypothesis: Transformers are Dynamic Self-Ensembles2 Jun 2023
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers12 May 2023
- 2023Localizing Model Behavior with Path Patching12 Apr 2023
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Review7 Apr 2023
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapse11 Mar 2023
- 2022Black-box language model explanation by context length probing30 Dec 2022
- 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routing7 Dec 2022
- 2022The Curious Case of Absolute Position Embeddings23 Oct 2022
- 2022Learning Self-Regularized Adversarial Views for Self-Supervised Vision Transformers16 Oct 2022
50 newest of 76 All 76 (JSON)
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2024MambaByte: Token-free Selective State Space Modelcited by 59
- 2024MambaByte: Token-free Selective State Space Model24 Jan 2024
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,135
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2023Localizing Model Behavior with Path Patchingcited by 195
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 194
- 2024Lessons from the Trenches on Reproducible Evaluation of Language Modelscited by 179
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2021A Token-level Reference-free Hallucination Detection Benchmark for Free-form Text Generationcited by 138
- 2021Position Information in Transformers: An Overviewcited by 103
- 2021Finetuning Pretrained Transformers into RNNscited by 96
12 most cited of 71 All 71 (JSON)
- 2026Branch-Centric Tokenization and Test-Time Augmentation for Skeleton Generation5 Sep 2026
- 2026Learning to Solve Complex Problems via Dataset Decomposition23 Feb 2026
- 2026Position Encoding with Random Float Sampling Enhances Length Generalization of Transformers15 Feb 2026
- 2025Length-MAX Tokenizer for Language Models25 Nov 2025
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space25 Nov 2025
- 2025Progressive Growing of Patch Size: Curriculum Learning for Accelerated and Improved Medical Image Segmentation27 Oct 2025
- 2025From Global to Local: A Scalable Benchmark for Local Posterior Sampling29 Jul 2025
- 2025PIPE: Physics-Informed Position Encoding for Alignment of Satellite Images and Time Series27 May 2025
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corpora10 Apr 2025
- 2025Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibration1 Feb 2025
- 2024Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequences6 Nov 2024
- 2024Predictor-Corrector Enhanced Transformers with Exponential Moving Average Coefficient Learning5 Nov 2024
12 newest of 71 All 71 (JSON)