Performance-Driven Demonstration Selection for In-Context Learning
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 5946-5954.
https://doi.org/10.24963/ijcai.2026/662
Keywords
- Natural Language Processing: Language models
- Natural Language Processing: Language generation
- Natural Language Processing: Applications
- Natural Language Processing: Machine translation and multilinguality
Abstract
In-context learning (ICL) enables large language models (LLMs) to adapt to new tasks with considerable performance gains, yet its effectiveness is highly sensitive to the choice of demonstrations. Most existing selection methods rely on heuristic or proxy signals, such as similarity, diversity, or uncertainty, and select demonstrations independently, which may misalign with downstream performance and overlook set-level composition effects. Therefore, we propose Performance-Driven Demonstration Selection (PDDS), which directly aligns demonstration selection with ICL performance. PDDS formulates selection as predicting the target LLM’s downstream task performance for a given query–in-context pair, replacing proxy heuristics with a performance-aware objective. Unlike prior approaches that rank demonstrations independently before composing the prompt, PDDS evaluates the entire in-context set, capturing inter-demonstration interactions and composition effects. PDDS trains an end-to-end scorer using supervision from the target LLM’s actual task outcomes. At inference time, it selects high-scoring in-context sets without additional target LLM calls or validation-time feedback. Across 6 NLP tasks, 8 datasets, and 8 target LLMs ranging from 1B to 70B parameters, PDDS achieves state-of-the-art results and generalizes well across LLMs and datasets. PDDS remains effective with as few as 30 training instances and can be integrated as a plug-and-play component to enhance existing ICL methods.
@inproceedings{ijcai2026p662,
title = {Performance-Driven Demonstration Selection for In-Context Learning},
author = {Wang, Wenqiang and Yang, Mingbo and Zhang, Aiping and Xiao, Yan and Chen, Peng and Huang, Jianjie and Cao, Xiaochun},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {5946--5954},
year = {2026},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2026/662},
url = {https://doi.org/10.24963/ijcai.2026/662},
}
TY - CPAPER TI - Performance-Driven Demonstration Selection for In-Context Learning AU - Wang, Wenqiang AU - Yang, Mingbo AU - Zhang, Aiping AU - Xiao, Yan AU - Chen, Peng AU - Huang, Jianjie AU - Cao, Xiaochun T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 5946 EP - 5954 DO - 10.24963/ijcai.2026/662 UR - https://doi.org/10.24963/ijcai.2026/662 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: