Reproduce “Efficient and Effective In-context Demonstration Selection with Coreset” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zihua Wang, Jiarui Wang, Haiyang Xu, Ming Yan, Fei Huang, Xu Yang, Xiu-Shen Wei, Siya Mi and 1 more

Researchers from Southeast University and Alibaba Group's Tongyi Lab developed CoDR (Coreset-based Dual Retrieval), an approach that efficiently selects effective in-context demonstrations for Large Visual Language Models (LVLMs). CoDR achieves superior performance in image captioning, visual question answering, and fine-grained image classification, notably improving CIDEr by +7.01 on OpenFlamingo-v2 while maintaining retrieval speeds comparable to local similarity searches.

Key insights

  • A diverse set of in-context demonstrations is mathematically shown to enhance knowledge transfer by maximizing expected mutual information, providing a theoretical basis for diversity-aware selection.
  • Complexity-based cluster-pruning effectively identifies and retains representative samples from diverse and distinct latent categories, forming an informative coreset that guides global search.
  • Precomputing demonstration quality scores with respect to a diverse coreset enables efficient, global selection from the entire support set, overcoming the scalability limitations of prior effectiveness-focused methods.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.