Encoding Sentence Position in Context-Aware Neural Machine Translation with Concatenation

Lorenzo Lupo, Marco Dinarelli, Laurent Besacier
2/13/2023
11 citations
cs.CL
transformer-attention

Official code: lorelupo/focused-concat (6 stars, Python, MIT, last commit 2023-05-03).

Abstract

Context-aware translation can be achieved by processing a concatenation of consecutive sentences with the standard Transformer architecture. This paper investigates the intuitive idea of providing the model with explicit information about the position of the sentences contained in the concatenation window.

Show full abstract

We compare various methods to encode sentence positions into token representations, including novel methods. Our results show that the Transformer benefits from certain sentence position encoding methods on English to Russian translation if trained with a context-discounted loss (Lupo et al., 2022). However, the same benefits are not observed in English to German. Further empirical efforts are necessary to define the conditions under which the proposed approach is beneficial.

View on arXivView PDF

Code Implementations(1)

MIT
61Python, ShellOct 17, 20223 years agoMIT

Similar Papers

Cite this paper

@article{lupo2023encoding,
  title  = {Encoding Sentence Position in Context-Aware Neural Machine Translation with Concatenation},
  author = {Lorenzo Lupo and Marco Dinarelli and Laurent Besacier},
  year   = {2023},
  eprint = {2302.06459},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06459v2}
}

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

Discussion