English

Document Flattening: Beyond Concatenating Context for Document-Level Neural Machine Translation

Computation and Language 2023-02-17 v1

Abstract

Existing work in document-level neural machine translation commonly concatenates several consecutive sentences as a pseudo-document, and then learns inter-sentential dependencies. This strategy limits the model's ability to leverage information from distant context. We overcome this limitation with a novel Document Flattening (DocFlat) technique that integrates Flat-Batch Attention (FBA) and Neural Context Gate (NCG) into Transformer model to utilize information beyond the pseudo-document boundaries. FBA allows the model to attend to all the positions in the batch and learns the relationships between positions explicitly and NCG identifies the useful information from the distant context. We conduct comprehensive experiments and analyses on three benchmark datasets for English-German translation, and validate the effectiveness of two variants of DocFlat. Empirical results show that our approach outperforms strong baselines with statistical significance on BLEU, COMET and accuracy on the contrastive test set. The analyses highlight that DocFlat is highly effective in capturing the long-range information.

Keywords

Cite

@article{arxiv.2302.08079,
  title  = {Document Flattening: Beyond Concatenating Context for Document-Level Neural Machine Translation},
  author = {Minghao Wu and George Foster and Lizhen Qu and Gholamreza Haffari},
  journal= {arXiv preprint arXiv:2302.08079},
  year   = {2023}
}

Comments

15 pages, 8 figures, accepted by EACL 2023

R2 v1 2026-06-28T08:41:27.522Z