[论文解读] Linq-Embed-Mistral Technical Report
本论文提出 Linq-Embed-Mistral,一种针对检索任务优化的文本嵌入模型,通过利用先进的合成数据精炼技术——具体包括任务特定的提示工程、数据过滤和负样本挖掘——结合同质化任务排序与混合微调,实现了 MTEB 基准上的最先进性能。该模型在 MTEB 上取得了 60.2 的检索得分,位居所有公开可用模型中的首位,其简化的 4 位评估流程可在单张 GPU 上实现约 5 小时的验证时间。
This report explores the enhancement of text retrieval performance using advanced data refinement techniques. We develop Linq-Embed-Mistral\footnote{\url{https://huggingface.co/Linq-AI-Research/Linq-Embed-Mistral}} by building on the E5-mistral and Mistral-7B-v0.1 models, focusing on sophisticated data crafting, data filtering, and negative mining methods, which are highly tailored to each task, applied to both existing benchmark dataset and highly tailored synthetic dataset generated via large language models (LLMs). Linq-Embed-Mistral excels in the MTEB benchmarks (as of May 29, 2024), achieving an average score of 68.2 across 56 datasets, and ranks 1st among all models for retrieval tasks on the MTEB leaderboard with a performance score of 60.2. This performance underscores its superior capability in enhancing search precision and reliability. Our contributions include advanced data refinement methods that significantly improve model performance on benchmark and synthetic datasets, techniques for homogeneous task ordering and mixed task fine-tuning to enhance model generalization and stability, and a streamlined evaluation process using 4-bit precision and a light retrieval evaluation set, which accelerates validation without sacrificing accuracy.
研究动机与目标
- 探究大型语言模型生成的合成数据是否能可靠提升文本检索性能。
- 开发先进的数据精炼技术,以提升用于嵌入模型训练的合成数据集质量。
- 通过结构化任务排序和混合微调,提升模型泛化能力和训练稳定性。
- 通过 4 位精度和轻量级检索评估集,实现快速且准确的模型评估。
- 在检索任务上实现 MTEB 基准的最先进性能。
提出的方法
- 使用 GPT-4 进行任务特定的提示工程,生成高质量的合成三元组数据(查询、正样本、负样本)。
- 通过教师模型引导的迭代式数据过滤和负样本挖掘,剔除低质量或具有误导性的样本。
- 在切换到混合任务微调前,先对同质化任务顺序进行一个完整周期的训练,以减少灾难性遗忘。
- 将合成数据与基准数据集结合,利用真实与合成样本的多样化高质量混合数据,训练 Linq-Embed-Mistral 模型。
- 实现 4 位精度的评估流程,并结合轻量级检索评估集,以加速验证过程而不损失准确性。
- 设计了简化的评估流程,将完整 MTEB 评估时间缩短至单张 GPU 上约 5 小时。

实验结果
研究问题
- RQ1LLM 生成的合成数据是否能通过有效精炼来提升文本检索性能?
- RQ2任务排序与混合微调在检索任务中对模型泛化能力和稳定性有何影响?
- RQ3在加速验证的同时,4 位精度与轻量级评估集在多大程度上能保持准确性?
- RQ4高级数据精炼对检索优化嵌入模型性能有何影响?
- RQ5仅在精炼后的合成数据上训练的模型,其性能与在精选真实数据集上微调的模型相比如何?
主要发现
- 截至 2024 年 5 月 29 日,Linq-Embed-Mistral 在 MTEB 排行榜上取得了 60.2 的检索得分,位居所有公开可用模型中的首位。
- 该模型在 56 个数据集上的 MTEB 平均得分为 68.2,位列所有公开可访问模型中的首位,整体排名第三。
- 通过聚焦于精炼后的合成数据,模型将检索性能从 E5-Mistral 的 56.9 和 SFR 的 59.0 提升至 60.2,证明了合成数据精炼的有效性。
- 简化的 4 位评估流程使得单个检查点的单 GPU 评估时间缩短至约 5 小时,其中检索任务耗时约 4 小时。
- 在 20 步内完成混合任务微调可获得最佳性能,更长的训练时间导致性能下降,原因在于灾难性遗忘。
- 轻量级检索评估集与完整评估集相比表现出可忽略的性能差异,验证了其准确性和高效性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。