StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Training

Bao Tang, Jiahao Guo, Haoxiang Cao, Wenyu Liu, Changqian Yu, Kun Gai, Xinggang Wang

Huazhong University of Science and Technology · KlingAI Research · South China Normal University

Published September 22, 2026 · on the feed September 23, 2026 · ▲ 54 · arXiv 2609.26774

Efficiency & inferenceModel architecture No code arXiv ↗Hugging Face ↗

The abstract

Vector Quantization (VQ) is fundamental to discrete visual tokenizers that power modern autoregressive and masked image generation models. While recent shared-projection codebook methods have substantially advanced codebook utilization, training stability remains a critical and underexplored challenge. We argue that the root cause lies in the entanglement of the Encoder--Decoder and Codebook training: because neither module can reliably fulfill its own responsibility in isolation, the system can only function when the two subsystems happen to cooperate---a fragile condition that breaks down precisely when training is most stressed. We propose StableVQ, which revisits the proper learning objective of each module and resolves the problems that arise when each is trained to fulfill its own role independently. Concretely, (1) Dynamic STE corrects the instability in the Encoder's learning objective, enabling it to robustly optimize the reconstruction space under discrete regularization even when codebook utilization is low. (2) Region VQ Loss reconceives the Codebook's learning objective so that it can independently guarantee full tracking of the encoder output distribution, without relying on encoder oscillations to drive activation. (3) Decoupled Schedule recognizes that the distinct responsibilities of the Encoder--Decoder and the Codebook demand distinct optimization dynamics, and assigns each an independent learning rate schedule to ensure robust system-level behavior. Built on top of shared-projection codebooks, StableVQ is lightweight and introduces no learnable parameters. Experiments on ImageNet demonstrate consistent improvements in training stability, codebook utilization, and reconstruction quality across diverse codebook sizes and initialization settings.

The Brief

2:53

A short podcast summary of the paper. Written and voiced by AI.

Transcript

StableVQ. Practical Guidelines for Stable Vector-Quantized Tokenizer Training. By Bao Tang and six others, from the Huazhong University of Science and Technology, Kling AI Research, and one other institution. Published on the twenty-second of September. No code repository is linked to it.

Vector Quantization, or VQ, sits at the heart of the discrete visual tokenizers that power modern autoregressive and masked image generation. Recent shared-projection codebook methods have made large gains in codebook utilization. Training stability, though, remains a critical challenge that has received little attention. Utilization asks how much of the codebook gets used. Stability asks whether training holds together at all, and the second can fail even when the first looks good.

The authors locate the root cause in entanglement between the encoder-decoder and the codebook during training. Neither module can reliably do its own job in isolation. So the system only works when the two happen to cooperate, and that is a fragile condition, one that breaks down precisely when training is under the most stress.

StableVQ revisits the proper learning objective of each module, so that each can be trained to fulfil its own role independently, and resolves the problems that arise when it is. The aim is to replace a fragile cooperation with two parts that each work on their own. If the encoder can do its job regardless of the codebook, and the codebook can do its job regardless of the encoder, then a bad moment for one no longer drags down the other.

It makes three changes. First, Dynamic STE corrects the instability in the encoder's learning objective. That lets the encoder robustly optimize the reconstruction space under discrete regularization, even when codebook utilization is low. Second, Region VQ Loss reconceives the codebook's learning objective, so that the codebook can independently guarantee full tracking of the encoder's output distribution, without relying on oscillations in the encoder to drive activation.

Third, Decoupled Schedule recognises that the encoder-decoder and the codebook have distinct responsibilities, and so need distinct optimization dynamics. Each is given its own learning rate schedule, to ensure robust behaviour at the level of the whole system. StableVQ is built on top of shared-projection codebooks, is lightweight, and adds no learnable parameters.

Experiments on ImageNet show consistent improvements in training stability, codebook utilization and reconstruction quality. Those improvements hold across diverse codebook sizes and initialization settings. Breadth is the relevant test for a stability method. A fix that worked at one codebook size, from one starting point, would say little about whether the underlying fragility had been removed.

The diagnosis shapes the cure. If instability comes from two modules that only work when they happen to cooperate, the fix is to give each one an objective, and a schedule, that it can satisfy on its own. Every one of the three changes is a way of cutting that dependency.

Paper Quest · 7 chapters · about 37 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

The codebook is busy, yet training still falls apart. Why?

You train an image tokenizer that maps image features to entries in a learned codebook. Recent tricks get most codebook entries used.

The road ahead

  1. 1 · The problem ~7 min An image tokenizer has two parts, an encoder and a codebook, that only train well when both behave, so one stumble topples both.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Stop relying on luck: give the encoder and the codebook each an objective it can meet alone, plus a learning rate schedule suited to its job.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Begin with a shared-projection codebook, then fix the encoder's gradients, give every code a target, and schedule each module separately.
  6. 6 · Field test ~3 min
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.