A

Locality-Sensitive Hashing for Long Context Neural Machine Translation

International Conference on Spoken Language Translation (IWSLT), pp. 32–42

Abstract

After its introduction, the Transformer architecture (Vaswani et al., 2017) quickly became the gold standard for the task of neural machine translation.A major advantage of the Transformer compared to previous architectures is the faster training speed achieved by complete parallelization across timesteps due to the use of attention over recurrent layers.However, this also leads to one of the biggest problems of the Transformer, namely the quadratic time and memory complexity with respect to the input length.In this work we adapt the locality-sensitive hashing approach of Kitaev et al. (2020) to self-attention in the Transformer, we extended it to cross-attention and apply this memory efficient framework to sentence-and document-level machine translation.Our experiments show that the LSH attention scheme for sentence-level comes at the cost of slightly reduced translation quality.For document-level NMT we are able to include much bigger context sizes than what is possible with the baseline Transformer.However, more context does neither improve translation quality nor improve scores on targeted test suites.

Authors 4

  1. RWTH Aachen University

    Affiliation as printed

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen , Germany

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen, Germany

  2. RWTH Aachen University

    Affiliation as printed

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen , Germany

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen, Germany

  3. RWTH Aachen University

    Affiliation as printed

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen , Germany

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen, Germany

  4. RWTH Aachen University

    Affiliation as printed

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen , Germany

    Human Language Technology and Pattern Recognition Group Computer Science Department RWTH Aachen University D-52056 Aachen, Germany

Cited by 5 stored of 5

5 results

No patents citing this paper on Lens.org (checked 2026-10-06).

References 46