arXiv:2501.16302cs.CL2025-01被引 7

可动态调整层数和序列长度的高效重排序架构

Matryoshka Re-Ranker: A Flexible Re-Ranking Architecture With Configurable Depth and Width

  • 通过级联自蒸馏让子结构继承父模型精度
  • 在不同压缩组合下仍保持优异性能,超越现有方法
  • 适合资源受限场景下的实时重排序应用

大语言模型虽能实现精细文本重排序,但受限于计算资源难以落地。本文提出灵活可配置的马特罗什卡重排序器(Matryoshka Re-Ranker),支持运行时动态调整各层的模型层数与序列长度,适配多样真实场景。为缓解灵活性带来的精度损失,提出级联自蒸馏机制,使子结构从父模型中学习精准排序信号;设计因子化补偿机制,通过垂直与水平协同的低秩适配模块,有效补偿任意层数与序列压缩导致的性能下降。在MSMARCO Passage/Document及BEIR全公开数据集上的实验表明,该方法显著优于现有方法,并在多种压缩形式与应用场景下均保持卓越表现。

原文摘要 · Abstract (English)

Large language models (LLMs) provide powerful foundations to perform fine-grained text re-ranking. However, they are often prohibitive in reality due to constraints on computation bandwidth. In this work, we propose a \textbf{flexible} architecture called \textbf{Matroyshka Re-Ranker}, which is designed to facilitate \textbf{runtime customization} of model layers and sequence lengths at each layer based on users' configurations. Consequently, the LLM-based re-rankers can be made applicable across various real-world situations. The increased flexibility may come at the cost of precision loss. To address this problem, we introduce a suite of techniques to optimize the performance. First, we propose \textbf{cascaded self-distillation}, where each sub-architecture learns to preserve a precise re-ranking performance from its super components, whose predictions can be exploited as smooth and informative teacher signals. Second, we design a \textbf{factorized compensation mechanism}, where two collaborative Low-Rank Adaptation modules, vertical and horizontal, are jointly employed to compensate for the precision loss resulted from arbitrary combinations of layer and sequence compression. We perform comprehensive experiments based on the passage and document retrieval datasets from MSMARCO, along with all public datasets from BEIR benchmark. In our experiments, Matryoshka Re-Ranker substantially outperforms the existing methods, while effectively preserving its superior performance across various forms of compression and different application scenarios.

重排序大模型压缩动态架构

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。