基于Bagging的模型融合用于鲁棒通用文本嵌入
Bagging-Based Model Merging for Robust General Text Embeddings
AI总结:
BOOM通过批量级洗牌和模型融合提升文本嵌入鲁棒性,减少增量学习成本。
摘要:
通用文本嵌入模型是支撑广泛自然语言处理和信息检索应用的基础,通常在大规模多任务语料库上进行训练以促进广泛泛化。然而,实践中不同多任务训练策略的比较仍不明确,且如何高效适应新领域和数据类型持续出现的问题仍然存在。在本工作中,我们从数据调度和模型融合两个角度对文本嵌入的多任务训练进行了系统研究。我们比较了批量级洗牌、序列训练变体、两阶段训练以及多种融合粒度,并发现简单的批量级洗牌始终产生最强的整体性能,表明任务冲突有限且训练数据集大多互补。尽管其有效性,批量级洗牌存在两个实际限制:领域外(OOD)泛化次优和由于全量重新训练昂贵而不适合增量学习。为了解决这些问题,我们提出了基于Bagging的鲁棒模型融合(BOOM),它在采样子集上训练多个嵌入模型并将其融合为一个模型,从而在保持单模型推理效率的同时提高鲁棒性。此外,BOOM自然支持高效的增量更新,通过在新数据上训练轻量级更新模型并将其融合到现有模型中。在多样化的嵌入基准测试中,BOOM在保持全语料库批量级洗牌在领域内和领域外性能的同时,显著降低了增量学习设置下的训练成本。
英文摘要:
General-purpose text embedding models underpin a wide range of NLP and information retrieval applications, and are typically trained on large-scale multi-task corpora to encourage broad generalization. However, it remains unclear how different multi-task training strategies compare in practice, and how to efficiently adapt embedding models as new domains and data types continually emerge. In this work, we present a systematic study of multi-task training for text embeddings from two perspectives: data scheduling and model merging. We compare batch-level shuffling, sequential training variants, two-stage training, and multiple merging granularities, and find that simple batch-level shuffling consistently yields the strongest overall performance, suggesting that task conflicts are limited and training datasets are largely complementary. Despite its effectiveness, batch-level shuffling exhibits two practical limitations: suboptimal out-of-domain (OOD) generalization and poor suitability for incremental learning due to expensive full retraining. To address these issues, we propose Bagging-based rObust mOdel Merging (BOOM), which trains multiple embedding models on sampled subsets and merges them into a single model, improving robustness while retaining single-model inference efficiency. Moreover, BOOM naturally supports efficient incremental updates by training lightweight update models on new data with a small historical subset and merging them into the existing model. Experiments across diverse embedding benchmarks demonstrate that BOOM consistently improves both in-domain and OOD performance over full-corpus batch-level shuffling, while substantially reducing training cost in incremental learning settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。