A Binarized Neural Network Joint Model for Machine Translation

Jingyi Zhang, Masao Utiyama, Eiichiro Sumita, Graham Neubig, Satoshi Nakamura

Introduction

Neural Network Joint Models (NNJMs) have become a cornerstone of modern Machine Translation (MT) by effectively leveraging both source-side context and target-side history to predict subsequent words. Despite their success, traditional NNJMs face a significant "softmax bottleneck." To compute the probability of a single target word, the model must normalize its output across the entire target vocabulary—often exceeding 50,000 words. This normalization step is computationally expensive, making training slow and scaling difficult.

While methods like Noise-Contrastive Estimation (NCE) mitigate this by sampling "noise" words, they still treat the target word as a passive output of the network. This paper introduces the Binarized Neural Network Joint Model (BNNJM), which reframes word prediction as a binary classification task, significantly improving both training efficiency and translation quality.

The BNNJM Architecture

The core innovation of the BNNJM is a fundamental shift in how the target word is processed. Instead of predicting a probability distribution over $N$ words, the model asks a binary question: "Is this specific candidate word correct given the current context?"

Comparison of standard NNJM (a) and the proposed BNNJM (b) architectures.

Key Architectural Shifts

  1. Target Word as Input: In a traditional NNJM, the target word only appears at the output layer. In the BNNJM, the candidate target word is moved to the input layer alongside the source context and target history. This allows the hidden layers to learn complex, non-linear interactions between the context and the specific word being evaluated.
  2. Binary Classification: The output layer is simplified to just two nodes: "correct" or "wrong." This eliminates the need for expensive softmax normalization over a large vocabulary, allowing for efficient gradient calculation via standard Maximum Likelihood Estimation (MLE).
  3. Translation Probability Distribution (TPD) Noise: To train a binary classifier, the model requires negative examples. While simple "Unigram Noise" (randomly sampling words based on frequency) is common, the authors propose TPD noise. This method selects negative examples that are known translations of the current source word but are incorrect in the specific context. This "hard" noise forces the model to learn subtle semantic and syntactic distinctions.

Experimental Setup

The researchers evaluated the BNNJM across three diverse translation tasks using the Moses HPB decoder as a baseline:

  • Chinese-to-English (CE): 1 million sentence pairs from the NTCIR-9 patent translation task.
  • Japanese-to-English (JE): 3 million sentence pairs from NTCIR-9.
  • French-to-English (FE): 2 million sentence pairs from the WMT 2014 translation task.

The BNNJM was compared against a standard NNJM trained with NCE.

Key Results and Discussion

The BNNJM, particularly when paired with TPD noise, demonstrated significant improvements in translation quality across multiple language pairs.

BLEU score comparison across different models and noise distributions for CE, JE, and FE tasks.

As shown in the results table, the BNNJM with TPD noise achieved a BLEU score of 35.05 on the Chinese-to-English task, a substantial gain over the baseline of 32.95. Similar significant improvements were observed in the French-to-English task, where the model showed particular robustness in translating infrequent words.

Insights

  • Discriminative Power: By moving the target word to the input, the neural network gains more power to discriminate. The hidden layers can process specific features of the candidate word in direct relation to the context, rather than relying on a generic context representation.
  • The Necessity of Hard Noise: Experiments showed that for the BNNJM, simple unigram noise was insufficient, sometimes performing worse than the baseline. The model requires the "hard" negative examples provided by TPD to truly master the nuances of translation.
  • Training Efficiency: Using TPD noise allowed the standard NNJM to converge much faster (4 epochs vs. 20 epochs for unigram noise). While the BNNJM itself required more epochs due to dynamic resampling of negative examples, the binary output layer makes each gradient calculation significantly more efficient.

Conclusion

The Binarized Neural Network Joint Model offers a compelling alternative to traditional multiclass NNJMs. By reframing translation as a binary classification task and integrating the target word directly into the input, the model achieves higher translation quality and better handles rare words. While the model showed some sensitivity to alignment errors in the Japanese-to-English task, its overall performance and training efficiency make it a promising direction for future research in neural machine translation.

Summary updated

BibTeX
@inproceedings{zhang2015binarized,
  author = {Jingyi Zhang and Masao Utiyama and Eiichiro Sumita and Graham Neubig and Satoshi Nakamura},
  title = {{A Binarized Neural Network Joint Model for Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1250},
}
Figure