Compositional Generalization with Tree Stack Memory Units

Forough Arabshahi, Zhichu Lu, Pranay Mundra, Sameer Singh, Animashree Anandkumar
11/5/2019
cs.LGcs.NEstat.ML

Official code: ForoughA/recursiveMemNet (17 stars, PyTorch, last commit 2020-06-17).

Abstract

We study compositional generalization, viz., the problem of zero-shot generalization to novel compositions of concepts in a domain. Standard neural networks fail to a large extent on compositional learning. We propose Tree Stack Memory Units (Tree-SMU) to enable strong compositional generalization. Tree-SMU is a recursive neural network with Stack Memory Units (\SMU s), a novel memory augmented neural network whose memory has a differentiable stack structure. Each SMU in the tree architecture learns to read from its stack and to write to it by combining the stacks and states of its children through gating. The stack helps capture long-range dependencies in the problem domain, thereby enabling compositional generalization. Additionally, the stack also preserves the ordering of each node's descendants, thereby retaining locality on the tree. We demonstrate strong empirical results on two mathematical reasoning benchmarks. We use four compositionality tests to assess the generalization performance of Tree-SMU and show that it enables accurate compositional generalization compared to strong baselines such as Transformers and Tree-LSTMs.

View on arXivView PDF

Code Implementations(1)

PyTorch

Tree Stack Memory Units

172Shell, PythonNov 8, 20196 years agoNOASSERTION
neural-programmersneural-stackneuro-symbolic-learningpytorchrecursive-neural-networks+4 more

Cite this paper

@article{arabshahi2019compositional,
  title  = {Compositional Generalization with Tree Stack Memory Units},
  author = {Forough Arabshahi and Zhichu Lu and Pranay Mundra and Sameer Singh and Animashree Anandkumar},
  year   = {2019},
  eprint = {1911.01545},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.01545}
}

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/1911.01545.svg)](https://codeofpaper.com/paper/1911.01545)

Discussion