Neural Machine Translation with Byte-Level Subwords
Authors: Changhan Wang, Kyunghyun Cho, Jiatao Gu
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.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Neural Machine Translation without EmbeddingsUri Shaham, Omer Levy · 2020 · North American Chapter of the Association for Computational Linguistics · cited 17 times · Not summarized yet
Neural Machine Translation without Embeddings translates byte sequences directly, whereas this paper uses contextualized byte-level BPE subwords.
Abstract
Many NLP models operate over sequences of subword tokens produced by hand-crafted tokenization rules and heuristic subword induction algorithms. A simple universal alternative is to represent every computerized text as a sequence of bytes via UTF-8, obviating the need for an embedding layer since there are fewer token types (256) than dimensions. Surprisingly, replacing the ubiquitous embedding layer with one-hot representations of each byte does not hurt performance; experiments on byte-to-byte machine translation from English to 10 different languages show a consistent improvement in BLEU, rivaling character-level and even standard subword-level models. A deeper investigation reveals that …
-
Byte-based Neural Machine TranslationM. Costa-jussà, Carlos Escolano, José A. R. Fonollosa · 2017 · SWCN@EMNLP · cited 32 times · Not summarized yet
Byte-based Neural Machine Translation compares character and raw-byte systems for multilingual translation, while this paper uses byte-level BPE.
Abstract
This paper presents experiments comparing character-based and byte-based neural machine translation systems. The main motivation of the byte-based neural machine translation system is to build multi-lingual neural machine translation systems that can share the same vocabulary. We compare the performance of both systems in several language pairs and we see that the performance in test is similar for most language pairs while the training time is slightly reduced in the case of byte-based neural machine translation.
-
Training Multilingual Pre-trained Language Model with Byte-level SubwordsJunqiu Wei, Qun Liu, Yinpeng Guo et al. · 2021 · arXiv.org · preprint, not peer reviewed · cited 24 times · Not summarized yet
Training Multilingual Pre-trained Language Model with Byte-level Subwords applies BBPE to multilingual pre-trained language models rather than machine translation.
Abstract
The pre-trained language models have achieved great successes in various natural language understanding (NLU) tasks due to its capacity to capture the deep contextualized information in text by pre-training on large-scale corpora. One of the fundamental components in pre-trained language models is the vocabulary, especially for training multilingual models on many different languages. In the technical report, we present our practices on training multilingual pre-trained language models with BBPE: Byte-Level BPE (i.e., Byte Pair Encoding). In the experiment, we adopted the architecture of NEZHA as the underlying pre-trained language model and the results show that NEZHA trained with byte-leve…
-
Local Byte Fusion for Neural Machine TranslationMakesh Narsimhan Sreedhar, Xiangpeng Wan, Yu Cheng et al. · 2022 · Annual Meeting of the Association for Computational Linguistics · cited 8 times · Not summarized yet
Local Byte Fusion for Neural Machine Translation addresses byte-token sequence difficulties in translation through local fusion, while this paper contextualizes BBPE embeddings.
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 may not adapt well to other parallel corpora. It has also been observed that in multilingual corpora, subword tokenization schemes oversegment low-resource languages, leading to a drop in translation performance. An alternative to subword tokenizers is byte-based tokenization, i.e., tokenization into byte sequences using the UTF-8 encoding scheme. Byte tokens often represent inputs at a sub-character granularity, i.e., one character can be represented by a span of byte tokens. This results in much longer byte sequences that are hard to inte…
-
Neural Machine Translation of Rare Words with Subword UnitsRico Sennrich, Barry Haddow, Alexandra Birch · 2015 · Computation and Language · cited 9,243 times · AI summary available
Neural Machine Translation of Rare Words with Subword Units introduces subword units for open-vocabulary translation, a tokenization approach this paper contrasts with BBPE.
Abstract
Neural machine translation (NMT) models typically operate with a fixed vocabulary, but translation is an open-vocabulary problem. Previous work addresses the translation of out-of-vocabulary words by backing off to a dictionary. In this paper, we introduce a simpler and more effective approach, making the NMT model capable of open-vocabulary translation by encoding rare and unknown words as sequences of subword units. This is based on the intuition that various word classes are translatable via smaller units than words, for instance names (via character copying or transliteration), compounds (via compositional translation), and cognates and loanwords (via phonological and morphological trans…
-
MoCE: Adaptive Mixture of Contextualization Experts for Byte-based Neural Machine TranslationLanglin Huang, Mengyu Bu, Yang Feng · 2024 · North American Chapter of the Association for Computational Linguistics · cited 3 times · Not summarized yet
MoCE adapts contextualization experts to byte-based machine translation, while this paper contextualizes BBPE embeddings with convolutional or recurrent layers.
Abstract
Byte-based machine translation systems have shown significant potential in massively multilingual settings. Unicode encoding, which maps each character to specific byte(s), eliminates the emergence of unknown words, even in new languages. This avoids out-of-vocabulary risk in multilingual translation and enables broad language scalability. However, byte-level tokenization results in sequences that are hard to interpret due to limited semantic information per byte. Local contextualization has proven effective in assigning initial semantics to tokens, improving sentence comprehension. Nevertheless, variations in encoding rules across languages necessitate an adaptive approach for effective con…
-
Integrating Multi-scale Contextualized Information for Byte-based Neural Machine TranslationLanglin Huang, Yang Feng · 2024 · Annual Meeting of the Association for Computational Linguistics · cited 2 times · Not summarized yet
Integrating Multi-scale Contextualized Information for Byte-based Neural Machine Translation improves byte representations with multi-scale context, while this paper investigates contextualized BBPE embeddings.
Abstract
Subword tokenization is a common method for vocabulary building in Neural Machine Translation (NMT) models. However, increasingly complex tasks have revealed its disadvantages. First, a vocabulary cannot be modified once it is learned, making it hard to adapt to new words. Second, in multilingual translation, the imbalance in data volumes across different languages spreads to the vocabulary, exacerbating translations involving low-resource languages. While byte-based tokenization addresses these issues, byte-based models struggle with the low information density inherent in UTF-8 byte sequences. Previous works enhance token semantics through local contextualization but fail to select an appr…
-
Character-Level Transformer-Based Neural Machine TranslationNikolay Banar, Walter Daelemans, Mike Kestemont · 2020 · International Conference on Natural Language Processing and Information Retrieval · cited 23 times · Not summarized yet
Character-Level Transformer-Based Neural Machine Translation evaluates character-level translation against subword models, whereas this paper studies byte-level BPE.
Abstract
Neural machine translation (NMT) is nowadays commonly applied at the subword level, using byte-pair encoding. A promising alternative approach focuses on character-level translation, which simplifies processing pipelines in NMT considerably. This approach, however, must consider relatively longer sequences, rendering the training process prohibitively expensive. In this paper, we discuss a Transformer-based approach, that we compare, both in speed and in quality to the Transformer at subword and character levels, as well as previously developed character-level models. We evaluate our models on 4 language pairs from WMT'15: DE-EN, CS-EN, FI-EN and RU-EN. The proposed architecture can be train…
Prior work it builds on
-
Bytes Are All You Need: End-to-end Multilingual Speech Recognition and Synthesis with BytesBo Li, Yu Zhang, T. Sainath et al. · 2018 · IEEE International Conference on Acoustics, Speech, and Signal Processing · cited 141 times · Not summarized yet
Bytes Are All You Need uses UTF-8 bytes for multilingual speech recognition and synthesis, while this paper uses byte-level subwords for translation.
Abstract
We present two end-to-end models: Audio-to-Byte (A2B) and Byte-to-Audio (B2A), for multilingual speech recognition and synthesis. Prior work has predominantly used characters, sub-words or words as the unit of choice to model text. These units are difficult to scale to languages with large vocabularies, particularly in the case of multilingual processing. In this work, we model text via a sequence of Unicode bytes, specifically, the UTF-8 variable length byte sequence for each character. Bytes allow us to avoid large softmaxes in languages with large vocabularies, and share representations in multilingual models. We show that bytes are superior to grapheme characters over a wide variety of l…
-
Multilingual Language Processing From BytesDaniel Gillick, Clifford Brunk, O. Vinyals et al. · 2015 · North American Chapter of the Association for Computational Linguistics · cited 233 times · Not summarized yet
Multilingual Language Processing From Bytes uses byte sequences for multilingual tagging and entity recognition, rather than byte-level subwords for translation.
Abstract
We describe an LSTM-based model which we call Byte-to-Span (BTS) that reads text as bytes and outputs span annotations of the form [start, length, label] where start positions, lengths, and labels are separate entries in our vocabulary. Because we operate directly on unicode bytes rather than language-specific words or characters, we can analyze text in many languages with a single model. Due to the small vocabulary size, these multilingual models are very compact, but produce results similar to or better than the state-of- the-art in Part-of-Speech tagging and Named Entity Recognition that use only the provided training datasets (no external data sources). Our models are learning "from scra…
-
Revisiting Character-Based Neural Machine Translation with Capacity and CompressionColin Cherry, George F. Foster, Ankur Bapna et al. · 2018 · Conference on Empirical Methods in Natural Language Processing · cited 103 times · Not summarized yet
Revisiting Character-Based Neural Machine Translation with Capacity and Compression studies character-level translation, instead of the paper’s byte-level BPE representation.
Abstract
Translating characters instead of words or word-fragments has the potential to simplify the processing pipeline for neural machine translation (NMT), and improve results by eliminating hyper-parameters and manual feature engineering. However, it results in longer sequences in which each symbol contains less information, creating both modeling and computational challenges. In this paper, we show that the modeling problem can be solved by standard sequence-to-sequence architectures of sufficient depth, and that deep models operating at the character level outperform identical models operating over word fragments. This result implies that alternative architectures for handling character input a…
-
The Best of Both Worlds: Combining Recent Advances in Neural Machine TranslationMia Chen, O. Firat, Ankur Bapna et al. · 2018 · Annual Meeting of the Association for Computational Linguistics · cited 484 times · Not summarized yet
The Best of Both Worlds combines sequence-to-sequence architectures and training techniques for machine translation, without focusing on byte-level tokenization.
Abstract
The past year has witnessed rapid advances in sequence-to-sequence (seq2seq) modeling for Machine Translation (MT). The classic RNN-based approaches to MT were first out-performed by the convolutional seq2seq model, which was then out-performed by the more recent Transformer model. Each of these new approaches consists of a fundamental architecture accompanied by a set of modeling and training techniques that are in principle applicable to other seq2seq architectures. In this paper, we tease apart the new architectures and their accompanying techniques in two ways. First, we identify several key modeling and training techniques, and apply them to the RNN architecture, yielding a new RNMT+ mo…
-
Byte-Level Machine Reading Across Morphologically Varied LanguagesTom Kenter, Llion Jones, Daniel Hewlett · 2018 · AAAI Conference on Artificial Intelligence · cited 43 times · Not summarized yet
Byte-Level Machine Reading Across Morphologically Varied Languages studies byte-level inputs for multilingual question answering rather than translation.
Abstract
The machine reading task, where a computer reads a document and answers questions about it, is important in artificial intelligence research. Recently, many models have been proposed to address it. Word-level models, which have words as units of input and output, have proven to yield state-of-the-art results when evaluated on English datasets. However, in morphologically richer languages, many more unique words exist than in English due to highly productive prefix and suffix mechanisms. This may set back word-level models, since vocabulary sizes too big to allow for efficient computing may have to be employed. Multiple alternative input granularities have been proposed to avoid large input v…
Papers that cite it
-
Overcoming Vocabulary Constraints with Pixel-level FallbackJonas F. Lotz, Hendra Setiawan, Stephan Peitz et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 8 times · Not summarized yet
Overcoming Vocabulary Constraints with Pixel-level Fallback uses pixel representations for vocabulary-free translation and reports outperforming byte-level approaches.
Abstract
Subword tokenization requires balancing computational efficiency and vocabulary coverage, which often leads to suboptimal performance on languages and scripts not prioritized during training. We propose to augment pretrained language models with a vocabulary-free encoder that generates input embeddings from text rendered as pixels. Through experiments on English-centric language models, we demonstrate that our approach substantially improves machine translation performance and facilitates effective cross-lingual transfer, outperforming tokenizer-based methods. Furthermore, we find that pixel-based representations outperform byte-level approaches and standard vocabulary expansion. Our approac…
-
Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLPSabrina J. Mielke, Zaid Alyafeai, Elizabeth Salesky et al. · 2021 · arXiv.org · preprint, not peer reviewed · cited 252 times · Not summarized yet
Between words and characters surveys open-vocabulary modeling and tokenization from bytes through multi-word expressions.
Abstract
What are the units of text that we want to model? From bytes to multi-word expressions, text can be analyzed and generated at many granularities. Until recently, most natural language processing (NLP) models operated over words, treating those as discrete and atomic tokens, but starting with byte-pair encoding (BPE), subword-based approaches have become dominant in many areas, enabling small vocabularies while still allowing for fast inference. Is the end of the road character-level model or byte-level processing? In this survey, we connect several lines of work from the pre-neural and neural era, by showing how hybrid approaches of words and characters as well as subword-based approaches ba…
-
ByT5: Towards a Token-Free Future with Pre-trained Byte-to-Byte ModelsLin-Ting Xue, Aditya Barua, Noah Constant et al. · 2021 · Transactions of the Association for Computational Linguistics · cited 822 times · Not summarized yet
ByT5 applies byte-to-byte modeling to pre-trained language models, while this paper applies byte-level BPE to machine translation.
Abstract
Most widely used pre-trained language models operate on sequences of tokens corresponding to word or subword units. By comparison, token-free models that operate directly on raw text (bytes or characters) have many benefits: They can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Because byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with …
-
A Systematic Analysis of Subwords and Cross-Lingual Transfer in Multilingual TranslationFrancois Meyer, Jan Buys · 2024 · NAACL-HLT · cited 5 times · Not summarized yet
A Systematic Analysis of Subwords and Cross-Lingual Transfer in Multilingual Translation studies how subword segmentation affects multilingual transfer, a motivation for this paper’s BBPE.
Abstract
Multilingual modelling can improve machine translation for low-resource languages, partly through shared subword representations. This paper studies the role of subword segmentation in cross-lingual transfer. We systematically compare the efficacy of several subword methods in promoting synergy and preventing interference across different linguistic typologies. Our findings show that subword regularisation boosts synergy in multilingual modelling, whereas BPE more effectively facilitates transfer during cross-lingual fine-tuning. Notably, our results suggest that differences in orthographic word boundary conventions (the morphological granularity of written words) may impede cross-lingual tr…
-
Beyond Language Models: Byte Models are Digital World SimulatorsShangda Wu, Xu Tan, Zi-Li Wang et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 32 times · Not summarized yet
Beyond Language Models: Byte Models are Digital World Simulators predicts bytes across text, audio, images, and other modalities rather than studying machine translation tokenization.
Abstract
Traditional deep learning often overlooks bytes, the basic units of the digital world, where all forms of information and operations are encoded and manipulated in binary format. Inspired by the success of next token prediction in natural language processing, we introduce bGPT, a model with next byte prediction to simulate the digital world. bGPT matches specialized models in performance across various modalities, including text, audio, and images, and offers new possibilities for predicting, simulating, and diagnosing algorithm or hardware behaviour. It has almost flawlessly replicated the process of converting symbolic music data, achieving a low error rate of 0.0011 bits per byte in conve…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 4 November 2026.