Model & Training
Start always continues from the current weights, whether shipped, loaded or trained here; only Reset starts from scratch. The tokenizer trains at several steps a second here. The generator is much heavier: expect a second or more per step, so the shipped checkpoint (trained offline for 6,000 steps) is the one to explore.
The rate warms up over 50 steps, then decays to a tenth of the peak over 6,000 steps, counted from when the model was loaded or reset.
Model shape. Changing it takes effect on Reset and restarts training from scratch.
Training
Stage 1: tokenizer
Held-out characters right (%) when decoding only the first k levels; k below each bar
Share of each level's codebook used on held-out text (%); codes per window below each bar
Training loss, last 1,000 steps
Training loss, every step of this session
Stage 2: generator
Held-out loss per predicted level, nats per code; codes per window below each bar
Held-out codes predicted exactly (%)
Training loss, last 1,000 steps
Loss, every step of this session
Generate (uses the current weights)
Continue a prompt (uses the current weights)
Type a start; the line under it is the next 80 characters the model writes after it, redone whenever the text or the weights change. ↵ marks a line break and □ a character with nothing to show (a tab, for instance); a space is shown as a space. Temperature, top-k and seed are the ones set under Generate. The paper only generates without a prompt, so this conditioning is this page's own: codes that lie inside your text are fixed to what the tokenizer reads there, and the rest are generated, with up to 32 characters of context per window.
Coarse to fine: one generated window, level by level
Each row is one level. The coloured cells are the codes chosen at that level (colour = which code; hover for its number), and the text under them is what the decoder would write if generation stopped there. Grey characters still differ from the final text.
Tokenizer inspector
Codes per level, and the text the decoder recovers from the first k levels. Wrong characters are red and underlined; the right column is the share of characters recovered.
How often each code is used on held-out text, per level (most used first)
What this is
Most language models write one token at a time. Next Concept Modeling writes a whole passage at once, but in rounds: first a very coarse description, then finer and finer ones, and only at the end the actual characters. It has two parts that are trained one after the other.
1. The tokenizer: text into levels of codes
A window of 64 characters is turned into 64 small vectors. The tokenizer then describes those vectors in 12 levels. Level 1 has a single code for the whole window. Each later level has more codes, and the last has one per character. A level only has to describe what the levels before it left unexplained (the residual): it averages the leftover down to its own length, picks the nearest entry of its codebook at each position, stretches that back to full length and adds it to the running picture. During training the decoder is often shown only the first few levels, so early levels are forced to carry as much as they can.
2. The generator: predict the next level, all of it at once
With the tokenizer frozen, a transformer learns to predict the codes of level k from the picture built out of levels 1 to k−1. Every code of a level is predicted in the same forward pass, and positions only attend to their own level. Generating a window of 64 characters therefore takes 11 transformer passes, one per level after the first, instead of one per character. The first level is a single code and is simply drawn according to how often each code occurs in the training text.
Two details matter in training. The inputs are deliberately damaged: some of the earlier codes are swapped for random ones, more at coarse levels than at fine ones, so the model learns to cope with its own imperfect earlier choices. And the output layer is tied to the tokenizer's codebooks: the model proposes a vector and the scores are how close each codebook entry is to it.
3. Writing a window, step by step
Generation never looks at characters until the very end. It keeps one running picture, a grid of 64 vectors that starts out as all zeros, and refines it level by level:
- Draw the single level-1 code at random, weighted by how often each code occurs in the training text. Look it up in the level-1 codebook, stretch it to full length and add it to the picture. The picture now says roughly what kind of passage this is.
- For level 2, shrink the picture to that level's length (4 positions) and hand it to the transformer. It returns, for each position, a score for every codebook entry. Pick one code per position at random according to those scores; the temperature and top-k sliders control how adventurous that pick is.
- Look those codes up, stretch them to full length, smooth them with a small learned filter and add them to the picture.
- Repeat steps 2 and 3 for every remaining level. Each level has more positions than the last, so each pass adds finer detail: first the rough shape of the lines, then where the words fall, finally the individual letters.
- After the last level, the tokenizer's decoder reads the finished picture and writes one character per position.
The "Coarse to fine" panel above shows exactly this: the codes chosen at each level, and what the decoder would write if generation stopped there.
4. How the two parts learn
The tokenizer is trained to get the original characters back out of its own codes. Its loss has two terms. The reconstruction term asks the decoder to give the right character a high score at every position. The codebook term pulls the picture after each level towards the vectors it is supposed to describe, and the other way round. Choosing the nearest codebook entry is a hard choice with no slope to learn from, so the entries themselves are not trained by gradient: each one drifts towards the average of the vectors that picked it.
The generator is trained like a fill-in exercise on real text. A real window is run through the frozen tokenizer to get its codes at every level. For each level the generator is shown the picture built from the true earlier codes (with some of them swapped at random, as described above) and is scored on how much probability it gave to the true codes of that level. All levels of a window are trained in one pass, because positions only look at their own level. Fine levels have many more codes than coarse ones. The "level weighting α" slider sets how the two are balanced: at 0 every code counts equally, so the many fine codes dominate the loss, and higher values give the few coarse codes more say.
Why this could be faster than writing token by token: the number of transformer passes depends on the number of levels, not on the length of the text. The price is that codes within one level are chosen independently of each other, given the picture so far. Two neighbouring codes cannot coordinate within a level; they can only be reconciled by the next, finer level. That is why the coarse levels matter so much, and why the bars above show how well each level is predicted.
How this page differs from the paper
| Paper (TinyStories model) | This page | |
|---|---|---|
| Tokens | BPE word pieces, 128 per window | characters, 64 per window |
| Levels | 12, from 1 to 128 codes | 12, lengths 1, 4, 8, … (the paper's schedule at half length) |
| Codes per level | 4,096 | 16 |
| Size | about 36 M (tokenizer) + 89 M (generator) weights | – + – weights |
| Tasks | also summarisation, translation, Sudoku | unconditional text, plus this page's own way of continuing a prompt |
- The structure follows the authors' released code: an embedding-only encoder, a one-block decoder, learned down- and up-sampling for level 1 only, codebooks updated by moving averages, tied output heads, rotary positions restarting at each level.
- The paper says the corruption rate falls linearly from coarse to fine with a mean of 0.5, but the released code has no training loop, so the exact schedule here is this page's choice: the rate runs from the mean plus two thirds of it at the coarsest level to the mean minus two thirds at the finest. The default mean is 0.15, not 0.5. In our runs at this size a mean of 0.5 left the model barely better than guessing at the middle levels, and 0.15 gave clearly lower held-out loss and more word-like samples.
- Each level has 16 codes here. With 256 the tokenizer reconstructed just as well, but the codes carried several times more randomness than the text itself and the generator had to model all of it.
- Unused codebook entries are re-seeded from the data here. At the paper's batch sizes that is not needed.
What the numbers mean, and what to expect
All "held-out" numbers are measured on the last 5 % of the selected training text, which training on that selection never uses. If you switch the text without retraining, that slice may be text the current weights have already seen, so the numbers are only clean for the selection the model was trained on. The shipped checkpoint was trained offline with the same Rust code: its numbers appear above when the page loads.
This is a toy. With about a million weights and characters instead of word pieces, the output is word-shaped and often contains real English words, but it is not coherent prose, and nothing here reproduces the paper's quality or speed results. The page makes no speed comparison; it only counts forward passes.
Sources
Kumbong, Khare, Mlauzi, Woen, Ding, Buchanan, Arora, Mirhoseini, Ré: Next Concept Modeling, 2026, arXiv:2610.14162. Project page, code (MIT). Training text: Mary Shelley, Frankenstein (Project Gutenberg #84) and the "tiny shakespeare" extract of Shakespeare's plays from Andrej Karpathy's char-rnn, both public domain.