Skip to main content
QUICK REVIEW

[论文解读] GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning

Aivin V. Solatorio|arXiv (Cornell University)|Feb 26, 2024
Topic ModelingComputer Science被引用 5
一句话总结

GISTEmbed 引入一个以引导模型驱动的样本内负样本挖掘策略,用于对比文本嵌入微调,提升小模型性能并在 MTEB 基准测试上取得优异结果。

ABSTRACT

Embedding models are integral to AI applications like semantic search, personalized recommendations, and retrieval augmented generation for LLMs, necessitating high-quality training data. However, the limited scalability of manual data curation prompts the need for automated methods to ensure data integrity. Traditional unsupervised triplet mining automates training data generation, crucial for embedding model training, yet inadvertently injects biases and noise, thereby degrading model performance. Addressing this, we introduce GISTEmbed, a novel strategy that enhances in-batch negative selection during contrastive training through a guide model. This approach departs from reliance on random sampling and equal utility assumption of batch negatives, significantly reducing noise from data quality issues and improving model fine-tuning. Benchmarked against the Massive Text Embedding Benchmark (MTEB), GISTEmbed showcases consistent performance improvements across various model sizes and achieves state-of-the-art results in select categories. This framework enables significant enhancements for smaller models by leveraging the capabilities of powerful yet resource-intensive large models. GISTEmbed can potentially revolutionize the creation of highly efficient, smaller models, democratizing access to advanced AI technologies. Making these technologies more accessible and cost-effective, especially for applications constrained by resources, significantly expands the impact and accessibility of state-of-the-art AI solutions across diverse sectors.

研究动机与目标

  • 为文本嵌入的高质量训练数据实现自动化提供动机,以解决无监督三元组挖掘中的可扩展性和噪声问题。
  • 引入 GISTEmbed,通过在训练过程中使用引导模型对同批次负样本进行筛选来降低噪声。
  • 证明 GISTEmbed 能在不同模型规模上改善微调,并在选定的 MTEB 类别中实现最先进的结果。
  • 展示 GISTEmbed 使得利用大型引导模型来提升较小的嵌入模型成为可能。

提出的方法

  • 为在批负样本和对比学习中定义标准的 InfoNCE 损失。
  • 用 G_B 的引导模型筛选负样本来替换批内负样本,得到 GISTEmbed 损失 L_G。
  • 从基础模型 M 和引导模型 G 计算批次级别的相似度矩阵,以通过查询-正样本相似度阈值来屏蔽潜在相关的负样本。
  • 在固定温度 tau 和 AdamW 优化下进行训练,使用 16 个样本的一批次进行大量步数的训练。
  • 允许框架相对于负样本选择是数据驱动且无需超参数以对比样本选择(不需要显式的负样本采样超参数)。

实验结果

研究问题

  • RQ1在批对比学习中基于引导模型的负样本选择是否能提升嵌入微调质量?
  • RQ2相较于无引导训练,GISTEmbed 在嵌入模型尺寸和数据集上的表现如何?
  • RQ3使用引导模型是否有助于缓解训练三元组中的数据质量问题?
  • RQ4用 MTEB 派生的三元组扩增加训练数据对下游性能有什么影响?
  • RQ5与其他类似 DCLR 的方法相比,GISTEmbed 在没有额外超参数的情况下是否具有鲁棒性?

主要发现

  • GISTEmbed 在 MTEB 基准上对多种模型规模的无引导微调显著提升具有一致性。
  • 小型模型从 GISTEmbed 中获益显著,在多个任务组中实现了显著的性能提升。
  • 用 MEDI 增强带有 MTEB 分类三元组通常提升分类、重新排序和摘要任务的性能,将 MEDI+MTEBcls 与 GISTEmbed 结合时表现强劲。
  • 使用更长的训练时间配合 GISTEmbed 可以进一步提升分类、检索和 STS 任务的表现,而某些检索任务可能因基础模型尺寸而异。
  • 利用性能高的引导模型使得较小的模型在若干任务上接近或超越基线大型模型,有助于能力的普及。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。