Scalable Training for Vector-Quantized Networks with 100% Codebook Utilization

Yifan Chang, Jie Qin, Limeng Qiao, Xiaofeng Wang, Zheng Zhu, Lin Ma, Xingang Wang

TL;DR

Researchers have introduced FVQ (FullVQ), a training framework that achieves 100% codebook utilization in vector-quantized networks, even when scaling to massive sizes (262k+ codes). By using a novel VQBridge module to enable global interaction between code vectors during training, they’ve set new state-of-the-art benchmarks for image reconstruction and autoregressive generation.

The Challenge of Codebook Collapse

In the world of AI image generation, "tokenizers" serve as the bridge between continuous pixels and discrete data that autoregressive models (like LlamaGen) can process. Most of these tokenizers rely on Vector Quantization (VQ)—a process where an image feature is mapped to the closest "code" in a pre-defined library called a codebook.

However, training these codebooks is notoriously difficult. Because the mapping process isn't naturally differentiable, researchers use a "straight-through estimator" (STE) to pass gradients. This leads to three major headaches:

  1. Estimation Bias: The gradients are just an approximation.
  2. One-Step-Behind Updates: The model aligns with where the codebook was, not where it is.
  3. Codebook Collapse: Most of the codebook vectors end up "dead" or unused because they never receive enough gradient signal to become useful.

As a result, simply making the codebook larger usually doesn't help; the model just ignores the extra capacity.

The FVQ Solution: VQBridge

To solve this, the authors propose a simple but powerful architectural tweak called VQBridge, transforming the training process into FVQ (FullVQ).

Model Architecture comparing standard VQ with FVQ's VQBridge
  • The VQBridge Module: Instead of treating each code vector as an isolated island, VQBridge uses a "compress–process–recover" pipeline. It takes the entire codebook, groups it into patches, and runs them through Vision Transformer (ViT) blocks.
  • Global Interaction: Because ViT blocks use self-attention, every code vector can "talk" to every other vector. This allows strong gradient signals from frequently used codes to flow into unused ones, effectively "reviving" them.
  • Learning Annealing: They combine this architecture with a specific learning rate schedule to fix the "one-step-behind" alignment issue.
  • Zero Inference Cost: Crucially, VQBridge is only used during training. Once the model is trained, the bridge is discarded, leaving behind a perfectly optimized, high-utilization codebook that adds zero overhead to the final model.

Key Insights and Results

The researchers validated their approach using standard computer vision benchmarks like ImageNet-1k and COCO 2017. The most striking insight is that codebook collapse isn't inevitable. By forcing the codebook to undergo a global transformation during training, the model can no longer "hide" unused vectors.

Performance comparison showing FVQ outperforming baselines in generation and reconstruction
  • 100% Utilization at Scale: FVQ achieved full codebook usage across all configurations, including a massive 262,144-entry codebook. For context, standard VQGANs often use less than 6% of their codebook at that scale.
  • SOTA Reconstruction: FVQ achieved a reconstruction FID (rFID) of 0.88 on ImageNet, significantly better than previous leaders like IBQ (1.00) or VQGAN (4.98).
  • Superior Generation: When plugged into the LlamaGen framework, FVQ-XL achieved an FID of 2.07. This outperforms the popular Visual Autoregressive (VAR) model (2.57) and even the Diffusion Transformer (DiT-XL/2) at 2.27.
  • Efficiency: VQBridge only adds about 3M parameters (roughly 4% of the total model size) during training and has a negligible impact on training time.

Limitations and Future Work

While FVQ represents a major leap, the authors note a few areas for growth:

  • Generator Capacity: As codebooks get larger, the "vocabulary" for the generative model grows. This increases the parameter count of the generator's final layer, making it more computationally expensive to train the downstream model.
  • Dataset Scale: The current study focused on ImageNet. The authors plan to scale training to much larger, unlabelled datasets like LAION-COCO to see if the reconstruction gains continue to hold.
  • Unified Tokenization: Scaling vector channels to higher dimensions could allow these tokenizers to work better with semantic models like CLIP, potentially leading to a "unified" tokenizer for both seeing and generating.

Summary updated

BibTeX
@inproceedings{chang2026scalable,
  author = {Yifan Chang and Jie Qin and Limeng Qiao and Xiaofeng Wang and Zheng Zhu and Lin Ma and Xingang Wang},
  title = {{Scalable Training for Vector-Quantized Networks with 100\% Codebook Utilization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=juM14y0caI},
}
Figure