Skip to main content
QUICK REVIEW

[Paper Review] Modeling Source Syntax for Neural Machine Translation

Junhui Li, Deyi Xiong|arXiv (Cornell University)|May 2, 2017
Natural Language Processing TechniquesComputer Science28 references25 citations
TL;DR

This paper proposes explicitly modeling source-side syntax in neural machine translation (NMT) by linearizing parse trees into structural label sequences and integrating them into the encoder via three RNN-based architectures: Parallel, Hierarchical, and Mixed RNN. The Mixed RNN model, which stitchingly processes words and labels in sequence, achieves a significant 1.4 BLEU point improvement over a strong baseline on Chinese-to-English translation, demonstrating that explicit syntax modeling enhances translation accuracy and syntactic consistency.

ABSTRACT

Even though a linguistics-free sequence to sequence model in neural machine translation (NMT) has certain capability of implicitly learning syntactic information of source sentences, this paper shows that source syntax can be explicitly incorporated into NMT effectively to provide further improvements. Specifically, we linearize parse trees of source sentences to obtain structural label sequences. On the basis, we propose three different sorts of encoders to incorporate source syntax into NMT: 1) Parallel RNN encoder that learns word and label annotation vectors parallelly; 2) Hierarchical RNN encoder that learns word and label annotation vectors in a two-level hierarchy; and 3) Mixed RNN encoder that stitchingly learns word and label annotation vectors over sequences where words and labels are mixed. Experimentation on Chinese-to-English translation demonstrates that all the three proposed syntactic encoders are able to improve translation accuracy. It is interesting to note that the simplest RNN encoder, i.e., Mixed RNN encoder yields the best performance with an significant improvement of 1.4 BLEU points. Moreover, an in-depth analysis from several perspectives is provided to reveal how source syntax benefits NMT.

Motivation & Objective

  • To investigate whether explicit modeling of source-side syntax can improve neural machine translation (NMT) performance.
  • To address the issue of NMT systems failing to respect source syntax, such as producing discontinuous or over-translated phrases.
  • To explore methods for incorporating syntactic structure into NMT without relying on manually designed linguistic features.
  • To evaluate whether structural label sequences derived from parse trees can enhance translation accuracy and syntactic consistency.

Proposed method

  • Linearize source-side phrase structure parse trees into a sequence of structural labels (e.g., NP, VP, S) to represent syntactic structure.
  • Propose three encoder variants: Parallel RNN (process words and labels in parallel), Hierarchical RNN (process in two-level hierarchy), and Mixed RNN (interleave words and labels in a single sequence).
  • Integrate the structural label sequence into the NMT encoder by learning joint annotation vectors for words and syntactic labels.
  • Use standard attention-based seq2seq NMT as the baseline, with modifications only in the encoder to incorporate syntax.
  • Train the models end-to-end on Chinese-to-English translation with attention mechanisms and word-level embeddings.
  • Apply subword segmentation (e.g., byte-pair encoding) to handle OOV words, and extend structural labels to subword units when needed.

Experimental results

Research questions

  • RQ1Can explicit modeling of source-side syntax improve neural machine translation performance?
  • RQ2How do different architectural designs for integrating syntax (parallel, hierarchical, mixed) affect translation quality?
  • RQ3Does incorporating syntactic structure reduce syntactic inconsistencies such as discontinuous or over-translation of noun phrases?
  • RQ4What is the impact of syntactic structure on rare word translation and OOV handling?

Key findings

  • All three proposed syntax-aware encoders—Parallel, Hierarchical, and Mixed RNN—improve translation accuracy over the baseline NMT system on Chinese-to-English translation.
  • The Mixed RNN encoder achieves the best performance, yielding a significant 1.4 BLEU point improvement on the NIST MT 02–05 test set.
  • The Mixed RNN model is more effective at translating rare source-side words into non-UNK target words, reducing OOV-related errors.
  • Analysis shows that NMT models without explicit syntax modeling often fail to respect source syntactic structure, leading to discontinuous or repeated translations.
  • The study confirms that source syntax can be effectively leveraged in NMT through linearized parse trees and joint learning of word and label representations.
  • The approach is compatible with subword-based methods, allowing structural labels to be extended to subword units for better OOV handling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.