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

Jasper 和 Stella:SOTA 嵌入模型的蒸馏

Jasper and Stella: distillation of SOTA embedding models

Dun Zhang, Jiacheng Li, Ziyang Zeng, Fulong Wang

AI总结:

针对高参数和高维度嵌入模型部署难的问题,提出多阶段蒸馏框架,结合 MRL 降维,训练出 20 亿参数的 Jasper 模型,在 MTEB 上获第 3 名,平均分 71.54。

摘要:

在许多深度学习应用(如常见问题解答(FAQ)和检索增强生成(RAG))中,一个关键组件是稠密检索。在此过程中,嵌入模型将原始文本转换为数值向量。然而,目前在文本嵌入基准(如大规模文本嵌入基准(MTEB))上表现优异的嵌入模型通常具有大量参数和高向量维度。这给它们在实际场景中的应用带来了挑战。为了解决这个问题,我们提出了一种新颖的多阶段蒸馏框架,该框架通过三个精心设计的损失函数,使一个较小的学生嵌入模型能够从多个较大的教师嵌入模型中蒸馏知识。同时,我们利用 Matryoshka 表示学习(MRL)来有效降低学生嵌入模型的向量维度。我们的学生模型名为 Jasper,基于 Stella 嵌入模型构建,拥有 20 亿参数,在 MTEB 排行榜上(截至 2024 年 12 月 24 日)获得第 3 名,在 56 个数据集上平均得分为 71.54。我们已在 Hugging Face Hub 上发布了模型和数据(https://huggingface.co/infgrad/jasper_en_vision_language_v1)(https://huggingface.co/datasets/infgrad/jasper_text_distill_dataset),训练代码可在本项目仓库中获取(https://github.com/NLPJCL/RAG-Retrieval)。

英文摘要:

A crucial component in many deep learning applications, such as Frequently Asked Questions (FAQ) and Retrieval-Augmented Generation (RAG), is dense retrieval. In this process, embedding models transform raw text into numerical vectors. However, the embedding models that currently excel on text embedding benchmarks, like the Massive Text Embedding Benchmark (MTEB), often have numerous parameters and high vector dimensionality. This poses challenges for their application in real-world scenarios. To address this issue, we propose a novel multi-stage distillation framework that enables a smaller student embedding model to distill multiple larger teacher embedding models through three carefully designed losses. Meanwhile, we utilize Matryoshka Representation Learning (MRL) to reduce the vector dimensionality of the student embedding model effectively. Our student model named Jasper with 2 billion parameters, built upon the Stella embedding model, obtained the No.3 position on the MTEB leaderboard (as of December 24, 2024), achieving an average 71.54 score across 56 datasets. We have released the model and data on the Hugging Face Hub (https://huggingface.co/infgrad/jasper_en_vision_language_v1) (https://huggingface.co/datasets/infgrad/jasper_text_distill_dataset), and the training codes are available in this project repository (https://github.com/NLPJCL/RAG-Retrieval).

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

↑