The in-context learning paradigm with LLMs has been instrumental in advancing a wide range of natural language processing tasks. The selection of few-shot examples (exemplars / demonstration samples) is essential for constructing effective prompts under context-length budget constraints. In this paper, we formulate the exemplar selection task as a top-m best arms identification problem. A key challenge in this setup is the exponentially large number of arms that need to be evaluated to identify the m-best arms. We propose CASE (Challenger Arm Sampling for Exemplar selection), a novel sample-efficient selective exploration strategy that maintains a shortlist of "challenger" arms, which are current candidates for the top-m arms. In each iteration, only one of the arms from this shortlist or the current topm set is pulled, thereby reducing sample complexity and, consequently, the number of LLM evaluations. Furthermore, we model the scores of exemplar subsets (arms) using a parameterized linear scoring function, leading to stochastic linear bandits setting. CASE achieves remarkable efficiency gains of up to 7x speedup in runtime while requiring 7x fewer LLM calls (87% reduction) without sacrificing performance compared to state-of-the-art exemplar selection methods. We release our code and data at https://github.com/kiranpurohit/CASE
Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning
BNU-BNBU Institute of Artificial Intelligence(BNU-BNBU人工智能研究院);Future Networks, Beijing Normal-Hong Kong Baptist University(未来网络,北京师范大学-香港 Baptist大学);Beijing Normal University at Zhuhai(珠海北京师范大学)
Good Reasoning Makes Good Demonstrations: Implicit Reasoning Quality Supervision via In-Context Reinforcement Learning
School of Data Science, Fudan University(复旦大学数据科学学院);University of Chinese Academy of Sciences(中国科学院大学);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学院)
Fairness in Multi-modal Medical Diagnosis with Demonstration Selection
Arizona State University(亚利桑那州立大学);University of Rochester(罗切斯特大学);University of Virginia(弗吉尼亚大学);UCL(伦敦大学学院);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of Central Florida(佛罗里达中央大学)
Learning to Select In-Context Demonstration Preferred by Large Language Model
School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);Microsoft Research Asia(微软亚洲研究院);State Key Laboratory of General Artificial Intelligence, BIGAI, Beijing, China(一般人工智能国家重点实验室)
Unraveling Indirect In-Context Learning Using Influence Functions
University of California, Davis(加州大学戴维斯分校);University of California, Irvine(加州大学尔湾分校);University of Southern California(南加州大学);University of South Florida(佛罗里达州立大学)
DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning
National University of Singapore(新加坡国立大学);Singapore-MIT Alliance for Research and Technology(新加坡-麻省理工学院研究与技术联盟);Institute for Infocomm Research, A*STAR(新加坡科技研究局信息通信研究所);CSAIL, MIT(麻省理工学院计算机科学与人工智能实验室)
DemoShapley: Valuation of Demonstrations for In-Context Learning
Department of Mathematics and Computer Science(数学与计算机科学系);Eindhoven University of Technology(埃因霍温理工大学);Intel Lab(英特尔实验室);Department of Psychology(心理学系);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Department of Data Science(数据科学系);New Jersey Institute of Technology(新泽西理工学院);Department of Computer Science(计算机科学系);University of Illinois Chicago(伊利诺伊大学芝加哥分校)
Exploring Imbalanced Annotations for Effective In-Context Learning
Department of Statistics and Data Science, Southern University of Science and Technology(南方科技大学统计与数据科学系);School of Economics and Finance, Xi’an Jiaotong University(西安交通大学经济金融学院);School of Mathematics and Statistics, Xi’an Jiaotong University(西安交通大学数学与统计学学院)
Unsupervised Prompt Learning with Few-shot Examples for Answering Objective Questions
Center for Advanced Intelligence Project, RIKEN(RIKEN先进智能项目中心);Northeastern University(东北大学);UNC-Chapel Hill(北卡罗来纳大学教堂山分校);Center for Advanced Intelligence Project, RIKEN Graduate School of Frontier Sciences, The University of Tokyo(RIKEN前沿科学研究生院、东京大学先进智能项目中心)
Diffusion Transformers are Provably Optimal In-context Generators
National University of Singapore(新加坡国立大学);RIKEN AIP(日本理化学研究所先进智能研究中心);The University of Tokyo(东京大学);A*STAR CFAR(新加坡科技研究局计算与人工智能研究中心);Nanyang Technological University(南洋理工大学)
Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrations
Seoul National University(首尔大学);NAVER AI Lab(NAVER人工智能实验室);NAVER CLOVA;Korea Advanced Institute of Science and Technology(韩国科学技术院);Hanyang University(汉阳大学)