Learning Neural Templates for Text Generation

Sam Wiseman, Stuart M. Shieber, Alexander M. Rush
8/30/2018
cs.CLcs.LG

Official code: harvardnlp/neural-template-gen (266 stars, last commit 2022-06-09).

Abstract

While neural, encoder-decoder models have had significant empirical success in text generation, there remain several unaddressed problems with this style of generation. Encoder-decoder models are largely (a) uninterpretable, and (b) difficult to control in terms of their phrasing or content. This work proposes a neural generation system using a hidden semi-markov model (HSMM) decoder, which learns latent, discrete templates jointly with learning to generate. We show that this model learns useful templates, and that these templates make generation both more interpretable and controllable. Furthermore, we show that this approach scales to real data sets and achieves strong performance nearing that of encoder-decoder text generation models.

View on arXivView PDF

Code Implementations(1)

26658PythonAug 30, 20184 years ago

Similar Papers

Cite this paper

@article{wiseman2018learning,
  title  = {Learning Neural Templates for Text Generation},
  author = {Sam Wiseman and Stuart M. Shieber and Alexander M. Rush},
  year   = {2018},
  eprint = {1808.10122},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.10122}
}

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/1808.10122.svg)](https://codeofpaper.com/paper/1808.10122)

Discussion