Curriculum Demonstration Selection for In-Context Learning

Duc Anh Vu, Nguyen Tran Cong Duy, Xiaobao Wu, Hoang Minh Nhat, Du Mingzhe +2 more
11/27/2024
cs.CL

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) have shown strong in-context learning (ICL) abilities with a few demonstrations. However, one critical challenge is how to select demonstrations to elicit the full potential of LLMs. In this paper, we propose Curriculum Demonstration Selection (CDS), a novel demonstration selection method for ICL. Instead of merely using similarity, CDS additionally partitions samples by their complexity measurements. Following curriculum learning, CDS then selects demonstrations from easy to difficult. Thus the selected demonstrations cover a wide range of difficulty levels, enabling LLMs to learn from varied complexities within the training set. Experiments demonstrate that our CDS consistently outperforms baseline methods, achieving notable improvements across nine LLMs on three benchmarks. Moreover, CDS proves especially effective in enhancing LLM performance in solving challenging problems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vu2024curriculum,
  title  = {Curriculum Demonstration Selection for In-Context Learning},
  author = {Duc Anh Vu and Nguyen Tran Cong Duy and Xiaobao Wu and Hoang Minh Nhat and Du Mingzhe and Nguyen Thanh Thong and Anh Tuan Luu},
  year   = {2024},
  eprint = {2411.18126},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.18126v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.18126.svg)](https://codeofpaper.com/paper/2411.18126)

Discussion