通过模型合并解决文本嵌入训练中的任务冲突与数据不平衡问题
Improving General Text Embedding Model: Tackling Task Conflict and Data Imbalance through Model Merging
- 采用独立训练后合并模型,避免多任务梯度冲突
- 在MTEB上提升0.7分,优于传统重采样方法
- 适合构建高性能通用文本嵌入模型的研究者
文本嵌入对文本检索和语义文本相似性(STS)等任务至关重要。近年来,预训练语言模型与统一基准(如大规模文本嵌入基准MTEB)推动了通用文本嵌入模型的发展。先进模型通常基于大规模多任务数据进行联合训练,但实验分析揭示两个显著缺陷:1)任务冲突:不同任务的梯度相互干扰,导致负迁移;2)数据不平衡:数据分布不均引入偏差,影响各任务表现。为此,本文探索模型合并技术,通过整合独立训练的模型缓解梯度冲突并平衡数据分布。提出新颖方法Self Positioning,利用随机梯度下降在任务向量插值空间中高效搜索最优组合。实验表明,Self Positioning在MTEB上实现绝对性能提升0.7点,优于传统重采样方法且降低计算成本。本工作为构建跨任务表现更优的通用文本嵌入模型提供了可靠方案。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。