Introduction
Natural Language Generation (NLG) has seen significant progress with the advent of large-scale pre-trained models like GPT and BART. However, applying these models to specialized domains—such as multi-turn dialog or programming languages—often results in fragmented implementations, inconsistent model structures, and varying backends. Furthermore, standard autoregressive models tend to overfit on local token correlations, potentially limiting their ability to model long-term dependencies.
ProphetNet-X addresses these challenges by extending the ProphetNet architecture into a unified family of large-scale pre-trained models. By standardizing the model structure across English, Chinese, multi-lingual, dialog, and code generation tasks, ProphetNet-X simplifies domain switching for researchers while achieving state-of-the-art (SOTA) performance across diverse benchmarks.
Methodology
The core innovation of ProphetNet-X is the Future n-gram Prediction objective. Unlike traditional models that predict only the next token ($y_t$), ProphetNet is trained to predict the next $n$ tokens ($y_t, y_{t+1}, \dots, y_{t+n-1}$) simultaneously at each time step.
This is achieved through a multi-stream self-attention mechanism, which maintains separate hidden state streams for standard autoregressive prediction and future token prediction without violating causality. This objective encourages the model to capture global coherence and prevents it from over-relying on immediate local patterns. For ProphetNet-X, the authors maintained an identical core architecture across all versions, simply adapting vocabularies and pre-training corpora for specific domains.
Pre-training Datasets
The ProphetNet-X family consists of six distinct models pre-trained on massive, diverse datasets:
- ProphetNet-En: 160GB of English text (Wikipedia, books, news).
- ProphetNet-Zh: 160GB of Chinese text (Wikipedia, CLUE, Common Crawl).
- ProphetNet-Multi: 1.54TB of data covering 52 languages from Wiki-100 and Common Crawl.
- ProphetNet-Dialog-En: 60 million Reddit open-domain dialog sessions.
- ProphetNet-Dialog-Zh: 30 million Chinese dyadic dialogue sessions.
- ProphetNet-Code: 10 million code-document pairs across six programming languages (Python, Java, Go, etc.).
Experimental Results
ProphetNet-X achieved SOTA results on 10 benchmarks across various domains. In Chinese NLP, the model showed significant gains on the MATINF (QA and Summarization) and LCSTS benchmarks, outperforming previous multi-task and specialized models.
Key highlights from the evaluation include:
- Cross-lingual Performance: On the XGLUE benchmark, ProphetNet-Multi outperformed Unicoder and XLM-R in zero-shot question generation and news title generation.
- Dialog Systems: ProphetNet-Dialog-En set new records on DSTC7-AVSD and PersonaChat. Human evaluations for the Chinese dialog model showed a preference over the Xiaoice system in 68-81% of cases.
- Code Generation: ProphetNet-Code achieved a smoothed BLEU-4 score of 18.54 on CodeXGLUE, surpassing established models like CodeBERT and PLBART.
Conclusion
ProphetNet-X demonstrates that a unified "future n-gram" objective is highly effective across diverse data types and languages. While the pre-training process is computationally intensive—exceeding 30,000 V100 GPU hours—the resulting models provide a powerful and accessible framework for the NLG community. Future work will explore extending the ProphetNet-X family into specialized domains such as biomedical text and protein sequence pre-training.
Summary updated