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

小型嵌入模型的压缩级联方法

Compressed Concatenation of Small Embedding Models

University of Passau(巴伐利亚大学)

Mohamed Ayoub Ben Ayad, Michael Dinzinger, Kanishka Ghosh Dastidar, Jelena Mitrovic, Michael Granitzer

AI总结:

针对小型嵌入模型性能不足的问题,提出级联多个小模型并结合MRL损失训练的轻量解码器降维的方法,在MTEB子集上以48倍压缩比恢复89%性能,且级联更多模型可提升压缩鲁棒性。

摘要:

嵌入模型是稠密检索、语义搜索和推荐系统的核心组件,但其体积往往导致在浏览器或边缘设备等资源受限环境中难以部署。小型嵌入模型虽具备实用优势,但性能通常不及更大的同类模型。为弥补这一差距,我们证明将多个小型模型的原始嵌入向量级联,在标准检索基准上的表现可优于单个更大的基线模型。为解决直接级联导致的高维数问题,我们提出一种采用Matryoshka表示学习(MRL,即套娃表示学习)损失训练的轻量级统一解码器。该解码器将高维联合表示映射到低维空间,无需微调基础模型即可保留大部分原有性能。我们还发现,尽管级联更多基础模型带来的收益会递减,但解码器表示在压缩和量化下的鲁棒性会提升。实验结果显示,在MTEB检索任务的一个子集上,当我们的级联-编码-量化流水线应用于四个小型嵌入模型的级联时,以48倍的压缩比恢复了89%的原始性能。

英文摘要:

Embedding models are central to dense retrieval, semantic search, and recommendation systems, but their size often makes them impractical to deploy in resource-constrained environments such as browsers or edge devices. While smaller embedding models offer practical advantages, they typically underperform compared to their larger counterparts. To bridge this gap, we demonstrate that concatenating the raw embedding vectors of multiple small models can outperform a single larger baseline on standard retrieval benchmarks. To overcome the resulting high dimensionality of naive concatenation, we introduce a lightweight unified decoder trained with a Matryoshka Representation Learning (MRL) loss. This decoder maps the high-dimensional joint representation to a low-dimensional space, preserving most of the original performance without fine-tuning the base models. We also show that while concatenating more base models yields diminishing gains, the robustness of the decoder's representation under compression and quantization improves. Our experiments show that, on a subset of MTEB retrieval tasks, our concat-encode-quantize pipeline recovers 89\% of the original performance with a 48x compression factor when the pipeline is applied to a concatenation of four small embedding models.

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

↑