arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.13883cs.LGcs.PL
收藏

ExeDec:面向神经程序合成中组合泛化的执行分解

ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis

Google DeepMind(谷歌DeepMind);UC Berkeley(加州大学伯克利分校);University of Illinois(伊利诺伊大学)

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

AI总结:

本文提出 ExeDec 执行分解策略,通过逐步预测执行子目标提升神经程序合成的组合泛化能力,并在 RobustFill、DeepCoder 及少样本大语言模型编程场景中验证其有效性。

摘要:

在编写程序时,人们有能力通过将新的复杂任务分解为更小且更熟悉的子任务来加以解决。虽然难以衡量神经程序合成方法是否具备类似能力,但我们可以衡量它们是否能够组合泛化,即一个已在较简单子任务上训练过的模型是否随后能够解决更复杂的任务。本文刻画了程序合成中期望具备的几种不同形式的组合泛化,构建了一个元基准,并利用该元基准为两个常用数据集 RobustFill 和 DeepCoder 创建泛化任务。随后我们提出 ExeDec,这是一种新颖的基于分解的合成策略,该策略通过预测执行子目标来逐步解决问题,并在每一步利用程序执行信息进行引导。在与从头训练的 Transformer 模型配合使用时,与基线方法相比,ExeDec 具有更好的合成性能,并大幅提升了组合泛化能力。最后,我们利用所构建的基准证明:当要求大语言模型在少样本设置下执行示例编程时,它们难以实现组合泛化,但 ExeDec 风格的提示方法能够提升其泛化能力和整体性能。

英文摘要:

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, we can measure 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 characterize several different forms of compositional generalization that are desirable in program synthesis, forming a meta-benchmark which we use to create generalization tasks for two popular datasets, RobustFill and DeepCoder. We then propose ExeDec, a novel decomposition-based synthesis strategy that predicts execution subgoals to solve problems step-by-step informed by program execution at each step. When used with Transformer models trained from scratch, ExeDec has better synthesis performance and greatly improved compositional generalization ability compared to baselines. Finally, we use our benchmarks to demonstrate that LLMs struggle to compositionally generalize when asked to do programming-by-example in a few-shot setting, but an ExeDec-style prompting approach can improve the generalization ability and overall performance.

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

↑