HackerPapers

arXiv:1805.04908cs.LG

On the Practical Computational Power of Finite Precision RNNs for Language Recognition

Gail Weiss, Yoav Goldberg, Eran Yahav

Abstract

While Recurrent Neural Networks (RNNs) are famously known to be Turing complete, this relies on infinite precision in the states and unbounded computation time. We consider the case of RNNs with finite precision whose computation time is linear in the input length. Under these limitations, we show that different RNN variants have different computational power. In particular, we show that the LSTM and the Elman-RNN with ReLU activation are strictly stronger than the RNN with a squashing activation and the GRU. This is achieved because LSTMs and ReLU-RNNs can easily implement counting behavior. We show empirically that the LSTM does indeed learn to effectively use the counting mechanism.

arXiv comments
Accepted as a short paper in ACL 2018
Journal reference
DOI
Subjects
cs.LGMachine Learning cs.CLComputation and Language stat.MLMachine Learning (Statistics)

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 2 threads, from Aug 2018 to Nov 2019.

Comments linking this paper, per year.

Discussed in comments2 threads

    • Neural nets can still not solve aⁿbⁿ. This is the latest attempt of which I'm aware: On the Practical Computational Power of Finite Precision RNNs for Language Recognition https://arxiv.org/abs/1805.04908 Typically, it claims generalisation but fails to demonstrate it. As we…

      YeGoblynQueenneView on HNParent context

    • LSTMs can learn a count mechanism that lets them recognize a^n b^n and a^n b^n c^n: https://arxiv.org/pdf/1805.04908.pdf

      canjobearView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.