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

大型语言模型中的注意力机制产生高效的零样本重排器

Attention in Large Language Models Yields Efficient Zero-Shot Re-Rankers

The Ohio State University(俄亥俄州立大学)

Shijie Chen, Bernal Jiménez Gutiérrez, Yu Su

AI总结:

提出上下文重排(ICR)方法,利用LLM注意力模式变化进行零样本重排,仅需O(1)前向传递,效率比生成式方法高60%以上,性能优于RankGPT。

摘要:

信息检索(IR)系统在现代数字生活中发挥了至关重要的作用,并通过检索增强生成在这一生成式AI新时代中巩固了其持续的有用性。凭借强大的语言处理能力和卓越的多功能性,大型语言模型(LLMs)已成为IR系统中零样本重排的热门选择。到目前为止,基于LLM的重排方法依赖于强大的生成能力,这将其使用限制在专用或强大的专有模型上。鉴于这些限制,我们提出疑问:自回归生成对于LLM执行重排是否必要且最优?我们假设LLM内部存在与重排相关的丰富信号,这些信号可能未通过生成得到充分利用。为了更直接地利用这些信号,我们提出了上下文重排(ICR),一种利用搜索查询引起的注意力模式变化进行准确高效重排的新方法。为了缓解LLM中的内在偏差,我们提出了一种使用无内容查询的校准方法。由于无需生成,ICR仅需两次(O(1))前向传递即可重排N个文档,使其比需要至少O(N)次前向传递的生成式重排方法效率显著提高。我们的新颖设计还使ICR能够应用于任何LLM而无需专门训练,同时保证形成良好的排序。使用两种流行的开放权重LLM在标准单跳和多跳信息检索基准上的大量实验表明,ICR优于RankGPT,同时在实际中将延迟降低了60%以上。通过详细分析,我们表明ICR的性能在需要更复杂重排信号的任务上特别强。我们的发现呼吁进一步探索超越文本生成的利用开放权重LLM的新方法。

英文摘要:

Information retrieval (IR) systems have played a vital role in modern digital life and have cemented their continued usefulness in this new era of generative AI via retrieval-augmented generation. With strong language processing capabilities and remarkable versatility, large language models (LLMs) have become popular choices for zero-shot re-ranking in IR systems. So far, LLM-based re-ranking methods rely on strong generative capabilities, which restricts their use to either specialized or powerful proprietary models. Given these restrictions, we ask: is autoregressive generation necessary and optimal for LLMs to perform re-ranking? We hypothesize that there are abundant signals relevant to re-ranking within LLMs that might not be used to their full potential via generation. To more directly leverage such signals, we propose in-context re-ranking (ICR), a novel method that leverages the change in attention pattern caused by the search query for accurate and efficient re-ranking. To mitigate the intrinsic biases in LLMs, we propose a calibration method using a content-free query. Due to the absence of generation, ICR only requires two ($O(1)$) forward passes to re-rank $N$ documents, making it substantially more efficient than generative re-ranking methods that require at least $O(N)$ forward passes. Our novel design also enables ICR to be applied to any LLM without specialized training while guaranteeing a well-formed ranking. Extensive experiments with two popular open-weight LLMs on standard single-hop and multi-hop information retrieval benchmarks show that ICR outperforms RankGPT while cutting the latency by more than 60% in practice. Through detailed analyses, we show that ICR's performance is specially strong on tasks that require more complex re-ranking signals. Our findings call for further exploration on novel ways of utilizing open-weight LLMs beyond text generation.

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

↑