Abstract
Neural machine translation (NMT) systems primarily operate on words or sub-word units, often overlooking the rich morphological patterns inherent in many languages. We present a character-aware decoder designed to capture these patterns, particularly for translation into morphologically complex languages. By augmenting the softmax and embedding layers with convolutional neural networks (CNNs) and a novel gating mechanism, our model achieves significant BLEU score gains in low-resource settings. In addition, we analyze the relationship between the gains obtained and properties of the target language and find evidence that our model does indeed exploit morphological patterns.
Introduction
Most NMT systems treat words as atomic units or use subword tokenization like Byte-Pair Encoding (BPE). While BPE mitigates the out-of-vocabulary problem, it frequently fails to capture internal linguistic structures—morphology. In languages like Turkish or Czech, a single word can convey complex meanings through various affixes. Previous attempts to integrate character-level information into the decoder often resulted in severe performance degradation. This work, led by researchers at Johns Hopkins University, introduces a decoder that effectively utilizes sub-word patterns while maintaining semantic coherence.
Methods
The proposed architecture enhances a standard attention-based encoder-decoder model through several key components:
- CNN Composition: Instead of simple embedding lookups, the model employs a CNN over word characters to generate "composed" embeddings. This allows the model to recognize shared roots across different word forms (e.g., "running" and "ran").
- Gating Mechanism: To prevent the performance drops seen in previous character-level decoders, a learned gate balances the character-composed embedding with a standard word-level lookup embedding. This allows the model to prioritize morphological patterns for rare words while relying on traditional embeddings for frequent or irregular words.
- Character-Aware Softmax: This awareness is applied to both the input embeddings and the final output layer.
- Large Vocabulary Approximation: A sampling-based approach is used during training to manage the computational cost of running CNNs over the entire vocabulary.
Key Insights
A critical finding of this research is that the gating mechanism is non-negotiable. Simply replacing word embeddings with character-composed ones leads to a massive drop in performance. As shown in the ablation study below, the gating mechanism is what makes the system viable by allowing the model to "fall back" on standard word representations when morphology isn't helpful.
Furthermore, the model's gains strongly correlate with the morphological complexity of the target language. Regression analysis against linguistic features confirms that the character-aware decoder successfully exploits morphological patterns.
Results
The model was evaluated on the TED multi-target dataset, translating English into 14 typologically diverse languages. In this low-resource setting (74k–174k sentence pairs), the character-aware gated model (CG) consistently outperformed the baseline across all languages. The most significant improvements were observed in Czech (+3.05 BLEU), Ukrainian (+2.36), and Hungarian (+2.34).
Qualitative analysis shows the model is much better at handling proper names through transliteration-like behavior and correctly generating complex word endings that BPE might have split incorrectly. While BPE is the industry standard, this character-aware approach provides the biggest gains when used on full words, though it still provides consistent improvements even when layered on top of BPE-processed text.
Conclusion
The character-aware decoder effectively addresses the limitations of word-level NMT in morphologically rich, low-resource settings. By combining CNN-based composition with a robust gating mechanism, the model captures sub-word patterns without sacrificing semantic performance. Future work could involve multilingual systems where character-level information is shared across related languages.
Summary updated