SoPa: Bridging CNNs, RNNs, and Weighted Finite-State Machines

May 15, 2018 ยท Entered Twilight ยท ๐Ÿ› Annual Meeting of the Association for Computational Linguistics

๐ŸŒ… TWILIGHT: Old Age
Predates the code-sharing era โ€” a pioneer of its time

"Last commit was 7.0 years ago (โ‰ฅ5 year threshold)"

Evidence collected by the PWNC Scanner

Repo contents: .gitignore, LICENSE, README.md, __init__.py, baselines, data.py, data, environment_linux.yml, environment_osx.yml, install.sh, interpret_classification_results.py, mlp.py, rnn.py, scripts, soft_patterns.py, soft_patterns_test.py, test, util.py, visualize.py, visualize_efficiently.py

Authors Roy Schwartz, Sam Thomson, Noah A. Smith arXiv ID 1805.06061 Category cs.CL: Computation & Language Cross-listed cs.AI, cs.LG Citations 24 Venue Annual Meeting of the Association for Computational Linguistics Repository https://github.com/Noahs-ARK/soft_patterns โญ 54 Last Checked 1 month ago
Abstract
Recurrent and convolutional neural networks comprise two distinct families of models that have proven to be useful for encoding natural language utterances. In this paper we present SoPa, a new model that aims to bridge these two approaches. SoPa combines neural representation learning with weighted finite-state automata (WFSAs) to learn a soft version of traditional surface patterns. We show that SoPa is an extension of a one-layer CNN, and that such CNNs are equivalent to a restricted version of SoPa, and accordingly, to a restricted form of WFSA. Empirically, on three text classification tasks, SoPa is comparable or better than both a BiLSTM (RNN) baseline and a CNN baseline, and is particularly useful in small data settings.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

๐Ÿ“œ Similar Papers

In the same crypt โ€” Computation & Language

๐ŸŒ… ๐ŸŒ… Old Age

Attention Is All You Need

Ashish Vaswani, Noam Shazeer, ... (+6 more)

cs.CL ๐Ÿ› NeurIPS ๐Ÿ“š 166.0K cites 8 years ago