paper-with-me

Papers

Dr.ICL: Demonstration-Retrieved In-context Learning

2023-05-23 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao

In-context learning (ICL), teaching a large language model (LLM) to perform a task with few-shot demonstrations rather than adjusting the model parameters, has emerged as a strong paradigm for using LLMs. While early studies primarily used a fixed or random set of demonstrations for all test queries, recent research suggests that retrieving semantically similar demonstrations to the input from a pool of available demonstrations results in better performance. This work expands the applicability of retrieval-based ICL approaches by demonstrating that even simple word-overlap similarity measures such as BM25 outperform randomly selected demonstrations. Furthermore, we extend the success of retrieval-based ICL to instruction-finetuned LLMs as well as Chain-of-Thought (CoT) prompting. For instruction-finetuned LLMs, we find that although a model has already seen the training data at training time, retrieving demonstrations from the training data at test time yields better results compared to using no demonstrations or random demonstrations. Last but not least, we train a task-specific demonstration retriever that outperforms off-the-shelf retrievers.

📄 PDF Abstract BibTeX arXiv:2305.14128

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningLanguage ModelingLanguage ModellingLarge Language ModelRetrieval

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

In-context Learning with Retrieved Demonstrations for Language Models: A Survey

2024-01-21 · Man Luo, Xin Xu, Yue Liu, Panupong Pasupat 외

Language models, especially pre-trained large language models, have showcased remarkable abilities as few-shot in-context learners (ICL), adept at adapting to new tasks with just a few demonstrations in the input context…

In-Context LearningRetrieval

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 r…

In-Context LearningPassage Ranking

Mixture of Demonstrations for Textual Graph Understanding and Question Answering

2026-03-23 · Yukun Wu, Lihui Liu arxiv

Textual graph-based retrieval-augmented generation (GraphRAG) has emerged as a powerful paradigm for enhancing large language models (LLMs) in domain-specific question answering. While existing approaches primarily focus…

Question Answering

TRAD: Enhancing LLM Agents with Step-Wise Thought Retrieval and Aligned Decision

2024-03-10 · Ruiwen Zhou, Yingxuan Yang, Muning Wen, Ying Wen 외

Numerous large language model (LLM) agents have been built for different tasks like web navigation and online shopping due to LLM's wide knowledge and text-understanding ability. Among these works, many of them utilize i…

Language ModellingLarge Language ModelRetrievalSequential Decision Making

Unified Demonstration Retriever for In-Context Learning

2023-05-07 · Xiaonan Li, Kai Lv, Hang Yan, Tianyang Lin 외

In-context learning is a new learning paradigm where a language model conditions on a few input-output pairs (demonstrations) and a test input, and directly outputs the prediction. It has been shown highly dependent on t…

In-Context LearningLanguage ModellingRetrieval