arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.07972cs.CLcs.AIcs.IR

训练稀疏专家混合文本嵌入模型

Training Sparse Mixture Of Experts Text Embedding Models

Nomic AI(诺米克人工智能公司)

Zach Nussbaum, Brandon Duderstadt

AI总结:

本文提出首个通用专家混合文本嵌入模型Nomic Embed v2,通过MoE架构在保持性能的同时降低推理延迟和内存占用,并在单语与多语基准上超越同参数级模型。

摘要:

基于Transformer的文本嵌入模型通过增加参数数量,在MIRACL和BEIR等基准上提升了性能。然而,这种扩展方式带来了显著的部署挑战,包括推理延迟和内存占用的增加。这些挑战在检索增强生成(RAG)应用中尤为严重,因为大型模型更高的内存需求限制了数据集摄取容量,而更高的延迟直接影响查询时的性能。虽然因果语言模型已经利用专家混合(MoE)架构解决了类似的效率挑战,但该方法尚未成功适配到通用文本嵌入场景。在本文中,我们介绍了Nomic Embed v2,这是第一个通用的MoE文本嵌入模型。我们的模型在单语和多语基准上均优于同参数级别的模型,同时保持与两倍规模模型相当的竞争力。我们开源了所有代码、模型和评估数据,以确保训练流程的完全可复现性,地址为https://github.com/nomic-ai/contrastors。

英文摘要:

Transformer-based text embedding models have improved their performance on benchmarks like MIRACL and BEIR by increasing their parameter counts. However, this scaling approach introduces significant deployment challenges, including increased inference latency and memory usage. These challenges are particularly severe in retrieval-augmented generation (RAG) applications, where large models' increased memory requirements constrain dataset ingestion capacity, and their higher latency directly impacts query-time performance. While causal language models have addressed similar efficiency challenges using Mixture of Experts (MoE) architectures, this approach hasn't been successfully adapted to the general text embedding setting. In this paper, we introduce Nomic Embed v2, the first general purpose MoE text embedding model. Our model outperforms models in the same parameter class on both monolingual and multilingual benchmarks while also maintaining competitive performance with models twice its size. We open-source all code, models, and evaluation data to ensure full reproducibility of our training pipeline at \href{https://github.com/nomic-ai/contrastors}{https://github.com/nomic-ai/contrastors}.

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

↑