Fine-Tuning LLaMA for Multi-Stage Text Retrieval

By Xueguang Ma, Liang Wang, Nan Yang, Furu Wei, Jimmy J. Lin. Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, 2023

431 citations recorded by the source corpus.

While large language models (LLMs) have shown impressive NLP capabilities, existing IR applications mainly focus on prompting LLMs to generate query expansions or generating permutations for listwise reranking. In this study, we leverage LLMs directly to serve as components in the widely used multi-stage text ranking pipeline. Specifically, we fine-tune the open-source LLaMA-2 model as a dense retriever (repLLaMA) and a pointwise reranker (rankLLaMA). This is performed for both passage and document retrieval tasks using the MS MARCO training data. Our study shows that finetuned LLM retrieval models outperform smaller models. They are more effective and exhibit greater generalizability, requiring only a straightforward training strategy. Moreover, our pipeline allows for the fine-tuning of LLMs at each stage of a multi-stage retrieval pipeline. This demonstrates the strong potential for optimizing LLMs to enhance a variety of retrieval tasks. Furthermore, as LLMs are naturally pre-trained with longer contexts, they can directly represent longer documents. This eliminates the need for heuristic segmenting and pooling strategies to rank long documents. On the MS MARCO and BEIR datasets, our repLLaMA-rankLLaMA pipeline demonstrates a high level of effectiveness.

Subfields: Artificial Intelligence

View Paper: https://www.semanticscholar.org/paper/a531e9a328ad1488567fa68c15d5bf30bfb90c78

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Furu Wei
  2. Hong-Liu Cao
  3. Siva Reddy
  4. Nan Yang
  5. Mohit Bansal
  6. Jianfeng Gao
  7. Percy Liang
  8. Luke S. Zettlemoyer

Citations in the corpus