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

早量化缩小代码表:一种维持多样性token化问题的简单修复

Early Quantization Shrinks Codebook: A Simple Fix for Diversity-Preserving Tokenization

National University of Singapore(国立新加坡大学);Zhejiang University(浙江大学);Shanghai Jiao Tong University(上海交通大学)

Wenhao Zhao, Qiran Zou, Rushi Shah, Yudi Wu, Zhouhan Lin, Dianbo Liu

AI总结:

本文研究了向量量化中的坍塌问题,发现随机初始化和编码器容量限制导致token和嵌入坍塌,并提出缓解方案,是首次系统探讨该问题。

摘要:

向量量化是机器学习中将连续表示离散化为离散向量的技术,广泛应用于大语言模型、扩散模型等生成模型的数据表示token化。尽管应用广泛,其在生成模型中的特性与行为仍鲜有研究。本文系统研究了向量量化中的坍塌问题,通过合成和真实数据集识别坍塌类型及触发条件,发现随机初始化和编码器容量限制导致token坍塌和嵌入坍塌。基于此,本文提出缓解方案,首次全面探讨了向量量化中的表示坍塌问题。

英文摘要:

Vector quantization is a technique in machine learning that discretizes continuous representations into a set of discrete vectors. It is widely employed in tokenizing data representations for large language models, diffusion models, and other generative models. Despite its prevalence, the characteristics and behaviors of vector quantization in generative models remain largely underexplored. In this study, we systematically investigate the issue of collapses in vector quantization, where collapsed representations are observed across discrete codebook tokens and continuous latent embeddings. By leveraging both synthetic and real datasets, we identify the severity of each type of collapses and triggering conditions. Our analysis reveals that random initialization and limited encoder capacity result in tokens collapse and embeddings collapse. Building on these findings, we propose potential solutions aimed at mitigating each collapse. To the best of our knowledge, this is the first comprehensive study examining representation collapsing problems in vector quantization.

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

↑