What NCM's intermediate levels contain

Next-Concept Modeling (NCM) generates text coarse to fine over 12 levels of codes. Read with NCM's own decoder, the intermediate levels are not coarse text. Read with a masked-diffusion decoder trained on the same frozen codes, they are: 9 codes give the same story with different details. The same holds for Sudoku. This is a property of the decoder, not of the codes, and it is not a speed-up.

Setup

NCM (Kumbong, Khare et al., arXiv:2610.14162; code and checkpoints at github.com/HazyResearch/ncm) tokenizes a sequence xx of LL tokens into K=12K = 12 levels of codes with lengths 1, 8, 16, …, LL (641 codes for L=128L = 128). Level kk quantizes what the levels before it left unexplained, pooled to ℓk\ell_k positions; z^(k)\hat z^{(k)} is the reconstruction of the latent from levels 1 to kk. A transformer generates the levels in order and samples all codes of a level in parallel. A decoder then maps the final latent to tokens in one pass, p(x∣z^)=∏ip(xi∣z^)p(x \mid \hat z) = \prod_i p(x_i \mid \hat z). Everything below uses the released checkpoints. I trained only the decoders.

Observation

Decoding z^(k)\hat z^{(k)} for k<Kk < K with NCM's decoder does not give coarse text. On TinyStories, a held-out story at level 2 (9 codes) reads "big pit in a pit pit the pit", and 12.7% of tokens repeat the token before them (real text: 0.3%). LM1B gives a frequency-ordered word list, WMT14 "The the, the the the". A factorized decoder cannot do otherwise: where z^(k)\hat z^{(k)} leaves several texts possible, every position takes its own most likely token.

Figure (needs JavaScript).

Figure 1. One held-out story decoded from 9 codes by NCM's decoder, with words marked against the original and immediate repeats tinted.

A generative decoder on the same codes

I trained a masked-diffusion decoder (MDLM-style, 40M parameters, 50,000 steps; labelled "masked language flow decoder" in the figures) on the frozen tokenizer: p(x∣z^(k))p(x \mid \hat z^{(k)}) with kk drawn at random, sampled in 8 confidence-ordered steps. Tokenizer and generator are unchanged.

Interactive figure (needs JavaScript).

Figure 2. The first 20 held-out TinyStories openings in file order, truncated after the chosen level and decoded by both decoders, with words marked against the original; the refresh button steps through 10 samples of the new decoder from the same codes.

On 512 held-out stories at 9 codes: similarity to the original 0.76 against 0.65, Gen. PPL 22 against 82, repeated tokens 1.7% against 12.7%. At full depth both decoders reproduce the text. On the generator's own trajectories Gen. PPL is 26, 32, 33, 22, 15 after levels 2, 4, 6, 8, 12, against 97, 184, 109, 34, 15.

Interactive figure (needs JavaScript).

Figure 3. Similarity, Gen. PPL and repeated tokens per level for both decoders, on 512 held-out stories and on 512 generated trajectories.

Under an autoregressive decoder a story opening carries 208 bits. Levels 1 to 8 (237 codes) deliver 206 of them; the remaining 404 codes add 1.4. In generation the late levels still matter: stopping after level 8 gives Gen. PPL 21.9 against 15.2 at full depth, because the level-8 draft contains sampling errors that later levels correct.

Sudoku

The same experiment on the hard Sudoku model (30 clues, 2,000 test puzzles). With NCM's decoder, 97% of boards decoded after level 6 have fewer correct cells than the clues they were given, and no board is solved before level 11. The new decoder is trained on solved boards only and never sees a puzzle. Reading the generator's codes in one pass, it solves 35%, 82% and 89% of boards after levels 8, 9 and 10; NCM's decoder solves 0%, 0% and 0%, then 1.6% and 90.0% at levels 11 and 12. The generator has the solution three levels before its decoder shows it.

Interactive figure (needs JavaScript).

Figure 4. The first 20 hard test puzzles: the board decoded from the generator's codes after the chosen level by NCM's decoder and by the new decoder in one pass, with the clue cells dotted.

Figure (needs JavaScript).

Figure 5. Share of 2,000 hard Sudoku boards solved when the generator's codes are decoded after each level.

Control: the same decoder with no codes, given only the clues, solves 94.0% of these puzzles in 8 steps and 98.2% in 51, more than the generator. This is not comparable with the baselines in the paper's table: the training boards are my own and sampling is confidence-ordered.

Cost

FLOPs at batch 1 on TinyStories: generator 116 G (level 12 alone: 23 G), NCM's decoder 1.3 G, one pass of the new decoder 9.5 G. Stopping after level 8 and decoding in 8 steps costs 1.02× full depth and gives Gen. PPL 21.2 against 14.6: decoder steps replace generator levels. One pass from level 8 costs 0.45× and gives 21.7; NCM's decoder gives 33 at 0.38×. Early exit improves at matched cost and does not reach full-depth quality.

Figure (needs JavaScript).

Figure 6. Gen. PPL against FLOPs on TinyStories when the generator is stopped after each level and decoded with each setting (256 samples).

Limits

  • LM1B: coarse levels carry the topic, not the sentences (similarity 0.32 at 9 codes; stories: 0.76).
  • LM1B, generated trajectories: the new decoder is worse than NCM's at levels 6 to 10 (Gen. PPL 787 against 395 at level 8; 740 against 395 with the same token picker). A decoder trained on corrupted codes: pending.
  • Level 1 (one code) carries nothing on either dataset.
  • Gen. PPL rewards repetition. Similarity to the generator's final output favours NCM's decoder, whose output it is.
  • FLOPs are from torch.utils.flop_counter (2 per multiply-add, matrix products and attention only); nothing is compiled for either model.
  • XSum and WMT14: pendingpending.

Conclusion

The hierarchy is coarse to fine in the codes. NCM's factorized decoder does not show it; a decoder that models the tokens jointly does. What a coarse level decodes to is decided by the decoder.