[Paper Review] Learning to Recombine and Resample Data for Compositional Generalization
This paper proposes R&R, a learned data augmentation method that improves few-shot compositional generalization in neural sequence models without symbolic scaffolding. By recombining training examples via a prototype-based generative model and resampling to prioritize rare substructures, R&R enables sequence models to generalize to unseen constructions and tenses from as few as eight examples, outperforming both standard neural models and neuro-symbolic baselines on SCAN and Sigmorphon 2018 tasks.
Flexible neural sequence models outperform grammar- and automaton-based counterparts on a variety of tasks. However, neural models perform poorly in settings requiring compositional generalization beyond the training data -- particularly to rare or unseen subsequences. Past work has found symbolic scaffolding (e.g. grammars or automata) essential in these settings. We describe R&R, a learned data augmentation scheme that enables a large category of compositional generalizations without appeal to latent symbolic structure. R&R has two components: recombination of original training examples via a prototype-based generative model and resampling of generated examples to encourage extrapolation. Training an ordinary neural sequence model on a dataset augmented with recombined and resampled examples significantly improves generalization in two language processing problems -- instruction following (SCAN) and morphological analysis (SIGMORPHON 2018) -- where R&R enables learning of new constructions and tenses from as few as eight initial examples.
Motivation & Objective
- To address the failure of standard neural sequence models in few-shot compositional generalization, especially for rare or unseen substructures.
- To investigate whether explicit symbolic structures are necessary for systematic generalization in neural models.
- To develop a data augmentation framework that learns inductive bias from data alone, without relying on grammars or automata.
- To improve few-shot learning of linguistic constructions like past tense inflections and complex commands from minimal supervision.
Proposed method
- Train a prototype-based generative model to reconstruct training pairs (x → y) by recombining fragments from other training examples.
- Use the trained generative model to sample synthetic training examples, with a preference for outputs containing rare tokens or substructures.
- Apply resampling to filter and prioritize high-quality synthetic examples that emphasize rare or out-of-distribution patterns.
- Fine-tune a standard neural sequence model on the augmented dataset to distill compositional generalization abilities.
- Optimize the generative model using reconstruction loss to preserve structural and semantic consistency during recombination.
- Use a temperature-based sampling strategy to encourage exploration of rare and novel substructures during data augmentation.
Experimental results
Research questions
- RQ1Can neural sequence models achieve systematic compositional generalization in few-shot settings without symbolic scaffolding?
- RQ2Does learning to recombine and resample data from existing training examples provide sufficient inductive bias for generalization beyond the training distribution?
- RQ3Can data augmentation via prototype-based generation outperform neuro-symbolic methods that rely on explicit grammars or rule systems?
- RQ4How effective is R&R in enabling generalization to unseen linguistic constructions with minimal supervision?
- RQ5What is the impact of resampling on the quality and diversity of synthetic training examples for rare phenomena?
Key findings
- R&R significantly improves few-shot compositional generalization on the SCAN task, enabling accurate prediction of complex commands from as few as eight training examples.
- On the Sigmorphon 2018 morphological analysis task, R&R enables models to learn and generalize novel inflectional patterns, including rare and unseen tenses.
- The best-performing R&R variant (recomb-1 + resampling) achieves state-of-the-art performance on both SCAN and Sigmorphon 2018, outperforming neuro-symbolic baselines.
- Resampling improves the quality of synthetic examples, increasing the proportion of correct and novel inflections in the augmented data.
- The method achieves these results without requiring symbolic structures, demonstrating that inductive bias can emerge from data recombination alone.
- Training the entire pipeline—including generative model training, sampling, and conditional model fine-tuning—takes less than one hour per experiment on a single GPU.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.