LGPLMLApr 7, 2022

Compositional Generalization and Decomposition in Neural Program Synthesis

arXiv:2204.03758v18 citationsh-index: 42
Originality Incremental advance
AI Analysis

This work addresses the challenge of enabling neural models to generalize compositionally in program synthesis, which is incremental as it builds on existing datasets and methods.

The paper tackles the problem of measuring and improving compositional generalization in neural program synthesis, introducing a benchmark suite and novel attention mechanisms that show improved but still limited performance on tasks like length generalization and combining subroutines in new ways.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes