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

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

Introduction

Vector Quantization (VQ) serves as the foundational technology for modern discrete tokenizers, such as VQ-VAE and VQGAN. By mapping continuous image data into a sequence of discrete tokens from a learned codebook, these models enable large language models (LLMs) to perform high-quality image generation. While scaling the codebook size should theoretically improve representation quality, practical implementations often suffer from "codebook collapse." In this state, the network utilizes only a small fraction of the available vectors, leading to suboptimal performance and wasted capacity.

This paper introduces FVQ (FullVQ), a training framework designed to eliminate codebook collapse and achieve 100% utilization, even when scaling to massive codebook sizes of up to 262k entries.

Overview of FVQ performance and architecture. The left panels show superior generation and reconstruction FID compared to baselines. The right panel illustrates the VQBridge training module.

The VQBridge Framework

The primary innovation of FVQ is VQBridge, a "compress-process-recover" projector that addresses the inherent instabilities of VQ training. Standard VQ training is plagued by Straight-Through Estimation (STE) bias, sparse gradients, and "one-step-behind" updates where the codebook and encoder/decoder become misaligned.

VQBridge mitigates these issues through a specialized architecture:

  1. Compress: The codebook is divided into groups and compressed via a linear projection.
  2. Process: Vision Transformer (ViT) blocks facilitate global interaction between code vectors, ensuring the codebook is optimized as a cohesive unit.
  3. Recover: The vectors are expanded back to their original dimensions.

Crucially, VQBridge is a training-only component. Once training is complete, the projected codebook is fixed, and the VQBridge module is discarded, ensuring no additional inference overhead. Furthermore, the authors employ learning rate annealing to mathematically resolve the misalignment between the encoder and the codebook.

Experimental Results

FVQ was evaluated on ImageNet-1k and COCO 2017, demonstrating significant improvements across both reconstruction and generation tasks.

100% Codebook Utilization

A standout result of FVQ is its ability to maintain 100% codebook usage across all configurations. As shown in the t-SNE visualizations below, standard VQ methods often cluster around a small subset of tokens, whereas FVQ ensures the entire latent space is effectively utilized.

t-SNE visualization of codebook utilization. VQBridge achieves 100% usage, distributing tokens uniformly across the latent space compared to standard and linear-layer baselines.

State-of-the-Art Benchmarks

  • Reconstruction: On ImageNet 256x256, FVQ achieved a reconstruction FID (rFID) of 0.88, outperforming previous leaders like IBQ (1.00).
  • Generation: When integrated with the LlamaGen autoregressive generator, FVQ achieved a generation FID of 2.07. This surpasses popular models like the Diffusion Transformer (DiT-XL/2, FID 2.27) and Visual Autoregressive (VAR) models (FID 2.57).

Discussion and Future Work

The success of FVQ suggests that the quality of the discrete tokenizer is a primary bottleneck in current generative modeling. By achieving perfect codebook utilization, FVQ allows simple autoregressive models to outperform more complex diffusion-based architectures. Future research will explore scaling these laws to multi-billion image datasets and developing unified tokenizers capable of both image understanding and generation within a single high-dimensional space.

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