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

微调LLaMA用于多阶段文本检索

Fine-Tuning LLaMA for Multi-Stage Text Retrieval

Xueguang Ma, Liang Wang, Nan Yang, Furu Wei, Jimmy Lin

AI总结:

本研究将LLaMA微调为密集检索器RepLLaMA和重排序器RankLLaMA,在MS MARCO上验证其超越小模型,并能整体表示长文档,在BEIR上展现强零样本性能。

摘要:

多阶段文本检索的有效性在预训练语言模型时代之前就已得到充分证明。然而,大多数现有研究使用的模型早于大型语言模型(LLMs)的最新进展。本研究旨在探索最先进的LLMs可能带来的潜在改进。我们进行了一项综合研究,在MS MARCO数据集上,将最新的LLaMA模型微调为密集检索器(RepLLaMA)和逐点重排序器(RankLLaMA),用于段落检索和文档检索。我们的研究结果表明,大型语言模型的有效性确实超过了较小的模型。此外,由于LLMs天生能够处理更长的上下文,它们可以整体性地表示整个文档,从而无需传统的分段和池化策略。进一步在BEIR上的评估表明,我们的RepLLaMA-RankLLaMA流水线表现出强大的零样本有效性。本研究的模型检查点可在HuggingFace上获取。

英文摘要:

The effectiveness of multi-stage text retrieval has been solidly demonstrated since before the era of pre-trained language models. However, most existing studies utilize models that predate recent advances in large language models (LLMs). This study seeks to explore potential improvements that state-of-the-art LLMs can bring. We conduct a comprehensive study, fine-tuning the latest LLaMA model both as a dense retriever (RepLLaMA) and as a pointwise reranker (RankLLaMA) for both passage retrieval and document retrieval using the MS MARCO datasets. Our findings demonstrate that the effectiveness of large language models indeed surpasses that of smaller models. Additionally, since LLMs can inherently handle longer contexts, they can represent entire documents holistically, obviating the need for traditional segmenting and pooling strategies. Furthermore, evaluations on BEIR demonstrate that our RepLLaMA-RankLLaMA pipeline exhibits strong zero-shot effectiveness. Model checkpoints from this study are available on HuggingFace.

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

↑