Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

NSVQ: Mitigating Codebook Collapse by Stabilizing Encoder Drift in Vector Quantization

About

Vector quantization is central to modern generative modeling pipelines, but large-codebook VQ models often suffer from codebook collapse. We identify encoder drift as a key driver of this failure: as the encoder moves the latent distribution, sparsely updated code vectors can lag behind, lose assignments, and increase quantization error, creating a feedback loop through the straight-through estimator. We propose NSVQ, a non-stationary-aware VQ training strategy that combines a dense non-stationary embedding loss, codebook replacement, and stage-wise encoder freezing. NSVQ first helps the codebook track encoder drift during early training, then freezes the encoder to consolidate the codebook under a fixed latent geometry, and finally reintroduces adversarial refinement. Experiments on ImageNet-1k show that NSVQ improves reconstruction quality while maintaining full codebook utilization. On ImageNet-1k at 128$\times$128 with 65,536 codes, NSVQ reduces rFID from 2.39 to 2.10 compared with SimVQ, while both methods maintain 100\% utilization. Additional latent diffusion experiments show that NSVQ also improves downstream ImageNet generation FID.

Hao Lu, Yongxin Guo, Onur Koyun, Zhengjie Zhu, Abbas Alili, Metin N. Gurcan• 2026

Related benchmarks

TaskDatasetResultRank
Image ReconstructionImageNet-1k 256 x 256 (val)
rFID2.89
144
Image GenerationImageNet 128x128 (val)
FID16.62
19
Image ReconstructionImageNet-1k 128x128 (val)
Utilization100
11
Showing 3 of 3 rows

Other info

Follow for update