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

Minghao Wu, George Foster, Lizhen Qu, Gholamreza Haffari
2/16/2023
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2023document,
  title  = {Document Flattening: Beyond Concatenating Context for Document-Level Neural Machine Translation},
  author = {Minghao Wu and George Foster and Lizhen Qu and Gholamreza Haffari},
  year   = {2023},
  eprint = {2302.08079},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.08079v1}
}

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/2302.08079.svg)](https://codeofpaper.com/paper/2302.08079)

Discussion