Skip to main content
QUICK REVIEW

[Paper Review] Compositional Generalization via Neural-Symbolic Stack Machines

Xinyun Chen, Liang, Chen|arXiv (Cornell University)|Aug 15, 2020
Natural Language Processing TechniquesComputer Science49 references8 citations
TL;DR

This paper proposes Neural-Symbolic Stack Machines (NeSS), a differentiable neural network that controls a symbolic stack machine with sequence manipulation operations to achieve compositional generalization. By leveraging operational equivalence and curriculum learning, NeSS attains 100% generalization performance across four benchmarks—SCAN, few-shot compositional instruction learning, compositional machine translation, and context-free grammar parsing—without requiring ground-truth execution traces during training.

ABSTRACT

Despite achieving tremendous success, existing deep learning models have exposed limitations in compositional generalization, the capability to learn compositional rules and apply them to unseen cases in a systematic manner. To tackle this issue, we propose the Neural-Symbolic Stack Machine (NeSS). It contains a neural network to generate traces, which are then executed by a symbolic stack machine enhanced with sequence manipulation operations. NeSS combines the expressive power of neural sequence models with the recursion supported by the symbolic stack machine. Without training supervision on execution traces, NeSS achieves 100% generalization performance in four domains: the SCAN benchmark of language-driven navigation tasks, the task of few-shot learning of compositional instructions, the compositional machine translation benchmark, and context-free grammar parsing tasks.

Motivation & Objective

  • To address the limitation of deep learning models in compositional generalization, where models fail to generalize to unseen combinations of known components.
  • To develop a neural-symbolic architecture that supports recursion and sequence manipulation for systematic composition of linguistic and structural rules.
  • To train the model without supervision on execution traces by introducing operational equivalence and a curriculum learning scheme.
  • To achieve state-of-the-art generalization performance across diverse compositional reasoning benchmarks, including language-to-action, machine translation, and grammar parsing tasks.

Proposed method

  • NeSS integrates a neural network controller with a symbolic stack machine enhanced with sequence manipulation operations, including SHIFT, REDUCE, PUSH, POP, CONCAT_M, CONCAT_S, and FINAL.
  • The stack machine supports recursion and sequence-to-sequence generation, enabling modular processing of linguistic components and their composition.
  • Operational equivalence is introduced to group semantically similar components (e.g., 'jump' and 'run') based on similar execution traces, improving generalization.
  • A curriculum learning scheme is designed to train the model on long sequences by first learning shorter, simpler traces and progressively increasing complexity.
  • The model is trained end-to-end without ground-truth execution traces, relying instead on trace prediction and operational equivalence for supervision.
  • The symbolic stack machine executes predicted traces to generate outputs, with the neural controller learning to generate correct operation sequences.

Experimental results

Research questions

  • RQ1Can a neural-symbolic architecture achieve 100% generalization on compositional reasoning tasks without supervision on execution traces?
  • RQ2How can operational equivalence between linguistic components be formalized to improve generalization to unseen combinations?
  • RQ3Can curriculum learning effectively train a neural controller to generate correct execution traces for long and complex sequences?
  • RQ4To what extent can a symbolic stack machine with sequence manipulation operations generalize beyond standard neural sequence models in compositional NLP tasks?

Key findings

  • NeSS achieves 100% generalization performance on the SCAN benchmark, even when test sets contain unseen combinations of training components.
  • On the few-shot compositional instruction learning task, NeSS generalizes perfectly without requiring fine-tuning on new instruction types.
  • In compositional machine translation, NeSS generalizes to unseen source-target phrase combinations with 100% accuracy.
  • For context-free grammar parsing, NeSS matches the performance of neural parser models while supporting broader application scopes.
  • The model generalizes effectively without ground-truth execution traces, relying solely on operational equivalence and curriculum learning.
  • Compared to prior neural-symbolic models, NeSS does not require a predefined meta-grammar space or search at inference time, improving efficiency and scalability.

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.