Uncertainty-Aware Semantic Augmentation for Neural Machine Translation

Xiangpeng Wei, Heng Yu, Yue Hu, Rongxiang Weng, Luxi Xing, Weihua Luo

Neural Machine Translation (NMT) has achieved remarkable success, yet it often struggles with the "intrinsic uncertainty" of language—the reality that a single concept can be expressed through numerous literal variations. Standard NMT training typically relies on rigid one-to-one sentence pairs, creating a distributional discrepancy between the narrow training data and the diverse expressions encountered during inference. This paper introduces Uncertainty-Aware Semantic Augmentation, a framework designed to synthesize diverse source-side variations and ensure models learn underlying meaning rather than just memorizing specific word patterns.

Methodology

The proposed framework bridges the gap between training and inference through a multi-stage process involving controllable sampling and semantic constraints.

The proposed architecture featuring the Semantic Constrained Network (SCN).

1. Controllable Sampling Strategy

To simulate uncertainty, the authors utilize a target-to-source model to generate multiple synthetic versions of the source sentence. They introduce a sharpness threshold ($\bar{h}$) based on information entropy. When the word distribution is "sharp" (high certainty), the model selects the most likely word; when it is "flat" (high uncertainty), it employs multinomial sampling. This balance ensures that generated sentences are both diverse and linguistically high-quality.

2. Semantic Constrained Network (SCN)

The SCN is a CNN-based module that processes hidden representations of both original and synthetic source sentences. It maps these representations into a "closed semantic region" defined by a latent Gaussian distribution. A gating mechanism then blends the standard encoder output with this latent semantic vector.

3. Training Objective

The loss function is augmented with a Kullback-Leibler (KL) divergence term. This objective forces the semantic representations of the original sentence and its synthetic variants to converge in the latent space, encouraging the model to be "uncertainty-aware."

Latent Space Analysis

A critical insight of this work is that the model learns to cluster different literal expressions of the same meaning into distinct groups within the latent space.

PCA visualization of latent semantic representations showing clustering of similar concepts.

Visualization via Principal Component Analysis (PCA) confirms that the SCN successfully groups varied inputs that share the same "latent semantics." This proves the model is learning conceptual consistency—for instance, recognizing that multiple ways to say "launch a new product" should point to the same semantic goal.

Experimental Results

The researchers evaluated the approach across four major benchmarks, consistently outperforming strong Transformer baselines:

  • Chinese→English (Zh→En): Achieved a significant gain of +2.36 BLEU points on average across NIST test sets.
  • English→German (En→De): Improved by +1.27 BLEU on the newstest2014 benchmark.
  • English→French (En→Fr): Outperformed the baseline by +1.41 BLEU.
  • Semi-supervised Scaling: When combined with 24M unique German sentences, the method yielded additional gains of +1.5 to +3.3 BLEU, demonstrating compatibility with existing techniques like back-translation.

Conclusion and Future Work

While the method provides substantial quality improvements, it does introduce a computational overhead; training time increased from 9 hours to approximately 11.5 hours (a 27% increase) on the NIST Zh-En task. Furthermore, the current implementation focuses on source-side uncertainty and utilizes a simple Gaussian prior. Future research may explore target-side uncertainty and more sophisticated, structured priors to further refine the model's grasp of linguistic nuance.

Summary updated

BibTeX
@inproceedings{wei2020uncertainty,
  author = {Xiangpeng Wei and Heng Yu and Yue Hu and Rongxiang Weng and Luxi Xing and Weihua Luo},
  title = {{Uncertainty-Aware Semantic Augmentation for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.216},
}
Figure