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

上下文内迁移学习:通过迁移相似任务合成演示示例

In-Context Transfer Learning: Demonstration Synthesis by Transferring Similar Tasks

Harbin Institute of Technology(哈尔滨工业大学)

Dingzirui Wang, Xuanliang Zhang, Qiguang Chen, Longxu Dou, Xiao Xu, Rongyu Cao, Yingwei Ma, Qingfu Zhu, Wanxiang Che, Binhua Li, Fei Huang, Yongbin Li

AI总结:

针对大语言模型上下文内学习中从零合成演示示例质量受限的问题,提出上下文内迁移学习方法,通过迁移相似源任务标注示例合成目标演示,在Super-NI基准上平均性能提升2.0%。

摘要:

上下文内学习(ICL)是通过提供目标任务的演示示例,帮助大语言模型(LLM)适配各类任务的有效方法。考虑到标注演示示例的成本高昂,许多方法提出利用大语言模型从零合成演示示例。然而,从零合成的演示示例质量受限于大语言模型的能力与知识储备。为解决这一问题,受迁移学习启发,我们提出上下文内迁移学习(ICTL),通过迁移相似源任务的已标注演示示例来合成目标任务演示示例。ICTL包含两个步骤:源采样与目标迁移。首先,我们定义了一个最小化迁移误差的优化目标,用于采样与目标任务相似的源演示示例。随后,我们利用大语言模型将采样得到的源演示示例迁移至目标任务,使其匹配目标任务的定义与格式。在Super-NI基准上的实验表明,ICTL的平均表现较从零合成方法高出2.0%,验证了所提方法的有效性。

英文摘要:

In-context learning (ICL) is an effective approach to help large language models (LLMs) adapt to various tasks by providing demonstrations of the target task. Considering the high cost of labeling demonstrations, many methods propose synthesizing demonstrations from scratch using LLMs. However, the quality of the demonstrations synthesized from scratch is limited by the capabilities and knowledge of LLMs. To address this, inspired by transfer learning, we propose In-Context Transfer Learning (ICTL), which synthesizes target task demonstrations by transferring labeled demonstrations from similar source tasks. ICTL consists of two steps: source sampling and target transfer. First, we define an optimization objective, which minimizes transfer error to sample source demonstrations similar to the target task. Then, we employ LLMs to transfer the sampled source demonstrations to the target task, matching the definition and format of the target task. Experiments on Super-NI show that ICTL outperforms synthesis from scratch by 2.0% on average, demonstrating the effectiveness of our method.

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

↑