The reviewed record of science sign in
Pith

arxiv: 2408.09621 · v1 · pith:HLUCL2K5 · submitted 2024-08-19 · cs.CL

Refining Packing and Shuffling Strategies for Enhanced Performance in Generative Language Models

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:HLUCL2K5record.jsonopen to challenge →

classification cs.CL
keywords packingpaddingperformanceshufflingatomchunkconcatenationefficiency
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.