Skip to main content
QUICK REVIEW

[Paper Review] Glancing Transformer for Non-Autoregressive Neural Machine Translation

Lihua Qian, Hao Zhou|arXiv (Cornell University)|Aug 18, 2020
Natural Language Processing TechniquesComputer Science32 references20 citations
TL;DR

This paper proposes Glancing Transformer (GLAT), a non-autoregressive neural machine translation model that uses a Glancing Language Model (GLM) to learn word interdependencies through adaptive, single-pass parallel decoding. By dynamically sampling reference words during training and using encoder representations instead of [MASK] tokens, GLAT achieves 8×–15× speedup over autoregressive Transformers while reducing the BLEU gap to just 0.25–0.9 points on multiple WMT benchmarks.

ABSTRACT

Recent work on non-autoregressive neural machine translation (NAT) aims at improving the efficiency by parallel decoding without sacrificing the quality. However, existing NAT methods are either inferior to Transformer or require multiple decoding passes, leading to reduced speedup. We propose the Glancing Language Model (GLM), a method to learn word interdependency for single-pass parallel generation models. With GLM, we develop Glancing Transformer (GLAT) for machine translation. With only single-pass parallel decoding, GLAT is able to generate high-quality translation with 8-15 times speedup. Experiments on multiple WMT language directions show that GLAT outperforms all previous single pass non-autoregressive methods, and is nearly comparable to Transformer, reducing the gap to 0.25-0.9 BLEU points.

Motivation & Objective

  • To close the performance gap between non-autoregressive and autoregressive neural machine translation without sacrificing inference speed.
  • To enable single-pass parallel decoding in non-autoregressive models while capturing word interdependencies typically learned through autoregressive generation.
  • To develop a training strategy that gradually shifts from learning sentence fragments to full sequences, mimicking curriculum learning.
  • To replace the [MASK] token mechanism in iterative methods with more natural encoder representations for improved generation quality.

Proposed method

  • Introduces the Glancing Language Model (GLM), which performs two decoding passes during training: first a standard NAT pass to assess difficulty, then a glancing pass that samples hard-to-predict words from the reference.
  • Uses an adaptive glancing sampling strategy that prioritizes words with low prediction confidence, enabling progressive learning from fragments to full sequences.
  • Replaces [MASK] tokens in masked language modeling with direct encoder representations at corresponding positions to strengthen context awareness.
  • Trains the model using only the second decoding pass, where predictions for non-sampled words are optimized, ensuring end-to-end learning of full-sequence generation.
  • Employs a random word selection strategy for glancing sampling, which empirically outperforms confidence-based strategies due to increased exploration of word interdependencies.
  • Applies curriculum learning principles by gradually reducing glancing sampling as model confidence increases, enabling stable and effective single-pass inference.

Experimental results

Research questions

  • RQ1Can a single-pass non-autoregressive model achieve performance close to autoregressive Transformers without iterative refinement?
  • RQ2Does adaptive glancing sampling during training improve word interdependency modeling in parallel generation?
  • RQ3Can replacing [MASK] tokens with encoder representations enhance generation quality in non-autoregressive models?
  • RQ4How does the choice of sampling strategy (random vs. confidence-based) affect the final translation quality?
  • RQ5To what extent can GLAT close the BLEU gap with autoregressive models while maintaining high inference speed?

Key findings

  • GLAT achieves 8×–15× speedup over autoregressive Transformers while reducing the BLEU gap to only 0.25–0.9 points on multiple WMT language directions.
  • On WMT14 DE-EN, GLAT outperforms the strong Mask-Predict iterative method when the reference length is less than 20 tokens.
  • The random glancing sampling strategy yields the best performance, improving BLEU by 5.0 points over vanilla NAT and 0.3–0.6 points over confidence-based strategies.
  • Replacing [MASK] tokens with encoder representations improves performance by 0.2–0.3 BLEU points, even after adopting glancing sampling.
  • Ablation studies confirm that adaptive glancing sampling contributes most to performance gains, with encoder representations providing a secondary but meaningful boost.
  • GLAT achieves 25.21 BLEU on WMT14 EN-DE and 29.84 BLEU on WMT14 DE-EN, outperforming all prior single-pass non-autoregressive methods.

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.