Skip to main content
QUICK REVIEW

[Paper Review] Lexically Constrained Neural Machine Translation with Levenshtein Transformer

Raymond Hendy Susanto, Shamil Chollampatt|arXiv (Cornell University)|Apr 27, 2020
Natural Language Processing TechniquesComputer Science17 references10 citations
TL;DR

This paper proposes a fast, non-autoregressive method for lexically constrained neural machine translation using the Levenshtein Transformer (LevT), injecting constraints at inference time via a simple insertion step without retraining or slowing down decoding. The approach achieves 100% term usage and a 0.6 BLEU improvement on constrained sentences, outperforming prior methods in both accuracy and speed.

ABSTRACT

This paper proposes a simple and effective algorithm for incorporating lexical constraints in neural machine translation. Previous work either required re-training existing models with the lexical constraints or incorporating them during beam search decoding with significantly higher computational overheads. Leveraging the flexibility and speed of a recently proposed Levenshtein Transformer model (Gu et al., 2019), our method injects terminology constraints at inference time without any impact on decoding speed. Our method does not require any modification to the training procedure and can be easily applied at runtime with custom dictionaries. Experiments on English-German WMT datasets show that our approach improves an unconstrained baseline and previous approaches.

Motivation & Objective

  • To address the challenge of enforcing domain-specific terminology in neural machine translation without retraining.
  • To overcome the computational overhead of constraint-aware beam search decoding in autoregressive models.
  • To enable real-time, high-speed inference with guaranteed inclusion of lexical constraints in translations.
  • To maintain translation quality while ensuring precise placement and high usage of constrained terms.
  • To provide a plug-and-play solution for runtime integration of custom terminology dictionaries.

Proposed method

  • Leverages the Levenshtein Transformer (LevT), a non-autoregressive model that refines translations through iterative insertion and deletion operations.
  • Introduces a constraint insertion step during decoding that adds required terminology terms at appropriate positions without modifying the training process.
  • Uses the same three classifiers in LevT—deletion, placeholder, and token prediction—while adding logic to prioritize constraint term insertion.
  • Enforces constraint integrity by optionally disallowing deletion or insertion within constraint terms to ensure 100% usage.
  • Applies the method at inference time only, preserving the original model’s speed and requiring no fine-tuning or data augmentation.
  • Employs a multi-head self-attention mechanism shared across classifiers, with predictions conditioned on both source input and current target sequence.

Experimental results

Research questions

  • RQ1Can lexical constraints be injected into neural machine translation at inference time without retraining or sacrificing decoding speed?
  • RQ2Does a non-autoregressive decoding approach like LevT enable effective and efficient constraint enforcement compared to autoregressive beam search?
  • RQ3To what extent can constraint insertion improve term usage and translation quality while maintaining speed?
  • RQ4How does the method perform in comparison to prior approaches that use constrained beam search or data augmentation?
  • RQ5Can the model place constraints at correct syntactic positions without manual alignment or reordering?

Key findings

  • The proposed method achieves 100% term usage when deletion and insertion within constraints are prohibited, significantly outperforming prior approaches.
  • On constrained sentences, the method improves BLEU by 0.6 points (p < 0.05), demonstrating statistical significance.
  • The full test set BLEU score improves by 0.1 points, despite constraints comprising only 1% of reference tokens.
  • The method maintains the same decoding speed as the baseline LevT model, with no measurable slowdown from constraint injection.
  • Compared to Post18 and Dinu19, the method achieves higher absolute BLEU improvements (0.96 and 1.16 on Wiktionary and IATE, respectively) with 100% term usage.
  • Random insertion of constraints reduces BLEU from 29.9 to 29.3, confirming that the proposed method places constraints more accurately than baseline heuristics.

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.