无向序列模型生成序的学习与分析
Learning and Analyzing Generation Order for Undirected Sequence Models
摘要:
在机器翻译任务中,无向神经序列模型已经取得了与从左到右单调生成的最先进的有向序列模型相竞争的性能。在这项工作中,我们训练一个策略,通过强化学习学习预训练的无向翻译模型的生成顺序。我们发现,在WMT'14德英翻译任务中,由我们学习的顺序解码的翻译比从左到右解码的输出或由Mansimov等人(2019)学习的顺序解码的输出获得更高的BLEU分数。在De-En,WMT'16英语-罗马尼亚语和WMT'21英语-汉语翻译任务的最大源和目标长度为30的示例中,我们学习的顺序在六个任务中的四个任务上优于所有启发式生成顺序。接下来,我们通过定性和定量分析来仔细分析学习到的订单模式。我们表明,我们的政策一般遵循外到内的顺序,预测最左和最右的位置,然后向中间移动,同时跳过不太重要的话在开始。此外,该策略通常在连续的步骤中预测单个句法成分结构的位置。我们相信我们的发现可以为无向生成模型的机制提供更多的见解,并鼓励在这个方向上进行进一步的研究。我们的代码可在https://github.com/jiangycTarheel/undirected-generation上公开获取
英文摘要:
Undirected neural sequence models have achieved performance competitive with the state-of-the-art directed sequence models that generate monotonically from left to right in machine translation tasks. In this work, we train a policy that learns the generation order for a pre-trained, undirected translation model via reinforcement learning. We show that the translations decoded by our learned orders achieve higher BLEU scores than the outputs decoded from left to right or decoded by the learned order from Mansimov et al. (2019) on the WMT'14 German-English translation task. On examples with a maximum source and target length of 30 from De-En, WMT'16 English-Romanian, and WMT'21 English-Chinese translation tasks, our learned order outperforms all heuristic generation orders on four out of six tasks. We next carefully analyze the learned order patterns via qualitative and quantitative analysis. We show that our policy generally follows an outer-to-inner order, predicting the left-most and right-most positions first, and then moving toward the middle while skipping less important words at the beginning. Furthermore, the policy usually predicts positions for a single syntactic constituent structure in consecutive steps. We believe our findings could provide more insights on the mechanism of undirected generation models and encourage further research in this direction. Our code is publicly available at https://github.com/jiangycTarheel/undirected-generation
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。