Prior Knowledge Integration for Neural Machine Translation using Posterior Regularization

Jiacheng Zhang, Yang Liu, Huanbo Luan, Jingfang Xu, Maosong Sun

Abstract

Neural Machine Translation (NMT) models, while powerful, often struggle to incorporate discrete, symbolic linguistic knowledge such as bilingual dictionaries or phrase tables. This paper presents a framework based on Posterior Regularization (PR) to bridge this gap. By representing prior knowledge as features in a log-linear model, the authors create a differentiable objective that guides the NMT model during training. This approach is architecture-agnostic and achieves a substantial improvement of up to 3.4 BLEU points on Chinese-English translation tasks, effectively addressing common NMT issues like under-translation and over-translation.

Introduction

The advent of Neural Machine Translation (NMT) has transformed the field by enabling end-to-end learning through continuous vector representations. Despite its success, NMT faces a "knowledge integration" challenge. Traditional statistical machine translation (SMT) systems relied heavily on discrete rules and symbolic knowledge (e.g., specific word-to-word mappings). In contrast, the high-dimensional continuous space of NMT makes it difficult to enforce such constraints. Previous attempts to integrate prior knowledge often required complex modifications to the neural architecture or used simple penalty terms that could not handle multiple, overlapping sources of information.

Methodology: Posterior Regularization with Log-Linear Features

The authors propose a framework that treats prior knowledge as a "guide" rather than a rigid constraint. This is achieved through Posterior Regularization (PR).

The Regularization Framework

The core idea is to define a "desired" distribution $Q$ that incorporates prior knowledge and then penalize the divergence between the NMT model's distribution $P$ and $Q$. Unlike traditional PR, which often involves non-differentiable constraints, this work represents prior knowledge using a log-linear model. This choice ensures that the entire objective function is differentiable, allowing for efficient training via standard Stochastic Gradient Descent (SGD).

Feature Engineering

Four primary types of linguistic features were integrated into the framework:

  1. Bilingual Dictionary (BD): Encourages the model to utilize specific word-to-word translations, particularly helpful for rare content words.
  2. Phrase Table (PT): Guides the model to respect established multi-word phrase correspondences.
  3. Coverage Penalty (CP): Incorporates the linguistic intuition that each source word should be translated exactly once, preventing omissions or repetitions.
  4. Length Ratio (LR): Ensures the target sentence length is proportional to the source sentence length.

Inference and Reranking

During the testing phase, the model employs a coarse-to-fine search strategy. The NMT model first generates a set of candidate translations, which are then reranked using the same log-linear features to select the optimal output.

Experiments and Results

The framework was evaluated on Chinese-English translation tasks using 1.25 million sentence pairs from LDC datasets. Performance was measured across multiple NIST test sets (2003–2008), with NIST 2002 serving as the validation set.

Quantitative Performance

The proposed method demonstrated significant improvements over the standard attention-based NMT baseline (RNNSEARCH). As shown in Figure 1, integrating all features led to a peak performance of 32.51 BLEU points, a 3.4-point gain over the baseline.

BLEU scores on NIST Chinese-English translation tasks for various methods and feature combinations.

The results indicate that while individual features like the Bilingual Dictionary provide substantial boosts, combining them yields the best overall performance, although with some diminishing returns due to feature overlap.

Qualitative Analysis

Beyond numerical gains, the PR framework effectively corrected systematic errors common in NMT. Figure 2 provides examples of how specific features improved translation quality. For instance, the Coverage Penalty (CP) helped the model include phrases like "discharged from the hospital" that the baseline omitted, while the Length Ratio (LR) feature prevented the redundant repetition of "the Golan Heights."

Examples of translation improvements using specific prior knowledge features.

Discussion and Conclusion

This research highlights the effectiveness of using Posterior Regularization as a flexible "wrapper" for NMT training. By avoiding structural changes to the NMT model itself, the method remains applicable to various neural architectures.

However, the approach does introduce a training overhead, with training times increasing by approximately 1.5x due to the need for candidate sampling. Additionally, while the current framework handles surface-level features well, integrating deeper "latent" structures like syntax trees remains a challenge for future work. Despite these limitations, the significant BLEU score improvements and the ability to correct qualitative errors make this a robust solution for knowledge-guided neural translation.

Summary updated

BibTeX
@inproceedings{zhang2017prior,
  author = {Jiacheng Zhang and Yang Liu and Huanbo Luan and Jingfang Xu and Maosong Sun},
  title = {{Prior Knowledge Integration for Neural Machine Translation using Posterior Regularization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-1139},
}
Figure