Distributional Matching for Vector Quantization: A Unified Theoretical and Empirical Framework
Xianghong Fang, Litao Guo, Hengchao Chen, Yuxuan Zhang, XiaofanXia, Dingjie Song, Yexin Liu, Hao Wang, Harry Yang, Qiang Sun, Yuan Yuan
Abstract
The effectiveness of modern visual representation learning and autoregressive models critically depends on vector quantization (VQ), which discretizes continuous feature representations using a learnable codebook. Despite its widespread use, existing VQ methods often suffer from training instability and codebook collapse, arising from gradient mismatch induced by the straight-through estimator and the under-utilization of code vectors. In this work, we show that both issues can be traced to a fundamental mismatch between the distributions of feature vectors and code vectors, leading to inefficient representation and information loss. Building on this observation, we propose a distributional matching framework for vector quantization. We introduce principled criteria for desirable VQ behavior and demonstrate through theoretical analysis and empirical evaluation that aligning feature and code vector distributions provides a unifying mechanism for mitigating training instability and codebook collapse. We instantiate this framework using a Wasserstein-based objective with an efficient closed-form under a mild Gaussian approximation, and further show that a nonparametric alternative based on maximum mean discrepancy yields comparable performance. Extensive experiments on visual tokenization benchmarks support the effectiveness and robustness of the proposed approach.
Create a lesson
Metadata
- Comments
- 33 pages, 17 figures, and 16 tables. arXiv admin note: substantial text overlap with arXiv:2506.15078
Related papers
SceneDesigner++: A Unified 9-DoF Pose Control Framework for T2I and T2V Generation
Shared title terminologycs.CVXincheng Shuai, Zhenyuan Qin, Henghui Ding et al.
Models as Tools: An Agentic Coordination Framework for Unified Multimodal Visual Tracking
Shared title terminologycs.CVWenrui Cai, Yuzhe Li, Qingjie Liu et al.
DocDUR-Net: Degradation-Aware Unified Document Image Restoration
Shared title terminologycs.CVHaowei Xu, Peirong Zhang, Xuhan Zheng et al.
TIDE-Flow: Fine-Grained Temporal Evidence and Structured Displacement Matching for Spike Optical Flow
Shared title terminologycs.CVHanwen Liang, Wenxuan Liu, Wenxin Huang et al.
Guidance as Variance Matching
Shared title terminologycs.CVAli Backour, Artem Lukoianov, Frank Permenter et al.
SEAM: A Self-Evolving and Adaptive Probing Framework for Automatic MLLM Hallucination Evaluation
Shared title terminologycs.CVShiyu Zhang, Zengyi Wo, Yuming Liao et al.