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

解决文档级神经机器翻译中的长度偏差问题

Addressing the Length Bias Problem in Document-Level Neural Machine Translation

University of Chinese Academy of Sciences(中国科学院大学);School of Future Science and Engineering, Soochow University(苏州大学未来科学与工程学院)

Zhuocheng Zhang, Shuhao Gu, Min Zhang, Yang Feng

AI总结:

针对文档级神经机器翻译中因文档长度差异导致的翻译质量下降问题,提出动态采样、长度归一化注意力机制和滑动窗口解码策略,有效缓解了长度偏差并提升了多个数据集上的翻译质量。

摘要:

文档级神经机器翻译(DNMT)通过引入更多上下文信息展现出了良好的效果。然而,这种方法也引入了长度偏差问题,即当解码的文档比训练时的最大序列长度短得多或长得多时,DNMT的翻译质量会显著下降。为解决长度偏差问题,我们提出从训练方法、注意力机制和解码策略三个方面改进DNMT模型。首先,我们提出动态采样训练数据,以确保在不同序列长度上分布更均匀。然后,我们引入长度归一化的注意力机制,帮助模型聚焦于目标信息,缓解处理较长序列时的注意力分散问题。最后,我们提出在解码时使用滑动窗口策略,在不超出最大序列长度的前提下尽可能整合上下文信息。实验结果表明,我们的方法在多个开放数据集上能带来显著提升,进一步分析显示该方法能显著缓解长度偏差问题。

英文摘要:

Document-level neural machine translation (DNMT) has shown promising results by incorporating more context information. However, this approach also introduces a length bias problem, whereby DNMT suffers from significant translation quality degradation when decoding documents that are much shorter or longer than the maximum sequence length during training. %i.e., the length bias problem. To solve the length bias problem, we propose to improve the DNMT model in training method, attention mechanism, and decoding strategy. Firstly, we propose to sample the training data dynamically to ensure a more uniform distribution across different sequence lengths. Then, we introduce a length-normalized attention mechanism to aid the model in focusing on target information, mitigating the issue of attention divergence when processing longer sequences. Lastly, we propose a sliding window strategy during decoding that integrates as much context information as possible without exceeding the maximum sequence length. The experimental results indicate that our method can bring significant improvements on several open datasets, and further analysis shows that our method can significantly alleviate the length bias problem.

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

↑