[论文解读] C-Pack: Packed Resources For General Chinese Embeddings
C-Pack 引入 C-MTEB、C-MTP 和 C-TEM,以推动通用中文文本嵌入的研究,在中文嵌入基准测试中达到最先进的结果,并提供大规模的训练数据和模型。
We introduce C-Pack, a package of resources that significantly advance the field of general Chinese embeddings. C-Pack includes three critical resources. 1) C-MTEB is a comprehensive benchmark for Chinese text embeddings covering 6 tasks and 35 datasets. 2) C-MTP is a massive text embedding dataset curated from labeled and unlabeled Chinese corpora for training embedding models. 3) C-TEM is a family of embedding models covering multiple sizes. Our models outperform all prior Chinese text embeddings on C-MTEB by up to +10% upon the time of the release. We also integrate and optimize the entire suite of training methods for C-TEM. Along with our resources on general Chinese embedding, we release our data and models for English text embeddings. The English models achieve state-of-the-art performance on MTEB benchmark; meanwhile, our released English data is 2 times larger than the Chinese data. All these resources are made publicly available at https://github.com/FlagOpen/FlagEmbedding.
研究动机与目标
- 在检索、排序、分类和聚类等场景中,推动通用中文文本嵌入的需求。
- 引入一个大规模的中文嵌入生态系统(基准、训练数据和模型),以实现稳健的评估与发展。
- 证明所提出的资源在多个任务上实现更高的通用性和实际性能。
提出的方法
- 将 C-MTEB 定义为 MTEB 的中文扩展,涵盖 6 种任务类型中的 35 个数据集。
- 通过聚合来自未标注来源的 100M 对文本以及来自有标注数据的 838K 对项来创建 C-MTP。
- 提供 C-TEM 作为一系列嵌入模型,分为 small、base 与 large 尺度,采用三阶段方案(预训练、对比学习、任务特定微调)进行训练。
- 在对比学习中使用大批次内负采样策略(批量大小高达 19,200)。
- 结合基于指令的微调和困难负样本挖掘以进行任务特定的调整。
- 发布完整的训练方案以促进可复现性和进一步研究。
实验结果
研究问题
- RQ1在使用 C-MTEB 评估时,中文嵌入在多样化任务上的泛化能力如何?
- RQ2大规模未标注数据、高质量有标注数据以及训练方案对嵌入质量有何影响?
- RQ3C-TEM 能否提供在现实应用中兼顾效率与性能的可扩展选项?
- RQ4预训练、对比学习和多任务微调的组合是否在中文通用文本嵌入基准上取得了最先进的结果?
主要发现
- C-TEM 模型在 C-MTEB 上在多项任务中超越了所有先前的中文文本嵌入,取得了显著的优势。
- 扩大模型规模和嵌入维度带来稳定的性能提升,大型模型取得了最高的平均结果。
- C-MTP(未标注)显著提升了通用检索能力,而 C-MTP(有标注)在任务特定微调后在检索、重排序、STS 和对成对分类方面带来显著提升。
- 大批量内负采样策略(高达 19,200)和基于指令的任务微调对性能提升有明显贡献,尤其是在与检索相关的任务中。
- 发布的资源为中文嵌入任务提供了高度的通用性和实际适用性,在效率与质量之间提供灵活的权衡。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。