arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.13063cs.CLcs.LG
收藏

将1568个Token压缩进单个向量再还原:探索嵌入空间容量极限

Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacity

AIRI;Neural Networks and Deep Learning Lab, MIPT(神经网络与深度学习实验室,MIPT);London Institute for Mathematical Sciences(伦敦数学科学研究所)

Yuri Kuratov, Mikhail Arkhipov, Aydar Bulatov, Mikhail Burtsev

AI总结:

本研究通过逐样本优化探索嵌入向量压缩极限,发现压缩比可达1500倍,远超现有方法,且压缩极限由交叉熵损失决定,揭示模型设计优化空间。

摘要:

近期一系列工作致力于将token序列压缩为更短的实值向量序列,以替代token嵌入或键值缓存作为输入。这些方法侧重于减少现有语言模型的计算量,而非最小化存储文本所需的比特数。尽管依赖强大的模型作为编码器,可达到的最大无损压缩比通常不超过10倍。这一事实非常引人深思,因为理论上,大型实值向量的最大信息容量远超上述比率,即使采用16位精度和适中的向量尺寸也是如此。在本工作中,我们通过用逐样本优化过程替代编码器来探索压缩极限。我们证明存在压缩比高达1500倍的向量,这凸显了现有方案与实际可达到方案之间两个数量级的差距。此外,我们通过实验表明,压缩极限并非由输入长度决定,而是由需要减少的不确定性量决定,即该序列在无任何条件化时的交叉熵损失。所获得的极限凸显了输入嵌入的理论容量与其实际利用之间的巨大差距,表明模型设计存在显著的优化空间。

英文摘要:

A range of recent works addresses the problem of compression of sequence of tokens into a shorter sequence of real-valued vectors to be used as inputs instead of token embeddings or key-value cache. These approaches are focused on reduction of the amount of compute in existing language models rather than minimization of number of bits needed to store text. Despite relying on powerful models as encoders, the maximum attainable lossless compression ratio is typically not higher than x10. This fact is highly intriguing because, in theory, the maximum information capacity of large real-valued vectors is far beyond the presented rates even for 16-bit precision and a modest vector size. In this work, we explore the limits of compression by replacing the encoder with a per-sample optimization procedure. We show that vectors with compression ratios up to x1500 exist, which highlights two orders of magnitude gap between existing and practically attainable solutions. Furthermore, we empirically show that the compression limits are determined not by the length of the input but by the amount of uncertainty to be reduced, namely, the cross-entropy loss on this sequence without any conditioning. The obtained limits highlight the substantial gap between the theoretical capacity of input embeddings and their practical utilization, suggesting significant room for optimization in model design.

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

↑