StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Training
Bao Tang, Jiahao Guo, Haoxiang Cao, Wenyu Liu, Changqian Yu, Kun Gai, Xinggang Wang
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Diffusion & Image Generation › Vector-Quantized Diffusion and Compression · Type: new method · Keywords: vector quantization, image tokenizer, training stability, dynamic straight-through estimator, region VQ loss, decoupled schedule
Areas: Model Architectures & Sequence Modeling › Vision and Generative Architectures › Discrete Image Tokenization
Summary
StableVQ provides practical guidelines and three technical improvements-Dynamic STE, Region VQ Loss, and Decoupled Schedule-to stabilize training of vector-quantized tokenizers, achieving better codebook utilization and reconstruction quality without adding learnable parameters.
Explained to a 5-year-old
We teach a computer to turn pictures into small words. The computer has two parts: one that makes the words, and one that stores them. Sometimes these parts fight each other and the learning gets messy. This paper helps them work together nicely by giving each part its own special tricks. After the tricks are used, the computer can make better pictures without needing extra parts.
Explained to a 5-year-old, longer
Imagine you have a toy that draws pictures by using a small set of special symbols. The toy has a brain that decides which symbols to use, and a box that remembers what each symbol means. When you try to teach the toy new pictures, the brain and the box sometimes get confused, and the toy makes mistakes. The researchers noticed this problem and thought about why it happens. They realized the brain and the box should each have their own job and learn at their own speed. So they gave the brain a new way to learn that stays calm even when it doesn't know many symbols. They also gave the box a new way to remember symbols that works even if the brain is not perfect. Finally, they let the brain and the box learn at different rates, like two friends walking together but at different paces. With these three friendly changes, the toy learns to draw pictures more reliably and uses its symbols better, all without adding extra parts or complicated equipment.
For a technical reader
The paper addresses training instability in vector-quantized image tokenizers caused by coupled encoder-decoder and codebook optimization. It introduces a dynamic straight-through estimator to stabilize encoder updates, a region-based VQ loss to make the codebook track encoder outputs independently, and separate learning-rate schedules for each component. These changes lead to more reliable training, higher codebook usage, and better reconstruction quality without increasing model size.
Problem
Training discrete visual tokenizers using vector quantization is unstable because the encoder-decoder and codebook modules are entangled, each depending on the other's dynamics, leading to fragile training that fails when codebook utilization is low.
Method
It corrects the encoder's learning objective with a dynamic straight-through estimator to make it robust under low codebook utilization, and it redefines the codebook's objective so that it can independently track the encoder's output distribution. Additionally, it uses separate learning-rate schedules for the encoder-decoder and codebook to match their distinct optimization dynamics.
Results
The approach yields consistently higher training stability, better codebook utilization, and improved reconstruction quality across various codebook sizes and initialization settings on ImageNet.
Contributions
It identifies the root cause of instability in encoder-decoder and codebook training and proposes three technical solutions-dynamic straight-through estimator, region VQ loss, and decoupled learning-rate schedule-that enable independent optimization of each module, resulting in stable VQ tokenizer training without added parameters.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction