mlsanityData to 7 Oct 2026

Compositional Generalization and Decomposition in Neural Program Synthesis

arXiv 2204.03758 ↗First posted 7 Apr 2022cs.LG cs.PL stat.MLcited by 6

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  6. 2018Self-Attention with Relative Position Representationscited by 1,112
  7. 2018The Web as a Knowledge-base for Answering Complex Questionscited by 409
  8. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  9. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  10. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  11. 2020Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Basescited by 169
  12. 2020DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learningcited by 159
37 more
  1. 2019Good-Enough Compositional Data Augmentationcited by 158
  2. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  3. 2016DeepCoder: Learning to Write Programscited by 145
  4. 2018Improving Text-to-SQL Evaluation Methodologycited by 133
  5. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  6. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  7. 2014Learning to Executecited by 105
  8. 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
  9. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  10. 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
  11. 2016Neuro-Symbolic Program Synthesiscited by 84
  12. 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
  13. 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
  14. 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
  15. 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
  16. 2019CLOSURE: Assessing Systematic Generalization of CLEVR Modelscited by 63
  17. 2021Meta-Learning to Compositionally Generalizecited by 62
  18. 2019Compositional generalization in a deep seq2seq model by separating syntax and semanticscited by 56
  19. 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
  20. 2020Compositional Generalization by Learning Analytical Expressionscited by 53
  21. 2019Compositional Generalization for Primitive Substitutionscited by 48
  22. 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
  23. 2019Learning to Infer Program Sketchescited by 44
  24. 2020Improving Compositional Generalization in Semantic Parsingcited by 42
  25. 2020Meta-Learning for Domain Generalization in Semantic Parsingcited by 41
  26. 2021Learning to Synthesize Data for Semantic Parsingcited by 41
  27. 2020Learning to Execute Programs with Instruction Pointer Attention Graph Neural Networkscited by 35
  28. 2020BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Explorationcited by 30
  29. 2020TF-Coder: Program Synthesis for Tensor Manipulationscited by 27
  30. 2021Finding needles in a haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalizationcited by 27
  31. 2018Automatic Program Synthesis of Long Programs with a Learned Garbage Collectorcited by 24
  32. 2020Just-in-Time Learning for Bottom-Up Enumerative Synthesiscited by 18
  33. 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesiscited by 18
  34. 2020Learning to Represent Programs with Property Signaturescited by 16
  35. 2018The Three Pillars of Machine Programmingcited by 12
  36. 2018FrAngel: Component-Based Synthesis with Control Structurescited by 10
  37. 2021Learning to Combine Per-Example Solutions for Neural Program Synthesiscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 3; 2024: 0; 2025: 1; 2026: 1.

6 papers.