[Paper Review] Fast Structured Decoding for Sequence Models
The paper introduces a non-autoregressive translation model with a CRF-based structured inference module (NART-CRF and NART-DCRF) to model target-word co-occurrence, achieving near autoregressive accuracy with significant speedups.
Autoregressive sequence models achieve state-of-the-art performance in domains like machine translation. However, due to the autoregressive factorization nature, these models suffer from heavy latency during inference. Recently, non-autoregressive sequence models were proposed to reduce the inference time. However, these models assume that the decoding process of each token is conditionally independent of others. Such a generation process sometimes makes the output sentence inconsistent, and thus the learned non-autoregressive models could only achieve inferior accuracy compared to their autoregressive counterparts. To improve then decoding consistency and reduce the inference cost at the same time, we propose to incorporate a structured inference module into the non-autoregressive models. Specifically, we design an efficient approximation for Conditional Random Fields (CRF) for non-autoregressive sequence models, and further propose a dynamic transition technique to model positional contexts in the CRF. Experiments in machine translation show that while increasing little latency (8~14ms), our model could achieve significantly better translation performance than previous non-autoregressive models on different translation datasets. In particular, for the WMT14 En-De dataset, our model obtains a BLEU score of 26.80, which largely outperforms the previous non-autoregressive baselines and is only 0.61 lower in BLEU than purely autoregressive models.
Motivation & Objective
- Motivate reducing inference latency in autoregressive sequence models without sacrificing accuracy.
- Integrate a structured inference module to capture multimodal target distributions in non-autoregressive decoding.
- Develop scalable CRF approximations suitable for large vocabularies in neural MT.
- Propose dynamic transitions to enrich CRF with positional context.
- Demonstrate state-of-the-art performance among non-autoregressive models on standard MT benchmarks.
Proposed method
- Formulate non-autoregressive translation as sequence labeling and apply a linear-chain CRF to model adjacent-token dependencies.
- Use a simple NART decoder input (padding tokens followed by eos) to simplify architecture.
- Introduce a low-rank approximation for the CRF transition matrix using two transition embeddings (E1, E2) such that M = E1 E2^T.
- Apply beam approximation to reduce CRF decoding complexity from O(n|V|^2) to O(n k^2).
- Introduce a dynamic transition M^i = E1 M_dynamic^i E2^T where M_dynamic^i depends on adjacent decoder states, enriching positional context.
- Combine CRF loss with the vanilla NART loss in training: L = L_CRF + λ L_NAR (λ = 0.5).
- Evaluate on WMT14 En-De/De-En and IWSLT14 De-En with a Transformer teacher for distillation and rescoring.
Experimental results
Research questions
- RQ1Can a CRF-based structured inference module improve decoding consistency and accuracy in non-autoregressive MT by modeling local label dependencies?
- RQ2Do low-rank and beam approximations enable tractable CRF decoding for large vocabularies in NART without sacrificing performance?
- RQ3Does dynamic CRF transition improve translation quality by incorporating positional context?
- RQ4How close can NART-CRF/NART-DCRF approach autoregressive baselines in BLEU while maintaining speedups?
Key findings
- NART-CRF/NART-DCRF significantly outperform prior non-autoregressive models across benchmarks.
- On WMT14 En-De, NART-CRF achieves 26.80 BLEU (comparable to AR models, 0.61 BLEU below AR Transformer in the reported setup).
- NART-CRF/ NART-DCRF attain substantial speedups over ART (approximately 11x greddy decoding; ~4.4x with rescoring).
- Beam size experiments show k=16 already provides strong approximation; larger k yields diminishing returns.
- Dynamic transitions provide BLEU gains across En-De, De-En, and IWSLT De-En tasks (e.g., modest but consistent improvements).
- NART-CRF/NART-DCRF with rescoring maintain strong accuracy while reducing latency compared to autoregressive models.
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.