Skip to main content
QUICK REVIEW

[Paper Review] Neural Machine Translation with Byte-Level Subwords

Changhan Wang, Kyunghyun Cho|arXiv (Cornell University)|Sep 7, 2019
Natural Language Processing TechniquesComputer Science29 references9 citations
TL;DR

This paper proposes byte-level BPE (BBPE), a subword tokenization method that uses UTF-8 bytes as the base unit, achieving a 1/8 smaller vocabulary size than character-level BPE while maintaining comparable translation performance. By contextualizing BBPE embeddings via convolutional or recurrent layers, the model enables efficient, out-of-vocabulary-free translation and enables transfer learning across languages with non-overlapping character sets, significantly improving zero-shot adaptation.

ABSTRACT

Almost all existing machine translation models are built on top of character-based vocabularies: characters, subwords or words. Rare characters from noisy text or character-rich languages such as Japanese and Chinese however can unnecessarily take up vocabulary slots and limit its compactness. Representing text at the level of bytes and using the 256 byte set as vocabulary is a potential solution to this issue. High computational cost has however prevented it from being widely deployed or used in practice. In this paper, we investigate byte-level subwords, specifically byte-level BPE (BBPE), which is compacter than character vocabulary and has no out-of-vocabulary tokens, but is more efficient than using pure bytes only is. We claim that contextualizing BBPE embeddings is necessary, which can be implemented by a convolutional or recurrent layer. Our experiments show that BBPE has comparable performance to BPE while its size is only 1/8 of that for BPE. In the multilingual setting, BBPE maximizes vocabulary sharing across many languages and achieves better translation quality. Moreover, we show that BBPE enables transferring models between languages with non-overlapping character sets.

Motivation & Objective

  • To address the inefficiency and vocabulary bloat caused by character-level subword tokenization in low-resource and character-rich languages like Japanese and Chinese.
  • To explore byte-level subword segmentation as a more compact and language-agnostic alternative to character-level BPE.
  • To enable model transfer between languages with non-overlapping character sets by eliminating out-of-vocabulary tokens.
  • To evaluate the performance and efficiency of BBPE in bilingual, multilingual, and zero-shot transfer learning settings.

Proposed method

  • The method uses UTF-8 encoding to represent text as a sequence of bytes (0–255), forming the base vocabulary.
  • Byte-level BPE (BBPE) is learned on byte sequences, creating variable-length byte n-grams as subword units.
  • BBPE embeddings are contextualized using either a depth-wise convolutional layer or a bidirectional GRU to improve representation learning.
  • A dynamic programming-based decoding algorithm recovers valid Unicode characters from byte sequences, ensuring output correctness.
  • The model is trained using a Transformer architecture with BBPE tokenization and contextualized embeddings.
  • Transfer learning is evaluated by fine-tuning a multilingual BBPE model on a language (Sinhala) with no overlapping characters in the source vocabulary.

Experimental results

Research questions

  • RQ1Can byte-level subword tokenization achieve comparable translation quality to character-level BPE while reducing vocabulary size?
  • RQ2Does contextualizing BBPE embeddings via convolution or RNN improve model performance?
  • RQ3Can BBPE-based models be effectively transferred to languages with non-overlapping character sets?
  • RQ4How does BBPE perform in multilingual translation settings compared to character-level BPE?
  • RQ5What is the impact of BBPE on training and inference efficiency due to shorter sequence lengths?

Key findings

  • BBPE achieves comparable BLEU scores to BPE while reducing vocabulary size to 1/8th, with BBPE 4K matching BPE 8K performance on English-German translation.
  • In the multilingual X-En setting, BBPE achieves a BLEU score of 31.61 on the full test set (165K examples), outperforming BPE in both average and low-resource language performance.
  • Transfer learning from a multilingual X-En model to Sinhala-English (Si-En) yields a 0.9–1.8 BLEU point gain, demonstrating effective zero-shot adaptation across non-overlapping character sets.
  • The BBPE model with contextualization via BiGRU or depth-wise convolution improves performance over raw BBPE embeddings, confirming the necessity of context modeling.
  • BBPE reduces sequence length compared to character-level tokenization, leading to faster training and inference due to shorter input sequences.
  • Invalid UTF-8 outputs are extremely rare in inference, and the dynamic programming decoding algorithm successfully recovers valid character sequences with unique solutions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.