[Paper Review] Learning to Generalize Compositionally by Transferring Across Semantic Parsing Tasks
This paper proposes DUEL, a method that transfers compositional generalization skills from a pre-finetuning task to a target semantic parsing task by training the encoder and decoder separately on compositional splits. It achieves state-of-the-art performance on unseen compositional splits of the GeoQuery dataset, significantly outperforming baselines in zero-shot compositional generalization.
Neural network models often generalize poorly to mismatched domains or distributions. In NLP, this issue arises in particular when models are expected to generalize compositionally, that is, to novel combinations of familiar words and constructions. We investigate learning representations that facilitate transfer learning from one compositional task to another: the representation and the task-specific layers of the models are strategically trained differently on a pre-finetuning task such that they generalize well on mismatched splits that require compositionality. We apply this method to semantic parsing, using three very different datasets, COGS, GeoQuery and SCAN, used alternately as the pre-finetuning and target task. Our method significantly improves compositional generalization over baselines on the test set of the target task, which is held out during fine-tuning. Ablation studies characterize the utility of the major steps in the proposed algorithm and support our hypothesis.
Motivation & Objective
- Address the challenge of poor compositional generalization in neural models when faced with novel combinations of familiar linguistic elements.
- Investigate whether compositional generalization skills learned on one task can be transferred to a different, unrelated task requiring similar reasoning.
- Develop a method that enables transfer learning between semantic parsing tasks by extracting and transferring a compositional inductive bias from a pre-finetuning task.
- Improve zero-shot generalization on held-out compositional test splits of target datasets without requiring such splits during fine-tuning.
Proposed method
- Use a pre-finetuning task with a compositional split—where training and test sets differ in structural composition (e.g., sentence length, syntactic roles)—to train a neural model.
- Train the encoder and decoder heads separately on different splits of the same pre-finetuning task, using a dual learning objective to encourage the encoder to learn a generalizable, compositional representation.
- Apply the pre-trained encoder to a target task and fine-tune only the decoder head on the target task’s training data, preserving the compositional inductive bias learned during pre-finetuning.
- Utilize pre-trained T5-style encoder-decoder models, treating the encoder as a representation learner and the decoder as a task-specific head.
- Design the pre-finetuning procedure to emphasize distributional shift between training and test splits, simulating compositional generalization behavior.
- Use ablation studies to validate the necessity of dual training and the role of the encoder in enabling transfer to unseen compositional splits.
Experimental results
Research questions
- RQ1Can compositional generalization skills learned on one semantic parsing task be effectively transferred to a different, structurally distinct semantic parsing task?
- RQ2Does training the encoder and decoder on different compositional splits improve zero-shot generalization on unseen test splits of the target task?
- RQ3How does the dual pre-finetuning strategy compare to standard supervised fine-tuning in terms of compositional generalization performance?
- RQ4What components of the proposed method are most critical for achieving improved generalization, and how do they contribute?
Key findings
- DUEL significantly improves compositional generalization on the GeoQuery dataset’s Target Maximum Compound Divergence split (geo_cd), outperforming the prior state-of-the-art neural model.
- On the GeoQuery length generalization split (geo_len), DUEL achieves a substantial improvement over strong baselines, demonstrating robust zero-shot generalization to longer sentences.
- Ablation studies confirm that dual training on compositional splits is essential for transfer, and that the encoder’s learned representation plays a key role in enabling generalization.
- The method generalizes effectively even when the pre-finetuning and target tasks are very different in structure, such as transferring from synthetic datasets (COGS, SCAN) to a real-world dataset (GeoQuery).
- Transfer performance is limited when the pre-finetuning and target tasks are too similar, suggesting that the method benefits most from structural diversity in the tasks.
- The approach is effective across three distinct semantic parsing datasets: COGS, GeoQuery, and SCAN, demonstrating broad applicability of the transferable inductive bias.
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.