arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14128cs.CLcs.AI
收藏

Dr.ICL:基于演示检索的上下文学习

Dr.ICL: Demonstration-Retrieved In-context Learning

Arizona State University(亚利桑那州立大学);Google Research(谷歌研究院)

Man Luo, Xin Xu, Zhuyun Dai, Panupong Pasupat, Mehran Kazemi, Chitta Baral, Vaiva Imbrasaite, Vincent Y Zhao

AI总结:

本研究扩展了基于检索的上下文学习(ICL),证明BM25等简单相似度度量优于随机演示,并成功应用于指令微调LLM和思维链提示,同时训练了性能更优的任务特定演示检索器。

摘要:

上下文学习(ICL)通过少样本演示而非调整模型参数来教导大型语言模型(LLM)执行任务,已成为使用LLM的强大范式。早期研究主要对所有测试查询使用固定或随机的演示集,而近期研究表明,从可用演示池中检索与输入语义相似的演示会带来更好的性能。本研究通过证明即使是简单的词重叠相似度度量(如BM25)也能优于随机选择的演示,从而扩展了基于检索的ICL方法的适用性。此外,我们将基于检索的ICL的成功扩展到指令微调LLM以及思维链(CoT)提示。对于指令微调LLM,我们发现尽管模型在训练时已经见过训练数据,但在测试时从训练数据中检索演示,与不使用演示或随机演示相比,能产生更好的结果。最后,我们训练了一个特定任务的演示检索器,其性能优于现成的检索器。

英文摘要:

In-context learning (ICL), teaching a large language model (LLM) to perform a task with few-shot demonstrations rather than adjusting the model parameters, has emerged as a strong paradigm for using LLMs. While early studies primarily used a fixed or random set of demonstrations for all test queries, recent research suggests that retrieving semantically similar demonstrations to the input from a pool of available demonstrations results in better performance. This work expands the applicability of retrieval-based ICL approaches by demonstrating that even simple word-overlap similarity measures such as BM25 outperform randomly selected demonstrations. Furthermore, we extend the success of retrieval-based ICL to instruction-finetuned LLMs as well as Chain-of-Thought (CoT) prompting. For instruction-finetuned LLMs, we find that although a model has already seen the training data at training time, retrieving demonstrations from the training data at test time yields better results compared to using no demonstrations or random demonstrations. Last but not least, we train a task-specific demonstration retriever that outperforms off-the-shelf retrievers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑