arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.01737cs.CL
收藏

基于transformer的句法指导神经文本生成

Transformer-Based Neural Text Generation with Syntactic Guidance

Georgia Institute of Technology(佐治亚理工学院)

Yinghao Li, Rui Feng, Isaac Rehg, Chao Zhang

摘要:

我们研究的问题,使用(部分)选区解析树的句法指导控制文本生成。现有的方法使用递归结构,这不仅遭受长期依赖问题,而且在建模的语法指导的树结构的不足。我们建议利用Transformer的并行性来更好地结合解析树。我们的方法首先扩展一个部分模板选区解析树到一个完整的解析树为输入源文本量身定制,然后使用扩展的树来指导文本生成。在这个过程中,我们的模型的有效性取决于两个新的注意力机制:1)路径注意力机制,迫使一个节点只关注位于语法树中的路径中的其他节点,以更好地结合语法指导; 2)多编码器注意力机制,允许解码器动态地关注来自多个编码器的信息。我们在受控释义任务中的实验表明,我们的方法在语义和语法上都优于SOTA模型,将最佳基线的BLEU分数从11.83提高到26.27。

英文摘要:

We study the problem of using (partial) constituency parse trees as syntactic guidance for controlled text generation. Existing approaches to this problem use recurrent structures, which not only suffer from the long-term dependency problem but also falls short in modeling the tree structure of the syntactic guidance. We propose to leverage the parallelism of Transformer to better incorporate parse trees. Our method first expands a partial template constituency parse tree to a full-fledged parse tree tailored for the input source text, and then uses the expanded tree to guide text generation. The effectiveness of our model in this process hinges upon two new attention mechanisms: 1) a path attention mechanism that forces one node to attend to only other nodes located in its path in the syntax tree to better incorporate syntax guidance; 2) a multi-encoder attention mechanism that allows the decoder to dynamically attend to information from multiple encoders. Our experiments in the controlled paraphrasing task show that our method outperforms SOTA models both semantically and syntactically, improving the best baseline's BLEU score from 11.83 to 26.27.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑