Refining Packing and Shuffling Strategies for Enhanced Performance in Generative Language Models
Not on the map. Why?
Abstract (arXiv)
Packing and shuffling tokens is a common practice in training auto-regressive language models (LMs) to prevent overfitting and improve efficiency. Typically documents are concatenated to chunks of maximum sequence length (MSL) and then shuffled. However setting the atom size, the length for each data chunk accompanied by random shuffling, to MSL may lead to contextual incoherence due to tokens from different documents being packed into the same chunk. An alternative approach is to utilize padding, another common data packing strategy, to avoid contextual incoherence by only including one document in each shuffled chunk. To optimize both packing strategies (concatenation vs padding), we investigated the optimal atom size for shuffling and compared their performance and efficiency. We found that matching atom size to MSL optimizes performance for both packing methods (concatenation and padding), and padding yields lower final perplexity (higher performance) than concatenation at the cost of more training steps and lower compute efficiency. This trade-off informs the choice of packing methods in training language models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 6 of its 17 references that are in the map. First posted on arXiv 19 Aug 2024.
Builds on
6 of 17 references.
References · 6
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2022Word Order Does Matter (And Shuffled Language Models Know It)cited by 32
- 2024Analysing The Impact of Sequence Composition on Language Model Pre-Trainingcited by 25
- 2023RINAS: Training with Dataset Shuffling Can Be General and Fastcited by 3
- 2019Partially Shuffling the Training Data to Improve Language Modelscited by 1
Built on by
Not cited yet.