mlsanityData to 14 Oct 2026

Compositional Program Generation for Few-Shot Systematic Generalization

arXiv 2309.16467 ↗First posted 28 Sep 2023cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Compositional generalization is a key ability of humans that enables us to learn new concepts from only a handful examples. Neural machine learning models, including the now ubiquitous Transformers, struggle to generalize in this way, and typically require thousands of examples of a concept during training in order to generalize meaningfully. This difference in ability between humans and artificial neural architectures, motivates this study on a neuro-symbolic architecture called the Compositional Program Generator (CPG). CPG has three key features: textitmodularity, textitcomposition, and textitabstraction, in the form of grammar rules, that enable it to generalize both systematically to new concepts in a few-shot manner, as well as productively by length on various sequence-to-sequence language tasks. For each input, CPG uses a grammar of the input language and a parser to generate a parse in which each grammar rule is assigned its own unique semantic module, a probabilistic copy or substitution program. Instances with the same parse are always processed with the same composed modules, while those with different parses may be processed with different modules. CPG learns parameters for the modules and is able to learn the semantics for new rules and types incrementally, without forgetting or retraining on rules it's already seen. It achieves perfect generalization on both the SCAN and COGS benchmarks using just 14 examples for SCAN and 22 examples for COGS -- state-of-the-art accuracy with a 1000x improvement in sample efficiency.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 15 of its 25 references that are in the map. First posted on arXiv 28 Sep 2023.

Builds on

15 of 25 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
  3. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
  4. 2015Neural Module Networkscited by 376
  5. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
  6. 2019Compositionality decomposed: how do neural networks generalise?cited by 265
  7. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  8. 2017Routing Networks: Adaptive Selection of Non-linear Functions for Multi-Task Learningcited by 126
  9. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  10. 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
  11. 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
  12. 2020Compositional Generalization by Learning Analytical Expressionscited by 53
3 more
  1. 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
  2. 2019Routing Networks and the Challenges of Modular and Compositional Computationcited by 50
  3. 2021Learning Algebraic Recombination for Compositional Generalizationcited by 31

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 3.

4 papers.