Syntax-Enhanced Neural Machine Translation with Syntax-Aware Word Representations

Meishan Zhang, Zhenghua Li, Guohong Fu, Min Zhang

Abstract

Neural Machine Translation (NMT) often struggles with long-distance dependencies and complex grammatical structures. This paper introduces Syntax-Aware Word Representations (SAWRs), a method to implicitly incorporate syntactic information into word embeddings. By leveraging the internal hidden states of a pre-trained dependency parser, SAWRs provide a robust and efficient alternative to explicit tree-structured models, yielding significant improvements in translation quality and training speed.

The Challenge of Structural Complexity

While NMT has revolutionized language translation, it frequently falters when dealing with "long-distance dependencies"—grammatical relationships between words separated by many tokens. Traditional approaches to integrate syntax often rely on explicit "syntax trees." However, these methods face two primary hurdles:

  1. Efficiency Gap: Tree-structured networks (e.g., Tree-RNNs) are difficult to batch on GPUs because every sentence has a unique structure, leading to slow training.
  2. Error Propagation: If a parser generates an incorrect "1-best" tree, the error cascades through the translation model.

Methodology: Syntax-Aware Word Representations (SAWR)

The proposed SAWR approach avoids rigid trees by extracting "fuzzy" syntactic features directly from a parser's internal layers.

The SAWR architecture integrates pre-trained parser encoder states into the NMT pipeline.

Instead of using the parser's final discrete output, the authors extract intermediate hidden vectors from the parser's encoder. These vectors are projected into a lower-dimensional space and concatenated with standard word embeddings. This "syntax-heavy" embedding is then processed by a standard NMT encoder (such as a Bi-RNN or Transformer). Because the representation is a continuous vector, the model maintains high-speed batching capabilities and remains resilient to minor parsing errors.

Experimental Setup

The method was evaluated on two distinct language pairs:

  • Chinese-English: Using LDC corpora (~1.25M pairs), tested on NIST 2003–2006.
  • English-Vietnamese: Using the IWSLT 2015 dataset (~133K pairs) for low-resource scenarios. Parsers were trained on Chinese Treebank 7.0 and the English WSJ corpus.

Key Results and Analysis

The SAWR method demonstrated substantial gains across various metrics and architectures:

  • Translation Quality: Chinese-English tasks saw a 1.74 BLEU point improvement over the baseline. On the smaller English-Vietnamese task, it gained 0.80 BLEU points.
  • Computational Efficiency: SAWR trained nearly 3.5x faster than Tree-RNN models (142 vs. 498 minutes per epoch), being only slightly slower than a syntax-free baseline.
  • Robustness to Length: The model consistently outperformed baselines across all sentence lengths, particularly for longer sentences where structural dependencies are most critical.
BLEU score performance across different sentence lengths, showing SAWR's superiority.

Qualitative analysis revealed that SAWRs act as "structural anchors," helping the model correctly align functional words (like the Chinese particle "的") that often confuse standard NMT models. Interestingly, the authors found that keeping the parser's parameters fixed (no fine-tuning) yielded better results, as it preserved the integrity of the learned syntactic features. Furthermore, the method proved model-agnostic, providing a 1.04 BLEU boost when applied to the Transformer architecture.

Conclusion and Future Directions

SAWRs provide a model-agnostic, efficient way to bake grammar into NMT. While currently focused on source-side syntax, future work could explore target-side integration or joint training objectives. The reliance on high-quality pre-trained parsers remains a limitation for low-resource languages, but for major language pairs, SAWR offers a compelling balance of performance and speed.

Summary updated

BibTeX
@inproceedings{zhang2019syntax,
  author = {Meishan Zhang and Zhenghua Li and Guohong Fu and Min Zhang},
  title = {{Syntax-Enhanced Neural Machine Translation with Syntax-Aware Word Representations}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1118},
}
Figure