Memory Augmented Policy Optimization for Program Synthesis and Semantic Parsing
arXiv:1807.02322
Abstract
We present Memory Augmented Policy Optimization (MAPO), a simple and novel way to leverage a memory buffer of promising trajectories to reduce the variance of policy gradient estimate. MAPO is applicable to deterministic environments with discrete actions, such as structured prediction and combinatorial optimization tasks. We express the expected return objective as a weighted sum of two terms: an expectation over the high-reward trajectories inside the memory buffer, and a separate expectation over trajectories outside the buffer. To make an efficient algorithm of MAPO, we propose: (1) memory weight clipping to accelerate and stabilize training; (2) systematic exploration to discover high-reward trajectories; (3) distributed sampling from inside and outside of the memory buffer to scale up training. MAPO improves the sample efficiency and robustness of policy gradient, especially on tasks with sparse rewards. We evaluate MAPO on weakly supervised program synthesis from natural language (semantic parsing). On the WikiTableQuestions benchmark, we improve the state-of-the-art by 2.6%, achieving an accuracy of 46.3%. On the WikiSQL benchmark, MAPO achieves an accuracy of 74.9% with only weak supervision, outperforming several strong baselines with full supervision. Our source code is available at https://github.com/crazydonkey200/neural-symbolic-machines
arXiv comment17 Pages, 4 figures, 7 tables, accepted as a spotlight paper for NeurIPS 2018, camera ready version, fixed a typo in table 4
Cited by in corpus (38)
- AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
- TAPEX: Table Pre-training via Learning a Neural SQL Executor
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- Introduction to Neural Network based Approaches for Question Answering over Knowledge Graphs
- TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- A Survey on Semantic Parsing
- Scalable Neural Methods for Reasoning With a Symbolic Knowledge Base
- Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing
- A Discrete Hard EM Approach for Weakly Supervised Question Answering
- Estimating Gradients for Discrete Random Variables by Sampling without Replacement
- Semantic Evaluation for Text-to-SQL with Distilled Test Suites
- Closed Loop Neural-Symbolic Learning via Integrating Neural Perception, Grammar Parsing, and Symbolic Reasoning
- Neural network gradient-based learning of black-box function interfaces
- Biomedical Entity Representations with Synonym Marginalization
- Mirror: A Natural Language Interface for Data Querying, Summarization, and Visualization
- Weakly Supervised Neuro-Symbolic Module Networks for Numerical Reasoning
- API-Assisted Code Generation for Question Answering on Varied Table Structures
- Geographic Question Answering: Challenges, Uniqueness, Classification, and Future Directions
- Learning Semantic Parsers from Denotations with Latent Structured Alignments and Abstract Programs
- Learning a natural-language to LTL executable semantic parser for grounded robotics
- Unsupervised Learning of KB Queries in Task-Oriented Dialogs
- Learning to learn generative programs with Memoised Wake-Sleep
- A Competence-aware Curriculum for Visual Concepts Learning via Question Answering
- Learning Diverse Policies with Soft Self-Generated Guidance
- Neural-Symbolic Solver for Math Word Problems with Auxiliary Tasks
- End-to-End Neuro-Symbolic Architecture for Image-to-Image Reasoning Tasks
- Self-supervised Text-to-SQL Learning with Header Alignment Training
- TABBIE: Pretrained Representations of Tabular Data
- Learning by Fixing: Solving Math Word Problems with Weak Supervision
- Less is More: Data-Efficient Complex Question Answering over Knowledge Bases
- A Mutual Information Maximization Approach for the Spurious Solution Problem in Weakly Supervised Question Answering
- Automated Curriculum Learning for Turn-level Spoken Language Understanding with Weak Supervision
- Learning to Superoptimize Real-world Programs
- Differentiable Representations For Multihop Inference Rules
- A Sketch-Based System for Semantic Parsing
- Type-driven Neural Programming by Example
- Answering Conversational Questions on Structured Data without Logical Forms
- Enforcing Consistency in Weakly Supervised Semantic Parsing