A Self-Paced Mixed Distillation Method for Non-Autoregressive Generation

Weizhen Qi, Yeyun Gong, Yelong Shen, Jian Jiao, Yu Yan, Houqiang Li, Ruofei Zhang, Weizhu Chen, Nan DuanarXiv 2022 · DOI

Introduction

Non-Autoregressive (NAR) models have emerged as a promising alternative to traditional Autoregressive (AR) models like GPT, offering significant speedups by generating all tokens in a sequence simultaneously. However, NAR models frequently struggle with the "multi-modality problem"—where the model attempts to combine multiple valid but distinct generation paths into a single, nonsensical output. This research introduces a self-paced mixed distillation method designed to bridge the quality gap between AR and NAR models while maintaining the inference speed advantages of the latter.

Methodology: Bridging the Gap with Distillation

The proposed approach builds upon BANG, a large-scale pre-trained model that utilizes a multi-stream decoder architecture to support both AR and NAR generation.

The multi-stream architecture of the BANG model, supporting both AR and NAR generation.

To improve NAR performance, the authors implement two core innovations:

Mixed Sequence Distillation

Rather than training solely on "hard" ground-truth data, the student NAR model learns from an AR "teacher." This process combines:

  • Sequence Distillation: Training on the teacher's top-ranked output sequence.
  • Teacher-Forcing Distillation: Utilizing the teacher's full probability distribution (soft labels). This "dark knowledge" helps the student understand the relationships between tokens and the overall landscape of possible generations.

Self-Paced Learning

Recognizing that not all training examples are equally beneficial, the authors employ a self-paced strategy. In the early stages of training, the model prioritizes "easy" samples—those where the teacher model exhibits high confidence (low perplexity). By focusing on these modality-consistent examples first, the model establishes a stable generation pattern before being introduced to more ambiguous or complex data.

Experimental Evaluation

The method was evaluated across several diverse benchmarks:

  • Academic Benchmarks: SQuAD 1.1 (question generation), XSum, and Gigaword (abstractive summarization).
  • Commercial Applications: Three internal Microsoft datasets for advertisement keyword and title generation: QKG-EM, QKG-BM, and ATKG.

Key Results and Insights

The experimental results demonstrate that the proposed distillation components provide cumulative benefits to model performance.

Performance comparison of BANG variants using different distillation loss components.

As shown in the performance table, the full implementation including self-paced learning and best-sequence distillation achieves the highest scores, significantly outperforming the baseline BANG model. Key takeaways include:

  • Superior Quality: On the XSum task, the method improved the "Overall" score from 22.99 to 26.16, setting new state-of-the-art (SOTA) benchmarks for NAR models.
  • Efficiency: The model maintains a 7x speedup over traditional AR models during inference, as the distillation improvements are confined to the training phase.
  • Real-World Viability: In commercial ad generation tasks, the NAR model occasionally outperformed its AR teacher in specific metrics like BLEU-1, proving its readiness for high-throughput production environments.

Conclusion

This research successfully demonstrates that self-paced mixed distillation can mitigate the multi-modality issues inherent in NAR generation. By leveraging the "soft" knowledge of AR teachers and prioritizing consistent training data, NAR models can achieve near-AR quality with vastly superior inference speeds. Future work may involve integrating these distillation techniques directly into the initial pre-training phase to further enhance the capabilities of non-autoregressive architectures.

Summary updated

BibTeX
@misc{qi2022self,
  author = {Weizhen Qi and Yeyun Gong and Yelong Shen and Jian Jiao and Yu Yan and Houqiang Li and Ruofei Zhang and Weizhu Chen and Nan Duan},
  title = {{A Self-Paced Mixed Distillation Method for Non-Autoregressive Generation}},
  year = {2022},
  eprint = {2205.11162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.11162},
}
Figure