NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraints

By Ximing Lu, Peter West, Rowan Zellers, Ronan Le Bras, Chandra Bhagavatula, Yejin Choi. 2020

177 citations recorded by the source corpus.

Conditional text generation often requires lexical constraints, i.e., which words should or shouldn’t be included in the output text. While the dominant recipe for conditional text generation has been large-scale pretrained language models that are finetuned on the task-specific training data, such models do not learn to follow the underlying constraints reliably, even when supervised with large amounts of task-specific examples. We propose NeuroLogic Decoding, a simple yet effective algorithm that enables neural language models – supervised or not – to generate fluent text while satisfying complex lexical constraints. Our approach is powerful yet efficient. It handles any set of lexical constraints that is expressible under predicate logic, while its asymptotic runtime is equivalent to conventional beam search. Empirical results on four benchmarks show that NeuroLogic Decoding outperforms previous approaches, including algorithms that handle a subset of our constraints. Moreover, we find that unsupervised models with NeuroLogic Decoding often outperform supervised models with conventional decoding, even when the latter is based on considerably larger networks. Our results suggest the limit of large-scale neural networks for fine-grained controllable generation and the promise of inference-time algorithms.

Subfields: Artificial Intelligence, Natural Language Processing

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. Yulia Tsvetkov
  3. Hannaneh Hajishirzi
  4. Mohit Bansal
  5. Noah A. Smith
  6. Luke S. Zettlemoyer
  7. Percy Liang
  8. Jianfeng Gao

In Natural Language Processing

  1. Yejin Choi
  2. Yulia Tsvetkov
  3. Hannaneh Hajishirzi
  4. Noah A. Smith
  5. Mohit Bansal
  6. Ronan Le Bras
  7. Luke S. Zettlemoyer
  8. Daniel Khashabi

Citations in the corpus