# Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyond

Attentional encoder-decoder RNNs reach state-of-the-art abstractive summarization with new copy and hierarchy components

Ramesh Nallapati, Bowen Zhou, Cicero Nogueira dos santos, Caglar Gulcehre, Bing Xiang · arXiv · 2016-2-19

- **Problem** Translation models do not fit summarization well, because summaries must compress lossily and keep key concepts. Rare names and unseen words are also hard to produce, since the standard model emits placeholder UNK tokens.
- **Method** The authors adapt a translation-style attentional encoder-decoder RNN to summarization. They add tag and frequency features to the encoder, a switch that chooses between generating and copying from the source, and joint word and sentence attention.
- **Results** The models reach state-of-the-art summarization on Gigaword and DUC. On Gigaword, Rouge-1 rises from 35.73 to 35.90 with the added features.

## Why summarization is not translation

Abstractive summarization produces a short paraphrase of a document, and the paraphrase may use words that never appear in the source. Sequence-to-sequence models already handle translation, speech recognition and video captioning, which makes them a natural starting point for this task.

Summaries are usually much shorter than their source and depend only weakly on the source length, while translation is expected to keep the meaning of the whole input. Summarization must compress lossily while keeping the key concepts, and the word-level alignment between a document and its summary is far less clear than in translation.

The authors therefore first apply the translation model with little change, then add components aimed at specific weaknesses: key concepts and entities, rare or unseen words, and the sentence structure of long documents.

## Baseline encoder-decoder and the large vocabulary trick

The baseline is the neural machine translation model of Bahdanau et al. (2014), applied to summarization.

The large vocabulary trick from Jean et al. (2014) is adapted so that each mini-batch's decoder vocabulary covers the words of that batch's source documents, and the most frequent target words are added until the vocabulary reaches a fixed size. The softmax layer is the main computational bottleneck, so shrinking it lowers cost, and training concentrates on the words that matter for each example.

The authors consider this a good fit for summarization because a large share of summary words come from the source document.

For the Gigaword models the decoder vocabulary is restricted to 2,000, because this cut training time per epoch nearly threefold.

Gigaword and DUC results for the baseline variants appear below, so this claim is tested on those two corpora only.

## Feature-rich encoder inputs

Word embeddings alone may not identify the key concepts and entities around which a story revolves, so the encoder also receives POS tags, named-entity tags, and TF and IDF statistics of each word.

Each tag type has its own lookup embedding matrix, similar to the word embeddings. TF and IDF are continuous, so each is discretized into a fixed number of bins, and a one-hot bin indicator maps into an embedding matrix in the same way as a tag.

For each source word, the embeddings of its word, tags and bins are concatenated into one long vector that feeds the encoder. The target side keeps word embeddings only. For the Gigaword models the source input embedding grows from the original 100 dimensions to 155.

## Switch and pointer for rare and unseen words

Keywords and named entities in a test document can be absent from the decoder vocabulary, and the usual UNK placeholder gives summaries that are hard to read. Pointing to the word's location in the source is a more direct way to recover it.

The decoder has a switch that picks generation from the target vocabulary when on, and pointing to a source position with copying when off. The switch is a sigmoid over a linear layer that reads the decoder state, the embedding of the previous emission and the attention context.

\\\[ P(s\_i = 1) = \\sigma\\left(v\_s \\cdot (W\_{sh} h\_i + W\_{se} E\[o\_{i-1}\] + W\_{sc} c\_i + b\_s)\\right) \\\] Here h\_i is the decoder hidden state, E\[o\_{i-1}\] is the embedding of the previous emission, and c\_i is the attention-weighted context vector.

The pointer is drawn from the attention distribution over document positions, and its position is the arg max of that distribution. \\\[ P^a\_i(j) \\propto \\exp\\left(v\_a \\cdot (W\_{ah} h\_{i-1} + W\_{ae} E\[o\_{i-1}\] + W\_{ac} h^d\_j + b\_a)\\right) \\\] Here h^d\_j is the encoder hidden state at document position j, and the pointer is p\_i = arg max\_j P^a\_i(j) over j in {1, ..., N\_d}.

During training, explicit pointer targets are given when a summary word is missing from the target vocabulary, and a repeated OOV word is linked to its first occurrence. The model is trained to maximize the conditional log-likelihood with additional regularization penalties. Each summary position contributes a generation term when the word is in the vocabulary and a pointing term otherwise, weighted by the switch probability.

At test time, the model takes whichever of generation or pointing has the larger posterior at each step. The authors argue the pointer handles rare words well because the encoder state at the UNK position carries the word's context, so the correct source position can still be found even when the word is not in the source vocabulary.

## Hierarchical attention over sentences and words

For long documents the model should find both the key sentences and the key words inside them. Two bi-directional RNNs run on the source, one at the word level and one at the sentence level, and attention operates at both levels at once.

The word-level attention weight at each position is multiplied by the attention weight of the sentence that contains it, and the products are renormalized over all document words. \\\[ P^a(j) = \\frac{P^{aw}(j)\\, P^{as}(s(j))}{\\sum\_{k=1}^{N\_d} P^{aw}(k)\\, P^{as}(s(k))} \\\] Here P^{aw}(j) is the word-level weight at position j, s(j) is the ID of the sentence containing position j, and P^{as}(l) is the sentence-level weight of sentence l.

The re-scaled attention forms the context vector that feeds the decoder hidden state. Positional embeddings are concatenated to the sentence-level hidden states, so each sentence's position in the document is part of its representation.

Earlier hierarchical encoder-decoder models used attention only at the sentence level, as in Li et al. (2015). The authors present joint word and sentence attention, with word weights influenced by sentence weights, and the sentence-level positional embeddings, as their new elements.

## Gigaword data, training and decoding

The Gigaword corpus is preprocessed with the scripts of Rush et al. into about 3.8M training examples. Validation and test each use a randomly sampled subset of 2000 examples, and the exact test sample of Rush et al. was also obtained for a direct comparison. The preprocessing was extended to extract system-generated POS and named-entity tags.

The models use 200-dimensional word2vec embeddings trained on the same corpus, which are updated during training, and a hidden-state size of 400 for both encoder and decoder. The text also gives the source input embedding as growing from 100 to 155 dimensions in the feature variant, and the two embedding figures are not reconciled in the text.

Training uses Adadelta with an initial learning rate of 0.001, batch size 50, and training data shuffled every epoch with every 10 batches sorted by length. No dropout or other regularization is used, gradient clipping is applied, and early stopping on the validation set selects the model used for test scores.

Decoding uses beam search with five candidates and caps summaries at 30 words, since that was the longest summary seen in the sampled validation set. Average system summaries across the models are 7.8 to 8.3 words, close to the about 8.7 words of the validation ground truth, without any tuning.

Training runs on a single Tesla K40 GPU, taking about 10 hours per epoch for most models and 12 hours for the hierarchical model. Models typically converge within 15 epochs under early stopping, which puts the wall-clock training time at 6-8 days depending on the model. Generating summaries at test time reaches about 20 summaries per second on a single GPU with batch size 1.

Scores use full-length F1 Rouge, since limited-length recall needs a length cut that varies by corpus and full-length recall favors longer summaries. The src. copy rate, the percentage of summary tokens that occur in the source, is reported alongside Rouge.

## Gigaword internal test results

Training on the first two sentences raises Rouge-1 from 34.97 for words-lvt2k-1sent to 35.73 for words-lvt2k-2sent. Rouge-2 moves from 17.17 to 17.38 and Rouge-L from 32.70 to 33.25 over the same pair.

Its src. copy rate is 78.52, against 79.54 for words-lvt2k-2sent.

Adding POS, NER, TF and IDF features raises Rouge-1 from 35.73 to 35.90 and Rouge-L from 33.25 to 33.38. Rouge-2 rises from 17.38 to 17.57 with the features, so each of the three Rouge variants gains slightly.

Its Rouge-2 of 17.77 is below the 18.17 of words-lvt2k-2sent-hieratt, so the text's claim of best performance on all three variants holds for Rouge-1 and Rouge-L only.

## Rush et al. test sample and ABS+

This test sample has only one sentence per input and no NLP annotations, so the best validation models could not be run on it.

The text states that words-lvt2k-1sent outperforms ABS+ with statistical significance on this sample.

Rouge-2 is 15.59 and 16.64 against 11.89 for ABS+, and Rouge-L is 30.64 and 32.62 against 26.97. ABS+ has a src. copy rate of 91.50 against 74.57 for words-lvt2k-1sent, which the authors read as more abstractive output from their models.

The authors attribute this to the bidirectional RNN source encoder capturing richer context per word than the bag-of-embeddings encoders used by Rush et al. and Chopra et al.

## DUC transfer without tuning

The DUC 2003 corpus has 624 document-summary pairs and the DUC 2004 corpus has 500, which are too small to train on. The models trained on Gigaword are run as they are, without tuning on the DUC validation set.

The decoder is changed to suppress the end-of-summary tag and emit exactly 30 words per summary, because the official evaluation on this corpus uses limited-length Rouge recall. Only words-lvt2k-1sent and words-lvt5k-1sent were run, since the DUC inputs are single sentences without NLP annotations.

Its Rouge-1 of 28.61 is below the 28.97 of RAS-Elman, so it beats RAS-Elman on two of the three variants.

Compared with ABS+, words-lvt5k-1sent is higher on all three variants, while words-lvt2k-1sent scores 28.35, 9.46 and 24.59.

## Multi-sentence CNN/Daily Mail corpus

The corpus was built from a passage-based question answering dataset of Hermann et al. (2015), which used CNN and Daily Mail highlights as fill-in-the-blank questions. The authors restored all highlights of each story in their original order, so each summary becomes a multi-sentence summary.

Training source documents average 766 words spanning 29.74 sentences, and summaries average 53 words and 3.72 sentences.

The release has an entity-named version and an anonymized version, in which entities are replaced by document-specific integer IDs. The authors use the anonymized version in all their experiments. Source vocabulary is limited to 150K and target vocabulary to 60K, with source and target lengths capped at 800 and 100 words.

Inputs use 100-dimensional word2vec embeddings trained on this dataset, the hidden state size is 200, and explicit pointers are created by matching anonymized entity IDs between source and target. Flat models take under 5 hours per epoch, while the hierarchical model takes nearly 12.5 hours per epoch. All models need nearly 35 epochs to converge, so the wall-clock time is about 7 days for the flat models and nearly 18 days for the hierarchical model.

## Repetition and temporal attention on CNN/Daily Mail

Under full-length Rouge F1 with each highlight treated as a separate sentence, words-lvt2k reaches 32.49, 11.84 and 29.47. The hierarchical variant words-lvt2k-hieratt reaches 32.75, 12.21 and 29.01, a gain that the text describes as marginal.

Both models often repeat phrases or whole sentences in their summaries. The authors attribute this to the decoder losing track of the parts of the document it used for earlier highlights.

Past weights are summed as beta\_t equal to the sum over k from 1 to t-1 of alpha'\_k, which the text describes as down-weighting the current attention when past weights on the same part are high. \\\[ \\beta\_t = \\sum\_{k=1}^{t-1} \\alpha'\_k \\\] The proportionality printed for the attention update, alpha\_t proportional to alpha'\_t times beta\_t, multiplies by beta\_t, which reads opposite to the prose, so the direction should be checked against the typeset original.

With temporal attention, words-lvt2k-temp-att reaches 35.46, 13.30 and 32.65, compared with 32.49, 11.84 and 29.47 for words-lvt2k. The table marks this row as statistically significant, and the authors call their results preliminary and a baseline for future work.

## Example outputs and failure modes

Table-level examples are given for feats-lvt2k-2sent on the validation set, with good and poor summaries side by side. Even when the output differs from the target, its summaries are often meaningful and relevant, which Rouge does not capture. The good examples are far more frequent than the poor ones.

The model sometimes misreads the semantics of the input and produces a summary with a comical reading. The authors conclude that capturing the meaning of complex sentences remains a weakness.

In the sample output of the switching model, pointer use is accurate for named entities and for multi-word phrases. The overall gain of this model is not significant, and the authors expect the pointer's impact to be larger on data with a heavier tail of rare words.

On CNN/Daily Mail, the same sentence or phrase often repeats in the summary. The authors suggest that intra-attention, as in Cheng et al. (2016), could fix this, but that was not tested here.

## Limitations

The Rush et al. sample and DUC inputs are single sentences without NLP annotations, so the feature and hierarchical variants are not run there. The best Gigaword model is not run on those two sets.

The DUC scores come from Gigaword-trained models run without tuning and with a forced 30-word output, so they describe that setting and not a tuned DUC system.

The overall gain of the switching model is not statistically significant, and its examples show accurate pointing without a measured overall improvement. Its Rouge-2 is below the hierarchical variant on the internal Gigaword test set.

On CNN/Daily Mail, flat and hierarchical models repeat phrases or sentences, and the temporal attention result rests on the Rouge gain plus a single example. The authors describe their temporal attention results as preliminary.

The models sometimes misread the semantics of the input. Convergence takes nearly 35 epochs on CNN/Daily Mail, while Gigaword models typically converge within 15 epochs under early stopping, so the two training budgets differ.

## Paper info

- **Authors**: Ramesh Nallapati, Bowen Zhou, Cicero Nogueira dos santos, Caglar Gulcehre, Bing Xiang
- **Venue**: arXiv · Preprint
- **First published**: 2016-2-19
- **Added**: 2026-11-12
- **Updated**: 2016-8-26
- **Version**: v5
- **arXiv**: 1602.06023
- **Category**: cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1602.06023v5) · [PDF ↗](https://arxiv.org/pdf/1602.06023v5)

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

Ramesh Nallapati, Bowen Zhou, Cicero Nogueira dos santos, Caglar Gulcehre, Bing Xiang (2016). Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyond. arXiv:1602.06023v5. https://arxiv.org/abs/1602.06023v5

**BibTeX**

```
@misc{nallapati2016abstractive,
  title = {{Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyond}},
  author = {Ramesh Nallapati and Bowen Zhou and Cicero Nogueira dos santos and Caglar Gulcehre and Bing Xiang},
  year = {2016},
  eprint = {1602.06023},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1602.06023v5}
}
```

## Other paper commentary

- [Teaching Machines to Read and Comprehend](https://refivu.com/en/papers/c971169f-9440-4e65-a62d-d8affa24f16a-teaching-machines-to-read-and-comprehend.md)
- [End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF](https://refivu.com/en/papers/ce633cbf-8295-40aa-a4ee-656b431af25f-end-to-end-sequence-labeling-via-bi-directional.md)
- [Crowdsourcing a Word-Emotion Association Lexicon](https://refivu.com/en/papers/3b0b67cb-6dd6-4162-9110-cdbb5d2cea2a-crowdsourcing-a-word-emotion-association-lexicon.md)
- [A Neural Attention Model for Abstractive Sentence Summarization](https://refivu.com/en/papers/d68d7c9a-7c6e-4b4f-a4e9-ba1853fdfad2-a-neural-attention-model-for-abstractive-sentence.md)
- [From Frequency to Meaning: Vector Space Models of Semantics](https://refivu.com/en/papers/dc10591f-f090-4830-a33f-924cbfeba0ff-from-frequency-to-meaning-vector-space-models-of.md)
- [Semantic Similarity Based on Corpus Statistics and Lexical Taxonomy](https://refivu.com/en/papers/fc160cc9-5a90-432c-8808-b3a1a431f015-semantic-similarity-based-on-corpus-statistics-and-lexical.md)
- [A Comprehensive Overview of Large Language Models](https://refivu.com/en/papers/4e2425c0-8669-49f7-80be-dd35ce0a70b2-a-comprehensive-overview-of-large-language-models.md)
- [PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume](https://refivu.com/en/papers/ad6f8625-4b03-4079-ad4e-a2126c614f62-pwc-net-cnns-for-optical-flow-using-pyramid.md)
- [CvT: Introducing Convolutions to Vision Transformers](https://refivu.com/en/papers/4d0c84cf-05bb-4f74-822e-0b8fbc635203-cvt-introducing-convolutions-to-vision-transformers.md)
- [Stable Video Diffusion: Scaling Latent Video Diffusion Models to Large Datasets](https://refivu.com/en/papers/82291bd9-5c41-4b81-bfde-a025a948f4b9-stable-video-diffusion-scaling-latent-video-diffusion-models.md)
- [The Curious Case of Neural Text Degeneration](https://refivu.com/en/papers/71a193c3-9d38-4eb3-b0de-39d943c746b0-the-curious-case-of-neural-text-degeneration.md)
- [Methods for Interpreting and Understanding Deep Neural Networks](https://refivu.com/en/papers/beae0f88-5d82-43a5-a727-e94025cff266-methods-for-interpreting-and-understanding-deep-neural.md)

## Terms in this paper

- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [attention mechanism](https://refivu.com/en/terms/977ee0201459-attention-mechanism)
- [ROUGE](https://refivu.com/en/terms/b50ceb784ddd-rouge)
- [Pointer network](https://refivu.com/en/terms/61d9123f2056-pointer-network)
- [Gigaword Corpus](https://refivu.com/en/terms/fb7b3e1b7437-gigaword-corpus)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/7a55aaf9-654e-4a97-8efc-d0b4a9fccb7a-abstractive-text-summarization-using-sequence-to-sequence)
