In-context learning (ICL), the ability of large language models to perform novel tasks by conditioning on a prompt with a few task examples, requires these examples to be informative about the test instance. The standard approach of independently ranking and selecting the most similar examples selects redundant examples while omitting important information. In this work, we show that BERTScore-Recall (BSR) selects better examples that demonstrate more of the salient aspects, e.g. reasoning patterns, of the test input. We further extend BSR and many standard metrics to easily optimizable set-level metrics, giving still better coverage of those salient aspects. On 15 datasets spanning 6 tasks and with 7 diverse LLMs, we show that (1) BSR is the superior metric for in-context example selection across the board, and (2) for compositional tasks, set selection using Set-BSR outperforms independent ranking by up to 17 points on average and, despite being training-free, surpasses methods that leverage task or LLM-specific training.
MoDS: Model-oriented Data Selection for Instruction Tuning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Wuhan AI Research(武汉人工智能研究院)
Improving Background Based Conversation with Context-aware Knowledge Pre-selection
University of Amsterdam(阿姆斯特丹大学)
基于背景的对话(Background Based Conversations,BBCs)已经被开发以通过利用背景知识来使对话系统生成更多信息且更自然的响应。现有的BBC方法可以分为两类:基于提取的方法和基于生成的方法。前一个摘录来自背景材料,作为不一定自然的反应。后者产生的反应是自然的,但不一定有效地利用背景知识。在本文中,我们专注于基于生成的方法,并提出了一个模型,即上下文感知的知识预选择(CaKe),它引入了一个预选择过程,使用动态的双向注意,以改善知识的选择,使用的话语历史上下文作为先验信息,以选择最相关的背景材料。实验结果表明,我们的模型优于当前最先进的基线,表明它受益于预选过程,从而提高信息量和流畅性。