arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10738cs.CL
收藏

让我们循序渐进地学习:通过课程学习增强上下文学习能力

Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning

School of Information Management, Wuhan University(武汉大学信息管理学院);Wuhan University(武汉大学)

Yinpeng Liu, Jiawei Liu, Xiang Shi, Qikai Cheng, Yong Huang, Wei Lu

AI总结:

本文提出少样本上下文课程学习方法ICCL,通过在推理时按由易到难顺序排列提示示例来增强LLM的上下文学习能力,并验证其有效性与能力形成机制。

摘要:

示例排序是上下文学习(ICL)的一项重要策略,能够显著影响大型语言模型(LLM)的性能。然而,当前大多数排序方法都需要高昂的计算成本来引入先验知识。本文受人类学习过程启发,提出了一种简单而有效的ICL示例排序方法,名为少样本上下文课程学习(ICCL)。ICCL意味着在推理过程中逐步增加提示示例的复杂度。难度可以由人类专家或LLM驱动的指标(如困惑度)来评估。随后,我们设计了大量实验,在语料库层面和实例层面探讨ICCL的有效性。此外,我们还研究了LLM的ICCL能力的形成机制。实验结果表明,在指令微调阶段形成的ICCL对具有代表性的开源LLM是有效的。为方便其他学者进一步研究和应用,我们公开了代码。

英文摘要:

Demonstration ordering, which is an important strategy for in-context learning (ICL), can significantly affects the performance of large language models (LLMs). However, most of the current approaches of ordering require high computational costs to introduce the priori knowledge. In this paper, inspired by the human learning process, we propose a simple but effective demonstration ordering method for ICL, named the few-shot In-Context Curriculum Learning (ICCL). The ICCL implies gradually increasing the complexity of prompt demonstrations during the inference process. The difficulty can be assessed by human experts or LLMs-driven metrics, such as perplexity. Then we design extensive experiments to discuss the effectiveness of the ICCL at both corpus-level and instance-level. Moreover, we also investigate the formation mechanism of LLM's ICCL capability. Experimental results demonstrate that ICCL, developed during the instruction-tuning stage, is effective for representative open-source LLMs. To facilitate further research and applications by other scholars, we make the code publicly available.

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

↑