In the realm of image quantization exemplified by VQGAN, the process encodes images into discrete tokens drawn from a codebook with a predefined size. Recent advancements, particularly with LLAMA 3, reveal that enlarging the codebook significantly enhances model performance. However, VQGAN and its derivatives, such as VQGAN-FC (Factorized Codes) and VQGAN-EMA, continue to grapple with challenges related to expanding the codebook size and enhancing codebook utilization. For instance, VQGAN-FC is restricted to learning a codebook with a maximum size of 16,384, maintaining a typically low utilization rate of less than 12% on ImageNet. In this work, we propose a novel image quantization model named VQGAN-LC (Large Codebook), which extends the codebook size to 100,000, achieving an utilization rate exceeding 99%. Unlike previous methods that optimize each codebook entry, our approach begins with a codebook initialized with 100,000 features extracted by a pre-trained vision encoder. Optimization then focuses on training a projector that aligns the entire codebook with the feature distributions of the encoder in VQGAN-LC. We demonstrate the superior performance of our model over its counterparts across a variety of tasks, including image reconstruction, image classification, auto-regressive image generation using GPT, and image creation with diffusion- and flow-based generative models. Code and models are available at https://github.com/zh460045050/VQGAN-LC.
Channel-wise Vector Quantization: Native 1D Visual Tokenization with Learnable Ordering
Shanghai Innovation Institute(上海创新研究院);Westlake University(西湖大学);Zhejiang University(浙江大学);Fudan University(复旦大学);JD.COM(京东公司);University of Chinese Academy of Sciences(中国科学院大学)
LGQ: Learnable Geometric Quantization for Image Tokenization
Luddy School of Informatics, Computing and Engineering, Indiana University Bloomington(印第安纳大学布卢明顿分校信息学、计算与工程学院);Department of Computer Science, University of Illinois Springfield(伊利诺伊大学斯普林菲尔德分校计算机科学系);College of Science and Engineering, Hamad Bin Khalifa University, Doha, Qatar(哈马德·本·卡伊夫大学多哈校区科学与工程学院)
Distributional Matching for Vector Quantization: A Unified Theoretical and Empirical Framework
University of Toronto(多伦多大学);The Hong Kong University of Science and Technology(香港科技大学);Boston College(波士顿学院);Lehigh University(里海大学);Southern University of Science and Technology(南方科技大学)
Enhancing Vector Quantization with Distributional Matching: A Theoretical and Empirical Study
University of Toronto(多伦多大学);The Hong Kong University of Science and Technology(香港科学与技术大学);Boston College(波士顿学院);Lehigh University(莱特大学);Southern University of Science and Technology(南方科技大学)
ArcVQ-VAE: A Spherical Vector Quantization Framework with ArcCosine Additive Margin
Department of Artificial Intelligence, Chung-Ang University, Seoul, Republic of Korea(韩国首尔 Chung-Ang 大学人工智能系);SNUAILAB, Seoul, Republic of Korea(韩国首尔 SNUAILAB 实验室)
Addressing Representation Collapse in Vector Quantized Models with One Linear Layer
University of Science and Technology of China(中国科学技术大学);State Key Laboratory of Cognitive Intelligence(认知智能国家重点实验室);Peking University(北京大学);Jinan University(济南大学)