arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.13230cs.IR
收藏

Starbucks-v2:针对2D Matryoshka嵌入的改进训练方法

Starbucks-v2: Improved Training for 2D Matryoshka Embeddings

Shengyao Zhuang, Shuai Wang, Fabio Zheng, Bevan Koopman, Guido Zuccon

AI总结:

提出Starbucks训练策略,结合结构化微调与MAE预训练,解决了2D Matryoshka嵌入模型性能不及独立训练模型的问题,在保持高效适应性的同时达到或超越独立模型表现。

摘要:

2D Matryoshka训练使单一嵌入模型能够跨不同层和嵌入维度生成子网络表示,从而适应多样的计算与任务约束。然而,其有效性仍远低于同等规模的独立训练模型。为此,我们提出Starbucks,一种用于Matryoshka风格嵌入模型的新训练策略,该策略将结构化微调与掩码自编码器(MAE)预训练相结合。在微调期间,我们在从大到小的固定层-维度对集合上计算损失,这显著提升了相较于随机采样子网络的性能,并达到了独立训练模型的水平。我们基于MAE的预训练进一步增强了子网络的表示质量,为下游任务提供了更强大的骨干网络。在域内(语义相似性和段落检索)和域外(BEIR)基准上的实验表明,Starbucks始终优于2D Matryoshka模型,并达到或超越独立训练模型的性能,同时保持高效性与适应性。消融实验验证了我们的损失设计选择及SMAE预训练的影响,并证明了Starbucks在不同骨干网络上的适用性。我们进一步表明,深度和宽度方向的Starbucks变体能捕获互补信息,且由于并行化,它们的混合化能以极小的延迟开销产生额外的性能提升。代码可在https://github.com/ielab/Starbucks获取。

英文摘要:

2D Matryoshka training enables a single embedding model to generate sub-network representations across different layers and embedding dimensions, offering adaptability to diverse computational and task constraints. However, its effectiveness remains well below that of individually trained models of equivalent sizes. To address this, we propose Starbucks, a new training strategy for Matryoshka-style embedding models that combines structured fine-tuning with masked autoencoder (MAE) pre-training. During fine-tuning, we compute the loss over a fixed set of layer-dimension pairs, from small to large, which significantly improves performance over randomly sampled sub-networks and matches that of separately trained models. Our MAE-based pre-training further enhances the representation quality of sub-networks, providing a stronger backbone for downstream tasks. Experiments on both in-domain (semantic similarity and passage retrieval) and out-of-domain (BEIR) benchmarks show that Starbucks consistently outperforms 2D Matryoshka models and matches or exceeds the performance of individually trained models, while maintaining high efficiency and adaptability. Ablation studies confirm our loss design choices, the impact of SMAE pre-training and demonstrate the applicability of Starbucks across backbones. We further show that depth- and width-wise Starbucks variants capture complementary information, and that their hybridization yields additional performance gains with minimal latency overhead due to parallelization. Code available at https://github.com/ielab/Starbucks

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑