Skip to main content
QUICK REVIEW

[Paper Review] Syntax-Infused Transformer and BERT models for Machine Translation and Natural Language Understanding

Dhanasekar Sundararaman, Vivek Subramanian|arXiv (Cornell University)|Nov 10, 2019
Natural Language Processing TechniquesComputer Science18 references37 citations
TL;DR

The paper augments Transformer and BERT with explicit syntactic features (POS, case, subword position) to boost English-German translation and GLUE tasks, showing BLEU gains especially with limited data and improvements on several GLUE tasks.

ABSTRACT

Attention-based models have shown significant improvement over traditional algorithms in several NLP tasks. The Transformer, for instance, is an illustrative example that generates abstract representations of tokens inputted to an encoder based on their relationships to all tokens in a sequence. Recent studies have shown that although such models are capable of learning syntactic features purely by seeing examples, explicitly feeding this information to deep learning models can significantly enhance their performance. Leveraging syntactic information like part of speech (POS) may be particularly beneficial in limited training data settings for complex models such as the Transformer. We show that the syntax-infused Transformer with multiple features achieves an improvement of 0.7 BLEU when trained on the full WMT 14 English to German translation dataset and a maximum improvement of 1.99 BLEU points when trained on a fraction of the dataset. In addition, we find that the incorporation of syntax into BERT fine-tuning outperforms baseline on a number of downstream tasks from the GLUE benchmark.

Motivation & Objective

  • Motivate the integration of explicit syntactic information into neural NLP models to improve translation and understanding.
  • Develop a syntax-infused Transformer by augmenting embeddings with syntactic features.
  • Extend the approach to BERT by incorporating POS-based syntax embeddings during fine-tuning.
  • Evaluate the impact of syntax infusion on EN-DE translation and GLUE benchmark tasks.
  • Analyze attention patterns to interpret how syntax information influences model behavior.

Proposed method

  • Modify Transformer encoder inputs by concatenating or summing trainable syntax embeddings (POS, case, subword position) with subword embeddings.
  • Train the syntax-infused Transformer under comparable settings to the baseline with six encoder/decoder layers and 8-head attention; use 512-dim embeddings with 20-dim feature embeddings.
  • Apply POS-derived syntax features, case, and subword position tags to create a combined token representation fed into the Transformer.
  • Adapt BERT by adding POS embeddings to token embeddings (either via addition or concatenation with a fixed approach to keep dimensionality consistent); evaluate on GLUEBench tasks.
  • Train and evaluate the models on EN-DE translation (WMT ’14) and GLUE benchmark, comparing against baselines.
  • Provide qualitative attention visualizations to illustrate how syntax affects cross-token attention in translation.

Experimental results

Research questions

  • RQ1Does explicit syntax infusion into Transformer embeddings improve translation quality (BLEU) compared to a baseline Transformer, especially with limited training data?
  • RQ2How do POS, case, and subword position features influence attention patterns and translation outcomes?
  • RQ3Does integrating POS into BERT fine-tuning yield improvements on GLUE tasks relative to BERT BASE?
  • RQ4Which syntactic features (POS, case, subword position) contribute most to performance gains in translation and understanding tasks?
  • RQ5Is the syntax-infused approach beneficial across data regimes and task types (translation vs. GLUE tasks)?

Key findings

  • Syntax-infused Transformer achieves BLEU improvements over the baseline across data regimes, with a maximum gain of 1.99 BLEU points when trained on 10% of the EN-DE data.
  • Overall, the syntax-infused Transformer shows uniformly higher BLEU than the baseline Transformer as data size grows, and the benefit is largest at smaller data fractions.
  • Attention visualization indicates syntax-infused models distribute attention more broadly across subwords, linking distant but related tokens to improve translation.
  • POS embeddings added to BERT BASE (BERT BASE + POS) outperform BERT BASE on 4 of 8 GLUE tasks, with notable gains on CoLA and related semantic tasks.
  • The combination of POS, case, and subword position features yields the best enhancements for translation when using a total feature embedding dimension of 20 (summed or concatenated).
  • Compared to the baseline, BERT BASE + POS yields competitive improvements on several GLUE tasks, indicating syntactic cues aid downstream understanding tasks.

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.