Mapping natural-language problems to formal-language solutions using structured neural representations

Generating formal-language programs represented by relational tuples, such as Lisp programs or mathematical operations, to solve problems stated in natural language is a challenging task because it requires explicitly capturing discrete symbolic structural information implicit in the input. However, most general neural sequence models do not explicitly capture such structural information, limiting their performance on these tasks. In this paper, we propose a new encoder-decoder model based on a structured neural representation, Tensor Product Representations (TPRs), for mapping Natural-language problems to Formal-language solutions, called TPN2F. The encoder of TP-N2F employs TPR ‘binding’ to encode natural-language symbolic structure in vector space and the decoder uses TPR ‘unbinding’ to generate, in symbolic space, a sequential program represented by relational tuples, each consisting of a relation (or operation) and a number of arguments. TP-N2F considerably outperforms LSTM-based seq2seq models on two benchmarks and creates new state-of-the-art results. Ablation studies show that improvements can be attributed to the use of structured TPRs explicitly in both the encoder and decoder. Analysis of the learned structures shows how TPRs enhance the interpretability of TP-N2F.

[1]  Deng Cai,et al.  Core Semantic First: A Top-down Approach for AMR Parsing , 2019, EMNLP.

[2]  Chen Liang,et al.  Representation and Computation in Cognitive Models , 2017, Top. Cogn. Sci..

[3]  Jürgen Schmidhuber,et al.  Learning to Reason with Third-Order Tensor Products , 2018, NeurIPS.

[4]  Jianfeng Gao,et al.  Basic Reasoning with Tensor Product Representations , 2016, ArXiv.

[5]  Li Deng,et al.  Tensor Product Generation Networks for Deep NLP Modeling , 2017, NAACL.

[6]  Lihong Li,et al.  Neural Approaches to Conversational AI , 2019, Found. Trends Inf. Retr..

[7]  Pat Langley,et al.  Crafting Papers on Machine Learning , 2000, ICML.

[8]  Andrea E. Martin A Compositional Neural Architecture for Language , 2020, Journal of Cognitive Neuroscience.

[9]  Paul Smolensky,et al.  Tensor Product Variable Binding and the Representation of Symbolic Structures in Connectionist Systems , 1990, Artif. Intell..

[10]  D. Gentner,et al.  Language in Mind: Advances in the Study of Language and Thought , 2003 .

[11]  Kenneth D. Forbus,et al.  Human-Like Sketch Object Recognition via Analogical Learning , 2019, AAAI.

[12]  Kenneth D. Forbus,et al.  Action Recognition From Skeleton Data via Analogical Generalization Over Qualitative Representations , 2018, AAAI.

[13]  Christopher D. Manning,et al.  Effective Approaches to Attention-based Neural Machine Translation , 2015, EMNLP.

[14]  Kenneth D. Forbus,et al.  Learning From Unannotated QA Pairs to Analogically Disambiguate and Answer Questions , 2018, AAAI.

[15]  Geoffrey E. Hinton,et al.  Learning internal representations by error propagation , 1986 .

[16]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[17]  Krzysztof Krawiec,et al.  Ain't Nobody Got Time For Coding: Structure-Aware Program Synthesis From Natural Language , 2018, ArXiv.

[18]  Jianfeng Gao,et al.  Reasoning in Vector Space: An Exploratory Study of Question Answering , 2016, ICLR.

[19]  Jianfeng Gao,et al.  Learning Visual Relation Priors for Image-Text Matching and Image Captioning with Neural Scene Graph Generators , 2019, ArXiv.

[20]  Yejin Choi,et al.  MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms , 2019, NAACL.

[21]  Chang Liu,et al.  Attentive Tensor Product Learning , 2019, AAAI.

[22]  Li Deng,et al.  Question-Answering with Grammatically-Interpretable Representations , 2017, AAAI.

[23]  Rajarshi Das,et al.  A Survey on Semantic Parsing , 2018, AKBC.

[24]  G. Kane Parallel Distributed Processing: Explorations in the Microstructure of Cognition, vol 1: Foundations, vol 2: Psychological and Biological Models , 1994 .

[25]  Illia Polosukhin,et al.  Neural Program Search: Solving Programming Tasks from Description and Examples , 2018, ICLR.