Compositional Generalization and Decomposition in Neural Program Synthesis
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 49 of its 63 references that are in the map. First posted on arXiv 7 Apr 2022.
Builds on
49 of 63 references.
References · 49
- 2017Attention Is All You Needcited by 59,932
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2018The Web as a Knowledge-base for Answering Complex Questionscited by 409
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2020Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Basescited by 169
- 2020DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learningcited by 159
37 more
- 2019Good-Enough Compositional Data Augmentationcited by 158
- 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
- 2016DeepCoder: Learning to Write Programscited by 145
- 2018Improving Text-to-SQL Evaluation Methodologycited by 133
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2014Learning to Executecited by 105
- 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
- 2016Neuro-Symbolic Program Synthesiscited by 84
- 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
- 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
- 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
- 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
- 2019CLOSURE: Assessing Systematic Generalization of CLEVR Modelscited by 63
- 2021Meta-Learning to Compositionally Generalizecited by 62
- 2019Compositional generalization in a deep seq2seq model by separating syntax and semanticscited by 56
- 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
- 2020Compositional Generalization by Learning Analytical Expressionscited by 53
- 2019Compositional Generalization for Primitive Substitutionscited by 48
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 2019Learning to Infer Program Sketchescited by 44
- 2020Improving Compositional Generalization in Semantic Parsingcited by 42
- 2020Meta-Learning for Domain Generalization in Semantic Parsingcited by 41
- 2021Learning to Synthesize Data for Semantic Parsingcited by 41
- 2020Learning to Execute Programs with Instruction Pointer Attention Graph Neural Networkscited by 35
- 2020BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Explorationcited by 30
- 2020TF-Coder: Program Synthesis for Tensor Manipulationscited by 27
- 2021Finding needles in a haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalizationcited by 27
- 2018Automatic Program Synthesis of Long Programs with a Learned Garbage Collectorcited by 24
- 2020Just-in-Time Learning for Bottom-Up Enumerative Synthesiscited by 18
- 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesiscited by 18
- 2020Learning to Represent Programs with Property Signaturescited by 16
- 2018The Three Pillars of Machine Programmingcited by 12
- 2018FrAngel: Component-Based Synthesis with Control Structurescited by 10
- 2021Learning to Combine Per-Example Solutions for Neural Program Synthesiscited by 8
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 0; 2025: 1; 2026: 1.
6 papers.
- 2026DeltaEvolve: Accelerating Scientific Discovery through Momentum-Driven Evolutioncited by 23
- 2023InstructExcel: A Benchmark for Natural Language Instruction in Excelcited by 14
- 2023Hierarchical Neural Program Synthesiscited by 7
- 2023Imagine the Unseen World: A Benchmark for Systematic Generalization in Visual World Modelscited by 6
- 2022SimSCOOD: Systematic Analysis of Out-of-Distribution Generalization in Fine-tuned Source Code Modelscited by 5
- 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasonercited by 3
- 2026DeltaEvolve: Accelerating Scientific Discovery through Momentum-Driven Evolution2 Feb 2026
- 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasoner17 Jul 2025
- 2023Imagine the Unseen World: A Benchmark for Systematic Generalization in Visual World Models15 Nov 2023
- 2023InstructExcel: A Benchmark for Natural Language Instruction in Excel23 Oct 2023
- 2023Hierarchical Neural Program Synthesis9 Mar 2023
- 2022SimSCOOD: Systematic Analysis of Out-of-Distribution Generalization in Fine-tuned Source Code Models10 Oct 2022