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

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.Recent work explores retrieval-based methods for selecting query-specific demonstrations, but these approaches often rely on surrogate objectives such as metric learning, failing to directly optimize ICL performance.Consequently, they struggle to identify truly beneficial demonstrations.Moreover, their discriminative retrieval paradigm is ineffective when the candidate pool lacks sufficient highquality demonstrations.To address these challenges, we propose GENICL, a novel generative preference learning framework that leverages LLM feedback to directly optimize demonstration selection for ICL.Experiments on 19 datasets across 11 task categories demonstrate that GENICL achieves superior performance than existing methods in selecting the most effective demonstrations, leading to better ICL performance.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.592
Citations
1
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
2.48

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Lei Song, Kan Ren, Jiang Bian, Shaocheng Lan et al.
1 citations
Topic Modeling
2.48
article

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

Lei Song, Kan Ren, Jiang Bian, Shaocheng Lan, Zheng Zhang, Yexin Li
article en
1 citations

Abstract

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.Recent work explores retrieval-based methods for selecting query-specific demonstrations, but these approaches often rely on surrogate objectives such as metric learning, failing to directly optimize ICL performance.Consequently, they struggle to identify truly beneficial demonstrations.Moreover, their discriminative retrieval paradigm is ineffective when the candidate pool lacks sufficient highquality demonstrations.To address these challenges, we propose GENICL, a novel generative preference learning framework that leverages LLM feedback to directly optimize demonstration selection for ICL.Experiments on 19 datasets across 11 task categories demonstrate that GENICL achieves superior performance than existing methods in selecting the most effective demonstrations, leading to better ICL performance.

National Natural Science Foundation of China, Ministry of Education, India, ShanghaiTech University
Quality Education
Openalex Percentile: Top 9%
Topic Modeling
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Learning to Select In-Context Demonstration Preferred by Large Language Model — Lei Song, Kan Ren, et al. · (2025) | TGRS Research Map | TGRS