Language Generation via Combinatorial Constraint Satisfaction: A Tree Search Enhanced Monte-Carlo Approach

Maosen Zhang, Nan Jiang, Lei Li, Yexiang Xue
11/24/2020
cs.CLcs.AI

Official code: Milozms/TSMH (7 stars, Python, last commit 2020-10-06).

Abstract

Generating natural language under complex constraints is a principled formulation towards controllable text generation. We present a framework to allow specification of combinatorial constraints for sentence generation.

Show full abstract

We propose TSMH, an efficient method to generate high likelihood sentences with respect to a pre-trained language model while satisfying the constraints. Our approach is highly flexible, requires no task-specific training, and leverages efficient constraint satisfaction solving techniques. To better handle the combinatorial constraints, a tree search algorithm is embedded into the proposal process of the Markov chain Monte Carlo (MCMC) to explore candidates that satisfy more constraints. Compared to existing MCMC approaches, our sampling approach has a better mixing performance. Experiments show that TSMH achieves consistent and significant improvement on multiple language generation tasks.

View on arXivView PDF

Code Implementations(1)

Milozms/TSMHOfficial100%
72PythonOct 6, 20206 years ago

Similar Papers

Cite this paper

@article{zhang2020language,
  title  = {Language Generation via Combinatorial Constraint Satisfaction: A Tree Search Enhanced Monte-Carlo Approach},
  author = {Maosen Zhang and Nan Jiang and Lei Li and Yexiang Xue},
  year   = {2020},
  eprint = {2011.12334},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.12334}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.12334.svg)](https://codeofpaper.com/paper/2011.12334)

Discussion