摘要
术语干预神经机器翻译模型通常借助人为给定的术语翻译来改变译文,从而改善翻译质量。向量化干预方法为术语干预任务提供了新的范式,但仅考虑将术语与句子信息以向量的形式融合,没有关注术语信息对术语翻译效果的影响。为此,构建一种结合向量化方法与掩码机制的术语干预机器翻译模型,将人为给定的源端术语与目标端术语编码为特征向量,显式地融入机器翻译模型的编码器、解码器以及输出层。在训练阶段,借助掩码机制屏蔽注意力机制中源端术语对应的关键字,增强模型编码器与解码器对术语特征向量的关注。在推理阶段,利用掩码机制优化术语干预输出层的概率分布,进一步提高术语字符的翻译准确率。在WMT 2014德英和WMT 2021英中数据集上的实验结果表明,相较于基于原始向量化方法的Code-Switching机器翻译模型,所提模型的术语翻译准确率分别提升了9.27和2.95个百分点,并且能大幅度提升长术语的翻译准确率。
The terminology intervention Neural Machine Translation(NMT)model optimizes translations with the help of human-provided translations;this improves the translation quality.Recently,vectorization methods have emerged to provide a new paradigm for terminology intervention tasks;however,these methods consider only fusing terminology information with sentence information and neglect the low contribution of terminology vectors to terminology translation.To address these issues,a terminology intervention machine translation model combining the vectorization method and mask mechanism is built.This model encodes human-provided source terminology and target terminology into feature vectors and integrates them into the encoder,decoder,and output layers of the machine translation model.To enhance its attention to term feature vectors,the model uses a mask mechanism to mask the keys corresponding to the source-side terminologies in the attention mechanism during the training phase.In the inference phase,the probability distribution of the output layer is optimized to improve terminology generation.The experimental results on the WMT 2014 German-English and WMT2021 English-Chinese datasets show that,compared with the Code-Switching machine translation model based on the original vectorization method,the proposed model has improved the terminology translation accuracy by 9.27 and 2.95 percentage points,respectively,and can significantly improve the translation accuracy of long-terms.
作者
张金鹏
段湘煜
ZHANG Jinpeng;DUAN Xiangyu(School of Computer Science and Technology,Soochow University,Suzhou 215000,Jiangsu,China)
出处
《计算机工程》
CAS
CSCD
北大核心
2023年第11期70-76,84,共8页
Computer Engineering
基金
国家自然科学基金(61673289)。
关键词
机器翻译
术语干预
向量化
注意力机制
掩码机制
machine translation
terminology intervention
vectorization
attention mechanism
mask mechanism