[Paper Review] Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervision (Short Version)
This paper introduces the Neural Symbolic Machine (NSM), a framework that combines a sequence-to-sequence neural programmer with a non-differentiable Lisp interpreter computer to learn semantic parsers from weak supervision. NSM achieves state-of-the-art performance on WebQuestionsSP without feature engineering or domain-specific rules, using REINFORCE with approximate gold programs for efficient training.
Extending the success of deep neural networks to natural language understanding and symbolic reasoning requires complex operations and external memory. Recent neural program induction approaches have attempted to address this problem, but are typically limited to differentiable memory, and consequently cannot scale beyond small synthetic tasks. In this work, we propose the Manager-Programmer-Computer framework, which integrates neural networks with non-differentiable memory to support abstract, scalable and precise operations through a friendly neural computer interface. Specifically, we introduce a Neural Symbolic Machine, which contains a sequence-to-sequence neural "programmer", and a non-differentiable "computer" that is a Lisp interpreter with code assist. To successfully apply REINFORCE for training, we augment it with approximate gold programs found by an iterative maximum likelihood training process. NSM is able to learn a semantic parser from weak supervision over a large knowledge base. It achieves new state-of-the-art performance on WebQuestionsSP, a challenging semantic parsing dataset, with weak supervision. Compared to previous approaches, NSM is end-to-end, therefore does not rely on feature engineering or domain specific knowledge.
Motivation & Objective
- To address the limitations of differentiable memory in neural program induction for symbolic reasoning and complex operations.
- To enable scalable, precise, and abstract reasoning in semantic parsing using non-differentiable, high-level programming constructs.
- To train an end-to-end semantic parser from weak supervision, avoiding manual feature engineering and domain-specific knowledge.
- To reduce the search space for program generation through a friendly neural computer interface with code assist.
- To achieve state-of-the-art performance on real-world semantic parsing benchmarks like WebQuestionsSP.
Proposed method
- The NSM framework uses a Manager-Programmer-Computer architecture: the manager provides weak supervision via input and reward, the programmer generates programs from natural language, and the computer executes them.
- The programmer is a sequence-to-sequence neural network with a key-variable memory to store and reuse intermediate results for compositional reasoning.
- The computer is a non-differentiable Lisp interpreter that executes programs against Freebase, supporting abstract, scalable, and precise operations.
- Code assist in the computer checks for syntax and semantic errors, reducing the search space for the programmer.
- Training uses the REINFORCE algorithm, enhanced with approximate gold programs from iterative maximum likelihood training to stabilize learning.
- Entity linking is applied to questions, replacing named entities with a special token, and Freebase is preprocessed to retain only relevant relations and entities.
Experimental results
Research questions
- RQ1Can a neural program induction model effectively learn semantic parsing from weak supervision using non-differentiable, high-level memory?
- RQ2How can a neural programmer be trained to generate correct programs when backpropagation is not applicable due to non-differentiable memory?
- RQ3Can a neural computer interface with code assist significantly reduce the search space for program generation in semantic parsing?
- RQ4Does integrating a symbolic interpreter with neural networks lead to better generalization and performance on real-world semantic parsing tasks?
- RQ5Can an end-to-end neural model outperform prior systems that rely on feature engineering or strong supervision?
Key findings
- NSM achieves a new state-of-the-art average F1 score of 69.0 on the WebQuestionsSP benchmark, outperforming previous methods.
- The model achieves 70.9% average precision and 74.8% average recall, demonstrating strong performance across all metrics.
- NSM attains 59.4% accuracy@1, indicating it correctly answers nearly 60% of questions exactly.
- The model is end-to-end and does not require any feature engineering or domain-specific rules, unlike prior approaches.
- The use of approximate gold programs in training significantly accelerates convergence and improves optimization stability.
- The integration of a Lisp interpreter with code assist enables precise, scalable, and abstract reasoning beyond the capabilities of differentiable memory models.
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.