arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.01140cs.LG
收藏

通用半径与集成代码本变换用于可微向量量化

Generalized Radius and Integrated Codebook Transforms for Differentiable Vector Quantization

Columbia University(哥伦比亚大学);South China Normal University(南方科技大学);University of Warwick(沃里克大学);The City College of New York(纽约城市学院);Hebei Institute of Communications(河北通信学院)

Haochen You, Heng Zhang, Hongyang He, Yuqi Li, Baojing Liu

AI总结:

GRIT-VQ通过统一的可微框架提升向量量化性能,实现稳定梯度和高效代码本利用。

摘要:

向量量化(VQ)通过将连续潜在变量转换为离散令牌,支撑了现代生成和表示模型。然而,硬最近邻分配是非可微的,通常通过启发式直通估计器进行优化,这将更新步长与量化间隙耦合,并且每个代码单独训练,导致梯度不稳定和在大规模情况下代码本利用不足。在本文中,我们引入了GRIT-VQ(通用半径与集成变换-向量量化),一个统一的替代框架,它在正向传递中保持硬分配,同时使VQ完全可微。GRIT-VQ用基于半径的更新替代直通估计器,使潜在变量沿着量化方向移动,具有可控的、几何感知的步长,并将数据无关的集成变换应用于代码本,使得所有代码通过共享参数更新,而不是独立更新。我们的理论分析澄清了GRIT-VQ引入的基本优化动态,建立了稳定梯度流、协调代码本演变和可靠避免崩溃的条件,适用于广泛的一类量化器。在图像重建、图像生成和推荐令牌化基准上,GRIT-VQ在重建误差、生成质量以及推荐准确率方面持续改进,同时相比现有VQ变体显著提高了代码本利用。

英文摘要:

Vector quantization (VQ) underpins modern generative and representation models by turning continuous latents into discrete tokens. Yet hard nearest-neighbor assignments are non-differentiable and are typically optimized with heuristic straight-through estimators, which couple the update step size to the quantization gap and train each code in isolation, leading to unstable gradients and severe codebook under-utilization at scale. In this paper, we introduce GRIT-VQ (Generalized Radius and Integrated Transform-Vector Quantization), a unified surrogate framework that keeps hard assignments in the forward pass while making VQ fully differentiable. GRIT-VQ replaces the straight-through estimator with a radius-based update that moves latents along the quantization direction with a controllable, geometry-aware step, and applies a data-agnostic integrated transform to the codebook so that all codes are updated through shared parameters instead of independently. Our theoretical analysis clarifies the fundamental optimization dynamics introduced by GRIT-VQ, establishing conditions for stable gradient flow, coordinated codebook evolution, and reliable avoidance of collapse across a broad family of quantizers. Across image reconstruction, image generation, and recommendation tokenization benchmarks, GRIT-VQ consistently improves reconstruction error, generative quality, and recommendation accuracy while substantially increasing codebook utilization compared to existing VQ variants.

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

↑