Abstract
While Byte-Pair Encoding (BPE) has become the standard for handling rare words in Neural Machine Translation (NMT), this study demonstrates that Character-based CNNs (charCNNs) offer significant complementary benefits. Through extensive testing across eight morphologically diverse languages, we show that combining BPE with charCNNs yields superior translation performance for most languages, particularly those with complex inflectional systems, while identifying unique challenges in Semitic languages like Hebrew.
Introduction
In Neural Machine Translation, "data sparsity" remains a significant hurdle. When a model encounters rare words—common in low-resource settings or morphologically rich languages like Hungarian or Russian—it often fails to produce meaningful translations. Standard practice employs Byte-Pair Encoding (BPE) to segment words into frequent sub-word units. Alternatively, Character-Based CNNs (charCNNs) build word representations directly from character sequences. This paper investigates whether these methods are redundant or if they solve different aspects of the morphology puzzle.
Methods
The research compares and combines two primary techniques across four distinct configurations:
- Byte-Pair Encoding (BPE): An iterative algorithm merging frequent adjacent character sequences into sub-word tokens, keeping frequent words intact while segmenting rare ones.
- Character-Based CNN (charCNN): A convolutional layer that processes character embeddings to create vector representations for the LSTM encoder, rather than relying solely on token IDs.
The four configurations evaluated are:
- word+tok: Standard word-level NMT.
- word+char: Word-level NMT with a charCNN layer.
- bpe+tok: Standard BPE-segmented NMT.
- bpe+char: BPE-segmented NMT with a charCNN layer applied to the sub-word units.
Datasets
The study utilized multi-way parallel TED Talk transcripts, providing a high-quality "apples-to-apples" comparison across eight source languages: Arabic, French, German, Hebrew, Hungarian, Portuguese, Romanian, and Russian, all translated into English. The dataset scale (approximately 112k–187k sentences per pair) represents a typical low-resource scenario where morphological handling is most critical.
Key Insights and Analysis
The Power of Synergy
For seven of the eight languages tested, the bpe+char combination outperformed using either method in isolation. While BPE effectively manages vocabulary size and handles frequent sub-words, the charCNN enables the model to capture the internal morphological structure within those segments.
The Semitic Exception
Hebrew was the sole language where BPE segmentation actually degraded performance compared to using a charCNN over full words (word+char). The authors attribute this to the "impure abjad" nature of Hebrew and Arabic, where vowels are often omitted. BPE segmentation may strip away semantic clues that a charCNN can otherwise extract from the full character sequence.
Morphology and Efficiency
Experiments with stemming confirmed that these models successfully utilize inflectional morphology (e.g., tense or case endings) to improve translation, rather than just memorizing root meanings. Furthermore, the charCNN added only ~10% to training time on GPUs, a negligible trade-off for the performance gains achieved.
Key Results
- Performance Gains: In Hungarian, a highly complex language, the
bpe+charmodel achieved a BLEU score of 22.62, compared to 18.37 for the baseline word-level model. - Compound Words: Qualitative analysis showed
bpe+charexcels at translating complex German compounds like "laptopprojekt," which often confuse standard BPE models. - POS Recall: The addition of a charCNN significantly improved the recall for nouns, verbs, and adjectives across almost all languages.
Limitations and Future Work
This study focused primarily on the encoder (source language). Implementing charCNNs in the decoder remains a challenge due to the sequential nature of text generation. Future work should explore segmentation methods tailored for the templatic morphology of Semitic languages and investigate the sensitivity of BPE merge operations to specific language pairs and dataset sizes.
Summary updated