arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.03758cs.LGcs.PLstat.ML
收藏

神经程序合成中的组合泛化与分解

Compositional Generalization and Decomposition in Neural Program Synthesis

Google Research(谷歌研究院);UC Berkeley(加州大学伯克利分校)

Kensen Shi, Joey Hong, Manzil Zaheer, Pengcheng Yin, Charles Sutton

AI总结:

本文研究神经程序合成的组合泛化能力,基于SCAN和RobustFill构建基准测试,并提出受人类分解策略启发的注意力机制以改进Transformer模型,实验显示其优于基线但仍具挑战性。

摘要:

在编写程序时,人们有能力通过将新的复杂任务分解为更小且更熟悉的子任务来解决它。虽然很难衡量神经程序合成方法是否具有类似的能力,但我们可以衡量它们是否能够组合泛化,即一个在较简单子任务上训练过的模型随后是否能够解决更复杂的任务。在本文中,我们专注于衡量学习到的程序合成器的组合泛化能力。我们首先刻画了程序合成方法期望能够泛化的几个不同维度,例如长度泛化,或是以训练数据中未出现的新方式组合已知子程序的能力。基于这一刻画,我们引入了一个基准测试任务套件,基于两个流行的现有数据集 SCAN 和 RobustFill 来评估这些能力。最后,我们首次尝试通过受人类式分解策略启发的新型注意力机制,沿这些维度改进 Transformer 模型的组合泛化能力。从经验上看,我们发现修改后的 Transformer 模型通常比自然基线表现更好,但这些任务仍然具有挑战性。

英文摘要:

When writing programs, people have the ability to tackle a new complex task by decomposing it into smaller and more familiar subtasks. While it is difficult to measure whether neural program synthesis methods have similar capabilities, what we can measure is whether they compositionally generalize, that is, whether a model that has been trained on the simpler subtasks is subsequently able to solve more complex tasks. In this paper, we focus on measuring the ability of learned program synthesizers to compositionally generalize. We first characterize several different axes along which program synthesis methods would be desired to generalize, e.g., length generalization, or the ability to combine known subroutines in new ways that do not occur in the training data. Based on this characterization, we introduce a benchmark suite of tasks to assess these abilities based on two popular existing datasets, SCAN and RobustFill. Finally, we make first attempts to improve the compositional generalization ability of Transformer models along these axes through novel attention mechanisms that draw inspiration from a human-like decomposition strategy. Empirically, we find our modified Transformer models generally perform better than natural baselines, but the tasks remain challenging.

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

↑