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

Jina Embeddings 2:面向长文档的8192令牌通用文本嵌入

Jina Embeddings 2: 8192-Token General-Purpose Text Embeddings for Long Documents

Jina AI GmbH(吉纳人工智能有限公司)
Michael Günther, Jackmin Ong, Isabelle Mohr, Alaeddine Abdessalem, Tanguy Abel, Mohammad Kalim Akram, Susana Guzman, Georgios Mastrapas, Saba Sturua, Bo Wang, M… 展开作者

Michael Günther, Jackmin Ong, Isabelle Mohr, Alaeddine Abdessalem, Tanguy Abel, Mohammad Kalim Akram, Susana Guzman, Georgios Mastrapas, Saba Sturua, Bo Wang, Maximilian Werk, Nan Wang, Han Xiao

AI总结:

针对现有文本嵌入模型难以处理长文档的问题,提出Jina Embeddings 2开源模型,支持8192令牌,在MTEB基准上达到最先进性能并匹敌OpenAI ada-002,扩展上下文可提升NarrativeQA任务表现。

摘要:

文本嵌入模型已成为将句子转换为封装语义信息的固定大小特征向量的强大工具。虽然这些模型对于信息检索、语义聚类和文本重排序等任务至关重要,但大多数现有的开源模型,尤其是基于BERT等架构构建的模型,难以表示长文档,常常不得不进行截断。缓解这一挑战的一种常见方法是将文档拆分为较小的段落进行嵌入。然而,这种策略会导致向量集合规模大得多,从而增加内存消耗,并导致计算密集且延迟升高的向量搜索。为了解决这些挑战,我们推出了Jina Embeddings 2,这是一个开源文本嵌入模型,能够处理多达8192个令牌。该模型旨在超越传统的512令牌限制,并熟练地处理长文档。Jina Embeddings 2不仅在MTEB基准中的一系列嵌入相关任务上实现了最先进的性能,而且与OpenAI专有的ada-002模型的性能相匹配。此外,我们的实验表明,扩展的上下文可以增强NarrativeQA等任务的性能。

英文摘要:

Text embedding models have emerged as powerful tools for transforming sentences into fixed-sized feature vectors that encapsulate semantic information. While these models are essential for tasks like information retrieval, semantic clustering, and text re-ranking, most existing open-source models, especially those built on architectures like BERT, struggle to represent lengthy documents and often resort to truncation. One common approach to mitigate this challenge involves splitting documents into smaller paragraphs for embedding. However, this strategy results in a much larger set of vectors, consequently leading to increased memory consumption and computationally intensive vector searches with elevated latency. To address these challenges, we introduce Jina Embeddings 2, an open-source text embedding model capable of accommodating up to 8192 tokens. This model is designed to transcend the conventional 512-token limit and adeptly process long documents. Jina Embeddings 2 not only achieves state-of-the-art performance on a range of embedding-related tasks in the MTEB benchmark but also matches the performance of OpenAI's proprietary ada-002 model. Additionally, our experiments indicate that an extended context can enhance performance in tasks such as NarrativeQA.

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

↑