Regularized Vector Quantization for Tokenized Image Synthesis

Abstract

Quantizing images into discrete representations has been a fundamental problem in unified generative modeling. Predominant approaches learn the discrete representation either in a deterministic manner by selecting the best-matching token or in a stochastic manner by sampling from a predicted distribution. However, deterministic quantization suffers from severe codebook collapse and misaligned inference stage while stochastic quantization suffers from low codebook utilization and perturbed reconstruction objective. This paper presents a regularized vector quantization framework that allows to mitigate above issues effectively by applying regularization from two perspectives. The first is a prior distribution regularization which measures the discrepancy between a prior token distribution and predicted token distribution to avoid codebook collapse and low codebook utilization. The second is a stochastic mask regularization that introduces stochasticity during quantization to strike a good balance between inference stage misalignment and unperturbed reconstruction objective. In addition, we design a probabilistic contrastive loss which serves as a calibrated metric to further mitigate the perturbed reconstruction objective. Extensive experiments show that the proposed quantization framework outperforms prevailing vector quantizers consistently across different generative models including auto-regressive models and diffusion models.

Cite

Text

Zhang et al. "Regularized Vector Quantization for Tokenized Image Synthesis." Conference on Computer Vision and Pattern Recognition, 2023. doi:10.1109/CVPR52729.2023.01771

Markdown

[Zhang et al. "Regularized Vector Quantization for Tokenized Image Synthesis." Conference on Computer Vision and Pattern Recognition, 2023.](https://mlanthology.org/cvpr/2023/zhang2023cvpr-regularized/) doi:10.1109/CVPR52729.2023.01771

BibTeX

@inproceedings{zhang2023cvpr-regularized,
  title     = {{Regularized Vector Quantization for Tokenized Image Synthesis}},
  author    = {Zhang, Jiahui and Zhan, Fangneng and Theobalt, Christian and Lu, Shijian},
  booktitle = {Conference on Computer Vision and Pattern Recognition},
  year      = {2023},
  pages     = {18467-18476},
  doi       = {10.1109/CVPR52729.2023.01771},
  url       = {https://mlanthology.org/cvpr/2023/zhang2023cvpr-regularized/}
}