SMEC:重新思考用于检索嵌入压缩的套娃表示学习
SMEC: Rethinking Matryoshka Representation Learning for Retrieval Embedding Compression
AI总结:
针对高维嵌入带来的计算与存储问题,提出SMEC框架,通过顺序套娃表示学习、自适应维度选择和跨批次记忆模块,在显著压缩维度的同时保持甚至提升检索性能。
摘要:
大型语言模型(LLMs)生成的高维嵌入能够捕获丰富的语义和句法信息。然而,高维嵌入加剧了计算复杂度和存储需求,从而阻碍了实际部署。为解决这些挑战,我们提出了一种名为顺序套娃嵌入压缩(SMEC)的新型训练框架。该框架引入了顺序套娃表示学习(SMRL)方法以减轻训练过程中的梯度方差,自适应维度选择(ADS)模块以减少维度剪枝过程中的信息退化,以及可选跨批次记忆(S-XBM)模块以增强高维和低维嵌入之间的无监督学习。在图像、文本和多模态数据集上的实验表明,SMEC在保持性能的同时实现了显著的维度缩减。例如,在BEIR数据集上,与Matryoshka-Adaptor和Search-Adaptor模型相比,我们的方法将压缩后的LLM2Vec嵌入(256维)的性能分别提升了1.1个点和2.7个点。
英文摘要:
Large language models (LLMs) generate high-dimensional embeddings that capture rich semantic and syntactic information. However, high-dimensional embeddings exacerbate computational complexity and storage requirements, thereby hindering practical deployment. To address these challenges, we propose a novel training framework named Sequential Matryoshka Embedding Compression (SMEC). This framework introduces the Sequential Matryoshka Representation Learning(SMRL) method to mitigate gradient variance during training, the Adaptive Dimension Selection (ADS) module to reduce information degradation during dimension pruning, and the Selectable Cross-batch Memory (S-XBM) module to enhance unsupervised learning between high- and low-dimensional embeddings. Experiments on image, text, and multimodal datasets demonstrate that SMEC achieves significant dimensionality reduction while maintaining performance. For instance, on the BEIR dataset, our approach improves the performance of compressed LLM2Vec embeddings (256 dimensions) by 1.1 points and 2.7 points compared to the Matryoshka-Adaptor and Search-Adaptor models, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。