paper-with-me

홈 › Papers

Scaling the Codebook Size of VQGAN to 100,000 with a Utilization Rate of 99%

2024-06-17 · Lei Zhu, Fangyun Wei, Yanye Lu, Dong Chen

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.

📄 PDF Abstract BibTeX arXiv:2406.11837

Code (1)

zh460045050/vqgan-lc 공식 구현 pytorch

Tasks

image-classificationImage ClassificationImage GenerationImage ReconstructionQuantization

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Weight Decay 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Adam 설명 없음

Similar Papers 제목 키워드 기반

SGC-VQGAN: Towards Complex Scene Representation via Semantic Guided Clustering Codebook

2024-09-09 · Chenjing Ding, Chiyu Wang, Boshi Liu, Xi Guo 외

Vector quantization (VQ) is a method for deterministically learning features through discrete codebook representations. Recent works have utilized visual tokenizers to discretize visual regions for self-supervised repres…

ClusteringOnline ClusteringQuantizationRepresentation Learning

Continuous First, Discrete Later: VQ-VAEs Without Dimensional Collapse

2026-05-07 · Xinyu Zhao, Nikita Karagodin, Hamed Hassani, Sinan Hersek 외 arxiv

While many approaches to improve VQ-VAE performance focus on codebook size and utilization, the effect of dimensional collapse, where trained VQ-VAE representations live in an extremely low-dimensional subspace (1-2% of …

Vector quantization loss analysis in VQGANs: a single-GPU ablation study for image-to-image synthesis

2023-08-09 · Luv Verma, Varun Mohan

This study performs an ablation analysis of Vector Quantized Generative Adversarial Networks (VQGANs), concentrating on image-to-image synthesis utilizing a single NVIDIA A100 GPU. The current work explores the nuanced e…

GPUImage GenerationQuantization

Vector-quantized Image Modeling with Improved VQGAN

2021-10-09 · ICLR 2022 4 · Jiahui Yu, Xin Li, Jing Yu Koh, Han Zhang 외

Pretraining language models with next-token prediction on massive text corpora has delivered phenomenal zero-shot, few-shot, transfer learning and multi-tasking capabilities on both generative and discriminative language…

Image GenerationImage ReconstructionRepresentation LearningTransfer Learning

VQ-Font: Few-Shot Font Generation with Structure-Aware Enhancement and Quantization

2023-08-27 · Mingshuai Yao, Yabo Zhang, Xianhui Lin, Xiaoming Li 외

Few-shot font generation is challenging, as it needs to capture the fine-grained stroke styles from a limited set of reference glyphs, and then transfer to other characters, which are expected to have similar styles. How…

Font GenerationQuantization