arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.16608cs.LGcs.CL
收藏

使用还是不使用MRL:文本嵌入在没有Matryoshka学习的情况下对截断具有鲁棒性,除非在重度截断场景下

To MRL or not to MRL: Text Embeddings are Robust to Truncation Without Matryoshka Learning, Except In Heavy Truncation Scenarios

Data and Web Science Group, University of Mannheim(曼海姆大学数据与网络科学小组);NEC Laboratories Europe(NEC欧洲实验室);Independent Researcher(独立研究者)

Sotaro Takeshita, Yurina Takeshita, Simone Paolo Ponzetto, Daniel Ruffinelli

AI总结:

本文通过实验比较了使用Matryoshka表示学习(MRL)与随机截断对文本嵌入的影响,发现除非嵌入被重度截断(减少至少80%),否则非MRL模型的截断嵌入性能与MRL模型相当甚至更优。

摘要:

Matryoshka表示学习(MRL)是一种广泛采用的方法,用于训练文本编码器,使其提供各种大小的有用文本表示,只需在训练时预先确定的大小处截断结果向量即可。最近的研究表明,除非向量大小减少至少70%,否则随机截断文本嵌入对下游性能的影响很小,这表明嵌入在没有MRL的情况下已经对截断具有鲁棒性。然而,之前没有工作将随机截断与MRL进行比较,因此不清楚这两种方法作为有效的嵌入缩减方法如何比较。在本文中,我们通过将MRL使用的相同截断应用于使用和不使用MRL训练的模型来研究这一点。我们在多个模型和下游任务上的结果表明,除非重度截断嵌入(即将其大小减少至少80%),否则非MRL模型的截断嵌入与使用MRL训练的模型具有竞争力,并且通常表现更好。这表明截断鲁棒性可能不一定来自MRL,而选择花费MRL的额外训练成本取决于是否需要重度截断。我们提供代码以供复现。

英文摘要:

Matryoshka Representation Learning (MRL) is a widely adopted approach for training text encoders so they provide useful text representations at various sizes, available by simply truncating the resulting vectors at sizes pre-determined at training time. Recent works have shown that randomly truncating text embeddings has minimal impact in downstream performance unless vectors are reduced in size by at least 70%, suggesting that embeddings are already robust to truncation without the use of MRL. However, no prior work has compared random truncation to MRL, so it is unclear how the two methods compare as effective embedding reduction methods. In this paper, we study this by applying the same truncation used by MRL to models trained with and without MRL. Our results across several models and downstream tasks show that, unless heavily truncating embeddings (i.e. reducing their size by at least 80%), truncated embeddings of non-MRL models are competitive with, and often outperform models trained with MRL. This suggests that truncation robustness may not necessarily come from MRL, and that the choice of spending the additional training cost of MRL depends on whether heavy truncation is desired. We make our code available for reproduction.

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

↑