atlas

Research map / Large language models / Language, safety and interpretability

Comparative Analysis of Demonstration Selection Algorithms for In-Context Learning in Large Language Models (Student Abstract)

AAAI 2025 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Empirically benchmarks six demonstration selection algorithms for in-context learning with LLaMa3-8B across five GLUE/CMSQA/SWAG datasets, measuring both accuracy and selection/inference time.

Problem

The effectiveness and computational efficiency of demonstration selection algorithms for in-context learning are poorly understood, making it hard to choose or improve them.

Approach

A systematic side-by-side comparison of existing demonstration selection methods (CBDS, RD-direct, RD-channel, LLM Retriever, UPRISE, OpenICL TopK) against random selection, reporting accuracy for k in {4, 8, 10, 20} and per-sample selection and inference time, with offline costs excluded.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a sophisticated demonstration selection algorithm instead of random selectionDemonstration selection for LLaMA3-8B · Across the five evaluated datasetsaccuracyMixed
Use CBDS or UPRISE rather than the other compared algorithmsDemonstration selection for LLaMA3-8B · 20 combinations of k and datasetsaccuracy: 14 casesHelped
Use CBDS instead of Random SelectionDemonstration selection for LLaMA3-8B · GLUE-MRPCselection time (seconds): 5.24 ∗10−6 -> 5.44Hurt
Use UPRISE instead of Random SelectionDemonstration selection for LLaMA3-8B · GLUE-MRPCselection time (seconds): 5.24 ∗10−6 -> 3.06Hurt
Present demonstrations using the channel approach instead of the direct approachRD · Across evaluated datasetsaccuracyMixed
Increase the number of demonstrationsDemonstration selection algorithms · Across tasks and algorithmsaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: GLUE-MRPC GLUE-QNLI GLUE-SST2 CMSQA SWAG

Benchmarks: GLUE-MRPC GLUE-QNLI GLUE-SST2 CMSQA SWAG

Metrics: accuracy selection time (seconds) inference time (seconds)

Baselines: CBDS RD-direct RD-channel LLM Retriever UPRISE OpenICL TopK OpenICL Random

Builds on: Rethinking the role of demonstrations (RD) UPRISE OpenICL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy