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

Self-ICL:基于自生成示例的零样本上下文学习

Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrations

National Taiwan University(台湾大学)

Wei-Lin Chen, Cheng-Kuang Wu, Yun-Nung Chen, Hsin-Hsi Chen

AI总结:

本文提出Self-ICL框架,通过引导模型生成伪输入并预测伪标签作为示例,实现无需外部示例池的零样本上下文学习,在23个任务上优于基线且媲美真实示例效果。

摘要:

大型语言模型(LLMs)展现出惊人的上下文学习(ICL)能力,能够通过少量输入-输出示例适应目标任务。为了获得更好的ICL效果,已有不同方法被提出用于从现有训练语料库中选取代表性示例。然而,这些设置与真实世界的实践不符,因为终端用户在查询语言模型时通常无法访问示例池。在本研究中,我们提出了Self-ICL——一个简单的框架,通过引导语言模型的内在能力来执行零样本ICL。给定一个测试输入,Self-ICL首先提示模型生成伪输入。接着,模型通过零样本提示为这些伪输入预测伪标签。最后,我们使用伪输入-标签对作为示例,对该测试输入执行ICL。在23个BIG-Bench Hard任务上的评估表明,Self-ICL在平均准确率和直接对比上均优于零样本基线。此外,结合零样本思维链,Self-ICL取得了与使用真实示例相当的结果。另外,我们进行了多项分析以验证Self-ICL的有效性,并为其在不同设置下的行为提供了见解。

英文摘要:

Large language models (LLMs) have exhibited striking in-context learning (ICL) ability to adapt to target tasks with a few input-output demonstrations. For better ICL, different methods are proposed to select representative demonstrations from existing training corpora. However, such settings are not aligned with real-world practices, as end-users usually query LMs without access to demonstration pools. In this work, we introduce Self-ICL -- a simple framework which bootstraps LMs' intrinsic capabilities to perform zero-shot ICL. Given a test input, Self-ICL first prompts the model to generate pseudo-inputs. Next, the model predicts pseudo-labels for the pseudo-inputs via zero-shot prompting. Finally, we perform ICL for the test input with the pseudo-input-label pairs as demonstrations. Evaluation on 23 BIG-Bench Hard tasks shows Self-ICL outperforms zero-shot baselines on both average accuracy and head-to-head comparison. Moreover, with zero-shot chain-of-thought, Self-ICL achieves results comparable to using real demonstrations. Additionally, we conduct a range of analyses to validate Self-ICL's effectiveness and provide insights for its behaviors under different settings.

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

↑