paper-with-me

홈 › Papers

Learning Hierarchical Structures with Differentiable Nondeterministic Stacks

2021-09-05 · ICLR 2022 4 · Brian DuSell, David Chiang

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.

📄 PDF Abstract BibTeX arXiv:2109.01982

Code (1)

bdusell/nondeterministic-stack-rnn 공식 구현 pytorch

Tasks

Inductive BiasLanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Nondeterministic Stacks in Neural Networks

2023-04-25 · Brian DuSell

Human language is full of compositional syntactic structures, and although neural networks have contributed to groundbreaking improvements in computer systems that process language, widely-used neural network architectur…

Language ModelingLanguage Modelling

Bearing Syntactic Fruit with Stack-Augmented Neural Networks

2025-11-05 · Brian DuSell, Ryan Cotterell arxiv

When children learn language, they make syntactic generalizations based on hierarchical rules. A recent line of work has inquired as to whether common neural network architectures share this inductive bias for hierarchic…

Stack Attention: Improving the Ability of Transformers to Model Hierarchical Patterns

2023-10-03 · Brian DuSell, David Chiang

Attention, specifically scaled dot-product attention, has proven effective for natural language, but it does not have a mechanism for handling hierarchical patterns of arbitrary nesting depth, which limits its ability to…

Language ModelingLanguage ModellingMachine Translation

Finding Hierarchical Structure in Neural Stacks Using Unsupervised Parsing

2019-08-01 · WS 2019 8 · William Merrill, Lenny Khazan, Noah Amsel, Yiding Hao 외

Neural network architectures have been augmented with differentiable stacks in order to introduce a bias toward learning hierarchy-sensitive regularities. It has, however, proven difficult to assess the degree to which s…

Language ModelingLanguage Modelling

Finding Syntactic Representations in Neural Stacks

2019-06-04 · William Merrill, Lenny Khazan, Noah Amsel, Yiding Hao 외

Neural network architectures have been augmented with differentiable stacks in order to introduce a bias toward learning hierarchy-sensitive regularities. It has, however, proven difficult to assess the degree to which s…

General ClassificationLanguage ModelingLanguage Modelling