[Paper Review] Non-Autoregressive Text Generation with Pre-trained Language Models
This paper proposes a non-autoregressive text generation framework using BERT as a backbone, introducing dynamic length determination via learnable [eos] tokens and a context-aware learning objective to reduce repetition. It achieves state-of-the-art performance among non-autoregressive models and competitive results with autoregressive models, while enabling faster inference through a novel ratio-first decoding strategy.
Non-autoregressive generation (NAG) has recently attracted great attention due to its fast inference speed. However, the generation quality of existing NAG models still lags behind their autoregressive counterparts. In this work, we show that BERT can be employed as the backbone of a NAG model to greatly improve performance. Additionally, we devise mechanisms to alleviate the two common problems of vanilla NAG models: the inflexibility of prefixed output length and the conditional independence of individual token predictions. Lastly, to further increase the speed advantage of the proposed model, we propose a new decoding strategy, ratio-first, for applications where the output lengths can be approximately estimated beforehand. For a comprehensive evaluation, we test the proposed model on three text generation tasks, including text summarization, sentence compression and machine translation. Experimental results show that our model significantly outperforms existing non-autoregressive baselines and achieves competitive performance with many strong autoregressive models. In addition, we also conduct extensive analysis experiments to reveal the effect of each proposed component.
Motivation & Objective
- To improve the generation quality of non-autoregressive models, which typically underperform compared to autoregressive counterparts.
- To address the inflexibility of fixed output length in vanilla NAG models by enabling dynamic length determination during inference.
- To mitigate the conditional independence assumption that causes repetitive and ungrammatical outputs in NAG models.
- To enhance inference efficiency for tasks with predictable output length ratios, such as summarization and sentence compression.
- To achieve competitive performance with autoregressive models while maintaining the speed advantage of non-autoregressive generation.
Proposed method
- Utilizes BERT as the encoder backbone with a CRF layer on top to model output-side dependencies and improve sequence coherence.
- Introduces a learnable [eos] token mechanism that allows the model to dynamically decide when to stop generation, eliminating the need for length prediction or length-parallel decoding.
- Proposes a context-aware learning objective that penalizes identical or similar predictions at adjacent positions to reduce repetition.
- Employs a ratio-first decoding strategy that limits source-side hidden state processing to a fraction α of the input length, based on prior knowledge of target-to-source length ratios.
- Uses length-parallel decoding (LPD) as a baseline for comparison, where multiple length candidates are generated and re-ranked using a separate model.
- Applies joint optimization of the BERT encoder, CRF layer, and [eos] token prediction head to end-to-end train the full model.
Experimental results
Research questions
- RQ1Can BERT be effectively adapted as a backbone for non-autoregressive text generation to improve generation quality?
- RQ2Does dynamic length determination via learnable [eos] tokens outperform fixed-length or length-parallel decoding strategies in terms of both quality and speed?
- RQ3Can a context-aware learning objective reduce repetition and improve fluency in non-autoregressive generation?
- RQ4To what extent does the ratio-first decoding strategy improve inference speed without sacrificing generation quality?
- RQ5How does the proposed model compare in performance to strong autoregressive models across diverse text generation tasks?
Key findings
- The proposed model achieves a BLEU score of 30.45 on the IWSLT14 DE-EN translation dataset, outperforming the LPD-10 baseline (27.15) and matching the performance of models using much slower decoding strategies.
- The model achieves a 11.31× inference speedup compared to autoregressive models, comparable to LPD-1 decoding, while significantly outperforming it in generation quality.
- With ratio-first decoding, the model achieves a 9.31× speedup on the Gigawords dataset when α = 0.3, which corresponds to the optimal balance between speed and quality.
- The distribution of target-to-source length ratios in the Gigawords dataset shows that 70% of instances have a ratio below 0.3, justifying the choice of α = 0.3 for optimal performance.
- Ablation studies confirm that both the dynamic length mechanism and the context-aware objective contribute significantly to performance gains, especially in reducing repetition and improving fluency.
- The model achieves competitive results with strong autoregressive models on text summarization, sentence compression, and machine translation, demonstrating the viability of BERT-based NAG for high-quality generation.
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.