Fuzzy Alignments in Directed Acyclic Graph for Non-Autoregressive Machine Translation

Zhengrui Ma, Chenze Shao, Shangtong Gui, Min Zhang, Yang Feng

Introduction

Researchers have developed FA-DAT (Fuzzy-Aligned Directed Acyclic Transformer), a novel training approach for non-autoregressive machine translation (NAT). By replacing strict token-to-token alignment with a "fuzzy" $n$-gram matching objective, the model achieves state-of-the-art performance on raw training data. It successfully rivals traditional autoregressive models in translation quality while maintaining a massive ~13x decoding speedup.

The Multi-Modality Problem in NAT

Machine translation traditionally operates autoregressively: the model predicts one word at a time, using previously generated words to inform the next. While highly accurate, this sequential process is inherently slow. Non-Autoregressive Translation (NAT) attempts to generate all words in parallel to drastically reduce latency. However, NAT models struggle with the multi-modality problem.

Because a single source sentence can be translated into multiple valid target sentences, a parallel generation model often gets "confused" and mixes different translation modalities together, leading to errors like repeated or missing words. Recent models utilizing a Directed Acyclic Graph (DAG) structure helped mitigate this by allowing multiple valid paths through the translation. Yet, they were still trained using Negative Log-Likelihood (NLL). NLL implicitly forces a strict, monotonic alignment between the model's internal states and the reference sentence. This "verbatim" requirement penalizes the model for exploring diverse, valid sentence structures, ultimately limiting its potential.

Methodology: Fuzzy Alignment

To overcome the limitations of strict alignment, the authors introduce a Fuzzy Alignment objective based on $n$-gram overlapping.

  1. The Objective: Instead of strictly asking "Is word $X$ at position $i$ correct?", the model evaluates "How much does the expected output of my graph overlap with the $n$-grams of the reference sentence?" This approach is conceptually similar to how the BLEU metric evaluates translation quality, but it is applied directly during training.
  2. Efficient Calculation: Calculating $n$-gram precision across every possible path in a complex graph is typically computationally prohibitive. The authors developed an efficient algorithm with $O(n + L)$ complexity that leverages the Markov property of the DAG and matrix operations to compute these scores in parallel.
  3. Training Strategy: The model is first pretrained with standard NLL to establish a stable initialization. It is then fine-tuned using the fuzzy alignment objective, combined with a "brevity penalty" to prevent the model from generating overly short translations.

Key Insights

  • Strictness is the Enemy of Diversity: The core realization of FA-DAT is that NLL training unfairly penalizes valid translations simply because they deviate from the specific word order of a single reference. Fuzzy alignment allows the model to be "correct" even if it shifts word positions.
  • The $n=2$ Sweet Spot: Ablation studies revealed that using 2-gram (bigram) matching yields the best results. 1-gram matching loses word order entirely (acting like a "bag of words"), while 3-gram matching becomes too restrictive for the graph's Markov structure.
  • Efficiency over Size: FA-DAT performs better with a relatively small graph (3x the source length) than baseline models do with a massive graph (8x). This demonstrates that a superior training objective is more impactful than simply scaling up model capacity.
  • Confidence Boost: By inspecting the maximum token probabilities, the authors found that FA-DAT is significantly more "confident" in its predictions than previous DAG models. This increased confidence translates directly to clearer, more fluent outputs.
Vertex distribution comparison showing FA-DAT's higher prediction confidence

Key Results

The model was rigorously evaluated on two major benchmarks using raw data (WMT14 English-German and WMT17 Chinese-English), which is a much harder and more realistic test for NAT models than distilled data.

Main results table comparing FA-DAT to autoregressive and non-autoregressive baselines
  • State-of-the-Art Performance: On the WMT14 EN-DE raw dataset, FA-DAT achieved 27.53 BLEU, significantly outperforming the previous DA-Transformer (26.57 BLEU) and effectively matching the performance of the Autoregressive Transformer (27.54 BLEU).
  • Speed: FA-DAT maintains the core latency advantage of NAT, providing a 13.2x to 14.2x speedup over traditional autoregressive decoding.
  • Fluency: The model's perplexity scores—a measure of how "natural" the generated language is—were much closer to human-level references than those of vanilla NAT models.

Limitations and Future Work

While FA-DAT represents a significant leap forward, it still relies on NLL pretraining to reach a stable state before fuzzy alignment fine-tuning can be applied. Additionally, while $n$-gram matching handles local reordering exceptionally well, it may still struggle with very long-distance dependencies that exceed the $n$-gram window. Future research will explore how this fuzzy objective interacts with different decoding strategies and investigate its applicability to other graph-based generation tasks beyond machine translation.

Summary updated

BibTeX
@inproceedings{ma2023fuzzy,
  author = {Zhengrui Ma and Chenze Shao and Shangtong Gui and Min Zhang and Yang Feng},
  title = {{Fuzzy Alignments in Directed Acyclic Graph for Non-Autoregressive Machine Translation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=LSz-gQyd0zE},
}
Figure