Encoding Source Language with Convolutional Neural Network for Machine Translation

Fandong Meng, Zhengdong Lu, Mingxuan Wang, Hang Li, Wenbin Jiang, Qun Liu

Introduction

The transition from traditional Statistical Machine Translation (SMT) to neural-based approaches marked a significant shift in how source language context is handled. Historically, models like the Neural Network Joint Model (NNJM) relied on fixed-length windows of source words to provide context for target word prediction. However, these rigid heuristics often fail to capture relevant information that falls outside the window or include noise within it. This paper, presented at ACL 2015, introduces a more flexible framework using Convolutional Neural Networks (CNNs) to dynamically summarize source sentences.

Proposed Architectures

The authors propose two distinct CNN-based encoders designed to provide a "guided" representation of the source sentence:

  1. tagCNN: This model leverages word alignment data. It appends a "tag bit" to source word embeddings, explicitly signaling to the CNN which words are aligned with the current target word being generated.
  2. inCNN: This architecture adopts a more dynamic, attention-like mechanism. Instead of relying on pre-calculated alignments, it injects information from the previously generated target words directly into the CNN's convolution windows, allowing the model to "retrieve" relevant source segments based on the current decoding state.
Architectural overview of tagCNN (a) and inCNN (b).

Technical Methodology

The core of the encoder is a 6-layer CNN. Unlike standard CNNs that use max-pooling, which the authors argue can destroy the compositional meaning of phrases, this model employs a custom gating mechanism:

  • Local Gating Layer: Computes a weighted sum of feature maps to preserve phrase-level semantics.
  • Global Gating Layer: Fuses various segments into a unified sentence representation.

For inCNN, the convolution operation is specifically modified to include a history vector $h$ derived from the target side, allowing the source representation to be conditioned on the translation progress.

The convolution mechanism for inCNN, incorporating target history $h$.

Experimental Evaluation

The models were tested on NIST Chinese-English translation tasks using a dataset of approximately 221,000 sentence pairs. The baseline was a dependency-to-string (Dep2Str) SMT system augmented with the standard BBN-JM implementation of NNJM.

Key Results

  • Performance Gains: The combined tagCNN + inCNN model achieved a +2.0 BLEU point improvement over the baseline SMT system and outperformed the state-of-the-art NNJM by +1.08 BLEU points.
  • Guidance Efficacy: While a generic CNN provides some benefit, the "guiding" signals in tagCNN and inCNN were crucial for peak performance.
  • Dynamic vs. Static: inCNN generally outperformed tagCNN, suggesting that learning to focus based on the decoding state is more robust than relying on potentially erroneous static word alignments (e.g., from GIZA++).

Conclusion

By replacing fixed-window heuristics with dynamic, gated convolutional encoders, this work demonstrated a more effective way to capture source language context for machine translation. The success of inCNN in particular highlighted the value of target-side guidance, foreshadowing the widespread adoption of attention mechanisms in subsequent neural machine translation architectures.

Summary updated

BibTeX
@inproceedings{meng2015encoding,
  author = {Fandong Meng and Zhengdong Lu and Mingxuan Wang and Hang Li and Wenbin Jiang and Qun Liu},
  title = {{Encoding Source Language with Convolutional Neural Network for Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-1003},
}
Figure