arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06609cs.LGcs.CV
收藏

基于高斯VAE的无训练向量量化

Training-Free Vector Quantization via Gaussian VAEs

AIR, Tsinghua University(清华空气研究院);CST, Tsinghua University(清华计算机研究所);University of Cambridge(剑桥大学)

Tongda Xu, Wendi Zheng, Jiajun He, Jose Miguel Hernandez-Lobato, Yan Wang, Ya-Qin Zhang, Jie Tang

AI总结:

提出Gaussian Quant (GQ)方法,通过约束训练高斯VAE并直接转换为VQ-VAE,无需额外训练,在UNet和ViT架构上优于现有VQ-VAE。

摘要:

向量量化变分自编码器(VQ-VAEs)是将图像压缩为离散标记的离散自编码器。然而,由于离散化,它们难以训练。在本文中,我们提出了一种简单而有效的技术,称为Gaussian Quant (GQ),它首先在特定约束下训练高斯VAE,然后将其转换为VQ-VAE,无需额外训练。对于转换,GQ生成随机高斯噪声作为码本,并找到最接近后验均值的噪声向量。理论上,我们证明当码本大小的对数超过高斯VAE的bits-back编码率时,可以保证较小的量化误差。实际上,我们提出了一种启发式方法来训练高斯VAE以实现有效转换,称为目标散度约束(TDC)。实验上,我们表明GQ在UNet和ViT架构上均优于先前的VQ-VAE,如VQGAN、FSQ、LFQ和BSQ。此外,TDC还改进了先前的离散化方法,如TokenBridge。源代码见https://github.com/tongdaxu/VQ-VAE-from-Gaussian-VAE。

英文摘要:

Vector-quantized variational autoencoders (VQ-VAEs) are discrete autoencoders that compress images into discrete tokens. However, they are difficult to train due to discretization. In this paper, we propose a simple yet effective technique dubbed Gaussian Quant (GQ), which first trains a Gaussian VAE under certain constraints and then converts it into a VQ-VAE without additional training. For conversion, GQ generates random Gaussian noise as a codebook and finds the closest noise vector to the posterior mean. Theoretically, we prove that when the logarithm of the codebook size exceeds the bits-back coding rate of the Gaussian VAE, a small quantization error is guaranteed. Practically, we propose a heuristic to train Gaussian VAEs for effective conversion, named the target divergence constraint (TDC). Empirically, we show that GQ outperforms previous VQ-VAEs, such as VQGAN, FSQ, LFQ, and BSQ, on both UNet and ViT architectures. Furthermore, TDC also improves previous Gaussian VAE discretization methods, such as TokenBridge. The source code is provided in https://github.com/tongdaxu/VQ-VAE-from-Gaussian-VAE.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑