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

测量Token Embeddings的内在维度

Measuring Intrinsic Dimension of Token Embeddings

Shizuoka University(静冈大学);Japan Advanced Institute of Science and Technology(日本先进科学技术学院);RIKEN AIP(理化学研究所人工智能项目)

Takuya Kataiwa, Cho Hakaze, Tetsushi Ohki

AI总结:

本研究测量token embedding的内在维度(ID)以评估表征冗余度,发现embedding空间位于低维流形上,模型规模增长会增加冗余率,训练早期ID迅速下降,且ID可作为LoRA应用的有效指导。

摘要:

在本研究中,我们测量token embedding的Intrinsic Dimension (ID)以估计表征所张成流形的内在维度,从而相较于其外在维度定量评估其冗余度。具体而言:(1) 我们估计了小规模语言模型以及现代大型语言模型中token embeddings的ID,发现embedding空间通常位于相较于其外在维度更低维的流形上;(2) 我们测量了不同模型规模下的ID,并观察到随着模型规模增长,冗余率增加;(3) 我们测量了训练过程中ID的动态变化,发现在训练早期阶段ID迅速下降。此外,(4) 当将LoRA应用于embedding层时,我们观察到在估计的ID附近困惑度突然下降,这表明ID可以作为LoRA应用的有用指导。

英文摘要:

In this study, we measure the Intrinsic Dimension (ID) of token embedding to estimate the intrinsic dimensions of the manifolds spanned by the representations, so as to evaluate their redundancy quantitatively compared to their extrinsic dimensionality. In detail, (1) we estimate the ID of token embeddings in small-scale language models and also modern large language models, finding that the embedding spaces often reside on lower-dimensional manifolds compared to their extrinsic dimensionality; (2) we measure the ID across various model sizes and observe an increase in redundancy rates as the model scale grows; (3) we measure the dynamics of IDs during the training process, and find a rapid ID drop in the early stages of training. Moreover, (4) when LoRA is applied to the embedding layers, we observe a sudden drop in perplexity around the estimated IDs, suggesting that the ID can serve as a useful guideline for LoRA application.

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

↑