Abstract: Wangchunshu Zhou, Tao Ge, Canwen Xu, Ke Xu, Furu Wei. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.
2021.
Introduction
Most modern Sequence-to-Sequence (Seq2Seq) models, such as T5 and BART, rely on text infilling for pre-training. In this paradigm, models learn to predict missing spans of text represented by artificial mask tokens. However, this approach introduces a significant "training gap": models encounter mask tokens during pre-training that never appear during real-world fine-tuning. Furthermore, simply filling in a blank is a relatively simplistic task that does not capture the complexity of real-world generation, such as summarization or error correction, which require transforming existing text rather than inventing it from scratch.
To address these issues, researchers have introduced Sequence Span Rewriting (SSR). Instead of predicting missing text, SSR trains models to rewrite machine-generated, "imperfect" text into high-quality ground truth, bridging the gap between pre-training and downstream application.
The SSR Framework
The SSR approach transforms the pre-training objective into a more challenging and realistic rewriting task through a three-step pipeline:
- Text Span Masking: Similar to standard T5 pre-training, random spans of text are identified for masking.
- Imperfect Span Generation: Instead of leaving these spans blank, a powerful teacher model (e.g., T5-large) is used to generate "guesses" for the missing text. By employing nucleus sampling, the generator produces text that is linguistically plausible but often contains factual, grammatical, or stylistic errors.
- Span Rewriting: The target model is then trained to take this noisy, imperfect text and rewrite it back into the original, correct ground truth.
To further optimize learning, the authors utilize Curriculum SSR, where the model initially learns to correct simple errors (low uncertainty) before progressing to complex paraphrasing and factual corrections.
Experimental Setup
The authors pre-trained their models on a 4GB corpus derived from Wikipedia, BookCorpus, and RealNews. Evaluation was conducted across several demanding downstream tasks:
- Summarization: CNN/DailyMail and XSum.
- Question Generation: SQuAD.
- Grammatical Error Correction (GEC): Lang-8, NUCLE, FCE, and W&I+LOCNESS.
Key Results
SSR-enhanced models consistently outperformed standard T5 baselines. In summarization tasks, SSR-base achieved a 40.44 ROUGE-L score on the CNN/DM dataset, a notable improvement over the 39.45 achieved by T5-base. The performance gains were even more pronounced in Grammatical Error Correction, where the SSR objective (fixing errors) directly aligns with the task requirements; here, SSR-base reached an F0.5 score of 58.7, compared to 56.7 for the baseline.
Key Insights and Ideas
- Noise as a Feature: By training on realistic machine-generated errors rather than random character swaps, the model learns deeper linguistic patterns and factual consistency.
- Plug-and-Play Continual Pre-training: SSR is highly efficient as a continual pre-training step. Existing models like T5 can be significantly improved with just 100k additional updates of SSR.
- Implicit Distillation: SSR acts as a form of knowledge transfer, where smaller models "absorb" the capabilities of the larger teacher model used to generate the imperfect spans.
Limitations and Future Work
While effective, SSR introduces computational overhead during data preparation due to the need for a large teacher model to generate imperfect spans. Additionally, there is a risk that machine-generated training data could propagate biases inherent in the teacher model. Future research will focus on scaling SSR to even larger architectures and exploring its application in multi-modal tasks, such as image captioning refinement.
Summary updated