Bayesian Compression for Natural Language Processing

Nadezhda Chirkova, Ekaterina Lobacheva, Dmitry Vetrov
10/25/2018
15 citations
cs.CLcs.LGstat.ML
bayesian

Official code: tipt0p/SparseBayesianRNN (16 stars, Python, GPL-3.0, last commit 2018-12-18).

Abstract

In natural language processing, a lot of the tasks are successfully solved with recurrent neural networks, but such models have a huge number of parameters. The majority of these parameters are often concentrated in the embedding layer, which size grows proportionally to the vocabulary length.

Show full abstract

We propose a Bayesian sparsification technique for RNNs which allows compressing the RNN dozens or hundreds of times without time-consuming hyperparameters tuning. We also generalize the model for vocabulary sparsification to filter out unnecessary words and compress the RNN even further. We show that the choice of the kept words is interpretable. Code is available on github: https://github.com/tipt0p/SparseBayesianRNN

View on arXivView PDF

Code Implementations(1)

GPL-3.0
164PythonJul 27, 20177 years agoGPL-3.0

Similar Papers

Cite this paper

@article{chirkova2018bayesian,
  title  = {Bayesian Compression for Natural Language Processing},
  author = {Nadezhda Chirkova and Ekaterina Lobacheva and Dmitry Vetrov},
  year   = {2018},
  eprint = {1810.10927},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.10927}
}

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

Discussion