Fine-tune BERT for Extractive Summarization

Yang LiuarXiv 2019

Abstract

BERT, a pre-trained Transformer model, has achieved ground-breaking performance on multiple NLP tasks. In this paper, we describe BERTSUM, a simple variant of BERT, for extractive summarization. Our system is the state of the art on the CNN/Dailymail dataset, outperforming the previous best-performed system by 1.65 on ROUGE-L. The codes to reproduce our results are available at https://github.com/nlpyang/BertSum

Introduction

Summarization is a critical task in natural language processing, categorized into abstractive and extractive approaches. Extractive summarization involves selecting salient sentences from a source document to form a summary. While robust and factual, extractive methods have recently faced a performance plateau, struggling to capture the complex inter-sentence relationships required for high-quality document-level summaries.

The advent of Bidirectional Encoder Representations from Transformers (BERT) has revolutionized many NLP tasks. However, BERT is primarily designed for token-level or sentence-pair tasks. Extractive summarization requires a document-level understanding to evaluate the relative importance of multiple sentences across a long text. This paper introduces BERTSUM, an adaptation of BERT designed to bridge the gap between token-level pre-training and document-level extractive requirements.

Methodology

The BERTSUM architecture introduces several key modifications to the standard BERT framework to enable effective sentence-level representation for long documents.

Extracted figure from page 2 of Fine-tune BERT for Extractive Summarization

Document Encoding

  1. Multiple [CLS] Tokens: Unlike standard BERT which uses a single [CLS] token for the entire input, BERTSUM inserts a [CLS] token at the beginning of every sentence. The final hidden state of each [CLS] token serves as the representation for its corresponding sentence.
  2. Interval Segment Embeddings: To distinguish between multiple sentences within a document, BERTSUM employs interval segment embeddings. Sentences are assigned alternating embeddings ($E_A$ and $E_B$) based on their index (odd or even). This allows the model to learn sentence boundaries and hierarchical relationships within a long sequence.

Summarization Layers

After obtaining sentence representations from the BERT encoder, several top-level architectures were evaluated to capture document-level features:

  • Simple Classifier: A linear layer with a sigmoid activation function.
  • Inter-sentence Transformer: Additional Transformer layers applied to the sentence representations to capture global context through self-attention.
  • RNN: An LSTM layer to model sequential dependencies between sentences.

Redundancy Reduction

To mitigate redundancy in the generated summaries, a Trigram Blocking heuristic is applied during inference. A candidate sentence is excluded if it shares a trigram (a 3-word sequence) with any sentence already selected for the summary.

Experiments and Results

The model was evaluated on two massive benchmarks: the CNN/DailyMail dataset and the New York Times (NYT) Annotated Corpus.

ROUGE scores on the CNN/DailyMail test set. BERTSUM variants outperform previous state-of-the-art models.

Performance on CNN/DailyMail

As shown in the results table, BERTSUM combined with an Inter-sentence Transformer achieved a ROUGE-L score of 39.63, establishing a new state-of-the-art. This represents a 1.65-point improvement over the previous best model, NEUSUM. The model also performed exceptionally well on the NYT50 test set, achieving a ROUGE-L of 42.62.

Key Findings

  • Architecture: The Inter-sentence Transformer outperformed both the RNN and simple classifier, indicating that self-attention is highly effective at capturing global document context compared to sequential modeling.
  • Pre-training Impact: The significant performance gain over non-pretrained Transformer baselines (over 2 points on ROUGE-L) underscores the value of BERT's pre-trained linguistic knowledge for the logic of "importance" needed for summarization.
  • Ablation Studies: Experiments showed that interval segment embeddings and trigram blocking both contribute positively to the final performance, with trigram blocking being particularly effective at reducing redundancy that neural models otherwise struggle to manage.

Conclusion

BERTSUM demonstrates that pre-trained Transformer models can be successfully adapted for document-level tasks like extractive summarization. By introducing a novel encoding scheme and leveraging inter-sentence attention, the model achieves state-of-the-art results on major benchmarks. Future work includes extending this framework to abstractive summarization and addressing the sequence length limitations inherent in current Transformer architectures.

Summary updated

BibTeX
@misc{liu2019fine,
  author = {Yang Liu},
  title = {{Fine-tune BERT for Extractive Summarization}},
  year = {2019},
  eprint = {1903.10318},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.10318},
}
Figure