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

Authors

  • Dong Shu Northwestern University
  • Mengnan Du New Jersey Institute of Technology

DOI:

https://doi.org/10.1609/aaai.v39i28.35299

Abstract

Demonstration selection algorithms play a crucial role in optimizing Large Language Models' (LLMs) in-context learning performance. Despite numerous proposed algorithms, their comparative effectiveness remains understudied. We present a comprehensive evaluation of six state-of-the-art demonstration selection algorithms across five datasets, examining both their effectiveness and computational efficiency. Our findings reveal significant trade-offs: while some demonstration selection algorithms achieve superior accuracy, they incur substantial computational costs. We also discover that increasing demonstration examples doesn't consistently improve performance, and some sophisticated algorithms struggle to outperform random selection in certain scenarios. These insights provide valuable benchmarks for future algorithm development and practical implementation. Our code is available at https://github.com/Tizzzzy/Demonstration_Selection_Overview.

Published

2025-04-11

How to Cite

Shu, D., & Du, M. (2025). Comparative Analysis of Demonstration Selection Algorithms for In-Context Learning in Large Language Models (Student Abstract). Proceedings of the AAAI Conference on Artificial Intelligence, 39(28), 29490–29492. https://doi.org/10.1609/aaai.v39i28.35299