English

Preventing Local Pitfalls in Vector Quantization via Optimal Transport

Computer Vision and Pattern Recognition 2024-12-20 v1 Machine Learning

Abstract

Vector-quantized networks (VQNs) have exhibited remarkable performance across various tasks, yet they are prone to training instability, which complicates the training process due to the necessity for techniques such as subtle initialization and model distillation. In this study, we identify the local minima issue as the primary cause of this instability. To address this, we integrate an optimal transport method in place of the nearest neighbor search to achieve a more globally informed assignment. We introduce OptVQ, a novel vector quantization method that employs the Sinkhorn algorithm to optimize the optimal transport problem, thereby enhancing the stability and efficiency of the training process. To mitigate the influence of diverse data distributions on the Sinkhorn algorithm, we implement a straightforward yet effective normalization strategy. Our comprehensive experiments on image reconstruction tasks demonstrate that OptVQ achieves 100% codebook utilization and surpasses current state-of-the-art VQNs in reconstruction quality.

Keywords

Cite

@article{arxiv.2412.15195,
  title  = {Preventing Local Pitfalls in Vector Quantization via Optimal Transport},
  author = {Borui Zhang and Wenzhao Zheng and Jie Zhou and Jiwen Lu},
  journal= {arXiv preprint arXiv:2412.15195},
  year   = {2024}
}

Comments

Code is available at https://github.com/zbr17/OptVQ

R2 v1 2026-06-28T20:42:47.510Z