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

通过大语言模型增强基于词典的文本嵌入

Enhancing Lexicon-Based Text Embeddings with Large Language Models

University of Amsterdam(阿姆斯特丹大学);University of Technology Sydney(技术悉尼大学);Tencent IEG(腾讯IEG);Johns Hopkins University, HLTCOE(约翰霍普金斯大学,HLTCOE)

Yibin Lei, Tao Shen, Yu Cao, Andrew Yates

AI总结:

本文提出基于词典的嵌入方法LENS,利用大语言模型处理词冗余问题,通过词嵌入聚类和双向注意力机制,在MTEB基准测试中优于密集嵌入,且支持高效维度剪枝。

摘要:

近期大型语言模型(LLMs)在通用文本嵌入任务中表现出色。尽管密集嵌入主导了相关研究,我们引入了首个基于词典的嵌入(LENS)方法,利用LLMs在这些任务中取得竞争性表现。LENS通过令牌嵌入聚类整合词汇空间以处理LLM词汇中的冗余问题。为进一步提升性能,我们研究了双向注意力和各种池化策略。具体而言,LENS通过将每个维度分配给特定的令牌集群来简化冗余词汇的词法匹配,其中语义相似的令牌被分组在一起。广泛的实验表明,LENS在大规模文本嵌入基准(MTEB)上优于密集嵌入,提供了与密集嵌入相当的维度紧凑表示。此外,LENS本身支持高效的嵌入维度剪枝,无需任何专门的目标如Matryoshka Representation Learning。值得注意的是,将LENS与密集嵌入结合在MTEB检索子集(即BEIR)上实现了最先进的性能。

英文摘要:

Recent large language models (LLMs) have demonstrated exceptional performance on general-purpose text embedding tasks. While dense embeddings have dominated related research, we introduce the first lexicon-based embeddings (LENS) leveraging LLMs that achieve competitive performance on these tasks. LENS consolidates the vocabulary space through token embedding clustering to handle the issue of token redundancy in LLM vocabularies. To further improve performance, we investigate bidirectional attention and various pooling strategies. Specifically, LENS simplifies lexical matching with redundant vocabularies by assigning each dimension to a specific token cluster, where semantically similar tokens are grouped together. Extensive experiments demonstrate that LENS outperforms dense embeddings on the Massive Text Embedding Benchmark (MTEB), delivering compact representations with dimensionality comparable to dense counterparts. Furthermore, LENS inherently supports efficient embedding dimension pruning without any specialized objectives like Matryoshka Representation Learning. Notably, combining LENS with dense embeddings achieves state-of-the-art performance on the retrieval subset of MTEB (i.e., BEIR).

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

↑