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.
Compositional Transduction with Latent Analogies for Offline Goal-Conditioned Reinforcement Learning
Department of Electrical and Computer Engineering and ASRI, Seoul National University(电气与计算机工程系和首尔国立大学ASRI);Independent researcher(独立研究者);Robotics Institute, Carnegie Mellon University(卡内基梅隆大学机器人研究所)
BRICKS: Compositional Neural Markov Kernels for Zero-Shot Radiation-Matter Simulation
Technical University of Munich(慕尼黑技术大学);Max-Planck Institute for Mathematics in the Sciences(马克斯·普朗克数学研究所);SLAC National Accelerator Laboratory(斯坦福直线加速器实验室);Haifa University(海法大学);Department of Physics(物理系);Indian Institute of Technology, Kanpur(印度理工学院坎普尔分校);Munich Center for Machine Learning(慕尼黑机器学习中心)