paper-with-me

Papers

DemoRank: Selecting Effective Demonstrations for Large Language Models in Ranking Task

2024-06-24 · Wenhan Liu, Yutao Zhu, Zhicheng Dou

Recently, there has been increasing interest in applying large language models (LLMs) as zero-shot passage rankers. However, few studies have explored how to select appropriate in-context demonstrations for the passage ranking task, which is the focus of this paper. Previous studies mainly use LLM's feedback to train a retriever for demonstration selection. These studies apply the LLM to score each demonstration independently, which ignores the dependencies between demonstrations (especially important in ranking task), leading to inferior performance of top-$k$ retrieved demonstrations. To mitigate this issue, we introduce a demonstration reranker to rerank the retrieved demonstrations so that top-$k$ ranked ones are more suitable for ICL. However, generating training data for such reranker is quite challenging. On the one hand, different from demonstration retriever, the training samples of reranker need to incorporate demonstration dependencies. On the other hand, obtaining the gold ranking from the retrieved demonstrations is an NP-hard problem, which is hard to implement. To overcome these challenges, we propose a method to approximate the optimal demonstration list iteratively and utilize LLM to score demonstration lists of varying lengths. By doing so, the search space is greatly reduced and demonstration dependencies are considered. Based on these scored demonstration lists, we further design a list-pairwise training approach which compares a pair of lists that only differ in the last demonstration, to teach the reranker how to select the next demonstration given a previous sequence. In this paper, we propose a demonstration selection framework DemoRank for ranking task and conduct extensive experiments to prove its strong ability.

📄 PDF Abstract BibTeX arXiv:2406.16332

Code (1)

8421bcd/demorank 공식 구현 pytorch

Tasks

In-Context LearningPassage Ranking

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Learning to Select In-Context Demonstration Preferred by Large Language Model

2025-05-26 · Zheng Zhang, Shaocheng Lan, Lei Song, Jiang Bian 외

In-context learning (ICL) enables large language models (LLMs) to adapt to new tasks during inference using only a few demonstrations. However, ICL performance is highly dependent on the selection of these demonstrations…

In-Context LearningLanguage ModelingLanguage ModellingLarge Language Model+2

PaRaDe: Passage Ranking using Demonstrations with Large Language Models

2023-10-22 · Andrew Drozdov, Honglei Zhuang, Zhuyun Dai, Zhen Qin 외

Recent studies show that large language models (LLMs) can be instructed to effectively perform zero-shot passage re-ranking, in which the results of a first stage retrieval method, such as BM25, are rated and reordered t…

Passage RankingPassage Re-RankingQuestion GenerationQuestion-Generation+4

In-Context Demonstration Selection with Cross Entropy Difference

2023-05-24 · Dan Iter, Reid Pryzant, Ruochen Xu, Shuohang Wang 외

Large language models (LLMs) can use in-context demonstrations to improve performance on zero-shot tasks. However, selecting the best in-context examples is challenging because model performance can vary widely depending…

Language ModelingLanguage ModellingText Generation

Explanation based In-Context Demonstrations Retrieval for Multilingual Grammatical Error Correction

2025-02-12 · Wei Li, Wen Luo, Guangyue Peng, Houfeng Wang

Grammatical error correction (GEC) aims to correct grammatical, spelling, and semantic errors in natural language text. With the growing of large language models (LLMs), direct text generation has gradually become the fo…

Grammatical Error CorrectionIn-Context LearningRetrievalText Generation

In-Context Learning Demonstration Selection via Influence Analysis

2024-02-19 · Vinay M. S., Minh-Hao Van, Xintao Wu

Large Language Models (LLMs) have showcased their In-Context Learning (ICL) capabilities, enabling few-shot learning without the need for gradient updates. Despite its advantages, the effectiveness of ICL heavily depends…

Few-Shot LearningIn-Context Learning