/vae-nlp

forked from: https://github.com/s4sarath/Deep-Learning-Projects/tree/master/variational_text_inference

Primary LanguageJupyter Notebook

''' Neural Variational Inference for Text Processing

https://arxiv.org/pdf/1511.06038v4.pdf

Yishu Miao, Lei Yu, Phil Blunsom

Recent advances in neural variational inference have spawned a renaissance in deep latent variable models. In this paper we introduce a generic variational inference framework for generative and conditional models of text. While traditional variational methods derive an analytic approximation for the intractable distributions over latent variables, here we construct an inference network conditioned on the discrete text input to provide the variational distribution. We validate this framework on two very different text modelling applications, generative document modelling and supervised question answering. Our neural variational document model combines a continuous stochastic document representation with a bag-of-words generative model and achieves the lowest reported perplexities on two standard test corpora. The neural answer selection model employs a stochastic representation layer within an attention mechanism to extract the semantics between a question and answer pair. On two question answering benchmarks this model exceeds all previous published benchmarks.

I ran the model for only 200 iterations . Better results can be achieved if you run for more iterations I guess . '''