[Paper Review] Order-Agnostic Cross Entropy for Non-Autoregressive Machine Translation
Introduces Order-Agnostic Cross Entropy (OaXE) to train fully non-autoregressive translation models by optimizing over best alignments between predictions and target tokens, improving handling of word reordering and multimodality.
We propose a new training objective named order-agnostic cross entropy (OaXE) for fully non-autoregressive translation (NAT) models. OaXE improves the standard cross-entropy loss to ameliorate the effect of word reordering, which is a common source of the critical multimodality problem in NAT. Concretely, OaXE removes the penalty for word order errors, and computes the cross entropy loss based on the best possible alignment between model predictions and target tokens. Since the log loss is very sensitive to invalid references, we leverage cross entropy initialization and loss truncation to ensure the model focuses on a good part of the search space. Extensive experiments on major WMT benchmarks show that OaXE substantially improves translation performance, setting new state of the art for fully NAT models. Further analyses show that OaXE alleviates the multimodality problem by reducing token repetitions and increasing prediction confidence. Our code, data, and trained models are available at https://github.com/tencent-ailab/ICML21_OAXE.
Motivation & Objective
- Highlight the multimodality challenge in fully non-autoregressive translation (NAT) due to word reordering.
- Propose OaXE as a loss that uses the best alignment between predictions and target tokens.
- Show that OaXE outperforms XE and AXE across multiple WMT benchmarks.
- Maintain fast inference while improving translation quality and fluency.
Proposed method
- Define OaXE as minimizing cross-entropy over the best alignment Oi between predictions and target tokens (Y).
- Formulate the alignment-based loss using a bipartite matching setup and solve with the Hungarian algorithm (O(N^3)).
- Use XE initialization to avoid invalid orderings and apply loss truncation to drop unlikely predictions.
- Optionally combine XE and OaXE with an annealing schedule to progressively emphasize OaXE.
- Evaluate on WMT14 En-De, WMT16 En-Ro, WMT17 En-Zh, and WAT17 Ja-En with knowledge distillation and raw-data settings.
Experimental results
Research questions
- RQ1Can removing word-order penalties via best-alignment loss improve NAT performance on varied language pairs?
- RQ2Does OaXE mitigate the NAT multimodality problem (e.g., token repetitions) without sacrificing inference speed?
- RQ3How does OaXE compare to AXE and vanilla XE across standard NAT benchmarks and with/without knowledge distillation?
- RQ4What are the effects of XE initialization and loss truncation on training stability and performance?
Key findings
- OaXE substantially improves translation quality over XE and AXE across major NAT benchmarks.
- OaXE achieves new state-of-the-art fully NAT results: En-De (26.1/30.2), En-Ro (32.4/33.3), En-Zh (32.9/22.1).
- OaXE reduces token repetitions and increases prediction confidence compared to baselines.
- OaXE improves fluency and handles longer sentences better, maintaining fast inference.
- With raw data (no distillation), OaXE outperforms vanilla XE and narrows the gap to distilled data.
- OaXE reduces multimodality (lower NCM) and yields fewer repeated tokens (lower repetition rates).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.