Reproduce “Learning Neural Templates for Text Generation” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Sam Wiseman, Stuart M. Shieber, Alexander M. Rush

Researchers from Harvard University developed a neural hidden semi-Markov model (HSMM) decoder that learns explicit, discrete template-like structures for conditional text generation. This approach demonstrated competitive performance on datasets like E2E and WikiBio while providing enhanced interpretability and fine-grained control over the generation process through these learned templates.

Key insights

  • Explicit, discrete template-like structures can be effectively learned and incorporated into neural text generation systems, thereby enhancing both interpretability and controllability.
  • The learned discrete latent states correspond meaningfully to specific information types or fields within the input knowledge base, as supported by empirical purity analysis (e.g., 81.7% average purity on E2E).
  • The templated approach provides a direct mechanism for controllable text generation, allowing for diverse phrasing and content selection from a single input by varying the selected template.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.