TL;DR
When teaching AI models to turn continuous signals like images and audio into discrete "words" (a process called Vector Quantization), the learned dictionary often suffers from codebook collapse—leaving most of its capacity completely unused. While recent fixes throw heavy neural networks at the dictionary to keep it alive, this paper shows you can get the same—or better—results with zero extra trainable parameters just by normalizing the dictionary and scaling it to match the data's variance.
What Problem Does This Paper Address?
Modern multimodal foundation models love discrete tokens. To feed continuous data like images or speech into autoregressive language-style models, we rely on Vector Quantization (VQ). A VQ model compresses continuous encoder features by mapping them to their nearest neighbor in a finite dictionary of vectors, known as a codebook.
As models grow, we want massive codebooks (tens of thousands of entries) to capture fine details. However, scaling up triggers a notorious failure mode: codebook collapse. During training, the encoder's output distribution shifts, leaving most codebook entries stranded far from the actual data. Because only the "winning" nearest-neighbor vectors get updated, stranded vectors become "dead codes," and the model ends up using a tiny fraction of its vocabulary.
Recently, researchers have solved this by reparameterizing the codebook—passing base vectors through learnable linear layers, hypernetworks, or even Transformers before quantization. It works, but adds serious optimization and parameter overhead. The author asks a refreshingly simple, Feynman-esque question: How much of that mathematical machinery do we actually need?
Methods
Enter Adaptive-Scale Vector Quantization (ASVQ). Instead of learning dense rotations or nonlinear transformations, ASVQ keeps standard nearest-neighbor quantization and the classic VQ loss, but explicitly decouples the codebook's geometry (direction/layout) from its scale (channel-wise spread).
ASVQ introduces two parameter-free operations before looking up nearest neighbors:
- Codebook Normalization: Each channel across the base codebook is divided by its standard deviation (without shifting the mean). This locks the base codebook to unit scale, forcing gradient updates to focus purely on relative spatial geometry.
- Global Channel Scaling: The model tracks the channel-wise standard deviation of the incoming encoder features across mini-batches using an Exponential Moving Average (EMA)—much like Batch Normalization.
The effective codebook is simply the normalized base codebook multiplied element-wise by this EMA scaling vector. Crucially, because the scale is estimated directly from encoder statistics rather than learned via gradient descent, every codeword automatically expands or contracts to match the live data distribution, even if it hasn't been selected recently.
Datasets
The paper evaluates ASVQ on existing, standard benchmarks across two modalities (no new datasets are introduced):
- ImageNet-1k: $128 \times 128$ images for controlled VQ-VAE reconstruction studies.
- FFHQ (Flickr-Faces-HQ): $256 \times 256$ high-resolution face images for perceptual VQGAN evaluation.
- LibriTTS-clean: Speech data (1-second audio windows) to test generalization as an acoustic codec.
Key Insights and Ideas
- Complex methods spend half their energy just chasing scale: By analyzing training checkpoints of expressive methods (like SimVQ, MQ, and Transformer-based FVQ), the author found that 40% to 50% of their total codebook movement is spent simply adjusting channel-wise scale—compared to just 8% in vanilla VQ. Explicitly separating scale absorbs this heavy lifting for free.
- Decoupling beats learnable affine parameters: A prior method, AffineVQ, learns scale and shift via gradient descent, yet collapsed to 6.0% utilization in controlled tests. Why? Because without normalizing the base codebook first, scale is redundantly split between two learnable variables, and updates still depend on which codes win the nearest-neighbor contest. Ablations prove both pieces of ASVQ are needed: normalization alone (5.4% utilization) or scaling alone (9.6%) fail, while together they hit 99.7%.
- Uniform manifold coverage without the bloat: t-SNE visualizations show that while vanilla VQ suffers from severe "cluster shrinkage" (clumping codes into a tiny corner of latent space), simple diagonal scaling allows codewords to spread cleanly and uniformly across the data manifold.
Key Results
Across image and audio tasks, ASVQ matches or beats heavyweight reparameterizations with zero extra trainable parameters:
- ImageNet-1k (VQ-VAE, 16,384 codes): Vanilla VQ collapses to 4.3% utilization (24.09 PSNR). FVQ uses 886,016 extra parameters to hit 100% utilization and 24.60 PSNR. ASVQ uses 0 extra parameters to achieve 99.7% utilization, alongside the best reconstruction quality (25.17 PSNR, 73.85 SSIM). Scaling up to 65,536 codes pushes ASVQ to 100.0% utilization and 25.55 PSNR.
- FFHQ (VQGAN, 16,384 codes): ASVQ lifts codebook utilization from 2.3% (standard VQGAN) to 97.8%, achieving the best perceptual reconstruction quality (2.63 rFID, 0.07 LPIPS) and outperforming even a 100,000-code VQGAN-LC baseline (3.81 rFID).
- LibriTTS Audio Codec: At 1.2 kbps (65,536 codes), Vanilla VQ completely collapses (0.1% utilization). ASVQ maintains 83.9% utilization, edges out SimVQ on speech quality metrics (2.05 PESQ, 0.90 STOI), and eliminates the severe early-training loss spikes seen in baselines.
Limitations and Future Work
- Tokenizer-only evaluation: Experiments stop at reconstruction and tokenization metrics; ASVQ hasn't yet been tested inside downstream autoregressive generation or multimodal understanding models.
- Heuristic theory: The mathematical intuition relies on local, fixed-assignment approximations rather than a complete, rigorous theory of discontinuous VQ training dynamics.
- Off-diagonal correlations: Because ASVQ only scales individual channels (a diagonal transformation), it cannot rotate space. In latent spaces with strong cross-channel correlations or complex nonlinear manifolds, richer transformations may still win out—hinted at by SimVQ slightly outperforming ASVQ on audio codebook utilization.
Summary updated