[Paper Review] Non-autoregressive Machine Translation with Probabilistic Context-free Grammar
The paper introduces PCFG-NAT, a non-autoregressive translation model that uses a Right-Heavy Probabilistic Context-Free Grammar to capture non-adjacent dependencies, improving translation quality and interpretability while keeping fast decoding.
Non-autoregressive Transformer(NAT) significantly accelerates the inference of neural machine translation. However, conventional NAT models suffer from limited expression power and performance degradation compared to autoregressive (AT) models due to the assumption of conditional independence among target tokens. To address these limitations, we propose a novel approach called PCFG-NAT, which leverages a specially designed Probabilistic Context-Free Grammar (PCFG) to enhance the ability of NAT models to capture complex dependencies among output tokens. Experimental results on major machine translation benchmarks demonstrate that PCFG-NAT further narrows the gap in translation quality between NAT and AT models. Moreover, PCFG-NAT facilitates a deeper understanding of the generated sentences, addressing the lack of satisfactory explainability in neural machine translation.Code is publicly available at https://github.com/ictnlp/PCFG-NAT.
Motivation & Objective
- Motivate the limitations of vanilla non-autoregressive translation (NAT) models due to token independence.
- Introduce RH-PCFG to capture non-adjacent syntactic/semantic dependencies in target text.
- Integrate RH-PCFG into a Transformer-based NAT architecture to improve translation quality.
- Provide training and decoding procedures, including CYK-based likelihood and Viterbi parsing for inference, with glancing training for efficiency.
- Assess translation quality and latency on major WMT NAT benchmarks and analyze explainability of generated parses.
Proposed method
- Propose Right Heavy PCFG (RH-PCFG) with a fixed right-heavy binary parse tree structure to reduce training complexity.
- Construct a Support Tree for RH-PCFG combining a main chain (right spine) and Local Prefix Trees attached to left subtrees.
- Define production rules for RH-PCFG, including leaf and non-leaf productions, with probabilities P(Vi→a) and P(<Vj,Vk>|Vi) decomposed to model word choice and non-terminal transitions.
- Use CYK-based maximum likelihood training to sum over parse trees and compute sentence probability conditioned on source X, with complexity analyzed as O(d^5 n + m^2 n) overall.
- Adopt Glancing Training to mix target embeddings into decoder inputs and employ a parse-tree maximum likelihood path for guidance.
- Inference via a Viterbi-style decoding to find the highest-probability parse tree T* with length constraint L, followed by sentence reconstruction and re-ranking by probability and length.
- Provide decoding strategies (greedy vs. Viterbi) showing Viterbi yields better translation quality at a modest speed cost.
Experimental results
Research questions
- RQ1Can a probabilistic context-free grammar structured parse of the target language improve non-autoregressive translation quality beyond existing NAT approaches?
- RQ2Does RH-PCFG provide a scalable, learnable structure that captures non-adjacent dependencies and improves explainability of NAT outputs?
- RQ3What is the impact of RH-PCFG design choices (local prefix depth l, upsampling in the support tree) on translation quality and training efficiency?
- RQ4How does PCFG-NAT compare to autoregressive models and other NAT variants on major WMT benchmarks in terms of BLEU and latency?
- RQ5What is the effect of Glancing Training and knowledge distillation in the PCFG-NAT framework?
Key findings
- PCFG-NAT outperforms several NAT baselines (e.g., CTC-GLAT, DA-Transformer) and narrows the gap to autoregressive models on key WMT benchmarks.
- With one decoding iteration, PCFG-NAT achieves competitive translation quality while maintaining faster-than-autoregressive latency.
- The RH-PCFG enables modeling non-adjacent and bidirectional dependencies, improving interpretability of generated sentences through parse-tree structures.
- Viterbi decoding provides superior translation quality compared with greedy decoding, with only a modest slowdown.
- GLAT generally improves performance across models; knowledge distillation offers more modest gains for PCFG-NAT.
- Analyses of parse-tree usage show the local prefix tree captures syntactic/positional cues (e.g., POS tag frequencies) supporting the claim of learned structured representations.
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.