Efficient Training of Language Models with Compact and Consistent Next Token Distributions
Not on the map. Why?
Abstract (arXiv)
Maximizing the likelihood of the next token is an established, statistically sound objective for pre-training language models. In this paper we show that we can train better models faster by pre-aggregating the corpus with a collapsed n-gram distribution. Previous studies have proposed corpus-level n-gram statistics as a regularizer; however, the construction and querying of such n-grams, if done naively, prove to be costly and significantly impede training speed, thereby limiting their application in modern large language model pre-training. We introduce an alternative compact representation of the next token distribution that, in expectation, aligns with the complete n-gram distribution while markedly reducing variance across mini-batches compared to the standard next-token loss. Empirically, we demonstrate that both the n-gram regularized model and our approximation yield substantial improvements in model quality and convergence rate compared to existing methods. Furthermore, our approximation facilitates scalability of gains to larger datasets and models compared to the straightforward n-gram regularization method.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 30 of its 51 references that are in the map. First posted on arXiv 3 Jul 2024.
Builds on
30 of 51 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
18 more
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2019When Does Label Smoothing Help?cited by 985
- 2018Neural Network Acceptability Judgmentscited by 952
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2022BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Miningcited by 531
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2013One Billion Word Benchmark for Measuring Progress in Statistical Language Modelingcited by 302
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2016Exploring the Limits of Language Modelingcited by 172
- 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 74
- 2022Contrastive Search Is What You Need For Neural Text Generationcited by 58
- 2022ContraCLM: Contrastive Learning For Causal Language Modelcited by 18
- 2016Generalizing and Hybridizing Count-based and Neural Language Modelscited by 10
- 2021Language Modelling via Learning to Rankcited by 7
- 2016BPTree: an ℓ2 heavy hitters algorithm using constant memorycited by 4
- 2016New Algorithms for Heavy Hitters in Data Streamscited by 3
Built on by
Not cited yet.