[Paper Review] Improving Compositional Generalization with Latent Structure and Data Augmentation
This paper proposes a data augmentation method using a Compositional Structure Learner (CSL), a generative model with a quasi-synchronous context-free grammar backbone, to improve compositional generalization in neural sequence-to-sequence models. By inducing latent compositional structure from training data and generating synthetic training examples, CSL enhances T5 fine-tuning, achieving state-of-the-art performance on both diagnostic and real-world semantic parsing tasks, outperforming even T5-CSL ensembles.
Generic unstructured neural networks have been shown to struggle on out-of-distribution compositional generalization. Compositional data augmentation via example recombination has transferred some prior knowledge about compositionality to such black-box neural models for several semantic parsing tasks, but this often required task-specific engineering or provided limited gains. We present a more powerful data recombination method using a model called Compositional Structure Learner (CSL). CSL is a generative model with a quasi-synchronous context-free grammar backbone, which we induce from the training data. We sample recombined examples from CSL and add them to the fine-tuning data of a pre-trained sequence-to-sequence model (T5). This procedure effectively transfers most of CSL's compositional bias to T5 for diagnostic tasks, and results in a model even stronger than a T5-CSL ensemble on two real world compositional generalization tasks. This results in new state-of-the-art performance for these challenging semantic parsing tasks requiring generalization to both natural language variation and novel compositions of elements.
Motivation & Objective
- To address the challenge of compositional generalization in neural sequence-to-sequence models, which often fail on out-of-distribution combinations of known elements.
- To improve generalization to novel compositions without relying on task-specific architectural design or extensive human annotation.
- To develop a data augmentation method that transfers compositional bias from a structured generative model to a flexible, pre-trained sequence-to-sequence model like T5.
- To achieve stronger performance than existing methods, including ensembling with specialized models, on real-world semantic parsing benchmarks.
Proposed method
- CSL is trained as a generative model with a quasi-synchronous context-free grammar (QCFG) backbone, automatically induced from the training data.
- The model learns a probabilistic distribution over input-output pairs, enabling recursive recombination of training examples into new, compositional forms.
- Synthetic training examples are sampled from CSL and combined with original data to fine-tune a pre-trained T5 sequence-to-sequence model.
- The method leverages the compositional bias of CSL while preserving T5’s ability to handle natural language variation and complex surface forms.
- CSL is trained end-to-end using a differentiable search algorithm over grammar rules, enabling high-coverage grammar induction without task-specific constraints.
- The approach generalizes prior work by allowing recursive recombination and probabilistic sampling, unlike earlier methods that used fixed or deterministic recombination.
Experimental results
Research questions
- RQ1Can a self-supervised, data-driven method for inducing compositional structure improve generalization in neural sequence-to-sequence models?
- RQ2How does a generative model with latent QCFG structure compare to discriminative models in transferring compositional bias to a pre-trained sequence model?
- RQ3To what extent can synthetic data generated via compositional recombination improve performance on real-world compositional generalization tasks?
- RQ4Does the proposed method outperform existing data augmentation techniques like GECA or example recombination with fixed grammars?
- RQ5What is the impact of including unlabeled data during CSL training on downstream generalization performance?
Key findings
- The T5 model fine-tuned with CSL-augmented data achieved state-of-the-art performance on the CFQ and COGS diagnostic tasks, outperforming both baseline T5 and T5-CSL ensembles.
- On the real-world SMCalFlow-CS dataset, T5+CSL-Aug achieved a 7.8% absolute improvement in cross-domain generalization over the baseline T5 model.
- On GeoQuery, the method achieved a mean accuracy of 93.3% with a standard deviation of 0.2 across three runs, demonstrating high stability and strong performance.
- The inclusion of unlabeled data improved performance when sampling only 1,000 synthetic examples, but provided minimal gains at 100,000 examples, suggesting saturation or coverage limits.
- Error analysis revealed that ~60% of single-domain and ~35% of cross-domain errors were due to inconsistent or ambiguous annotations, indicating annotation quality as a key bottleneck.
- The model struggled with deeply nested program structures in cross-domain examples, particularly when querying multi-level organizational charts, suggesting limitations in handling complex compositionality.
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.