[论文解读] KaLM-Embedding: Superior Training Data Brings A Stronger Embedding Model
KaLM-Embedding 展示了在高质量数据与技术下训练的多语言嵌入模型,在子 10 亿参数规模上在多语言基准测试中达到最先进水平。
As retrieval-augmented generation prevails in large language models, embedding models are becoming increasingly crucial. Despite the growing number of general embedding models, prior work often overlooks the critical role of training data quality. In this work, we introduce KaLM-Embedding, a general multilingual embedding model that leverages a large quantity of cleaner, more diverse, and domain-specific training data. Our model has been trained with key techniques proven to enhance performance: (1) persona-based synthetic data to create diversified examples distilled from LLMs, (2) ranking consistency filtering to remove less informative samples, and (3) semi-homogeneous task batch sampling to improve training efficacy. Departing from traditional BERT-like architectures, we adopt Qwen2-0.5B as the pre-trained model, facilitating the adaptation of auto-regressive language models for general embedding tasks. Extensive evaluations of the MTEB benchmark across multiple languages show that our model outperforms others of comparable size, setting a new standard for multilingual embedding models with <1B parameters.
研究动机与目标
- 通过训练数据质量而不仅仅是模型规模来推动改进的嵌入模型研究.
- 开发一个从解码器为基础的语言模型(Qwen2-0.5B)改编的通用多语言嵌入模型。
- 结合数据整理和训练技巧以提升嵌入质量和鲁棒性。
- 在 MTEB 上展示紧凑模型规模下的强大多语言性能。
提出的方法
- 以 Qwen2-0.5B 作为预训练骨干网络,采用均值池化获取嵌入。
- 在大规模、多样化的数据混合上进行弱监督对比学习预训练(20 种预训练类别)。
- 用 70 个多样化的监督数据集进行微调,确保训练数据质量和领域覆盖。
- 应用基于人物设定的合成数据,将大模型知识蒸馏到多样化的嵌入聚焦数据中。
- 在微调阶段应用排序一致性过滤,去除信息量较低的样本、降低噪声。
- 利用 Matryoshka 表征学习实现灵活的多维嵌入和不同向量尺寸。
实验结果
研究问题
- RQ1训练数据质量在子 1B 参数规模下对多语言嵌入性能有何影响?
- RQ2一个经过精心整理数据的解码器单架构能否在多语言基准上与更大嵌入模型竞争?
- RQ3数据过滤、结构化任务提示和批次策略对不同语言的嵌入质量有何影响?
- RQ4指令型与非指令型数据的混合是否对嵌入任务有益?
主要发现
- KaLM-Embedding 在 MTEB 的参数低于 1B 的模型中实现了最先进的多语言性能。
- 任务指令和数据整理策略显著影响性能,数据质量和指令使用是关键因素。
- 排序一致性过滤和高质量微调数据提升泛化能力,尤其在英文相对于中文数据集上表现明显。
- Matryoshka 表征学习对低维嵌入有益,影响取决于权重分配和架构选择。
- 半同质任务批处理在本工作中未改善最终模型,但为在困难负样本与误报之间的平衡提供了见解。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。