Pith. sign in

REVIEW 5 cited by

Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2401.17377 v4 pith:6X3OV4BR submitted 2024-01-30 cs.CL cs.AIcs.IR

classification cs.CLcs.AIcs.IR
keywords graminftyneuralllmsinfini-gramlanguagemodelstext
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
abstract

Are $n$-gram language models still relevant in this era of neural large language models (LLMs)? Our answer is yes, and we showcase their values in both text analysis and improving neural LLMs. This was done by modernizing $n$-gram LMs in two aspects. First, we train them at the same data scale as neural LLMs -- 5 trillion tokens. This is the largest $n$-gram LM ever built. Second, existing $n$-gram LMs use small $n$ which hinders their performance; we instead allow $n$ to be arbitrarily large, by introducing a new $\infty$-gram LM with backoff. Instead of pre-computing $n$-gram count tables (which would be very expensive), we develop an engine named infini-gram -- powered by suffix arrays -- that can compute $\infty$-gram (as well as $n$-gram with arbitrary $n$) probabilities with millisecond-level latency. The $\infty$-gram framework and infini-gram engine enable us to conduct many novel and interesting analyses of human-written and machine-generated text: we find that the $\infty$-gram LM has fairly high accuracy for next-token prediction (47%), and can complement neural LLMs to greatly reduce their perplexity. When analyzing machine-generated text, we also observe irregularities in the machine--$\infty$-gram agreement level with respect to the suffix length, which indicates deficiencies in neural LLM pretraining and the positional embeddings of Transformers.

Discussion (0). Sign in to comment.

Forward citations

Cited by 5 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Frontier AI performance across the business disciplines: a case-grounded benchmark of knowledge work and analytical reasoning

    cs.CL 2026-07 conditional novelty 7.0 of 10

    On a new 615-question business-case benchmark graded by AI against instructor rubrics, frontier LLMs score 87-88% partial credit but complete only about half the questions.

  2. When Trivia Is Not Trivial: Everyday Knowledge Failures in Multilingual LLMs

    cs.CL 2026-07 conditional novelty 6.0 of 10

    TriviaRoomQA shows open-weight LLMs are substantially weaker on everyday popular-culture quiz questions than on encyclopedic facts, with uneven access to knowledge across languages.

  3. The Holistic Storage of Verb+Up Phrases in Text-based and Audio-based Language Models

    cs.CL 2026-06 conditional novelty 6.0 of 10

    Frequency and predictability shift the internal representation of “up” inside V+up phrases away from standalone “up” in text and audio models, a pattern interpreted as holistic storage.

  4. LLM generation novelty through the lens of semantic similarity

    cs.LG 2025-10 conditional novelty 6.0 of 10

    An output is called novel when no semantically similar pretraining context can be retrieved; using this embedding-based measure, SmolLM models show longer-range reuse and instruction tuning increases novelty.

  5. Low-Perplexity LLM-Generated Sequences and Where To Find Them

    cs.CL 2025-07 conditional novelty 5.0 of 10

    Only about 40% of low-perplexity 6-token spans generated by Pythia-6.9B can be exactly matched to The Pile, and the authors categorize matched and unmatched spans into four classes.

Pith tools