Explicit Syntactic Guidance for Neural Text Generation

Yafu Li, Leyang Cui, Jianhao Yan, Yongjing Yin, Wei Bi +2 more
6/20/2023
cs.CL

No official code found. Best implementation: yafuly/SyntacticGen (16 stars, last commit 2023-07-11).

Abstract

Most existing text generation models follow the sequence-to-sequence paradigm. Generative Grammar suggests that humans generate natural language texts by learning language grammar. We propose a syntax-guided generation schema, which generates the sequence guided by a constituency parse tree in a top-down direction. The decoding process can be decomposed into two parts: (1) predicting the infilling texts for each constituent in the lexicalized syntax context given the source sentence; (2) mapping and expanding each constituent to construct the next-level syntax context. Accordingly, we propose a structural beam search method to find possible syntax structures hierarchically. Experiments on paraphrase generation and machine translation show that the proposed method outperforms autoregressive baselines, while also demonstrating effectiveness in terms of interpretability, controllability, and diversity.

View on arXivView PDF

Code Implementations(1)

yafuly/SyntacticGenCommunity100%
161C++, CudaMay 12, 20233 years ago

Similar Papers

Cite this paper

@article{li2023explicit,
  title  = {Explicit Syntactic Guidance for Neural Text Generation},
  author = {Yafu Li and Leyang Cui and Jianhao Yan and Yongjing Yin and Wei Bi and Shuming Shi and Yue Zhang},
  year   = {2023},
  eprint = {2306.11485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.11485v2}
}

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

Discussion