Skip to main content
QUICK REVIEW

[Paper Review] Learning Compositional Rules via Neural Program Synthesis

Maxwell Nye, Armando Solar-Lezama|arXiv (Cornell University)|Mar 12, 2020
Topic ModelingComputer Science29 references31 citations
TL;DR

This paper presents a neuro-symbolic model that induces explicit rule systems from few examples by combining neural proposals with symbolic program checking, enabling compositional generalization across domains.

ABSTRACT

Many aspects of human reasoning, including language, require learning rules from very little data. Humans can do this, often learning systematic rules from very few examples, and combining these rules to form compositional rule-based systems. Current neural architectures, on the other hand, often fail to generalize in a compositional manner, especially when evaluated in ways that vary systematically from training. In this work, we present a neuro-symbolic model which learns entire rule systems from a small set of examples. Instead of directly predicting outputs from inputs, we train our model to induce the explicit system of rules governing a set of previously seen examples, drawing upon techniques from the neural program synthesis literature. Our rule-synthesis approach outperforms neural meta-learning techniques in three domains: an artificial instruction-learning domain used to evaluate human learning, the SCAN challenge datasets, and learning rule-based translations of number words into integers for a wide range of human languages.

Motivation & Objective

  • Motivate learning compositional rules from very small data, akin to human generalization.
  • Propose a neural program synthesis framework that induces explicit grammar-based rule systems from support examples.
  • Demonstrate superior generalization over neural meta-learning baselines across multiple domains.
  • Showcase interpretable rule discovery and strong out-of-distribution generalization via explicit grammar search.

Proposed method

  • Encode support input-output examples with BiLSTM-based encoders.
  • Decode a candidate grammar using an attention-enabled LSTM decoder.
  • Represent programs as an interpretation grammar of rewrite rules (LHS -> RHS).
  • Symbolically apply sampled grammars to query inputs and check consistency against the support set.
  • Train on a meta-grammar of rule systems to perform approximate Bayesian grammar induction.
  • At test time, perform a search by sampling candidate grammars and validating them against the support set until a consistent one is found.

Experimental results

Research questions

  • RQ1Can a neuro-symbolic model induce explicit rule systems from few examples and generalize compositionally to novel inputs?
  • RQ2How does explicit grammar search compare with pure neural meta-learning on compositional tasks?
  • RQ3Can the approach transfer to human-language-style instruction learning, the scan dataset, and cross-linguistic number-word interpretation?
  • RQ4Does attending over many support examples improve rule discovery and generalization across domains?

Key findings

  • The proposed rule-synthesis model outperforms neural meta-learning baselines on artificial instruction learning, the scan challenge, and cross-language number-word interpretation.
  • Search-based synthesis achieves near-perfect performance on Mini Scan and maintains accuracy as rule complexity grows, unlike baselines.
  • Pure neural I/O mappings struggle with long or out-of-distribution queries, while explicit rule learning generalizes by applying the learned grammar to arbitrary query inputs.
  • The model achieves strong performance on number-word interpretation across multiple languages, demonstrating cross-linguistic compositional generalization.

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.