mlsanityData to 14 Oct 2026

Analysing The Impact of Sequence Composition on Language Model Pre-Training

arXiv 2402.13991 ↗First posted 21 Feb 2024cs.CLcited by 25

Not on the map. Why?

Abstract (arXiv)

Most language model pre-training frameworks concatenate multiple documents into fixed-length sequences and use causal masking to compute the likelihood of each token given its context; this strategy is widely adopted due to its simplicity and efficiency. However, to this day, the influence of the pre-training sequence composition strategy on the generalisation properties of the model remains under-explored. In this work, we find that applying causal masking can lead to the inclusion of distracting information from previous documents during pre-training, which negatively impacts the performance of the models on language modelling and downstream tasks. In intra-document causal masking, the likelihood of each token is only conditioned on the previous tokens in the same document, eliminating potential distracting information from previous documents and significantly improving performance. Furthermore, we find that concatenating related documents can reduce some potential distractions during pre-training, and our proposed efficient retrieval-based sequence construction method, BM25Chunk, can improve in-context learning (+11.6%), knowledge memorisation (+9.8%), and context utilisation (+7.2%) abilities of language models without sacrificing efficiency.

Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Builds on 36 of its 43 references that are in the map. First posted on arXiv 21 Feb 2024.

Builds on

36 of 43 references.

References · 36

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  4. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  5. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  7. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  8. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  9. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  10. 2017Billion-scale similarity search with GPUscited by 2,497
  11. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  12. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
24 more
  1. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  2. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  3. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
  4. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
  5. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
  6. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  7. 2021Deduplicating Training Data Makes Language Models Bettercited by 714
  8. 2024TinyLlama: An Open-Source Small Language Modelcited by 618
  9. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  10. 2023Textbooks Are All You Needcited by 569
  11. 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 417
  12. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
  13. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  14. 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 303
  15. 2023D4: Improving LLM Pretraining via Document De-Duplication and Diversificationcited by 150
  16. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  17. 2023LLM360: Towards Fully Transparent Open-Source LLMscited by 104
  18. 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 81
  19. 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 79
  20. 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 75
  21. 2023Pre-Training to Learn in Contextcited by 42
  22. 2021The Inductive Bias of In-Context Learning: Rethinking Pretraining Example Designcited by 33
  23. 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 25
  24. 2023Structured Packing in LLM Training Improves Long Context Utilizationcited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 9; 2025: 7; 2026: 9.

25 papers.

Sort:

By area:

  1. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
  2. 2025Why do LLMs attend to the first token?cited by 127
  3. 2024A Simple and Effective L2 Norm-Based Strategy for KV Cache Compressioncited by 86
  4. 2025Sailor2: Sailing in South-East Asia with Inclusive Multilingual LLMscited by 18
  5. 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
  6. 2024Enhancing Training Efficiency Using Packing with Flash Attentioncited by 12
  7. 2024Prepacking: A Simple Method for Fast Prefilling and Increased Throughput in Large Language Modelscited by 10
  8. 2026Data-efficient pre-training by scaling synthetic megadocscited by 7
  9. 2024Shaking Up VLMs: Comparing Transformers and Structured State Space Models for Vision & Language Modelingcited by 6
  10. 2025SkyLadder: Better and Faster Pretraining via Context Window Schedulingcited by 6
  11. 2024Mixture-of-Instructions: Aligning Large Language Models via Mixture Promptingcited by 4
  12. 2025Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worldscited by 4
13 more
  1. 2025Trillion 7B Technical Reportcited by 4
  2. 2025From Scaling to Structured Expressivity: Rethinking Transformers for CTR Predictioncited by 3
  3. 2026Beyond Rephrasing: Book-Level Organization Improves Synthetic Textbook Data for Mid-Trainingcited by 3
  4. 2025Scaling Context, Not Parameters: Training a Compact 7B Language Model for Efficient Long-Context Processingcited by 2
  5. 2024Threshold Filtering Packing for Supervised Fine-Tuning: Training Related Samples within Packscited by 1
  6. 2024Refining Packing and Shuffling Strategies for Enhanced Performance in Generative Language Modelscited by 0
  7. 2026Whole-Piece Training for Symbolic Music Language Models via Full-Horizon Compressed Recurrencecited by 0
  8. 2026Pretraining EHR Foundation Models with Patient-Aware Samplingcited by 0
  9. 2026Hierarchical Solomonoff Induction: An Unbounded Machine Learning Modelcited by 0
  10. 2026Foresight-England: Development of a National-Scale Generative AI Model of Electronic Health Records for Medical Event Prediction across the COVID-19 Pandemiccited by 0
  11. 2026Zephon: Elastic Determinism for Online, Stateful Foundation Model Data Loading Pipelinescited by 0
  12. 2026Sequence Composition in EHR Foundation Model Pretrainingcited by 0
  13. 2026Fish Audio Drama 3 Technical Reportcited by 0