CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

Chris Hay / Notebook / N-Q-LM-SCALE

The language model that gets smaller as it learns.

Working papers · 11 spreads

Sources, citation & publication record
About this noteRECORD +

A second note on Q-LM, a modern experiment that learns a grammar from sentences alone by grouping substrings that share a context. QLM-SCALE-001 measures how its cost grows. On more sentences of the same language, the grammar is largest with little data: at 300 of Colmerauer’s sentences it has 85,969 rules, uses 23,948 of them per sentence, and takes 613 milliseconds per next token. From 10,000 sentences to 105,138 it is the same 192 categories and 1,772 rules, at about a millisecond per next token, some 584 times less. A generated language does the same sooner. What keeps growing is the learner’s bookkeeping: every substring of every sentence, over a million at full size. On sentences from TinyStories it breaks. The learner takes the context of a substring to be the whole rest of its sentence, and in natural text such contexts almost never recur, so almost nothing merges: 5.4 million categories from 6.6 million substrings at 100,000 sentences, with the rules growing about linearly. Q-LM v2 starts again from contexts of a few words. Its first stages are a known technique, distributional word classes mixed with a 5-gram in the line of Brown et al. (1992). They beat the 5-gram, and with little data a small Llama-shaped transformer, but at 100,000 sentences the transformer is ahead by about 0.3 bits, and building classes on classes added almost nothing beyond an ensemble of independent class models.

N-Q-LM-SCALEOPENRECORDED 2026-11-27PUBLISHED · V1.0CITE ↓FOLLOW ↓

PUBLICATION HISTORY

Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.

  1. V1.0 · 2026-11-27 ↗

    First publication, after an independent fact-check against the repository's results documents and plans OPEN

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

MACHINE-READABLE HISTORY ↗

SOURCES & PROVENANCE

AUTHOR / Chris Hay · VERSION / 1.0

PUBLISHED 27 NOV 2026 · VERSION 1.0

CITE

CITE THIS

Research note · 1.0

Hay, C. (2026). The language model that gets smaller as it learns. (Version 1.0). Chris Hay. https://chrishayuk.com/records/N-Q-LM-SCALE/1.0