Skip to main content
QUICK REVIEW

[Paper Review] Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervision

Liang Chen, Jonathan Berant|arXiv (Cornell University)|Oct 31, 2016
Topic ModelingComputer Science40 references44 citations
TL;DR

This paper introduces the Neural Symbolic Machine (NSM), a framework that combines a neural sequence-to-sequence programmer with a symbolic Lisp interpreter to perform semantic parsing on Freebase using weak supervision. By leveraging key-variable memory for compositionality and using REINFORCE with iterative maximum-likelihood pretraining to stabilize learning, NSM achieves state-of-the-art performance on WebQuestionsSP without feature engineering or full supervision.

ABSTRACT

Harnessing the statistical power of neural networks to perform language understanding and symbolic reasoning is difficult, when it requires executing efficient discrete operations against a large knowledge-base. In this work, we introduce a Neural Symbolic Machine, which contains (a) a neural "programmer", i.e., a sequence-to-sequence model that maps language utterances to programs and utilizes a key-variable memory to handle compositionality (b) a symbolic "computer", i.e., a Lisp interpreter that performs program execution, and helps find good programs by pruning the search space. We apply REINFORCE to directly optimize the task reward of this structured prediction problem. To train with weak supervision and improve the stability of REINFORCE, we augment it with an iterative maximum-likelihood training process. NSM outperforms the state-of-the-art on the WebQuestionsSP dataset when trained from question-answer pairs only, without requiring any feature engineering or domain-specific knowledge.

Motivation & Objective

  • To address the challenge of training semantic parsers from weak supervision, where full program annotations are expensive and scarce.
  • To enable efficient, scalable, and precise symbolic reasoning over large knowledge bases like Freebase using a non-differentiable interpreter.
  • To overcome the difficulty of training neural networks with non-differentiable symbolic operations by integrating a symbolic computer that prunes the search space.
  • To directly optimize task-level rewards in structured prediction via reinforcement learning, while improving training stability through iterative maximum-likelihood pretraining.
  • To close the performance gap between weakly supervised and fully supervised semantic parsing without requiring domain-specific features or handcrafted grammars.

Proposed method

  • The NSM framework consists of a neural 'programmer' that maps natural language questions to executable programs using a sequence-to-sequence model with key-variable memory to store and reuse intermediate results.
  • A symbolic 'computer' — a non-differentiable Lisp interpreter — executes programs against Freebase, enabling efficient, abstract, and precise operations on large-scale knowledge bases.
  • The system uses a friendly neural computer interface that validates and prunes invalid program candidates during generation, reducing the search space.
  • Training is performed via the REINFORCE algorithm to maximize task reward (e.g., correct answer prediction), directly optimizing for structured prediction performance.
  • To stabilize training, an iterative maximum-likelihood phase is used: beam search generates pseudo-gold programs, which are then used to augment the REINFORCE objective.
  • The key-variable memory mechanism allows the model to handle compositional semantics by referencing prior results via variable names (e.g., R1 for 'all cities in the US').

Experimental results

Research questions

  • RQ1Can a neural-symbolic system achieve strong performance in semantic parsing using only question-answer pairs, without full program annotations?
  • RQ2How can compositionality in language understanding be effectively modeled in a neural network that generates symbolic programs?
  • RQ3Can a non-differentiable symbolic computer be integrated into a differentiable training pipeline to enable end-to-end learning?
  • RQ4What training strategy can stabilize reinforcement learning in a high-dimensional, non-differentiable search space for program generation?
  • RQ5To what extent can weak supervision close the performance gap between weakly and fully supervised semantic parsing?

Key findings

  • NSM achieves state-of-the-art performance on the WebQuestionsSP dataset when trained from question-answer pairs alone, without any feature engineering or domain-specific knowledge.
  • The model significantly closes the performance gap between weak supervision and full supervision, demonstrating the effectiveness of the proposed training strategy.
  • The integration of a symbolic Lisp interpreter with a neural programmer enables scalable and precise execution over Freebase’s large knowledge base (100M entities, 20k+ properties).
  • The key-variable memory mechanism effectively supports compositional semantics by allowing the model to reference and reuse intermediate results during program generation.
  • The combination of REINFORCE with iterative maximum-likelihood pretraining stabilizes learning and improves convergence, outperforming standard REINFORCE in the absence of full supervision.
  • The system is end-to-end trainable and does not require handcrafted grammars, attention mechanisms, or differentiable memory, distinguishing it from prior approaches.

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.