Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks

Yikang Shen, Shawn Tan, Alessandro Sordoni, Aaron Courville
10/22/2018
cs.CLcs.LG

Official code: yikangshen/Ordered-Neurons (581 stars, BSD-3-Clause, last commit 2019-08-28).

Abstract

Natural language is hierarchically structured: smaller units (e.g., phrases) are nested within larger units (e.g., clauses). When a larger constituent ends, all of the smaller constituents that are nested within it must also be closed. While the standard LSTM architecture allows different neurons to track information at different time scales, it does not have an explicit bias towards modeling a hierarchy of constituents. This paper proposes to add such an inductive bias by ordering the neurons; a vector of master input and forget gates ensures that when a given neuron is updated, all the neurons that follow it in the ordering are also updated. Our novel recurrent architecture, ordered neurons LSTM (ON-LSTM), achieves good performance on four different tasks: language modeling, unsupervised parsing, targeted syntactic evaluation, and logical inference.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Code for the paper "Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks"

58199C, PerlJul 25, 20187 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{shen2018ordered,
  title  = {Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks},
  author = {Yikang Shen and Shawn Tan and Alessandro Sordoni and Aaron Courville},
  year   = {2018},
  eprint = {1810.09536},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.09536}
}

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

Discussion