Skip to main content
QUICK REVIEW

[Paper Review] Compositional Generalization for Primitive Substitutions

Yuanpeng Li, Liang Zhao|arXiv (Cornell University)|Oct 7, 2019
Natural Language Processing TechniquesComputer Science36 references10 citations
TL;DR

This paper proposes a novel neural network architecture that enhances compositional generalization by using two distinct representations for input sentences: one for generating attention maps and another for mapping attended words to output symbols. By reducing entropy in both representations, the model achieves state-of-the-art performance on compositional generalization tasks, boosting accuracy from 14.0% to 98.8% on the SCAN Jump task and from 92.0% to 99.7% on the TurnLeft task, while even outperforming humans on a few-shot learning benchmark.

ABSTRACT

Compositional generalization is a basic mechanism in human language learning, but current neural networks lack such ability. In this paper, we conduct fundamental research for encoding compositionality in neural networks. Conventional methods use a single representation for the input sentence, making it hard to apply prior knowledge of compositionality. In contrast, our approach leverages such knowledge with two representations, one generating attention maps, and the other mapping attended input words to output symbols. We reduce the entropy in each representation to improve generalization. Our experiments demonstrate significant improvements over the conventional methods in five NLP tasks including instruction learning and machine translation. In the SCAN domain, it boosts accuracies from 14.0% to 98.8% in Jump task, and from 92.0% to 99.7% in TurnLeft task. It also beats human performance on a few-shot learning task. We hope the proposed approach can help ease future research towards human-level compositional language learning.

Motivation & Objective

  • To address the lack of compositional generalization in neural networks, which hinders their ability to generalize to novel combinations of known linguistic components.
  • To overcome the limitation of single-representation models that fail to leverage prior knowledge of compositionality in sequence-to-sequence tasks.
  • To improve zero-shot and few-shot generalization in instruction learning and machine translation by encoding structural and functional compositionality explicitly.
  • To demonstrate that entropy regularization on dual representations enables robust generalization to unseen compositional structures.

Proposed method

  • The model uses two parallel representations: a 'function representation' that generates attention maps over input words, and a 'primitive representation' that maps attended words to output symbols.
  • Attention maps are generated by the function representation, which attends to relevant words in the input sentence to guide action prediction.
  • The primitive representation encodes known primitives (e.g., 'jump', 'turn left') and is used to decode output actions based on attended input words.
  • Entropy is reduced in both representations during training to encourage disentangled, low-entropy representations that support better generalization.
  • The method is trained end-to-end with cross-entropy loss on sequence-to-sequence prediction tasks, with no explicit supervision on compositionality.
  • The approach is evaluated on SCAN, SCAN-ADJ, and instruction learning and machine translation benchmarks to assess compositional and syntactic generalization.

Experimental results

Research questions

  • RQ1Can a neural network architecture with dual representations improve compositional generalization beyond single-representation models?
  • RQ2Does entropy regularization on functional and primitive representations enhance zero-shot and few-shot generalization in sequence-to-sequence tasks?
  • RQ3Can the proposed method generalize to unseen compositional structures, such as 'jump twice' or 'turn left after jump'?
  • RQ4Does the model outperform human performance in few-shot learning scenarios involving compositional generalization?
  • RQ5To what extent does the method preserve performance on non-compositional tasks like Simple and Length tasks in SCAN?

Key findings

  • The proposed method achieves 98.8% accuracy on the SCAN Jump task, a significant improvement from the previous state-of-the-art of 14.0%.
  • On the TurnLeft task, the model reaches 99.7% accuracy, up from 92.0% in prior work, demonstrating strong compositional generalization.
  • The model outperforms human performance on a few-shot learning variant of the SCAN task, marking the first time a neural network surpasses humans in such a setting.
  • In ablation studies, entropy regularization on both representations is critical—removing it leads to significant performance drops.
  • The method maintains strong performance on non-compositional tasks (Simple and Length tasks), with 99.9% and 20.3% accuracy respectively, indicating no negative impact on standard sequence modeling.
  • The approach generalizes effectively to instruction learning and machine translation tasks, showing broad applicability beyond synthetic benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.