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

Zhuocheng Zhang, Shuhao Gu, Min Zhang, Yang Feng
11/20/2023
cs.CL

No official code found. Best implementation: ZhuochengZhang98/D2DToolkits (5 stars, MIT, last commit 2023-11-21).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Code for EMNLP 2023 Findings paper "Addressing the Length Bias Problem in Document-Level Neural Machine Translation".

51PythonOct 20, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zhang2023addressing,
  title  = {Addressing the Length Bias Problem in Document-Level Neural Machine Translation},
  author = {Zhuocheng Zhang and Shuhao Gu and Min Zhang and Yang Feng},
  year   = {2023},
  eprint = {2311.11601},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.11601v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.11601.svg)](https://codeofpaper.com/paper/2311.11601)

Discussion