CGMH: Constrained Sentence Generation by Metropolis-Hastings Sampling

By Ning Miao, Hao Zhou, Lili Mou, Rui Yan, Lei Li. 2018

211 citations recorded by the source corpus.

In real-world applications of natural language generation, there are often constraints on the target sentences in addition to fluency and naturalness requirements. Existing language generation techniques are usually based on recurrent neural networks (RNNs). However, it is non-trivial to impose constraints on RNNs while maintaining generation quality, since RNNs generate sentences sequentially (or with beam search) from the first word to the last. In this paper, we propose CGMH, a novel approach using Metropolis-Hastings sampling for constrained sentence generation. CGMH allows complicated constraints such as the occurrence of multiple keywords in the target sentences, which cannot be handled in traditional RNN-based approaches. Moreover, CGMH works in the inference stage, and does not require parallel corpora for training. We evaluate our method on a variety of tasks, including keywords-to-sentence generation, unsupervised sentence paraphrasing, and unsupervised sentence error correction. CGMH achieves high performance compared with previous supervised methods for sentence generation. Our code is released at https://github.com/NingMiao/CGMH

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing, Generative Models

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yejin Choi
  2. Mohit Bansal
  3. Jianfeng Gao
  4. Hannaneh Hajishirzi
  5. Luke S. Zettlemoyer
  6. Graham Neubig
  7. Percy Liang
  8. Noah A. Smith

In Computer Vision and Pattern Recognition

  1. Yejin Choi
  2. Jianfeng Gao
  3. Hannaneh Hajishirzi
  4. Mohit Bansal
  5. Luc Van Gool
  6. Dacheng Tao
  7. Trevor Darrell
  8. Cordelia Schmid

In Natural Language Processing

  1. Yejin Choi
  2. Jianfeng Gao
  3. Hannaneh Hajishirzi
  4. Mohit Bansal
  5. Noah A. Smith
  6. Luke S. Zettlemoyer
  7. Graham Neubig
  8. Percy Liang

In Generative Models

  1. Bryan Eikema
  2. Yejin Choi
  3. Peter West
  4. Ximing Lu
  5. Tomasz Korbak
  6. Germán Kruszewski
  7. Marc Dymetman
  8. Jos Rozen

Citations in the corpus