# A Neural Attention Model for Abstractive Sentence Summarization

A neural attention model learns to write abstractive sentence summaries

Alexander M. Rush, Sumit Chopra, Jason Weston · arXiv · 2015-9-2

- **Problem** Abstractive sentence summarization, which may use wording absent from the input, was hard to build. Earlier systems relied on hand-built linguistic rules or syntactic transformations.
- **Method** ABS trains a feed-forward neural language model with an attention-based input encoder on Gigaword headline pairs. Instead of a noisy-channel decomposition, it models each summary word directly given the input.
- **Results** On DUC-2004, ABS shows significant gains over several strong baselines, reaching 26.55 ROUGE-1 against 25.12 for TOPIARY.

## Abstractive sentence summarization as a scoring problem

Abstractive sentence summarization asks for a short sentence that may use wording absent from its input, rather than selecting spans of that input. Earlier systems handled this with linguistically inspired constraints or with syntactic transformations of the input, which ties them to hand-built linguistic structure. The question here is whether a neural model learned directly from article and summary pairs can produce abstractive headlines that score well against human references.

The task is treated as choosing an output sequence y of fixed length N that maximizes a score s(x, y) for the input x, and the output length is known before generation starts. To keep the search tractable, the score is factored into a sum of local terms, each depending on the input and on a window of previous summary words. \\( s(x,y) \\approx \\sum\_{i=0}^{N-1} g(y\_{i+1}, x, y\_c) \\) Here y\_c is the window of the C most recent summary words ending at position i.

Taking the score to be the log-probability of the summary given the input turns each local term into a conditional language model. The rest of the method is the parameterization of that local conditional distribution, which the model section defines with a neural network.

## How the language model and the input encoder combine

The local distribution is a feed-forward neural language model with an extra encoder term that reads the input sentence. \\( p(y\_{i+1} \\mid y\_c, x; \\theta) \\propto \\exp(Vh + W\\,\\mathrm{enc}(x, y\_c)) \\), where \\( h = \\tanh(U\\tilde{y}\_c) \\) and \\( \\tilde{y}\_c \\) stacks the embeddings of the context words.

Without the encoder term the model is an ordinary language model, so the encoder is the only route by which the input reaches the output distribution. Training the encoder and the language model jointly is what lets the input shape the generated words. The parameters are E, U, V and W, where E is the word embedding matrix with D rows per vocabulary entry, and the hidden layer has size H.

The approach departs from the noisy-channel decomposition used in earlier summarization work and instead parameterizes the conditional distribution directly as a network.

## Encoders that read the input

The simplest encoder averages learned embeddings of all input words with uniform weights, so it ignores word order and neighbouring words. Its form is \\( \\mathrm{enc}\_1(x, y\_c) = p^\\top \\tilde{x} \\), with \\( p \\) uniform at \\( 1/M \\) and \\( \\tilde{x} = \[Fx\_1, \\ldots, Fx\_M\] \\).

A convolutional encoder addresses that by applying a time-delay network that alternates temporal convolutions with two-element max pooling and ends with a max over time. This lets the encoder capture local interactions between neighbouring input words without reading the generation context. The authors set L to 3 and Q to 2 on the validation set.

The attention-based encoder keeps the averaging form but replaces the uniform weights with weights computed from the embeddings of the summary context. \\( p \\propto \\exp(\\tilde{x} P \\tilde{y}'\_c) \\), where \\( \\tilde{y}'\_c \\) stacks embeddings of the context words through a matrix G and P maps the context into the input embedding space. Input embeddings are first smoothed over a window controlled by Q before they are averaged with these weights.

Because the weights are recomputed at every summary position, the input representation follows the words generated so far, which is what the learned soft alignment provides.

## Training on article-headline pairs

Training minimizes the negative log-likelihood of the training summaries given their inputs, summed over the training pairs and over summary positions. \\( \\mathrm{NLL}(\\theta) = -\\sum\_{j=1}^{J} \\sum\_{i=1}^{N-1} \\log p(y^{(j)}\_{i+1} \\mid x^{(j)}, y^{(j)}\_c; \\theta) \\) The objective uses the gold-standard context at each position, and the authors mention predicting the context inside the objective only as an alternative.

Each training pair takes a Gigaword headline and the first sentence of its article, after filtering out pairs with no shared non-stop-words, bylines or extraneous editing marks, and titles with a question mark or colon. This leaves about 4 million title-article pairs. Words seen fewer than 5 times are replaced by UNK, and the input vocabulary has 110K word types against 69K in the headlines.

Mini-batch stochastic gradient descent with a learning rate of 0.05 and batches of 64 is used, with the learning rate halved when validation log-likelihood does not improve for an epoch. Minibatches are grouped by input length and the embedding tables are renormalized after each epoch. The hyperparameters D = 200, H = 400, C = 5, L = 3 and Q = 2 were set from the validation set, and the best validation accuracy came after 15 epochs, about 4 days of training on GPUs.

## Beam search over the full vocabulary

Since the scoring has no hard alignment constraint, Viterbi decoding could find the exact optimum in \\( O(NVC) \\) time, but the vocabulary is large enough to make this impractical. A strictly greedy decoder is cheaper but picks locally.

The beam search keeps the full vocabulary and retains K hypotheses at each summary position, extending each hypothesis with every candidate word. Hypotheses whose context windows match are recombined so that only the higher-scoring one survives, and the K best are then kept. Because nothing forces each input word to be used exactly once, the search only moves left to right and needs no coverage bookkeeping.

The beam search runs in \\( O(KNV) \\) time, and the K hypotheses at each step are scored together as one mini-batch, which reduces the cost of the factor K in practice.

## Extractive tuning after training

The abstractive model lacks a direct way to copy rare or unseen proper noun phrases from the input, which human references sometimes contain.

A log-linear score is defined over five features: the log-probability from the neural model, and indicators for unigram, bigram and trigram matches with the input together with an indicator for reordering of input words.

The neural parameters are fixed and α is tuned with minimum-error rate training against the summarization metric on tuning data, and the same tuning step is used for the phrase-based baseline. Setting α to the first unit vector recovers the standard ABS model, and the tuning data is DUC-2003.

## Evaluation data and baselines

The DUC-2004 set has 500 news articles, each with four human reference summaries capped at 75 bytes, and it is used only for evaluation. The similarly sized DUC-2003 set was made available for tuning. Scores are ROUGE-1, ROUGE-2 and ROUGE-L.

Other baselines are the COMPRESS sentence compression model, the IR baseline that returns the title of the closest training article under BM-25, and MOSES+, a phrase-based system tuned against the capped ROUGE score. The W&L system is also reported, though the authors could not train the T3 system at scale. The REFERENCE row averages the agreement between human summarizers, whose best evaluator scores 31.7 ROUGE-1.

## DUC-2004 and Gigaword results

ABS reached 26.55, 7.06 and 22.05, against 26.50, 8.13 and 22.85 for MOSES+ and 25.12, 6.46 and 20.12 for TOPIARY. ABS is therefore below MOSES+ on ROUGE-2 and ROUGE-L in this set, and the authors place the gain over TOPIARY mainly on those two metrics.

The authors report that ABS+ is significantly better than TOPIARY on all metrics at the default ROUGE confidence level, and better than MOSES+ on ROUGE-1 on DUC.

The authors report that ABS+ is significantly better than MOSES+ on ROUGE-1 and ROUGE-L on Gigaword.

On Gigaword the Ext % column is 91.5 for ABS+, 85.4 for ABS and 70.5 for MOSES+. The authors note that the extractive features bias the system toward keeping more input words, which helps the underlying metric.

## Encoder and decoding ablations

Table 2 compares language models on the Gigaword validation set with context size C = 5, with perplexities of 183.2 for the KN-smoothed 5-gram, 145.9 for the feed-forward NNLM without an encoder, 43.6 for bag-of-words, 35.9 for the convolutional encoder and 27.1 for the attention-based encoder. Adding even the bag-of-words encoder brings perplexity below 50, and the attention-based encoder lowers it further.

These are language model perplexities, not summary scores, so the ablation isolates the encoders as language models.

The authors say the encoder choice and beam search have the largest effects, and that pure extraction is also effective on ROUGE.

Example outputs show the models picking out key names and places, but they sometimes reorder words so the subject is wrong, and the more inventive rewording of ABS can attach phrases incorrectly.

## Limitations

Grammaticality is a weak point, because word reordering can produce syntactically incorrect output, and the authors name improving it in a data-driven way as future work. Output is far from human performance on this task.

The experiments cover only sentence-level summaries, and paragraph-level summaries are left to future work. A recurrent language model was not tried and is planned for future work.

The DUC-2004 comparison uses 500 articles, the Gigaword comparison uses one reference per article, and the extractive weights were tuned only on DUC-2003. The perplexity ablation uses validation data and the decoding ablation uses DUC-2003 development data.

Training conditions on gold-standard context, so the objective does not account for errors in the context the model generates at run time.

## Paper info

- **Authors**: Alexander M. Rush, Sumit Chopra, Jason Weston
- **Venue**: arXiv · Preprint
- **First published**: 2015-9-2
- **Added**: 2026-11-12
- **Updated**: 2015-9-3
- **Version**: v2
- **arXiv**: 1509.00685
- **Category**: cs.CL · cs.AI
- **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/1509.00685v2) · [PDF ↗](https://arxiv.org/pdf/1509.00685v2)

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

Alexander M. Rush, Sumit Chopra, Jason Weston (2015). A Neural Attention Model for Abstractive Sentence Summarization. arXiv:1509.00685v2. https://arxiv.org/abs/1509.00685v2

**BibTeX**

```
@misc{rush2015neural,
  title = {{A Neural Attention Model for Abstractive Sentence Summarization}},
  author = {Alexander M. Rush and Sumit Chopra and Jason Weston},
  year = {2015},
  eprint = {1509.00685},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.00685v2}
}
```

## Other paper commentary

- [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)
- [Pointer Sentinel Mixture Models](https://refivu.com/en/papers/8f7d0844-f517-4c18-ba24-8cd7dc616a74-pointer-sentinel-mixture-models.md)
- [TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension](https://refivu.com/en/papers/34db6f08-4b90-47eb-a2d8-fd0c5a90bf6e-triviaqa-a-large-scale-distantly-supervised-challenge.md)
- [Convolutional Sequence to Sequence Learning](https://refivu.com/en/papers/48e91a54-308d-4269-9616-28e683053df1-convolutional-sequence-to-sequence-learning.md)
- [LexRank: Graph-based Lexical Centrality as Salience in Text Summarization](https://refivu.com/en/papers/11b54298-bb68-4667-a225-10b7dade3a5a-lexrank-graph-based-lexical-centrality-as-salience-in.md)
- [KAN: Kolmogorov-Arnold Networks](https://refivu.com/en/papers/6f4194fb-1ce0-4686-96f9-6fc10958db2e-kan-kolmogorov-arnold-networks.md)
- [Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learning](https://refivu.com/en/papers/e553048e-8e0b-413a-97b2-7c98f997c30c-virtual-adversarial-training-a-regularization-method-for.md)
- [Unsupervised Learning of Depth and Ego-Motion from Video](https://refivu.com/en/papers/c545cc84-bdea-4ac2-ba9d-bf5f4a19568c-unsupervised-learning-of-depth-and-ego-motion-from.md)
- [YOLOv11: An Overview of the Key Architectural Enhancements](https://refivu.com/en/papers/d7fa1568-31c6-4ca5-a11e-c69df2a96ef2-yolov11-an-overview-of-the-key-architectural-enhancements.md)
- [Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials](https://refivu.com/en/papers/bfc0169f-9d85-4375-8194-0b11713c1836-efficient-inference-in-fully-connected-crfs-with-gaussian.md)
- [Convolutional Pose Machines](https://refivu.com/en/papers/544048ce-4f7c-4027-9775-b611791faf11-convolutional-pose-machines.md)

## Terms in this paper

- [perplexity](https://refivu.com/en/terms/2b204e513801-perplexity)
- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [negative log-likelihood](https://refivu.com/en/terms/e6d7135ed9ca-negative-log-likelihood)
- [ROUGE](https://refivu.com/en/terms/b50ceb784ddd-rouge)
- [abstractive summarization](https://refivu.com/en/terms/fd2d4d600684-abstractive-summarization)
- [Gigaword](https://refivu.com/en/terms/7c9b16ee9919-gigaword)
- [log-linear model](https://refivu.com/en/terms/1e7a9293356f-log-linear-model)
- [MERT](https://refivu.com/en/terms/f7e6ef8b5126-mert)
- [mini-batch stochastic gradient descent](https://refivu.com/en/terms/53f729c0a92b-mini-batch-stochastic-gradient-descent)
- [sentence summarization](https://refivu.com/en/terms/8b02a321d7a9-sentence-summarization)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/d68d7c9a-7c6e-4b4f-a4e9-ba1853fdfad2-a-neural-attention-model-for-abstractive-sentence)
