Skip to main content
QUICK REVIEW

[논문 리뷰] Large Language Models are Effective Text Rankers with Pairwise Ranking Prompting

Zhen Qin, Rolf Jagerman|arXiv (Cornell University)|2023. 06. 30.
Topic ModelingComputer Science인용 수 16
한 줄 요약

쌍별 랭킹 프롬 prompting(PRP)가 LLM으로 문서 쌍을 비교해 텍스트를 랭킹하도록 하며, 표준 벤치마크에서 중형 규모의 오픈소스 LLM으로 제로샷 랭킹의 최첨단을 달성합니다. PRP는 TREC-DL2019/2020에서 많은 더 큰 모델이나 블랙박스 모델보다 우수하며 PRP-Sliding-K와 같은 변형으로도 효율적입니다.

ABSTRACT

Ranking documents using Large Language Models (LLMs) by directly feeding the query and candidate documents into the prompt is an interesting and practical problem. However, researchers have found it difficult to outperform fine-tuned baseline rankers on benchmark datasets. We analyze pointwise and listwise ranking prompts used by existing methods and argue that off-the-shelf LLMs do not fully understand these challenging ranking formulations. In this paper, we propose to significantly reduce the burden on LLMs by using a new technique called Pairwise Ranking Prompting (PRP). Our results are the first in the literature to achieve state-of-the-art ranking performance on standard benchmarks using moderate-sized open-sourced LLMs. On TREC-DL 2019&2020, PRP based on the Flan-UL2 model with 20B parameters performs favorably with the previous best approach in the literature, which is based on the blackbox commercial GPT-4 that has 50x (estimated) model size, while outperforming other LLM-based solutions, such as InstructGPT which has 175B parameters, by over 10% for all ranking metrics. By using the same prompt template on seven BEIR tasks, PRP outperforms supervised baselines and outperforms the blackbox commercial ChatGPT solution by 4.2% and pointwise LLM-based solutions by more than 10% on average NDCG@10. Furthermore, we propose several variants of PRP to improve efficiency and show that it is possible to achieve competitive results even with linear complexity.

연구 동기 및 목표

  • LLM용 텍스트 랭킹 문제를 동기 부여하고 포인트-와이즈(pointwise) 프롬프트와 리스트와이즈(listwise) 프롬프트의 한계를 식별합니다.
  • LLM의 과제 난이도를 줄이기 위해 Pairwise Ranking Prompting(PRP)을 도입합니다.
  • 오픈소스 중간 규모의 LLM이 표준 벤치마크에서 최첨단 랭킹 성능을 달성할 수 있음을 입증합니다.
  • PRP의 효율성 변형을 탐구하고 입력 순서 및 API 모드에 대한 강건성을 분석합니다.

제안 방법

  • LLM이 두 개의 본문 중 어느 쪽이 쿼리와 더 관련 있는지 묻는 쌍별 프롬 prompts 유닛 u(q, d1, d2) 정의합니다.
  • 쌍별 출력에 로그 가능도 기반 점수를 얻기 위해 점수화 모드를 사용하고 프롬프트 순서 민감도를 완화하기 위해 문서 순서를 교환합니다.
  • 세 가지 PRP 변형 개발: PRP-Allpair(전역 쌍별 집계), PRP-Sorting(쌍별 비교를 정렬의 비교기로 사용), PRP-Sliding-K(선형 시간, 상위 K에 초점).
  • 오픈소스 LLM들(FLAN-T5-XL/XXL, FLAN-UL2)을 사용한 상위 100 BM25 재랭크를 포함하여 MS MARCO 기반 TREC-DL2019 및 TREC-DL2020에서 평가하고 기준선과 비교합니다.
  • 생성과 점수화 API 모두를 지원하고, 입력 순서에 대한 강건성 및 선형 시간 변형 등의 실용적 특성을 논의합니다.

실험 결과

연구 질문

  • RQ1쌍별 프롬프팅으로 중형 규모의 오픈소스 LLM이 미세조정된 기준선을 능가하는 제로샷 랭킹을 달성할 수 있는가?
  • RQ2PRP 변형들이 표준 벤치마크에서 포인트와이즈 및 리스트와이즈 프롬프팅 접근법에 비해 정확도와 효율성 면에서 어떻게 비교되는가?
  • RQ3오픈소스 LLM이 생성 모드 대 점수화 모드에서 입력 순서 섭동하에 경쟁력 있는 랭킹을 달성할 수 있는가?
  • RQ4PRP-Allpair, PRP-Sorting, PRP-Sliding-K 간의 계산 복잡도와 강건성 측면의 트레이드오프는 무엇인가?

주요 결과

  • PRP가 FLAN-UL2 20B에서 TREC-DL2020에서 최첨단 결과를 달성하며 이전의 GPT-4 기반 최상위보다 NDCG@1에서 5% 이상 앞섰다.
  • TREC-DL2019에서 PRP 접근법은 InstructGPT를 능가하고 GPT-4와 경쟁력이 있으며, 특히 대부분의 랭킹 지표에서 강력하다.
  • FLAN-UL2 및 FLAN-T5를 기반으로 한 PRP 변형은 이전의 거대 LLM들보다 훨씬 작은 모델(3B–20B)로도 경쟁력 있는 결과를 보인다.
  • PRP-Sliding-K는 선형 또는 거의 선형 복잡도와 우수한 상위 K 랭킹 성능으로 효율성-효과의 균형을 제공합니다.
  • PRP는 입력 순서에 강건하고 점수화 API와 생성 API 모두에서 작동하며 프롬프트 모드에 대한 민감도가 작습니다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.