BertSumExtAbs: Unified Summarization Model
- The paper demonstrates a unified approach by combining a pretrained BERT encoder for extractive sentence scoring with an abstractive decoder to enhance summarization performance.
- It employs document-level representations using alternating segment embeddings and shallow Transformer layers to effectively capture inter-sentence relationships.
- A two-stage fine-tuning strategy with distinct optimizers and trigram-blocking is used to mitigate redundancy and refine summary generation.
BertSumExtAbs is an encoderâdecoder neural text summarization framework that incorporates a pretrained BERT encoder for document representation and leverages both extractive and abstractive objectives for summary generation. It was proposed by Yang and Zhang (2019) to address limitations in prior approaches by unifying document-level semantic representation with flexible fine-tuning schemes, enabling state-of-the-art performance in both extractive and abstractive summarization tasks (Liu et al., 2019).
1. Document-Level BERT Encoder
BertSumExtAbs processes input documents using a document-level BERT encoder, referred to as âBertSum.â The input consists of individual sentences concatenated into a single token sequence. Each sentence is preceded by a special [CLS] token and followed by a [SEP] token. âIntervalâ segment embeddings alternate between and across sentencesâodd sentences are assigned , even sentences âenabling BERTâs two-segment embedding scheme to distinguish sentences in a single pass.
For sequences that exceed BERT's default 512-token positional embedding capacity, extra positions are randomly initialized and learned during fine-tuning. After passing through layers of BERT, a token-level representation is obtained for every position. Each sentence is represented by the output at its corresponding [CLS] position, with for BERT-base.
2. Extractive Summarization Module (BertSumExt)
Extractive summarization is realized by stacking shallow inter-sentence Transformer layers (depth , best results at 0) atop the set of sentence embeddings 1. Learned sinusoidal positional embeddings are added to each 2, producing 3 for 4. For each layer 5, a standard Transformer block is applied: 6
7
On the final layer, each 8 is passed through a sigmoid classifier: 9 where 0. The extractive loss is the binary cross-entropy over all sentences: 1 with 2 indicating gold inclusion in the summary.
During inference, all sentences are scored and the topâ3 (e.g., 4 for CNN/DM) are selected after trigram-blocking for redundancy removalâa sentence is skipped if it shares any trigram with those already selected. The optimizer is Adam with 5, 6 and learning rate schedule
7
with 8 steps.
3. Abstractive Summarization and Two-Stage Fine-Tuning
The abstractive summarization setup extends BertSumExt by adding a standard 6-layer Transformer decoder (9, 0) with masked multi-head self-attention, multi-head encoderâdecoder attention over all token-level BERT outputs 1, and positionwise feed-forward sublayers. Dropout of 0.1 is applied before all linear transforms and label smoothing 2 is used.
The training objective maximizes the log-likelihood of the reference summary tokens 3 given the source: 4 No explicit pointer-generator or coverage loss is used. The model instead mitigates repetition via subword vocabulary and trigram-blocking during beam search inference.
BertSumExtAbs introduces a two-stage fine-tuning schedule:
- Stage 1 (optional): Fine-tune the shared BERT encoder and inter-sentence layers solely on 5 (extractive objective). The resulting encoder parameters prime the initialization for the abstractive phase.
- Stage 2: Jointly fine-tune the encoder and decoder on 6 using separate Adam optimizers: encoder (7, warmup8 steps) and decoder (9, warmup0 steps), both with the "noam" learning rate schedule. The rationale is to provide a smaller, slower-decaying learning rate to the pretrained encoder while enabling rapid adaptation of the randomly initialized decoder.
Training details: 411080Ti GPUs, gradient accumulation every 5 steps, 200K total training steps, checkpointing every 2.5K steps. Inference uses beam search size 5, length-penalty 2 in 3, and trigram-blocking.
4. Hyper-Parameter Configuration
The table below highlights the primary hyper-parameter decisions for both extractive (âExtâ) and abstractive (âAbsâ or âExtAbsâ) modules:
| Parameter | Extractive (BertSumExt) | Abstractive (BertSumAbs/ExtAbs) |
|---|---|---|
| Optimizer | Adam (4=0.9,0.999) | Encoder: Adam (5=0.9,0.999); Decoder: Adam (6=0.9,0.999) |
| LR, Warmup | 7=2e-3, warmup=10K | Encoder: 8=2e-3, warmup=20K; Decoder: 9=0.1, warmup=10K |
| Inter-sentence layers 0 | 2 | 2 |
| Decoder layers | â | 6 |
| 1 | 768 | 768 |
| 2 | 3072 | 2048 |
| Attention heads | 12 | 12 |
| Dropout, label smoothing | â | 0.1 (drop), 0.1 (3) |
| Train steps, GPUs | 50K, 3 (accumulate=2) | 200K, 4 (accumulate=5) |
| Inference | Trigram-blocking, topâK | Beam=5, 4, trigram-blocking |
5. Evaluation and Empirical Results
BertSumExtAbs was systematically evaluated on three benchmarks: CNN/DailyMail (F5 ROUGE), New York Times (limited-length recall), and XSum. The models were compared to both extractive and abstractive baselines, and demonstrated consistent improvements.
ROUGE F6 scores on test sets:
| Dataset | BertSumExt R1/R2/RL | BertSumAbs R1/R2/RL | BertSumExtAbs R1/R2/RL |
|---|---|---|---|
| CNN/DailyMail | 43.25/20.24/39.63 | 41.72/19.39/38.76 | 42.13/19.60/39.18 |
| NYT | 46.66/26.35/42.62 | 48.92/30.84/45.41 | 49.02/31.02/45.55 |
| XSum | â | 38.76/16.33/31.15 | 38.81/16.50/31.27 |
All BertSum variants substantially outperform prior extractive or abstractive baselines on these news-summarization tasks (Liu et al., 2019).
6. Architectural Features, Rationale, and Redundancy Control
BertSumExtAbs provides an end-to-end framework that exploits BERTâs document-level semantic encoding for both sentence scoring (extractive) and token-level sequence generation (abstractive). The alternating segment embedding scheme ensures BERT can process multi-sentence inputs natively. The use of a shallow Transformer stack above BERTâs sentence embeddings introduces inter-sentence interaction explicitly.
The two-stage fine-tuning strategy addresses the pretrainedârandomly-initialized parameter mismatch between encoder and decoder, using separate learning rates and warmup schedules. The application of trigram-blocking in both extractive and abstractive inference stages serves as an efficient control against redundancy and repetition.
A plausible implication is that the architectural separation of extractive pretraining and abstractive fine-tuning enables improved knowledge transfer from large pretrained LLMs to generation modules in summarization.
7. Broader Context and Significance
BertSumExtAbs established a general methodology for integrating pretrained encoders like BERT into summarization architectures, with direct mechanisms for sentence selection and sequence generation. The frameworkâs empirical success on news-oriented benchmarks drove subsequent research on pretrained models for both extractive and abstractive summarization, particularly in leveraging segment-level embeddings and fine-tuning strategies tailored for document processing. The released codebase (https://github.com/nlpyang/PreSumm) further facilitated reproducibility and extension within the summarization community (Liu et al., 2019).