改进通用文本嵌入模型:通过模型合并解决任务冲突与数据不平衡问题
Improving General Text Embedding Model: Tackling Task Conflict and Data Imbalance through Model Merging
AI总结:
本文针对多任务联合训练中的任务冲突和数据不平衡问题,提出自定位模型合并方法,在MTEB上提升0.7个点并降低计算成本。
摘要:
文本嵌入对于文本检索和语义文本相似性(STS)等任务至关重要。近年来,预训练语言模型的出现,以及大规模文本嵌入基准(MTEB)等统一基准的建立,促进了多功能通用文本嵌入模型的发展。先进的嵌入模型通常利用大规模多任务数据和跨多任务的联合训练来开发。然而,我们的实验分析揭示了联合训练的两个显著缺点:1)任务冲突:来自不同任务的梯度相互干扰,导致负迁移。2)数据不平衡:不成比例的数据分布引入偏差,对各任务性能产生负面影响。为克服这些挑战,我们探索了模型合并——一种将独立训练的模型进行组合以缓解梯度冲突并平衡数据分布的技术。我们提出了一种新方法,名为自定位(Self Positioning),该方法利用随机梯度下降在任务向量的插值空间中高效搜索最优模型组合。我们的实验表明,自定位显著提升了在MTEB数据集上的多任务性能,取得了0.7个点的绝对提升。它在降低计算成本的同时,优于传统的重采样方法。这项工作为构建在各类嵌入相关任务上具有卓越性能的通用文本嵌入模型提供了一种稳健的方法。
英文摘要:
Text embeddings are vital for tasks such as text retrieval and semantic textual similarity (STS). Recently, the advent of pretrained language models, along with unified benchmarks like the Massive Text Embedding Benchmark (MTEB), has facilitated the development of versatile general-purpose text embedding models. Advanced embedding models are typically developed using large-scale multi-task data and joint training across multiple tasks. However, our experimental analysis reveals two significant drawbacks of joint training: 1) Task Conflict: Gradients from different tasks interfere with each other, leading to negative transfer. 2) Data Imbalance: Disproportionate data distribution introduces biases that negatively impact performance across tasks. To overcome these challenges, we explore model merging-a technique that combines independently trained models to mitigate gradient conflicts and balance data distribution. We introduce a novel method, Self Positioning, which efficiently searches for optimal model combinations within the interpolation space of task vectors using stochastic gradient descent. Our experiments demonstrate that Self Positioning significantly enhances multi-task performance on the MTEB dataset, achieving an absolute improvement of 0.7 points. It outperforms traditional resampling methods while reducing computational costs. This work offers a robust approach to building generalized text embedding models with superior performance across diverse embedding-related tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。