mlsanityData to 14 Oct 2026

The COUNT: Counting N-grams Unlocks Scaling on Host Memory and Training-Free Adaptation

arXiv 2610.20456 ↗First posted 14 Oct 2026cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

The scaling relationship of compute and performance for language models (LMs) has been extensively studied; more recently, models are being designed to scale memory use, as well. In particular, adding embeddings for n-grams scales memory separately from compute use, because each pass only processes individual embedding rows, which are much smaller than the storage used for the whole embedding table. However, existing methods train embeddings from scratch, which needs expensive GPU memory for fast reading and writing. Meanwhile, the ordinary memory of the host system is cheap and underutilized by these training methods. To scale on host memory, we introduce COUNT (Counting Offline Unlocks N-gram Transformers), which builds n-gram embeddings without adding learned parameters by storing precomputed n-gram counts on host. We use the corpus frequencies to weight together the LM's own unembeddings of the next tokens most often following the current n-gram history. At a fixed compute budget, COUNT can be added as an additional input embedding for pretraining 1B-parameter LMs to improve validation loss as much as an LM with 57% more compute. If GPU memory is limited, using COUNT to let backbone parameters fill GPU memory gives better performance than splitting memory with additional learned n-gram embeddings. Beyond efficiency, COUNT allows switching in a different table of n-gram counts from a domain-specific corpus at inference time to adapt to a new task without any training.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 42 of its 54 references that are in the map. First posted on arXiv 14 Oct 2026.

Builds on

42 of 54 references.

References · 42

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2020Scaling Laws for Neural Language Modelscited by 6,586
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  8. 2021Program Synthesis with Large Language Modelscited by 3,637
  9. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  10. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  11. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  12. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
30 more
  1. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
  2. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
  3. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  4. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  5. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  6. 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,356
  7. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  8. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  9. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
  10. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  11. 2018CoQA: A Conversational Question Answering Challengecited by 683
  12. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
  13. 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 232
  14. 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 153
  15. 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 146
  16. 2024Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabulariescited by 118
  17. 2024OLMES: A Standard for Language Model Evaluationscited by 106
  18. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 86
  19. 2025Organize the Web: Constructing Domains Enhances Pre-Training Data Curationcited by 76
  20. 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 56
  21. 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 54
  22. 2025Over-Tokenized Transformer: Vocabulary is Generally Worth Scalingcited by 44
  23. 2024SciRIFF: A Resource to Enhance Language Model Instruction-Following over Scientific Literaturecited by 41
  24. 2025DataDecide: How to Predict Best Pretraining Data with Small Experimentscited by 40
  25. 2025Scaling Embedding Layers in Language Modelscited by 20
  26. 2022N-Grammer: Augmenting Transformers with latent n-gramscited by 14
  27. 2016Generalizing and Hybridizing Count-based and Neural Language Modelscited by 11
  28. 2026MeKi: Memory-based Expert Knowledge Injection for Efficient LLM Scalingcited by 7
  29. 2026Tensorizing Engram: Sharing Latents Across N-Gram Embeddings is Beneficial in LLMscited by 3
  30. 2026NGM: A Plug-and-Play Training-Free Memory Module for LLMscited by 1

Built on by

Not cited yet.