El Pop

My personal interests, reflections, and thoughts


Differences between LLM and NCM

Based on recent developments in AI research (specifically the October 2026 work from Hazy Research at Stanford), the difference between LLMs (Large Language Model) and NCM (Next-Concept Modeling) represents a fundamental shift in how models generate language—moving from “next-token” prediction to “next-concept” hierarchy.

Comparison at a Glance

FeatureLLM (Traditional Autoregressive)NCM (Next-Concept Modeling)
Core UnitTokens (individual sub-words/characters)Concepts (learned discrete latent codes)
Generation StrategyAutoregressive (Sequential)Hierarchical (Coarse-to-Fine)
ProcessPredicts token N based on tokens 1 \dots N-1.Predicts a global structure, then refines details level-by-level.
ParallelismVery low during inference (must wait for each token).High within each level (all codes at a scale are predicted together).
Speed/EfficiencySlow (latency scales linearly with sequence length).Fast (latency scales with the number of hierarchy levels).

1. LLM: The Autoregressive Approach

Most current LLMs (like GPT-4 or Llama) use an autoregressive (AR) architecture.

  • Mechanism: The model operates like a chain. To write a sentence, it must first “decide” the first token, then use that token to decide the second, and so on.
  • The Bottleneck: This creates a massive computational bottleneck during inference. Because token #100 requires token #99, you cannot generate the whole sentence at once. This leads to the “streaming” text effect you see in chat interfaces.

2. NCM: The Hierarchical Approach

Next-Concept Modeling (NCM) introduces a multiscale hierarchy of representations.

  • Mechanism: Instead of a flat list of tokens, NCM uses a “coarse-to-fine” strategy.
    1. Level 1 (Global): It generates a high-level “concept” or summary of the entire response.
    2. Levels 2–N (Refinement): It adds layers of detail (intermediate concepts \to specific details \to final tokens).
  • The Breakthrough: While there is still a sequence (you must finish the “Global” level before the “Detail” level), there is parallelism within each level. NCM can predict hundreds of “concept codes” simultaneously.
  • Performance: Research indicates NCM can be 10–31× faster than previous non-autoregressive methods (like Diffusion models) because it requires significantly fewer sequential steps to reach the final text.

Summary of the Shift

If an LLM is like a person writing a book by deciding every single letter and word one after another, NCM is like an architect who first draws a rough blueprint, then adds the room layouts, then the furniture, and finally the fine textures. The architect finishes much faster because they aren’t stuck obsessing over a single nail before deciding where the wall goes.

VQ-VAE stands for Vector Quantized Variational Autoencoder.

To understand it, it helps to break it down by comparing it to a standard VAE. In short, while a standard VAE uses a continuous mathematical space to represent data, a VQ-VAE uses a discrete “dictionary” of values (the codebook).

1. The Context: VAE vs. VQ-VAE

  • Standard VAE (Continuous): An encoder turns an image or text into a set of numbers (a latent vector). These numbers can be anything (e.g., 0.1234...). Because the space is continuous, it is “smooth,” but it can be hard for other models to predict because there are infinite possibilities.
  • VQ-VAE (Discrete): Instead of allowing any number, the VQ-VAE forces the encoder’s output to “snap” to the nearest entry in a predefined Codebook (a collection of specific, learned vectors).

2. How it Works (The Three Steps)

  1. The Encoder: Takes the input (like an image or a chunk of text) and compresses it into a continuous latent vector.
  2. The Quantization Step (The “VQ” Part): This is the magic step. The model looks at the encoder’s vector and asks: “Which vector in my Codebook is most similar to this?” It then replaces the continuous vector with that specific codebook vector.
    • Analogy: Imagine you are describing a color. Instead of saying “a shade of blue with 43% green and 12% red” (continuous), you look at a box of Crayola crayons and say “Cerulean” (discrete). You have “quantized” the color to a specific, named entry.
  3. The Decoder: Takes these discrete “crayon colors” (the codebook vectors) and tries to reconstruct the original input.

3. Why is this important?

The ability to turn complex data into a discrete set of “codes” provides several massive advantages for AI:

  • Efficiency: It compresses data into a highly efficient “language” of discrete tokens.
  • Predictability (The NCM Connection): Because the output is a set of discrete codes, you can treat them like “words” in a sentence. This allows models like NCM (Next-Concept Modeling) to use Transformers to predict the next “concept” or “code” in a sequence, just like an LLM predicts the next word.
  • Structured Learning: It forces the model to ignore “noise” and focus only on the most meaningful, structural parts of the data that are worth having a code for in the dictionary.