NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Good-Enough Compositional Data Augmentation

Jacob Andreas

Abstract

Modern neural sequence models often struggle with compositional generalization—the ability to combine known components in novel ways. We present Good-Enough Compositional Augmentation (GECA), a simple, model-agnostic data augmentation protocol. GECA identifies interchangeable fragments of text based on shared environments and synthesizes new examples by swapping them. This method provides a "soft" inductive bias for compositionality without requiring complex architectures or symbolic grammars. Evaluation across diagnostic and real-world tasks shows substantial performance gains, including an 87% accuracy boost on the SCAN benchmark.

Introduction

While Transformers and LSTMs have achieved remarkable success, they frequently fail to generalize to out-of-distribution combinations of known elements. For instance, a model trained on "the cat sang" and "the cat daxed" might not automatically infer that "the wug daxed" is valid, even if it has seen "the wug sang." Traditional approaches to this problem involve hard-coding grammatical rules or designing specialized architectures. GECA offers a simpler alternative: augmenting the training data to explicitly demonstrate these compositional possibilities.

Methodology: Good-Enough Compositional Augmentation

GECA is based on the distributional hypothesis: if two fragments appear in the same environment, they likely belong to the same category and are interchangeable.

Illustration of the GECA augmentation process: identifying interchangeable fragments based on shared environments.

The protocol follows three steps:

  1. Identify Fragments and Environments: A "fragment" is a word or phrase, potentially discontinuous (e.g., "picks ... up"). An "environment" is the surrounding context.
  2. Find Interchangeable Pairs: If fragments $f_1$ and $f_2$ share at least one identical environment $e$, they are considered interchangeable.
  3. Synthesize New Data: For every other environment where $f_1$ appears, GECA generates a new example by substituting $f_1$ with $f_2$.

This "good-enough" approach accepts that some synthetic examples might be ungrammatical, but the resulting compositional signal typically outweighs the noise.

Experimental Evaluation

GECA was evaluated across several domains:

  • SCAN: A diagnostic dataset for mapping natural language commands to action sequences.
  • GEOQUERY: A semantic parsing dataset for US geography questions.
  • Low-Resource Language Modeling: Wikipedia data for five languages and the Na dataset.
  • SCHOLAR: A text-to-SQL dataset used to test the limits of the method.

Key Results

The most striking results were observed on the SCAN "jump" task, where models must generalize a single verb to new modifiers. Standard seq2seq models fail completely (0% accuracy), whereas adding GECA boosts accuracy to 87%.

Performance comparison on the SCAN benchmark, showing significant improvements in compositional generalization with GECA.

In semantic parsing (GEOQUERY), GECA achieved 0.65 exact-match accuracy, outperforming the 0.61 baseline and previous state-of-the-art augmentation methods. For low-resource language modeling, GECA consistently reduced perplexity by approximately 1%. Human evaluation of 100 synthesized GEOQUERY examples confirmed high quality, with 96% being grammatical and 98% semantically accurate.

Discussion and Limitations

GECA is most effective when datasets exhibit high recursion or compositional reuse. It failed to improve performance on the SCHOLAR dataset, which lacks the deep nesting found in GEOQUERY.

Current limitations include:

  • Linguistic Noise: Coincidental contexts can lead to incorrect swaps (e.g., homonyms).
  • Exact Matching: The reliance on exact string matching for environments is rigid. Future work could utilize learned embeddings to find "similar" contexts.
  • Syntactic Awareness: Incorporating lightweight parsing to respect constituent boundaries (like Noun Phrases) could further refine the augmentation quality.

Summary updated

BibTeX
@inproceedings{andreas2020good,
  author = {Jacob Andreas},
  title = {{Good-Enough Compositional Data Augmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.676},
}
Figure