Backward and Forward Language Modeling for Constrained Sentence Generation
Lili Mou, Rui Yan, Ge Li, Lu Zhang, Zhi Jin

TL;DR
This paper introduces a backward and forward language model that allows for constrained sentence generation by ensuring a specific word appears in the generated text, regardless of its position.
Contribution
It proposes a novel RNN-based model that generates context around a given word, enabling constrained sentence generation at any position.
Findings
Generated texts are comparable in quality to traditional sequential language models.
The model effectively places a specified word at any position in the sentence.
Experimental results validate the approach's feasibility and quality.
Abstract
Recent language models, especially those based on recurrent neural networks (RNNs), make it possible to generate natural language from a learned probability. Language generation has wide applications including machine translation, summarization, question answering, conversation systems, etc. Existing methods typically learn a joint probability of words conditioned on additional information, which is (either statically or dynamically) fed to RNN's hidden layer. In many applications, we are likely to impose hard constraints on the generated texts, i.e., a particular word must appear in the sentence. Unfortunately, existing approaches could not solve this problem. In this paper, we propose a novel backward and forward language model. Provided a specific word, we use RNNs to generate previous words and future words, either simultaneously or asynchronously, resulting in two model variants.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech and dialogue systems
