Generating Sentences from a Continuous Space
Paper · 2016 · Samuel R. Bowman, Luke Vilnis, Oriol Vinyals et al.
Summary
The paper tackles a limitation of the standard rnnlm. It builds text one token after another and never forms one explicit vector for the whole sentence, so properties like topic, style or overall syntax stay hidden. The authors adapt the variational autoencoder to sentences. A single-layer LSTM encoder maps a sentence to a diagonal Gaussian posterior over a latent code ~z, and an LSTM decoder rebuilds the sentence from a sample of that code, with a standard Gaussian prior regularizing the space. The main difficulty is that naive training lets the posterior collapse onto the prior. The KL term then drops to zero and the model degenerates into an ordinary rnnlm, so the authors propose training techniques, including word dropout, to prevent this. On Penn Treebank language modeling the model roughly matches rnnlms, which they report as a negative result. It does better at imputing missing words, judged by a new adversarial-classifier evaluation. Codes sampled from the prior and decoded greedily give diverse, well-formed sentences, and paths between two sentence codes pass through grammatical intermediate sentences. This shows a smooth, meaningful sentence space, which a plain sequence autoencoder fails to learn.
Key points
- The architecture uses single-layer LSTM encoder and decoder. When feedforward layers sit between the RNN and ~z, highway layers were required for learning, implemented as a 4 layer highway network on each side.
- Without countermeasures, most runs collapse to q(~z|x) = p(~z) with zero KL. Hyperparameters were tuned with Bayesian optimization over 200 runs, and the word-dropout keep rate chosen for the Penn Treebank VAE was 0.62.
- Richer posteriors did not clearly beat the plain VAE. These included a DRAW-style multistep sampler and normalizing flows.
- On TREC Question Classification with a linear classifier, VAE codes scored 87.0. This is above the plain sequence autoencoder (84.2) but slightly below cbow (87.3) and below skip-thought (91.4; combine-st 92.2). Adding VAE codes to combine-st gave 92.0, with no gain.
- Homotopies from a conventional autoencoder pass through ungrammatical sentences. VAE homotopies, trained on fiction including romance novels, stay mostly grammatical and topically consistent.
Interesting ideas
- I1. Decoding points along a straight line between two sentence encodings is a cheap test of whether a representation space is smooth and meaningful, rather than a set of memorized isolated points.
- I2. The KL term works as a direct gauge of whether the decoder actually uses its conditioning information or ignores it and acts as a bare language model.
- I3. Weakening the decoder by hiding some of its previous words (word dropout) forces it to rely on the global code instead of local history.
- I4. Imputed or generated text can be judged by how well an adversarial classifier separates it from real text, which avoids intractable likelihood computations.
- I5. A linear probe may underrate Gaussian-regularized codes, because that geometry can discourage linear separability.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (back): interpolate between two meaning graphs, for example by swapping one frame at a time, and check that the text → graph → text compressor yields fluent text at every step.
- I2 (learn): add a negative control that measures how much generator output changes when the input graph is blanked or shuffled, and flag components that ignore their structured input.
- I3 (back): randomly mask preceding tokens while training the generator, so wording must be driven by the meaning graph and not by n-gram habit.
- I4 (learn): train a small discriminator on real versus regenerated sentences and use its accuracy, ideally near chance, as an evaluation metric for generation and repair rules.
- I5 (learn): when probing any learned representation, report a nonlinear probe alongside the linear one before concluding that information is absent.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Cite
Cite as Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz and Samy Bengio. 2016. Generating Sentences from a Continuous Space. Proceedings of the 20th SIGNLL Conference on Computational Natural Language Learning.
@inproceedings{bowman2016generating,
title = {{Generating Sentences from a Continuous Space}},
author = {Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz and Samy Bengio},
booktitle = {Proceedings of the 20th SIGNLL Conference on Computational Natural Language Learning},
year = {2016},
doi = {10.18653/v1/k16-1002},
eprint = {1511.06349},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/k16-1002}
}References
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural machine translation by jointly learning to align and translate. In Proc. ICLR. our card
- Justin Bayer and Christian Osendorfer. 2015. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610 . OpenAlex ↗ · Scholar ↗
- Julian Besag. 1986. On the statistical analysis of dirty pictures. Journal of the Royal Statistical Society Series B (Methodological) pages 48–259. OpenAlex ↗ · Scholar ↗
- Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron Courville, and Yoshua Bengio. 2015. A recurrent latent variable model for sequential data. In Proc. NIPS. OpenAlex ↗ · Scholar ↗
- Andrew M. Dai and Quoc V. Le. 2015. Semi-supervised sequence learning. In Proc. NIPS. our card
- Emily Denton, Soumith Chintala, Arthur Szlam, and Rob Fergus. 2015. Deep generative image models using a laplacian pyramid of adversarial networks. In Proc. NIPS. our card
- Bill Dolan, Chris Quirk, and Chris Brockett. 2004. Unsupervised construction of large paraphrase corpora: Exploiting massively parallel news sources. In Proceedings of the 20th international conference on Computational Linguistics. Association for Computational Linguistics, page 350. our card
- Jeff Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. 2015. Long-term recurrent convolutional networks for visual recognition and description. In Proc. CVPR. our card
- Otto Fabius and Joost R. van Amersfoort. 2014. Variational recurrent auto-encoders. arXiv preprint arXiv:1412.6581. OpenAlex ↗ · Scholar ↗
- Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. 2014. Generative adversarial nets. In Proc. NIPS. OpenAlex ↗ · Scholar ↗
- Karol Gregor, Ivo Danihelka, Alex Graves, and Daan Wierstra. 2015. DRAW: A recurrent neural network for image generation. In Proc. ICML. our card
- Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola. 2012. A kernel two-sample test. JMLR 13(1):723–773. OpenAlex ↗ · Scholar ↗
- Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation 9(8). OpenAlex ↗ · Scholar ↗
- Mohit Iyyer, Varun Manjunatha, Jordan Boyd-Graber, and Hal Daumé III. 2015. Deep unordered composition rivals syntactic methods for text classification. In Proc. ACL. our card
- Michael Kearns, Yishay Mansour, and Andrew Y Ng. 1998. An information-theoretic analysis of hard and soft assignment methods for clustering. In Learning in graphical models, Springer, pages 495–520. OpenAlex ↗ · Scholar ↗
- Yoon Kim. 2014. Convolutional neural networks for sentence classification. EMNLP . our card
- Diederik P. Kingma and Max Welling. 2015. Auto-encoding variational bayes. In Proc. ICLR. our card
- Ryan Kiros, Yukun Zhu, Ruslan Salakhutdinov, Richard S Zemel, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. 2015. Skip-thought vectors. arXiv preprint arXiv:1506.06726. OpenAlex ↗ · Scholar ↗
- Ankit Kumar, Ozan Irsoy, Jonathan Su, James Bradbury, Robert English, Brian Pierce, Peter Ondruska, Ishaan Gulrajani, and Richard Socher. 2015. Ask me anything: Dynamic memory networks for natural language processing. arXiv preprint arXiv:1506.07285. our card
- Quoc V. Le and Tomáš Mikolov. 2014. Distributed representations of sentences and documents. In Proc. ICML. our card
- Jiwei Li, Minh-Thang Luong, and Dan Jurafsky. 2015a. A hierarchical neural autoencoder for paragraphs and documents. In Proc. ACL. our card
- Xin Li and Dan Roth. 2002. Learning question classifiers. In Proceedings of the 19th international conference on Computational linguistics-Volume 1. Association for Computational Linguistics, pages 1–7. OpenAlex ↗ · Scholar ↗
- Yujia Li, Kevin Swersky, and Richard Zemel. 2015b. Generative moment matching networks. In Proc. ICML. OpenAlex ↗ · Scholar ↗
- Junhua Mao, Wei Xu, Yi Yang, Jiang Wang, Zhiheng Huang, and Alan Yuille. 2015. Deep captioning with multimodal recurrent neural networks (m-RNN). In Proc. ICLR. our card
- Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. 1993. Building a large annotated corpus of English: The Penn Treebank. Computational linguistics 19(2):313–330. our card
- Yishu Miao, Lei Yu, and Phil Blunsom. 2015. Neural variational inference for text processing. arXiv preprint arXiv:1511.06038 . OpenAlex ↗ · Scholar ↗
- Tomáš Mikolov, Stefan Kombrink, Lukáš Burget, Jan Honza Černockỳ, and Sanjeev Khudanpur. 2011. Extensions of recurrent neural network language model. In Proc. ICASSP. OpenAlex ↗ · Scholar ↗
- Tapani Raiko, Mathias Berglund, Guillaume Alain, and Laurent Dinh. 2015. Techniques for learning binary stochastic feedforward neural networks. In Proc. ICLR. OpenAlex ↗ · Scholar ↗
- Danilo J. Rezende and Shakir Mohamed. 2015. Variational inference with normalizing flows. In Proc. ICML. our card
- Danilo J. Rezende, Shakir Mohamed, and Daan Wierstra. 2014. Stochastic backpropagation and approximate inference in deep generative models. In Proc. ICML. our card
- Jasper Snoek, Hugo Larochelle, and Ryan P. Adams. 2012. Practical Bayesian optimization of machine learning algorithms. In Proc. NIPS. OpenAlex ↗ · Scholar ↗
- Richard Socher, Eric H Huang, Jeffrey Pennin, Christopher D Manning, and Andrew Y Ng. 2011. Dynamic pooling and unfolding recursive autoencoders for paraphrase detection. In Advances in Neural Information Processing Systems. pages 801–809. OpenAlex ↗ · Scholar ↗
- Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. JMLR 15(1):1929–1958. our card
- Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. 2015. Training very deep networks. In Proc. NIPS. OpenAlex ↗ · Scholar ↗
- Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. 2014. Sequence to sequence learning with neural networks. In Proc. NIPS. our card
- Lucas Theis and Matthias Bethge. 2015. Generative image modeling using spatial LSTMs. In Proc. NIPS. OpenAlex ↗ · Scholar ↗
- Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. 2015. Show and tell: A neural image caption generator. In Proc. CVPR. our card
- Han Zhao, Zhengdong Lu, and Pascal Poupart. 2015. Self-adaptive hierarchical sentence model. IJCAI . OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/bowman-2016-generating-sentences-continuous-space/