arrow
Return

Resizing codebook of vector quantization without retraining

delete2023-03-07
delete2
PRE
AI
L
Lei Li
T
Tingting Liu
C
Chengyu Wang
M
Minghui Qiu
C
Cen Chen *
M
Ming Gao
周
周傲英 (Aoying Zhou)
DOI:10.1007/s00530-023-01065-2delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Large models pre-trained on massive data have become a flourishing paradigm of artificial intelligence systems. Recent works, such as M6, CogView, WenLan 2.0, NuWA, and ERNIE-ViLG, further extend this diagram to joint Vision Language Pre-training (VLP). For VLP, the two-stage architecture is a popular design, which includes the first stage learning an encoding function of data and the second stage learning a probabilistic model of encoded representation of data. Vector quantization (VQ) has usually engaged in the encoding function of image data for the first stage. VQ includes a data structure (codebook) and an algorithm (finding nearest quantization). The publicly available VQ models (e.g., VQGAN, VQVAE, VQVAE2) include a codebook whose size is assigned empirically (e.g., 1024, 4096, and 16,384) by their authors. If we want a smaller codebook for a lower computation load of the VQ process, or we want a larger codebook for better reconstruction quality, we have to retrain VQ models that consist of the down-sampling net, the codebook, and the up-sampling net. However, retraining VQ models is very expensive since these models, with billions of parameters, are trained on massive datasets. It motivates us to find an approach to resize the codebook of Vector quantization without retraining. In this paper, we leverage hyperbolic embeddings to enhance codebook vectors with the co-occurrence information and reorder the enhanced codebook by the Hilbert curve. Then we can resize the codebook of vector quantization for lower computation load or better reconstruction quality. Experimental results prove the efficiency and effectiveness of our approach when compared with competitive baselines. The code will be released to the public.
Keywords:
Codebook resizing
Vector quantization
Hyperbolic embeddings
Hilbert curve

Journal

Multimedia Systems cover
Multimedia Systems
IF:
3.1
Papers:
2.8K
Citations:
2.7K

Organization

A
alibaba group
Scholars:
1.1K
Papers: 789
Citations: 0
E
east china normal university
Scholars:
3.1W
Papers: 2.1W
Citations: 25
Cited Papers

Cited Papers

Lifestyle Modification in the Pharmacologic Treatment of Obesity: A Pilot Investigation of a Potential Primary Care Approach
err2012-09-06
err0
errOAAI
errThomas A. Wadden; Robert I. Berkowitz; Renee A. Vogt; Suzanne N. Steen; Albert J. Stunkard; Gary D. Foster
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Influence of algal organic matter of Microcystis aeruginosa on ferrate decay and MS2 bacteriophage inactivation
err2019-12-01
err0
PREAI
errXueyin Wu; Aixi Tang; Xiaochao Bi; Thanh H. Nguyen; Baoling Yuan
errShare
errSave
Slices of Brain Tissue
err2019-08-16
err0
PREAI
errC. Stricker
errShare
errSave
Fe 57 Mössbauer study of the interstitial nitrogen atom effects of NdFe10.5V1.5Nx
err1998-06-01
err0
PREAI
errJinbo Yang; Weihua Mao; Yingchang Yang; Zhenjie Zhao; Fashen Li
errShare
errSave
Solution structure of the HMG-box domain in the SSRP1 subunit of FACT
err2005-05-01
err0
PREAI
errNobuyuki Kasai; Yasuo Tsunaka; Izuru Ohki; Susumu Hirose; Kosuke Morikawa; Shin-ichi Tate
errShare
errSave
errShare
errSave
researcher View more