Paper commentary
Text Summarization with Pretrained Encoders
Pretrained BERT encoders can be adapted for both extractive and abstractive summarization
- Problem BERT gives one vector per subword token, not per sentence, so extractive summarization has no sentence vector to classify. Abstractive use also pairs the pretrained encoder with a random decoder.
- Method BERTSUM puts a [CLS] symbol before each sentence and stacks two inter-sentence Transformer layers on top to score each one.
- Results The approach achieves state-of-the-art results across the board on three datasets, in both extractive and abstractive settings.
Why BERT does not transfer directly to summarization
BERT is a bidirectional Transformer pretrained with masked language modeling and next-sentence prediction on a corpus of 3,300M words. Its common use has been to encode single sentences or sentence pairs for classification-style tasks. Summarization needs something different. The output has to keep most of the meaning of a long article, so the model must understand the text across many sentences rather than at the level of words or sentence pairs.
The two families of summarizers also need different outputs. An extractive system assigns a binary label to each span, usually a sentence, while an abstractive system generates the summary token by token.
BERT's own output is one vector per token, grounded to subword tokens, so there is no direct vector for a sentence on which an extractive decision can be made. Abstractive use adds a second gap: the encoder is pretrained, while the Transformer decoder has to be learned from random initialization. The authors worry that this mismatch can make fine-tuning unstable, with the encoder overfitting while the decoder underfits, or the reverse.
Sentence-level inputs built on BERT
The change starts at the input rather than inside the Transformer. An external [CLS] symbol is placed at the start of every sentence, and the vector at that position is read as the representation of the sentence it precedes. Original BERT adds [SEP] after each sentence and sums token, segment and position embeddings before the Transformer layers.
The segment embeddings of original BERT are built for sentence-pair inputs. BERTSUM instead gives interval segment embeddings, EA for odd-numbered sentences and EB for even-numbered ones. A five-sentence article therefore receives EA, EB, EA, EB, EA, so that neighbouring sentences carry different labels.
Original BERT position embeddings cover at most 512 positions. Additional position embeddings are added, initialized randomly, and fine-tuned with the rest of the encoder. Lower Transformer layers relate adjacent sentences, and higher layers combine them into multi-sentence discourse, which the authors describe as a hierarchical document representation.
Scoring sentences for extraction
The top layer output \( h^{L}_{i} \) of sentence i goes into a sigmoid classifier: \[ \hat{y}_i = \sigma(W_o h^{L}_{i} + b_o) \] Each sentence therefore gets a probability of being selected.
Depth was chosen by training with one, two and three inter-sentence layers, and two performed best, which gives BERTSUMEXT. The inter-sentence layers are fine-tuned jointly with BERTSUM, and the loss is the binary classification entropy between the prediction and the gold label.
Training labels come from an oracle built greedily, in the manner of Nallapati et al. (2017): sentences are added so that the selected set maximizes ROUGE-2 against the gold summary. At prediction time the sentences are ranked by score and the top three are taken, but a candidate is skipped if it shares a trigram with the summary built so far.
That filter is Trigram Blocking, which the authors relate to Maximal Marginal Relevance because both try to keep selected sentences dissimilar.
Abstractive model and split optimizers
The abstractive model is a standard encoder-decoder. Its encoder is the pretrained BERTSUM, and its decoder is a six-layer Transformer that starts from random initialization.
Two Adam optimizers with beta1 of 0.9 and beta2 of 0.999 update the encoder and the decoder separately, each with its own base rate and warmup length.
The authors assume that the pretrained encoder should be fine-tuned with a smaller rate and a smoother decay, so that its gradients stay accurate while the decoder is becoming stable.
A second variant first fine-tunes the encoder on the extractive task and then on the abstractive task, without changing the architecture. The default abstractive model is BERTSUMABS, and the two-stage variant is BERTSUMEXTABS. The two-stage idea builds on earlier work suggesting that extractive objectives can improve abstractive summaries.
Training and decoding settings
Abstractive models ran for 200,000 steps on four GPUs with gradient accumulation every five steps. Checkpoints were evaluated on the validation set every 2,500 steps, and the top three by validation loss were averaged for testing. Extractive models ran for 50,000 steps on three GPUs with gradient accumulation every two steps, and the same top-three checkpoint averaging was used.
The decoder has 768 hidden units, feed-forward layers of size 2,048, dropout of 0.1 before all linear layers, and label smoothing with a factor of 0.1. Decoding uses beam search of size 5 with a length penalty alpha tuned between 0.6 and 1 on validation, stops at an end-of-sequence token and blocks repeated trigrams.
Three news datasets with different summary styles
The evaluation uses three single-document news datasets that differ in writing conventions and summary style. CNN/DailyMail pairs articles with multi-sentence highlights, NYT pairs articles with abstractive summaries, and XSum pairs articles with one-sentence summaries.
CNN/DailyMail uses the standard split of 90,266/1,220/1,093 CNN documents and 196,961/12,148/10,397 DailyMail documents, with inputs truncated to 512 tokens. XSum uses 204,045/11,332/11,334 examples for training, validation and testing, with inputs truncated to 512 tokens.
CNN/DailyMail and NYT are described as somewhat extractive, while XSum is highly abstractive, so extractive models should suit the first two more and abstractive rewriting matters more on XSum.
Extractive results on CNN/DailyMail and NYT
The TransformerEXT baseline shares the architecture of BERTSUMEXT but has fewer parameters, and it is trained only on summarization, so its gap mixes the effect of pretraining with the effect of model size.
The NYT baselines are 42.30 for SUMO and 41.95 for TransformerEXT, with LEAD-3 at 39.58 and ORACLE at 49.18. Because the NYT table uses Recall and the CNN/DailyMail table uses F1, the two sets of numbers should not be compared directly.
Abstractive results across three datasets
The authors note that abstractive BERT models generally perform better than BERTSUMEXT on this dataset, and that they nearly approach ORACLE.
Learning rates for the two optimizers
The grid crosses encoder base rates of 2e-2 and 2e-3 with decoder base rates of 1, 0.1, 0.01 and 0.001, and reports validation perplexity on CNN/DailyMail. The lowest perplexity, 8.73, appears at encoder rate 2e-3 with decoder rate 0.1, while the same encoder rate with decoder rate 1 gives 37.21. The authors conclude the model performs best at this pair of rates.
The grid measures perplexity rather than summary quality, so it does not show ROUGE gains directly.
Where extracted sentences come from
Selected sentences are compared by their position in the source article for the oracle, BERTSUMEXT and TransformerEXT on CNN/DailyMail. Oracle selections are spread fairly smoothly across positions, TransformerEXT selections concentrate on the first sentences, and BERTSUMEXT selections are closer to the oracle pattern. The authors read this as the pretrained encoder relying less on shallow position features and learning deeper document representations.
Novel n-grams in generated summaries
Novel n-grams are those that appear in a summary but not in its source text, and their proportion is compared between generated and reference summaries. On CNN/DailyMail, generated summaries contain a much lower proportion of novel n-grams than the reference summaries, while the gap is much smaller on XSum. BERTSUMEXTABS produces fewer novel n-grams than BERTSUMABS on CNN/DailyMail, which the authors attribute to its initial extractive training, as it is more biased toward copying sentences.
Human judgements by question answering and ranking
The question-answering protocol builds questions from the gold summary and has participants answer them from the system summary alone, scoring a correct answer as one, a partial answer as 0.5 and a wrong one as zero. The ranking protocol shows two outputs with the source article and asks which is better on Informativeness, Fluency and Succinctness; each system's rating runs from -1 to 1.
Each dataset used 20 documents, with three responses per HIT on Amazon Mechanical Turk.
For extractive systems in the question-answering protocol, BERTSUM scores 58.9 on CNN/DailyMail against 42.5 for LEAD, and 41.9 on NYT against 38.1 for SUMO and 36.2 for LEAD. Differences marked as significant use a paired Student t-test with p below 0.05.
For abstractive systems, BERTSUM scores 56.1 on CNN/DailyMail, 41.8 on NYT and 57.5 on XSum, while PTGEN reaches 33.3, 30.5 and 23.7. Its rank scores are 0.17 on CNN/DailyMail and 0.19 on XSum, but -0.07 on NYT, where the gold summaries score 0.33. The authors state that participants overwhelmingly prefer the model's output and that the differences are significant except for TConvS2S on XSum in the question-answering setting, but the negative NYT rank score limits that claim to CNN/DailyMail and XSum.
Limitations
The abstractive decoder uses neither a copy mechanism nor a coverage mechanism. The authors justify this by saying such mechanisms add hyper-parameters, and their aim was a minimum-requirement model.
Experiments cover only three single-document news datasets, and using BERT's capabilities for language generation is left to future work.
The TransformerEXT and TransformerABS baselines have fewer parameters than the BERT-based models, so the comparison is not matched on model size. The NYT, CNN/DailyMail and XSum tables use different ROUGE variants, and the human evaluation uses 20 documents per dataset.
The position analysis covers only CNN/DailyMail, and the learning-rate grid is reported only as CNN/DailyMail validation perplexity.
Paper info
- Authors
- Yang Liu, Mirella Lapata
- Venue
- arXiv · Preprint
- First published
- 2019-8-22
- Added
- 2026-11-12
- Updated
- 2019-9-5
- Version
- v2
- arXiv
- 1908.08345
- Category
- cs.CL · cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Yang Liu, Mirella Lapata (2019). Text Summarization with Pretrained Encoders. arXiv:1908.08345v2. https://arxiv.org/abs/1908.08345v2
BibTeX
@misc{liu2019text,
title = {{Text Summarization with Pretrained Encoders}},
author = {Yang Liu and Mirella Lapata},
year = {2019},
eprint = {1908.08345},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1908.08345v2}
}