NCM Next Concept Modeling

ECOSYSTEM research · Machine Learning

Next Concept Modeling (NCM) is a two stage, coarse to fine language modeling framework introduced by Stanford’s HazyResearch in October 2026. Instead of generating text sequentially one token at a time, NCM represents a sequence as a multiscale hierarchy of discrete latent codes and generates all positions within each hierarchical level in parallel.

Architecturally, NCM is autoregressive across hierarchy levels, but non autoregressive across token positions within the same level . This shifts the inference bottleneck from sequence length $L$ to hierarchy depth $K$, enabling low latency parallel generation and explicit global planning.

1. Mathematical Foundations

NCM replaces flat token sequences with a multiscale hierarchy of discrete codes learned via a Multiscale Residual Vector Quantized Variational Autoencoder (VQ VAE).

Vector and Residual Quantization

Given continuous latent vectors $z \in \mathbb{R}^{L \times d}$ and a discrete codebook $\mathcal{V} = \{e 1, \dots, e {\vert{}\mathcal{V}\vert{}}\}$ with entries $e j \in \mathbb{R}^d$, standard vector quantization maps each vector $z i$ to its nearest codebook entry:

$z q^i = \arg\min {e \in \mathcal{V}} \Vert{} z i e \Vert{} 2^2$

Because a single quantization step introduces approximation error, Residual Quantization iteratively quantizes the remaining error across $K$ codebooks. Initializing the residual $z^{(0)} = z$ and cumulative reconstruction $\hat{z}^{(0)} = 0$, level $k$ quantizes the current residual into codes $r k$ and updates both states:

Back to ECOSYSTEM research