Compositional Program Generation for Few-Shot Systematic Generalization
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
- 2017Attention Is All You Needcited by 60,361
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2015Neural Module Networkscited by 376
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
- 2017Routing Networks: Adaptive Selection of Non-linear Functions for Multi-Task Learningcited by 126
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
- 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
- 2020Compositional Generalization by Learning Analytical Expressionscited by 53
Built on by
Citing papers per year: 2024: 1; 2025: 3.
4 papers.
- 2025Neuro-Symbolic AI in 2024: A Systematic Reviewcited by 38
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practicescited by 15
- 2025Exploring Compositional Generalization (in COGS/ReCOGS_pos) by Transformers using Restricted Access Sequence Processing (RASP)cited by 0
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalizationcited by 0
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalization25 Jul 2025
- 2025Exploring Compositional Generalization (in COGS/ReCOGS_pos) by Transformers using Restricted Access Sequence Processing (RASP)21 Apr 2025
- 2025Neuro-Symbolic AI in 2024: A Systematic Review9 Jan 2025
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practices13 Jun 2024