Pith. sign in

REVIEW 3 cited by

Comparative Analysis of Demonstration Selection Algorithms for LLM In-Context Learning

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2410.23099 v1 pith:PMPEB3H6 submitted 2024-10-30 cs.CL cs.AIcs.LG

classification cs.CLcs.AIcs.LG
keywords algorithmsdemonstrationselectionefficiencyin-contextperformancedemonstrationseffectiveness
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
abstract

In-context learning can help Large Language Models (LLMs) to adapt new tasks without additional training. However, this performance heavily depends on the quality of the demonstrations, driving research into effective demonstration selection algorithms to optimize this process. These algorithms assist users in selecting the best $k$ input-label pairs (demonstration examples) based on a given test input, enabling LLMs to in-context learn the relationship between the provided examples and the test inputs. Despite all the proposed demonstration selection algorithms, their efficiency and effectiveness remain unclear. This lack of clarity make it difficult to apply these algorithms in real-world scenarios and poses challenges for future research aimed at developing improved methods. This paper revisits six proposed algorithms, evaluating them on five datasets from both efficiency and effectiveness perspectives. Our experiments reveal significant variations in algorithm performance across different tasks, with some methods struggling to outperform random selection in certain scenarios. We also find that increasing the number of demonstrations does not always lead to better performance, and that there are often trade-offs between accuracy and computational efficiency. Our code is available at https://github.com/Tizzzzy/Demonstration_Selection_Overview.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Surprise Calibration for Better In-Context Learning

    cs.CL 2025-06 conditional novelty 6.0 of 10

    Surprise Calibration uses the model's own surprise at each demonstration's label to dynamically correct class priors in in-context learning, improving accuracy on eight NLP benchmarks.

  2. SLM-Bench: A Comprehensive Benchmark of Small Language Models on Environmental Impacts--Extended Version

    cs.CL 2025-08 conditional novelty 5.0 of 10

    A new benchmark of 15 small language models across 23 datasets and 11 metrics shows clear accuracy-versus-energy trade-offs, with no single model dominating.

  3. Factors affecting the in-context learning abilities of LLMs for dialogue state tracking

    cs.CL 2025-06 conditional novelty 4.0 of 10

    User-only embedding retrieval and speaker tags modestly improve few-shot dialogue state tracking with in-context learning on open LLMs.

Pith tools