Fast Training of NMT Model with Data Sorting

Daniela N. Rim, Kimera Richard, Heeyoul Choi
8/16/2023
cs.CL
transformer-attention

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

The Transformer model has revolutionized Natural Language Processing tasks such as Neural Machine Translation, and many efforts have been made to study the Transformer architecture, which increased its efficiency and accuracy. One potential area for improvement is to address the computation of empty tokens that the Transformer computes only to discard them later, leading to an unnecessary computational burden.

Show full abstract

To tackle this, we propose an algorithm that sorts translation sentence pairs based on their length before batching, minimizing the waste of computing power. Since the amount of sorting could violate the independent and identically distributed (i.i.d) data assumption, we sort the data partially. In experiments, we apply the proposed method to English-Korean and English-Luganda language pairs for machine translation and show that there are gains in computational time while maintaining the performance. Our method is independent of architectures, so that it can be easily integrated into any training process with flexible data lengths.

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. 1 weaker match is hidden by default — 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{rim2023fast,
  title  = {Fast Training of NMT Model with Data Sorting},
  author = {Daniela N. Rim and Kimera Richard and Heeyoul Choi},
  year   = {2023},
  eprint = {2308.08153},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.08153v1}
}

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

Discussion