arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.04835cs.CLcs.AI
收藏

上下文示例如何影响组合泛化?

How Do In-Context Examples Affect Compositional Generalization?

Institute of Artificial Intelligence and Robotics, Xi’an Jiaotong University(西安交通大学人工智能与机器人研究所);Microsoft Corporation(微软公司)

Shengnan An, Zeqi Lin, Qiang Fu, Bei Chen, Nanning Zheng, Jian-Guang Lou, Dongmei Zhang

AI总结:

该研究提出测试套件CoFe探究上下文学习的组合泛化能力,发现示例选择显著影响性能,明确结构相似、多样且单个简单的示例效果更佳,同时指出虚构词语泛化弱、示例需覆盖语言结构等局限,为上下文学习范式的研究与应用提供参考。

摘要:

组合泛化——即理解已见过的基元的 unseen(未见过的)组合——是人类智能中一项核心的推理能力。人工智能领域主要通过在大量训练样本上微调神经网络来研究这种能力,但目前尚不清楚基于大语言模型的主流少样本范式——上下文学习(in-context learning)是否具备组合泛化能力,以及其具体作用机制如何。本文提出了CoFe(一个用于研究上下文组合泛化的测试套件),以此开展相关研究。我们发现,组合泛化的性能很容易受到上下文示例选择的影响,由此引出研究问题:什么样的上下文示例能更好地服务于组合泛化,其关键影响因素是什么?我们研究了三个潜在因素:相似性、多样性和复杂度。系统性实验表明,上下文示例应在结构上与测试用例相似,示例之间应具备多样性,且单个示例应保持简单。此外,研究还发现了两个明显的局限性:基于虚构词的上下文组合泛化能力远弱于基于常用词的情况;尽管骨干模型已在大规模语料上完成预训练,但上下文示例仍需覆盖所需的语言结构,这一点依然至关重要。我们希望本研究的分析能推动对上下文学习范式的理解与应用。

英文摘要:

Compositional generalization--understanding unseen combinations of seen primitives--is an essential reasoning capability in human intelligence. The AI community mainly studies this capability by fine-tuning neural networks on lots of training samples, while it is still unclear whether and how in-context learning--the prevailing few-shot paradigm based on large language models--exhibits compositional generalization. In this paper, we present CoFe, a test suite to investigate in-context compositional generalization. We find that the compositional generalization performance can be easily affected by the selection of in-context examples, thus raising the research question what the key factors are to make good in-context examples for compositional generalization. We study three potential factors: similarity, diversity and complexity. Our systematic experiments indicate that in-context examples should be structurally similar to the test case, diverse from each other, and individually simple. Furthermore, two strong limitations are observed: in-context compositional generalization on fictional words is much weaker than that on commonly used ones; it is still critical that the in-context examples should cover required linguistic structures, even though the backbone model has been pre-trained on large corpus. We hope our analysis would facilitate the understanding and utilization of in-context learning paradigm.

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

↑