Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Finding Support Examples for In-Context Learning

About

Additionally, the strong dependency among in-context examples makes it an NP-hard combinatorial optimization problem and enumerating all permutations is infeasible. Hence we propose LENS, a fiLter-thEN-Search method to tackle this challenge in two stages: First we filter the dataset to obtain informative in-context examples individually. Specifically, we propose a novel metric, InfoScore, to evaluate the example's in-context informativeness based on the language model's feedback, and further propose a progressive filtering process to filter out uninformative examples. Then we propose diversity-guided example search which iteratively refines and evaluates the selected example permutations, to find examples that fully depict the task. The experimental results show that LENS significantly outperforms a wide range of baselines.

Xiaonan Li, Xipeng Qiu• 2023

Related benchmarks

TaskDatasetResultRank
Sentiment ClassificationSST2 (test)
Accuracy86.3
233
Sentiment AnalysisSST-5 (test)
Accuracy44.9
177
Sentiment ClassificationMR (test)
Accuracy83.1
142
Question ClassificationTREC (test)
Accuracy59
128
Topic ClassificationAG News (test)
Accuracy77.9
116
Few-shot Text ClassificationAggregated Text Datasets
Accuracy Difference1.73
35
Showing 6 of 6 rows

Other info

Follow for update