Abstract
Traditional neural machine translation (NMT) models rely on fixed word vocabularies, leading to issues with out-of-vocabulary (OOV) terms and computational bottlenecks. This paper presents a hierarchical NMT model that operates entirely on characters. By composing word representations from characters and generating translations character-by-character, the system achieves performance comparable to word-based models while effectively handling open vocabularies and morphological variations.
Introduction
Standard NMT architectures treat words as atomic units, which introduces two primary limitations. First, the Out-of-Vocabulary (OOV) problem occurs when a model encounters a word not seen during training, typically resulting in a generic <UNK> token. Second, the "Softmax Bottleneck" requires calculating probabilities over tens of thousands of words, which is computationally expensive. While character-level models offer a potential solution, they historically underperformed compared to word-level systems. This research demonstrates that a hierarchical design respecting linguistic structure—characters forming words, and words forming sentences—can bridge this performance gap.
Architecture and Methodology
The proposed model adapts the standard attention-based NMT framework by replacing word-level embeddings and prediction layers with character-based modules.
The architecture consists of two primary novel components:
- Character-to-Word (C2W): Instead of a lookup table, a Bidirectional LSTM (Bi-LSTM) processes the characters of a word to produce a fixed-length vector. This allows the model to recognize morphological roots (e.g., "run" vs. "running").
- Vector-to-Characters (V2C): The output layer uses an LSTM to generate words character-by-character until an "End of Word" (EOW) token is produced. This enables the generation of novel word forms based on context.
To stabilize training, the authors employed a layer-wise strategy: first training a word-based model, then training the C2W module to approximate existing word embeddings, and finally fine-tuning the entire end-to-end system.
Key Insights: Morphological Awareness
A significant advantage of the C2W approach is its inherent ability to capture morphological relationships. In traditional word-based models, "answer" and "answered" are treated as distinct, unrelated indices. In the C2W model, the Bi-LSTM identifies shared character sequences, placing morphologically related words closer in the vector space.
As shown in the table above, the C2W model groups words by root and grammatical function (e.g., "responder" and "respondeu"), whereas the word lookup table often relies on semantic proximity or co-occurrence, sometimes losing the morphological link.
Experimental Results
The model was evaluated on the Europarl (English-Portuguese) and BTEC (English-French) datasets.
- Europarl (EN-PT): The character-based model achieved a BLEU score of 19.49, surpassing the word-based baseline of 19.29.
- BTEC (EN-FR): In a data-constrained environment, the model reached 15.45 BLEU, compared to 15.38 for the baseline.
Qualitative analysis confirmed that the model handles capitalization ("true casing") and rare morphological variants more effectively than preprocessing-heavy word-based systems. For instance, the model could generate plausible Portuguese translations for rare English terms like "subsidisation" by synthesizing new word forms.
Conclusion and Future Directions
This work proves that character-level NMT is not only viable but competitive. By moving away from atomic word units, the model solves the OOV problem and reduces the memory footprint of the output layer. However, challenges remain, including the complexity of the multi-stage training process and the current reliance on whitespace for word segmentation. Future research may explore applying these techniques to non-alphabetic languages and improving spelling accuracy through pre-training on larger corpora.
Summary updated