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

集成向量化词汇约束的神经机器翻译

Integrating Vectorized Lexical Constraints for Neural Machine Translation

Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Quan Cheng Laboratory(之江实验室)

Shuo Wang, Zhixing Tan, Yang Liu

摘要:

词汇约束神经机器翻译(NMT)控制具有预先指定的约束的NMT模型的生成,在许多实际场景中是重要的。由于NMT模型中离散约束和连续向量之间的表示差距,现有的研究大多选择构造合成数据或修改解码算法来施加词汇约束,将NMT模型视为黑箱。在这项工作中,我们建议通过直接将约束集成到NMT模型中来打开这个黑盒子。具体来说,我们将源和目标约束向量化为连续的键和值,这些键和值可以被NMT模型的注意力模块利用。所提出的集成方法是基于这样的假设,即注意力模块中的键和值之间的对应关系自然适合于建模约束对。实验结果表明,我们的方法在四种语言对上的性能始终优于几个代表性基线,证明了集成矢量化词汇约束的优越性。

英文摘要:

Lexically constrained neural machine translation (NMT), which controls the generation of NMT models with pre-specified constraints, is important in many practical scenarios. Due to the representation gap between discrete constraints and continuous vectors in NMT models, most existing works choose to construct synthetic data or modify the decoding algorithm to impose lexical constraints, treating the NMT model as a black box. In this work, we propose to open this black box by directly integrating the constraints into NMT models. Specifically, we vectorize source and target constraints into continuous keys and values, which can be utilized by the attention modules of NMT models. The proposed integration method is based on the assumption that the correspondence between keys and values in attention modules is naturally suitable for modeling constraint pairs. Experimental results show that our method consistently outperforms several representative baselines on four language pairs, demonstrating the superiority of integrating vectorized lexical constraints.

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

↑