Rational Recurrences

Hao Peng, Roy Schwartz, Sam Thomson, Noah A. Smith
8/28/2018
cs.CL

Official code: Noahs-ARK/rational-recurrences (28 stars, Python, MIT, last commit 2022-06-21).

Abstract

Despite the tremendous empirical success of neural models in natural language processing, many of them lack the strong intuitions that accompany classical machine learning approaches. Recently, connections have been shown between convolutional neural networks (CNNs) and weighted finite state automata (WFSAs), leading to new interpretations and insights.

Show full abstract

In this work, we show that some recurrent neural networks also share this connection to WFSAs. We characterize this connection formally, defining rational recurrences to be recurrent hidden state update functions that can be written as the Forward calculation of a finite set of WFSAs. We show that several recent neural models use rational recurrences. Our analysis provides a fresh view of these models and facilitates devising new neural architectures that draw inspiration from WFSAs. We present one such model, which performs better than two recent baselines on language modeling and text classification. Our results demonstrate that transferring intuitions from classical models like WFSAs can be an effective approach to designing and understanding neural models.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation for "Rational Recurrences", Peng et al., EMNLP 2018.

285PythonAug 13, 20184 years agoMIT

Similar Papers

Cite this paper

@article{peng2018rational,
  title  = {Rational Recurrences},
  author = {Hao Peng and Roy Schwartz and Sam Thomson and Noah A. Smith},
  year   = {2018},
  eprint = {1808.09357},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.09357}
}

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

Discussion