Introduction
Neural Machine Translation (NMT) has traditionally relied on subword-level tokens, such as Byte Pair Encoding (BPE), to manage vocabulary size and mitigate the "out-of-vocabulary" (OOV) problem. However, subword models still require significant memory for embedding matrices and can struggle with rare words. Character-level models offer a compelling alternative by utilizing a compact, universal vocabulary. While Recurrent Neural Networks (RNNs) were previously the standard for character-level tasks, the Transformer's self-attention mechanism has revolutionized NMT. This paper explores the efficacy of Transformers for character-level translation and introduces the convtransformer, a variant designed to capture local character interactions more effectively.
Methodology
The authors propose the convtransformer, which integrates a convolutional sub-block into the standard Transformer encoder. This modification aims to provide a "local feature extractor" that aggregates information from neighboring characters before the global self-attention mechanism is applied.
The core of the convtransformer is the Parallel Conv 1D Layer. Before reaching the self-attention layer, character representations pass through three parallel 1D convolutional layers with kernel widths of 3, 5, and 7. These layers simulate the capture of subword or word-level structures. The outputs are concatenated and fused via a final 1D convolution of width 3. A residual connection ensures that the original fine-grained character information remains accessible to the model. For multilingual scenarios involving non-Latin scripts, such as Chinese, the authors employ Wubi encoding to map characters into a shared Latin-based vocabulary.
Experimental Setup
The models were evaluated on two primary datasets:
- WMT15 DE→EN: A benchmark for German-to-English translation to compare against established character-level and subword-level baselines.
- United Nations Parallel Corpus (UN): Used for multilingual experiments involving French (FR), Spanish (ES), and Chinese (ZH) translated into English.
Results and Discussion
Empirical results indicate that self-attention is remarkably adept at learning "spelling" and word formation from raw characters. Even the standard Transformer outperformed previous recurrent character-level models. However, the convtransformer provided significant advantages in both efficiency and performance.
Key findings include:
- Faster Convergence: The convtransformer reaches the performance levels of a standard Transformer in approximately half the training epochs, as shown in Figure 2. The local inductive bias provided by the convolutions gives the model a "head start" in organizing character sequences.
- Improved Performance: On the WMT15 DE→EN task, a 12-layer convtransformer achieved 30.16 BLEU, surpassing both the standard Transformer (29.81) and a strong recurrent baseline (25.77).
- Parameter Efficiency: Character-level Transformers can match subword-level performance while utilizing up to 60% fewer parameters, primarily due to the elimination of large subword embedding matrices.
- Multilingual Robustness: The convtransformer demonstrates greater resilience to "language noise" in multilingual settings. It maintains sharper, more interpretable character-to-character alignments even when training on linguistically distant pairs.
Conclusion
This research demonstrates that Transformers are highly suitable for character-level NMT. The proposed convtransformer architecture further enhances these models by incorporating local convolutional features, leading to faster training and superior translation quality. While character-level models currently face higher training latency due to longer sequence lengths, their parameter efficiency and robustness make them a promising direction for future NMT research, particularly for morphologically rich languages and low-resource settings.
Summary updated