An Efficient Character-Level Neural Machine Translation

Shenjian Zhao, Zhihua ZhangarXiv 2016

Introduction

Traditional Neural Machine Translation (NMT) systems predominantly operate at the word level. While successful, this approach faces significant challenges: the Out-of-Vocabulary (OOV) problem where rare or new words are ignored, the inability to exploit morphological similarities (e.g., "run" vs "running"), and a computational bottleneck caused by massive softmax layers over large vocabularies (often 30k–50k words).

Character-level models offer an elegant alternative by using a minimal vocabulary of letters and symbols. However, they typically suffer from high computational costs and difficulty in capturing long-range dependencies due to the increased length of character sequences. This paper proposes an efficient architecture that bridges this gap by compressing character sequences into manageable latent representations.

Architecture: Decimate and Interpolate

The proposed Deep Character-level Neural Machine Translation (DCNMT) model introduces two novel components to manage sequence length while retaining character-level granularity: the Decimator and the Interpolator.

Overview of the DCNMT architecture, illustrating the flow from character-level source input through the decimator, encoder, decoder, and finally the interpolator to produce character-level target output.

The Decimator (DGRU)

The Decimator is a modified Gated Recurrent Unit (GRU) that processes the source sentence character-by-character. Upon encountering a delimiter (such as a space), it "samples" its current hidden state to create a summary vector of the preceding word and resets. This process effectively compresses long character strings into a sequence of "word-like" latent representations, which are then processed by a standard Bidirectional RNN encoder.

The Interpolator (IGRU)

At the output stage, the Interpolator performs the inverse operation. It receives a high-level vector from the decoder and expands it into a sequence of characters until a delimiter is generated. To maintain efficiency during training, the authors implemented a "sampling matrix" technique that allows for parallel processing of variable-length words within a batch, keeping training speeds competitive with word-level models.

Experimental Setup

The model was evaluated on the WMT’14 English-to-French translation task using a training corpus of approximately 348 million words. Unlike word-level baselines requiring tens of thousands of tokens, the DCNMT model utilized a vocabulary of only the 120 most frequent characters for each language. Evaluation was conducted on the newstest2014 set.

Results and Discussion

The DCNMT architecture demonstrated significant improvements in both translation quality and parameter efficiency.

Training cost curves and BLEU score progression during the first epoch, showing DCNMT's competitive convergence and superior performance compared to the RNNsearch baseline.

Performance and Efficiency

The deep variant, DCNMT-2, achieved a BLEU score of 31.76, outperforming the standard word-level baseline (RNNsearch, 28.47) and previous character-based models. Notably, the smaller DCNMT-1 model surpassed the baseline while using only 33.6M parameters, compared to the baseline's 85.6M. This reduction is primarily due to the elimination of large word-embedding lookup tables.

Robustness and Semantic Learning

A key advantage of the character-level approach is its natural resilience to noise. The model can often infer the correct meaning of misspelled words because it processes the underlying character sequence rather than relying on a fixed dictionary. t-SNE visualizations confirmed that the model learns both structural similarities (grouping typos with correct spellings) and deep semantic relationships (grouping related concepts like months).

Conclusion

DCNMT provides a scalable and efficient framework for character-level translation. By intelligently compressing and expanding sequences, it bypasses the vocabulary bottleneck of traditional NMT while maintaining competitive training speeds and superior accuracy. Future work may explore applying this "decimate-and-interpolate" logic to other domains with long raw signals, such as speech recognition or text classification.

Summary updated

BibTeX
@misc{zhao2016efficient,
  author = {Shenjian Zhao and Zhihua Zhang},
  title = {{An Efficient Character-Level Neural Machine Translation}},
  year = {2016},
  eprint = {1608.04738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.04738},
}
Figure