Introduction
Non-autoregressive generation (NAG) models have emerged as a high-speed alternative to traditional autoregressive (AR) models in natural language processing. By predicting all words in a sentence simultaneously rather than sequentially, NAG models achieve significant inference speedups. However, this parallel approach introduces the multimodality problem, where the model's independent word predictions fail to form a coherent sentence, often resulting in garbled or repetitive outputs.
The Limitations of Knowledge Distillation
The industry standard for mitigating the multimodality problem is Knowledge Distillation (KD). In this setup, a slower, more accurate AR "teacher" model generates a simplified dataset for the NAG "student" to learn from. While effective in some contexts, KD suffers from two primary drawbacks:
- The Teacher Fallacy: In complex tasks like abstractive summarization, the teacher model may not be superior to the original data. If the teacher provides mediocre guidance, the student's performance is inherently capped.
- Computational Inefficiency: Generating massive distilled datasets using slow teacher models is computationally expensive and time-consuming.
Proposed Method: POSPD
To overcome these limitations, we introduce POS-constrained Parallel Decoding (POSPD). Unlike KD, which simplifies data during training, POSPD applies linguistic constraints during inference to ensure grammatical consistency.
Core Components
- POS Predictor: A lightweight Transformer variant that predicts a Part-of-Speech (POS) tag sequence (e.g.,
ADJ NOUN PUNCT) directly from the source text. Its shallow decoder ensures minimal impact on inference speed. - Conversion Dictionary: A mapping that links POS tags to their valid vocabulary members. For instance, an
ADJtag would map to words like "Many" or "Great." - Constrained Decoding: During inference, the NAG model generates a probability distribution for each word slot. Simultaneously, the POS Predictor identifies the target tag for that slot. POSPD then applies a binary mask; any word in the NAG distribution that does not match the predicted POS tag has its probability zeroed out.
- Subword-level Tagging: To accommodate Byte Pair Encoding (BPE), the system uses a specialized tagging scheme (e.g.,
NN1,NN2) to maintain precision when words are segmented into subword units.
Experimental Results
POSPD was evaluated across four diverse tasks: extreme summarization (XSUM), story ending generation (ROCStories), question generation (SQuAD 1.1), and machine translation (WMT14 DE-EN).
Key Findings
- Performance Gains: POSPD consistently outperformed Knowledge Distillation across all benchmarks. Notably, on SQuAD 1.1, POSPD improved the BLEU-4 score of the CMLM model from 3.49 to 4.29, whereas KD actually reduced performance to 3.03.
- Error Reduction: Statistical analysis confirmed that POSPD significantly reduced common NAG errors, such as word repetition and incorrect sentence length, by forcing the output to adhere to a valid grammatical skeleton.
- Training Efficiency: The process of building a POS dataset for training is approximately 8x to 24x faster than generating a distilled dataset with a traditional teacher model.
Conclusion
POSPD demonstrates that linguistic structure can serve as a powerful prior for non-autoregressive generation. By shifting the focus from data simplification to inference-time constraints, POSPD provides a more efficient and effective solution to the multimodality problem, particularly in tasks where traditional knowledge distillation fails. Future work may explore incorporating more complex linguistic features, such as dependency trees, to further refine the generation process.
Summary updated