Compositional Generalization by Learning Analytical Expressions

Qian Liu, Shengnan An, Jian-Guang Lou, Bei Chen, Zeqi Lin +4 more
6/18/2020
cs.AIcs.CL

Official code: microsoft/ContextualSP (387 stars, Python, MIT, last commit 2023-11-10).

Abstract

Compositional generalization is a basic and essential intellective capability of human beings, which allows us to recombine known parts readily. However, existing neural network based models have been proven to be extremely deficient in such a capability.

Show full abstract

Inspired by work in cognition which argues compositionality can be captured by variable slots with symbolic functions, we present a refreshing view that connects a memory-augmented neural model with analytical expressions, to achieve compositional generalization. Our model consists of two cooperative neural modules, Composer and Solver, fitting well with the cognitive argument while being able to be trained in an end-to-end manner via a hierarchical reinforcement learning algorithm. Experiments on the well-known benchmark SCAN demonstrate that our model seizes a great ability of compositional generalization, solving all challenges addressed by previous works with 100% accuracies.

View on arXivView PDF

Code Implementations(1)

MIT

Multiple paper open-source codes of the Microsoft Research Asia DKI group

38762Python, Jupyter NotebookApr 14, 20203 years agoMIT
compositional-generalizationconversational-semantic-parsingmicrosoft-research-asiasemantic-parsingtext-to-sql+1 more

Similar Papers

Cite this paper

@article{liu2020compositional,
  title  = {Compositional Generalization by Learning Analytical Expressions},
  author = {Qian Liu and Shengnan An and Jian-Guang Lou and Bei Chen and Zeqi Lin and Yan Gao and Bin Zhou and Nanning Zheng and Dongmei Zhang},
  year   = {2020},
  eprint = {2006.10627},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.10627}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.10627.svg)](https://codeofpaper.com/paper/2006.10627)

Discussion