Local Byte Fusion for Neural Machine Translation

Makesh Narsimhan Sreedhar, Xiangpeng Wan, Yu Cheng, Junjie Hu
5/23/2022
cs.CLcs.AI

Official code: makeshn/LOBEF_Byte_NMT (3 stars, Python, last commit 2023-07-03).

Abstract

Subword tokenization schemes are the dominant technique used in current NLP models. However, such schemes can be rigid and tokenizers built on one corpus do not adapt well to other parallel corpora.

Show full abstract

It has also been observed that in multilingual corpora, subword tokenization schemes over-segment low-resource languages leading to a drop in translation performance. A simple alternative to subword tokenizers is byte-based methods i.e. tokenization into byte sequences using encoding schemes such as UTF-8. Byte tokens often represent inputs at a sub-character granularity i.e. one character can be represented by a sequence of multiple byte tokens. This results in byte sequences that are significantly longer than character sequences. Enforcing aggregation of local information in the lower layers can guide the model to build higher-level semantic information. We propose a Local Byte Fusion (LOBEF) method for byte-based machine translation -- utilizing byte $n$-gram and word boundaries -- to aggregate local semantic information. Extensive experiments on multilingual translation, zero-shot cross-lingual transfer, and domain adaptation reveal a consistent improvement over traditional byte-based models and even over subword techniques. Further analysis also indicates that our byte-based models are parameter-efficient and can be trained faster than subword models.

View on arXivView PDF

Code Implementations(1)

30Python, CudaMay 24, 20233 years ago

Similar Papers

Cite this paper

@article{sreedhar2022local,
  title  = {Local Byte Fusion for Neural Machine Translation},
  author = {Makesh Narsimhan Sreedhar and Xiangpeng Wan and Yu Cheng and Junjie Hu},
  year   = {2022},
  eprint = {2205.11490},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11490}
}

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

Discussion