arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.08232cs.CL
收藏

语言模型是通用嵌入器

Language Models are Universal Embedders

Harbin Institute of Technology(哈尔滨工业大学);The Hong Kong Polytechnic University(香港理工大学)

Xin Zhang, Zehan Li, Yanzhao Zhang, Dingkun Long, Pengjun Xie, Meishan Zhang, Min Zhang

AI总结:

本研究提出利用预训练多语言仅解码器大语言模型(如BLOOM)构建统一嵌入模型,通过直接策略和通用评估基准,证明其能跨语言和任务生成良好嵌入,甚至覆盖无训练数据的场景,推动开源通用嵌入器发展。

摘要:

在大语言模型(LLM)革命中,嵌入是各种系统的关键组成部分,例如为LLM检索知识或记忆,或构建内容审核过滤器。由于这些应用场景从英语扩展到其他自然语言或编程语言,从检索扩展到分类及其他任务,构建一个统一的嵌入模型而非针对每种场景的专用模型是有利的。在此背景下,预训练的多语言仅解码器大语言模型(如BLOOM)成为可行的骨干选择。为了评估其潜力,我们提出了构建嵌入器的直接策略,并引入了一个通用评估基准。实验结果表明,我们训练的模型能够熟练地跨语言和任务生成良好的嵌入,甚至扩展到没有微调/预训练数据的语言和任务。我们还提供了详细的分析和额外的评估。我们希望这项工作能够鼓励开发更强大的开源通用嵌入器。

英文摘要:

In the large language model (LLM) revolution, embedding is a key component of various systems, such as retrieving knowledge or memories for LLMs or building content moderation filters. As such cases span from English to other natural or programming languages, from retrieval to classification and beyond, it is advantageous to build a unified embedding model rather than dedicated ones for each scenario. In this context, the pre-trained multilingual decoder-only large language models, e.g., BLOOM, emerge as a viable backbone option. To assess their potential, we propose straightforward strategies for constructing embedders and introduce a universal evaluation benchmark. Experimental results show that our trained model is proficient at generating good embeddings across languages and tasks, even extending to languages and tasks for which no finetuning/pretraining data is available. We also present detailed analyses and additional evaluations. We hope that this work could encourage the development of more robust open-source universal embedders.

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

↑