Self-supervised Bilingual Syntactic Alignment for Neural Machine Translation

Tianfu Zhang, Heyan Huang, Chong Feng, Longbing Cao

Abstract

SyntAligner is a novel self-supervised framework that introduces bilingual syntactic alignment to Neural Machine Translation (NMT). By identifying and aligning syntactic phrases (spans) between source and target languages and maximizing their mutual dependency through contrastive learning, it enables NMT models to capture deeper cross-lingual structural correspondences. Evaluation on WMT’14 and IWSLT’14 benchmarks demonstrates significant gains in translation quality over standard Transformer baselines.

Introduction

While modern NMT models have become adept at handling sequences, they often struggle with the structural "divergence" between languages—for example, how a Subject-Verb-Object order in English might map to a different structure in German. Existing "syntax-aware" NMT models typically only integrate monolingual syntax, usually just on the source side, ignoring the inherent consistency and alignment between the syntactic structures of the two languages.

Bilingual Syntactic Alignment concept showing source and target syntactic spans being aligned.

The challenge in fixing this is that there is no "gold standard" data for how phrases in one language align with phrases in another. SyntAligner tackles this by treating bilingual syntactic alignment as an unsupervised, self-supervised learning problem.

Methods

The SyntAligner framework is integrated into the standard Transformer architecture through a three-pronged approach:

  1. Syntactic Span Representation: Using the Berkeley Neural Parser, the model identifies syntactic "spans" (phrases). Each span is represented by a vector combining the hidden states of its boundary words and an embedding of its syntactic label (e.g., NP, VP).
  2. Border-Sensitive Span Attention (BS-SA): This matching engine calculates alignment scores between source and target spans. It utilizes the Transformer’s internal word-level self-attention as a "confidence" bias to sharpen the alignment distribution for the entire phrase.
  3. Mutual Information Maximization (MIM): To train the alignment without labels, a contrastive InfoNCE objective is used. The model is rewarded for making representations of aligned source-target spans similar while pushing unaligned spans apart.
  4. Curriculum Learning: A time-based exponential decay gate is employed to manage training. Early on, the model samples only high-confidence alignments, gradually including more complex pairs as training progresses.
The SyntAligner architecture integrating bilingual syntax alignment with the Transformer.

Experimental Results

The model was evaluated on three standard translation benchmarks: WMT’14 En→De (4.5M pairs), IWSLT’14 De→En (160K pairs), and NC’11 En→Fr (180K pairs). SyntAligner consistently outperformed the standard Transformer and other state-of-the-art syntax-enhanced baselines:

  • BLEU Score Gains: It achieved improvements of +1.25 BLEU on En→De, +1.50 BLEU on De→En, and +0.91 BLEU on En→Fr over the Transformer base.
  • Structural Accuracy: Qualitative analysis shows the model successfully aligns complex structures, such as mapping an English Adjective Phrase (ADJP) to a German Adjective Phrase (AP-PD), even with lexical differences.
  • Target-Side Bias: Research indicated that biasing the alignment using target-side self-attention is more effective than source-side bias, as it directly influences how the decoder attends to source structures during generation.

Discussion and Limitations

SyntAligner acts as a linguistic "inductive bias," helping the model generalize better on complex sentences. However, the introduction of the MIM objective increases fine-tuning time by approximately 1.5x. Additionally, the system remains dependent on external constituency parsers; while the BS-SA mechanism mitigates some noise, parser errors can still propagate through the alignment process.

Future work may explore more granular syntactic hierarchies and the application of this approach to low-resource languages where syntactic parsers may be less accurate.

Summary updated

BibTeX
@inproceedings{zhang2021self,
  author = {Tianfu Zhang and Heyan Huang and Chong Feng and Longbing Cao},
  title = {{Self-supervised Bilingual Syntactic Alignment for Neural Machine Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i16.17699},
}
Figure