Introduction
Neural Machine Translation (NMT) typically relies on a fixed vocabulary of frequent words. However, for morphologically rich languages (MRLs) like Russian or Estonian, this approach is problematic. In Russian, a single word can have dozens of forms based on case, gender, and number. Rare or unseen forms are often replaced with a generic UNK token, stripping the sentence of its grammatical and semantic nuances.
This study investigates how different neural architectures—specifically Long Short-Term Memory (LSTM) networks and Convolutional Neural Networks (CNNs)—capture these complex patterns. The authors evaluate whether sequential processing (LSTMs) or pattern-matching (CNNs) is more effective for building word representations from characters in the context of NMT.
Methodology
The researchers integrated character-level encoders into two distinct attention mechanisms: standard Soft Attention (AM) and a discrete "Neural Operation Sequence" model known as Hard Attention (OSM).
Two primary encoder architectures were compared:
- Bidirectional LSTM (biLSTM): This model processes character sequences in both directions, making it well-suited for identifying sequential dependencies like prefixes and suffixes.
- Convolutional Neural Network (CNN): This model uses filters to detect n-gram character patterns, followed by a "highway network" to regulate information flow.
To optimize performance, a hybrid approach was used: common words utilized standard word embeddings, while rare words were represented by character-level logic.
Experimental Setup
The models were tested on two language pairs with high morphological complexity: Russian-English and Estonian-English. Evaluation involved both translation quality (BLEU scores) and intrinsic linguistic analysis using tools like the mystem morphological analyzer for Russian to assess how well models captured grammatical features (case, person, etc.).
Results and Discussion
The study revealed distinct strengths for each architecture:
- LSTMs as "Grammarians": biLSTMs consistently outperformed CNNs in capturing grammatical features across almost all word frequency bands. Their linear processing allows them to better identify morphological boundaries.
- CNNs as "Semanticists": CNNs proved more effective at capturing "whole-word" similarity. In hard-attention (OSM) setups, CNNs were significantly better at identifying synonyms for Out-of-Vocabulary (OOV) words, achieving a multi-label accuracy of 0.43 compared to 0.16 for LSTMs.
- Hard Attention Benefits: The OSM model forced character encoders to learn more distinct and richer representations than standard soft attention.
Overall, all neural character-level models outperformed traditional phrase-based baselines. In the Russian-English task, the biLSTM model provided a 1-point BLEU improvement over the baseline.
Conclusion
While both LSTMs and CNNs improve the translation of rare words in MRLs, they serve different linguistic functions. LSTMs are superior for structural grammar, while CNNs excel at broad semantics. Future work should address the challenges of generating morphologically rich target languages and explore decoding strategies beyond the re-ranking approach used in this study.
Summary updated