paper-with-me

Papers

Unified Demonstration Retriever for In-Context Learning

2023-05-07 · Xiaonan Li, Kai Lv, Hang Yan, Tianyang Lin, Wei Zhu, Yuan Ni, Guotong Xie, Xiaoling Wang, Xipeng Qiu

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 the provided demonstrations and thus promotes the research of demonstration retrieval: given a test input, relevant examples are retrieved from the training set to serve as informative demonstrations for in-context learning. While previous works focus on training task-specific retrievers for several tasks separately, these methods are often hard to transfer and scale on various tasks, and separately trained retrievers incur a lot of parameter storage and deployment cost. In this paper, we propose Unified Demonstration Retriever (\textbf{UDR}), a single model to retrieve demonstrations for a wide range of tasks. To train UDR, we cast various tasks' training signals into a unified list-wise ranking formulation by language model's feedback. Then we propose a multi-task list-wise ranking training framework, with an iterative mining strategy to find high-quality candidates, which can help UDR fully incorporate various tasks' signals. Experiments on 30+ tasks across 13 task families and multiple data domains show that UDR significantly outperforms baselines. Further analyses show the effectiveness of each proposed component and UDR's strong ability in various scenarios including different LMs (1.3B - 175B), unseen datasets, varying demonstration quantities, etc.

📄 PDF Abstract BibTeX arXiv:2305.04320

Code (1)

kailv69/udr 공식 구현 pytorch

Tasks

In-Context LearningLanguage ModellingRetrieval

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

RUIE: Retrieval-based Unified Information Extraction using Large Language Model

2024-09-18 · Xincheng Liao, Junwen Duan, Yixi Huang, Jianxin Wang

Unified information extraction (UIE) aims to extract diverse structured information from unstructured text. While large language models (LLMs) have shown promise for UIE, they require significant computational resources …

Contrastive LearningIn-Context LearningKnowledge DistillationLanguage Modeling+4

Dr.ICL: Demonstration-Retrieved In-context Learning

2023-05-23 · Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat 외

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

In-Context LearningLanguage ModelingLanguage ModellingLarge Language Model+1

Dynamic Retriever for In-Context Knowledge Editing via Policy Optimization

2025-10-24 · Mahmud Wasif Nafee, Maiqi Jiang, Haipeng Chen, Yanfu Zhang arxiv

Large language models (LLMs) excel at factual recall yet still propagate stale or incorrect knowledge. In-context knowledge editing offers a gradient-free remedy suitable for black-box APIs, but current editors rely on s…

knowledge editing

In-Context Learning for Few-Shot Nested Named Entity Recognition

2024-02-02 · Meishan Zhang, Bin Wang, Hao Fei, Min Zhang

In nested Named entity recognition (NER), entities are nested with each other, and thus requiring more data annotations to address. This leads to the development of few-shot nested NER, where the prevalence of pretrained…

Contrastive LearningIn-Context Learningnamed-entity-recognitionNamed Entity Recognition+6

A Unified Generative Retriever for Knowledge-Intensive Language Tasks via Prompt Learning

2023-04-28 · Jiangui Chen, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke 외

Knowledge-intensive language tasks (KILTs) benefit from retrieving high-quality relevant contexts from large external knowledge corpora. Learning task-specific retrievers that return relevant contexts at an appropriate l…

Prompt LearningRetrievalSentence