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

多样化示例提升上下文组合泛化

Diverse Demonstrations Improve In-context Compositional Generalization

Tel-Aviv University(特拉维夫大学)

Itay Levy, Ben Bogin, Jonathan Berant

AI总结:

本研究提出一种选择多样化示例的方法,通过集体覆盖输出程序所需的所有结构,鼓励模型在组合泛化任务中泛化到新结构。实验表明,该方法在纯上下文学习及结合微调时,显著提升了三个语义解析数据集的性能。

摘要:

上下文学习在独立同分布的语义解析划分中取得了巨大成功,其中训练集和测试集来自同一分布。在此设置下,模型通常会收到与输入话语相似的示例。然而,在组合泛化的设置中,模型在测试集上测试训练集中未出现的结构,选择相似示例并不充分,因为通常没有示例与输入足够相似。在本研究中,我们提出一种选择多样化示例的方法,旨在集体覆盖输出程序所需的所有结构,以鼓励模型从这些示例中泛化到新结构。我们实证表明,在纯上下文学习设置和与微调结合时,将多样化示例与上下文学习结合,能显著提升三个组合泛化语义解析数据集的性能。

英文摘要:

In-context learning has shown great success in i.i.d semantic parsing splits, where the training and test sets are drawn from the same distribution. In this setup, models are typically prompted with demonstrations that are similar to the input utterance. However, in the setup of compositional generalization, where models are tested on outputs with structures that are absent from the training set, selecting similar demonstrations is insufficient, as often no example will be similar enough to the input. In this work, we propose a method to select diverse demonstrations that aims to collectively cover all of the structures required in the output program, in order to encourage the model to generalize to new structures from these demonstrations. We empirically show that combining diverse demonstrations with in-context learning substantially improves performance across three compositional generalization semantic parsing datasets in the pure in-context learning setup and when combined with finetuning.

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

↑