Leveraging Pre-trained Checkpoints for Sequence Generation Tasks

Sascha Rothe, Shashi Narayan, Aliaksei Severyn

TL;DR

This paper demonstrates that large-scale pre-trained models like BERT, GPT-2, and RoBERTa—originally designed for understanding or language modeling—can be effectively repurposed to "warm-start" sequence-to-sequence generation tasks. By rigorously testing various initialization strategies, the authors achieved new state-of-the-art results across machine translation, summarization, and sentence manipulation, proving that a pre-trained encoder is the most critical component for success.

What Problem Does This Paper Address?

In recent years, unsupervised pre-training (e.g., BERT, RoBERTa) has revolutionized Natural Language Understanding (NLU) tasks like sentiment analysis or question answering. However, these models hadn't been widely applied to sequence-to-sequence (seq2seq) generation tasks like translation or summarization.

There was significant skepticism in the community: BERT’s pre-training objective is bidirectional (looking at the whole sentence at once), which seems fundamentally at odds with the autoregressive nature of text generation (predicting one word at a time from left to right). The authors set out to answer a practical research question: What is the best way to leverage these publicly available checkpoints to jumpstart sequence generation models?

Methods

The authors developed a Transformer-based seq2seq architecture and experimented with several ways to initialize the encoder and decoder using pre-trained checkpoints.

Key variants included:

  • BERT2BERT / RoBERTa2RoBERTa: Initializing both the encoder and decoder with the same type of checkpoint. To make BERT work as a decoder, they masked the self-attention mechanism so it only looks at the "left context" (previous words).
  • BERTSHARE / ROBERTASHARE: A memory-efficient version where the encoder and decoder share the same weights.
  • BERT2GPT / RoBERTa2GPT: A "hybrid" approach using a BERT-style model for the encoder (understanding) and a GPT-2 model for the decoder (generation).
  • RND2BERT / BERT2RND: Baselines where either the encoder or decoder is initialized randomly.

The only part of the architecture that could not be pre-trained was the encoder-decoder attention mechanism, which was always initialized randomly.

Table 1: Parameter counts and initialization strategies for different model variants.

Datasets

The models were evaluated on three categories of tasks:

  1. Sentence Manipulation: Sentence Fusion (combining sentences via the DiscoFuse dataset) and Sentence Splitting (WikiSplit).
  2. Machine Translation: The standard WMT14 English-German benchmark.
  3. Abstractive Summarization: Tested across three datasets with varying styles: Gigaword (headline generation), CNN/DailyMail (bullet-point highlights), and BBC XSum (extreme, highly abstractive single-sentence summaries).

Key Insights and Ideas

  • The Encoder is Essential: Initializing the encoder with a pre-trained model provided the biggest performance boost. A strong "understanding" of the input text is the foundation of good generation.
  • BERT can Decode: Despite the bidirectional pre-training mismatch, BERT-initialized decoders performed remarkably well when properly masked. The linguistic knowledge captured during pre-training transfers effectively to the generation process.
  • Weight Sharing Wins: The BERTSHARE and ROBERTASHARE models often outperformed their unshared counterparts. This is a "win-win" because sharing weights significantly reduces the model's memory footprint (e.g., 136M parameters for BERTSHARE vs. 221M for BERT2BERT).
  • Vocabulary Mismatch is a Hurdle: Combining different models (like BERT and GPT-2) often failed because they use different vocabularies. The model has to spend too much effort "translating" between the two internal representations. However, ROBERTA2GPT worked better because RoBERTa and GPT-2 share the same vocabulary.
  • Small Data, Big Impact: Pre-training is a massive advantage when training data is scarce. On the DiscoFuse task, a model trained on only 10% of the data but initialized with RoBERTa outperformed a randomly initialized model trained on 100% of the data.

Key Results

The authors conducted over 300 experiments, spending thousands of TPU hours to find the optimal configurations.

  • Sentence Fusion/Splitting: The models set new SOTA benchmarks. On WikiSplit, BERTSHARE achieved a SARI score of 63.5, significantly higher than the previous best of 61.5.
  • Machine Translation: Initializing with BERT provided a +4.0 BLEU point boost over random initialization on the WMT14 En→De task. Using a custom BERT checkpoint trained specifically on English and German data further improved results.
  • Summarization: The ROBERTASHARE model achieved a new SOTA on the challenging BBC XSum dataset, which requires high levels of abstraction rather than just copying text from the source.

Table 2: Results on the DiscoFuse dataset, showing the impact of initialization and training data size. Table 3: Results on the WikiSplit dataset.

Limitations and Future Work

  • Encoder-Decoder Attention: This specific part of the Transformer remains a "cold start" (randomly initialized). Future work could explore pre-training objectives that specifically target this bridge between understanding and generation.
  • Vocabulary Constraints: The study highlights how tied these models are to their original vocabularies. Efficiently adapting a pre-trained model to a new vocabulary remains a challenge.
  • Newer Models: The authors noted that newer models like XLNet were released during their study and suggest that applying these same "warm-starting" principles to even larger, more recent checkpoints is a promising next step.

Summary updated

BibTeX
@article{rothe2020leveraging,
  author = {Sascha Rothe and Shashi Narayan and Aliaksei Severyn},
  title = {{Leveraging Pre-trained Checkpoints for Sequence Generation Tasks}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2020},
  doi = {10.1162/tacl\_a\_00313},
}
Figure