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

语言模型嵌入的共享全局与局部几何

Shared Global and Local Geometry of Language Model Embeddings

Harvard University(哈佛大学);Google DeepMind(谷歌DeepMind)

Andrew Lee, Melanie Weber, Fernanda Viégas, Martin Wattenberg

AI总结:

研究发现大型语言模型的 token 嵌入在全局相对方向和局部几何上具有相似性,且低内蕴维度 token 形成语义连贯簇。基于此提出 EMB2EMB,实现跨不同维度模型的引导向量线性转换。

摘要:

研究人员最近提出模型共享共同的表示。在我们的工作中,我们发现了大型语言模型的 token 嵌入之间存在许多几何相似性。首先,我们发现了“全局”相似性:token 嵌入通常共享相似的相对方向。接着,我们通过两种方式刻画局部几何:(1) 使用 Locally Linear Embeddings,(2) 为每个嵌入的内蕴维度定义一个简单的度量。这两种刻画方式都使我们能够发现 token 嵌入间的局部相似性。此外,我们的内蕴维度表明嵌入位于低维流形上,且内蕴维度较低的 token 往往具有语义连贯的簇,而内蕴维度较高的则没有。基于这些发现,我们引入了 EMB2EMB,这是一个简单的应用,能够将引导向量从一个语言模型线性转换到另一个,即使这两个模型具有不同的维度。

英文摘要:

Researchers have recently suggested that models share common representations. In our work, we find numerous geometric similarities across the token embeddings of large language models. First, we find ``global'' similarities: token embeddings often share similar relative orientations. Next, we characterize local geometry in two ways: (1) by using Locally Linear Embeddings, and (2) by defining a simple measure for the intrinsic dimension of each embedding. Both characterizations allow us to find local similarities across token embeddings. Additionally, our intrinsic dimension demonstrates that embeddings lie on a lower dimensional manifold, and that tokens with lower intrinsic dimensions often have semantically coherent clusters, while those with higher intrinsic dimensions do not. Based on our findings, we introduce EMB2EMB, a simple application to linearly transform steering vectors from one language model to another, despite the two models having different dimensions.

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

↑