COUNT paper: n-gram counts in host memory scale LM pretraining
An arXiv paper submitted on 14 October 2026, "The COUNT: Counting N-grams Unlocks Scaling on Host Memory and Training-Free Adaptation" by Ian Magnusson, Noah A. Smith and Pang Wei Koh, introduces COUNT (Counting Offline Unlocks N-gram Transformers). Rather than training n-gram embeddings from scratch on GPU memory, COUNT stores precomputed n-gram counts on host memory and uses corpus frequencies to weight the model's own unembeddings of the next tokens most often following a given n-gram history. The authors report that at a fixed compute budget, adding COUNT as an extra input embedding for pretraining 1B-parameter models improved validation loss as much as 57% more compute, and that when GPU memory is limited, letting backbone parameters fill GPU memory with COUNT outperformed splitting memory with additional learned n-gram embeddings. They also say swapping in a domain-specific table of n-gram counts at inference time adapts the model to a new task without training.
The authors argue host memory is cheap and underutilized by existing methods, letting COUNT scale n-gram memory separately from GPU compute.
Computer Science > Computation and Language
arXiv:2610.20456 (cs)
[Submitted on 14 Oct 2026]
Title:The COUNT: Counting N-grams Unlocks Scaling on Host Memory and Training-Free Adaptation
Authors:Ian Magnusson, Noah A. Smith, Pang Wei Koh
View a PDF of the paper titled The COUNT: Counting N-grams Unlocks Scaling on Host Memory and Training-Free Adaptation, by Ian Magnusson and 2 other authors