Latent Part-of-Speech Sequences for Neural Machine Translation

Xuewen Yang, Yingru Liu, Dongliang Xie, Xin Wang, Niranjan Balasubramanian · OpenReview

TL;DR

This paper introduces LaSyn, a novel neural machine translation model that effectively incorporates target-side syntactic structure using latent variables. By decoupling sequential dependencies between latent syntactic choices, LaSyn enables exhaustive search over syntactic possibilities during decoding, leading to improved translation quality and diversity without significantly increasing computational complexity.

What Problem Does This Paper Address?

Neural Machine Translation (NMT) models have seen significant improvements, but incorporating syntactic structure, particularly on the target side, has remained a challenge. While target-side syntax can boost translation quality, existing methods often rely on approximate inference techniques (like two-step decoding) that limit the exploration of the latent syntactic space. This limitation hinders both translation quality and the ability to generate diverse translations. The core problem is how to effectively integrate target-side syntax into NMT models while maintaining efficient and comprehensive inference over the latent syntactic structures.

Methods

The paper proposes LaSyn, a latent variable model for target-side syntax. Unlike previous approaches that model sequential dependencies between latent syntactic variables, LaSyn decouples these dependencies. This means that the syntactic choice at each time step is predicted based on the source input and the previously generated words, rather than being directly dependent on the previous syntactic choice. This decoupling allows for an exhaustive search over the latent syntactic choices at each step, rather than relying on approximate methods like beam search over limited sequences.

LaSyn is implemented by modifying a Transformer-based NMT system. The model features a shared encoder and a hybrid decoder. The decoder has two branches: one predicts the latent syntactic choices, and the other predicts the target words. The syntactic choices are represented as learned embeddings.

Training LaSyn is achieved through a Neural Expectation Maximization (NEM) algorithm. This approach addresses the non-convexity of the objective function. The E-step computes the posterior distribution of latent states, and the M-step updates model parameters. To further improve the model, a regularized EM training approach is introduced, using automatically generated part-of-speech (POS) tags as supervision for the latent sequences. This regularization helps guide the model towards more meaningful syntactic structures.

Datasets

The paper evaluates LaSyn on four translation tasks:

  • IWSLT'14 German-English (De-En)
  • IWSLT'14 English-German (En-De)
  • IWSLT'14 English-French (En-Fr)
  • WMT'14 English-German (En-De)

The paper does not introduce new datasets but uses standard benchmarks for evaluating NMT performance.

Key Insights and Ideas

  • Decoupling Latent Dependencies is Key: The core innovation is breaking the sequential dependency between latent syntactic variables. This simple change unlocks exhaustive search, a significant advantage over prior methods.
  • Exhaustive Search for Quality and Diversity: By allowing the model to explore all possible latent syntactic choices at each step, LaSyn achieves better translation quality and opens up avenues for generating diverse translations.
  • Neural EM for Tractable Training: The use of a Neural Expectation Maximization algorithm is crucial for training models with latent variables, especially when dealing with complex dependencies and deep neural networks.
  • POS Tag Regularization: Leveraging external, automatically generated POS tags as supervision during training significantly boosts the model's ability to learn meaningful syntactic structures, as evidenced by the large gains when using gold POS tags.
  • Syntax as a Template for Diversity: The ability to condition generation on specific POS tag sequences allows for controlled generation of diverse translations, acting as a flexible template.

Key Results

  • Improved Translation Quality: LaSyn consistently outperforms Transformer baselines and other state-of-the-art models across the evaluated tasks. For instance, on the IWSLT'14 De-En task, LaSyn achieved a 1.7 BLEU point improvement over the Transformer baseline. On the En-De task, it achieved a 2.4 point improvement.
  • Significant Gains with True POS Tags: When using gold POS tags for inference (LaSyn EUB), the BLEU scores show substantial improvements, highlighting the potential of target-side syntax.
  • Increased Translation Diversity: LaSyn demonstrates improved diversity, measured by distinct-1 scores, compared to baseline Transformer models and source-side syntax models.
  • Controlled Diversity: The model can generate diverse translations by sampling different POS tag sequences, offering a way to control output variability.
  • Efficiency: While LaSyn adds computational overhead, its decoding complexity is linear with respect to the latent variable vocabulary size, making it more efficient than models requiring exhaustive search over full latent sequences. Training time is approximately twice that of a vanilla Transformer when K=1 (EM update steps).

Limitations and Future Work

  • Computational Overhead: LaSyn incurs higher training and inference times compared to a vanilla Transformer, although the authors state that optimizations are possible.
  • Limited Scope of Syntax: The current work focuses on Part-of-Speech (POS) tags. The authors suggest that future extensions should explore more complex, tree-structured syntax information.
  • Trade-off Between Diversity and Quality: When generating translations using POS sequences with increasing edit distances from the most likely sequence, diversity increases significantly, but translation quality degrades. Understanding and managing this trade-off is an area for further exploration.

Summary updated

BibTeX
@inproceedings{yang2019latent,
  author = {Xuewen Yang and Yingru Liu and Dongliang Xie and Xin Wang and Niranjan Balasubramanian},
  title = {{Latent Part-of-Speech Sequences for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1072},
}
Figure