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

你的解嵌入矩阵实际上是文本嵌入的特征透镜

Your UnEmbedding Matrix is Secretly a Feature Lens for Text Embeddings

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Lenovo Group Limited(联想集团有限公司);Wuhan University(武汉大学)

Songhao Wu, Zhongxin Chen, Yuxuan Liu, Heng Cui, Cong Li, Rui Yan

AI总结:

发现LLM文本嵌入与高频词对齐导致语义捕获不足,提出EmbedFilter通过过滤解嵌入矩阵中的高频子空间来增强表示,并实现降维加速检索。

摘要:

大型语言模型在广泛的下游任务中展现出令人印象深刻的零样本能力。然而,它们难以作为现成的嵌入模型,导致在大量文本嵌入基准测试中表现欠佳。在本文中,我们确定了这种缺陷的一个潜在原因。我们的动机源于一个意外的观察:当文本嵌入投影到词汇空间时,它们倾向于与频繁但信息量少的词对齐。我们认为,这种对高频词的过度表达抑制了模型捕获细微语义的能力。为了解决这个问题,我们引入了EmbedFilter,一种简单的线性变换,旨在直接精炼从LLM中导出的文本嵌入。具体来说,我们发现LLM内部的解嵌入矩阵编码了一个潜在空间,该空间正在主动将这些高频词写入嵌入空间。通过过滤掉这个子空间,EmbedFilter抑制了高频词的影响,从而增强了语义表示。作为一个引人注目的副产品,这实现了固有的降维,降低了索引存储并加速了检索,同时完全保留了精炼后的嵌入质量。我们在多个LLM骨干上的实验表明,配备EmbedFilter的LLM即使在嵌入维度显著降低的情况下也能实现优越的零样本下游性能。我们希望我们的发现能提供对基于LLM的表示机制的更深入见解,并激发更多有原则的设计来改进文本嵌入训练。我们的代码可在此https URL获取。

英文摘要:

Large language models exhibit impressive zero-shot capabilities across a wide range of downstream tasks. However, they struggle to function as off-the-shelf embedding models, leading to suboptimal performance on massive text embedding benchmarks. In this paper, we identify a potential cause underlying this deficiency. Our motivation stems from an unexpected observation: text embeddings tend to align with frequent but uninformative tokens when projected onto the vocabulary space. We argue that this excessive expression of high-frequency tokens suppresses the model's ability to capture nuanced semantics. To address this, we introduce EmbedFilter, a simple linear transformation designed to refine text embeddings derived from LLMs directly. Specifically, we uncover that the unembedding matrix within LLMs encodes a latent space that is actively writing these frequent tokens into embedding space. By filtering out this subspace, EmbedFilter suppress the influence of high-frequency tokens, thereby enhancing semantic representations. As a compelling byproduct, this enables an inherent dimensionality reduction, lowering index storage and speedup retrieval while fully preserving the refined embedding quality. Our experiments across multiple LLM backbones demonstrate that LLMs equipped with EmbedFilter achieve superior zero-shot downstream performance even with significantly reduced embedding dimensions. We hope our findings provide deeper insights into the mechanisms of LLM-based representations and inspire more principled designs to improve text embeddings training. Our code is available at https://github.com/CentreChen/EmbFilter.

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

↑