CLSep 5, 2021

Learning Hierarchical Structures with Differentiable Nondeterministic Stacks

arXiv:2109.01982v319 citations
Originality Incremental advance
AI Analysis

This addresses the challenge of reliable generalization in neural language models for tasks like algorithmic patterns and natural language, though it is incremental over prior stack RNN methods.

The paper tackles the problem of learning hierarchical structures in sequential data by improving a differentiable nondeterministic stack RNN, achieving lower cross-entropy on context-free language tasks, within 0.05 nats of the theoretical limit, and extending it to infinite sequences on the Penn Treebank.

Learning hierarchical structures in sequential data -- from simple algorithmic patterns to natural language -- in a reliable, generalizable way remains a challenging problem for neural language models. Past work has shown that recurrent neural networks (RNNs) struggle to generalize on held-out algorithmic or syntactic patterns without supervision or some inductive bias. To remedy this, many papers have explored augmenting RNNs with various differentiable stacks, by analogy with finite automata and pushdown automata (PDAs). In this paper, we improve the performance of our recently proposed Nondeterministic Stack RNN (NS-RNN), which uses a differentiable data structure that simulates a nondeterministic PDA, with two important changes. First, the model now assigns unnormalized positive weights instead of probabilities to stack actions, and we provide an analysis of why this improves training. Second, the model can directly observe the state of the underlying PDA. Our model achieves lower cross-entropy than all previous stack RNNs on five context-free language modeling tasks (within 0.05 nats of the information-theoretic lower bound), including a task on which the NS-RNN previously failed to outperform a deterministic stack RNN baseline. Finally, we propose a restricted version of the NS-RNN that incrementally processes infinitely long sequences, and we present language modeling results on the Penn Treebank.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes