Sequential Copying Networks

Qingyu Zhou, Nan Yang, Furu Wei, Ming Zhou

Abstract

Copying mechanisms show effectiveness in sequence-to-sequence based neural network models for text generation tasks, such as abstractive sentence summarization and question generation. However, existing works on modeling copying or pointing mechanisms only consider single-word copying from the source sentences. In this paper, we propose a novel copying framework, named Sequential Copying Networks (SeqCopyNet), which not only learns to copy single words but also copies sequences from the input sentence. It leverages pointer networks to explicitly select a sub-span from the source side to the target side and integrates this sequential copying mechanism into the generation process in the encoder-decoder paradigm. Experiments on abstractive sentence summarization and question generation tasks show that the proposed SeqCopyNet can copy meaningful spans and outperforms baseline models.

Introduction

Modern sequence-to-sequence (seq2seq) models used for tasks like summarization often face the "rare word" problem—they struggle to generate words they haven't seen frequently in training. To address this, researchers introduced "copying mechanisms" (or pointer networks) that allow a model to choose between generating a word from its fixed vocabulary or pointing to a specific word in the input and copying it directly.

However, existing models typically follow a "single word copy" paradigm. At every decoding step, the model makes an independent decision to copy. This often leads to "broken" phrases where a model might copy the first half of a name but fail to copy the second half, or insert an unrelated word in the middle of a technical term. In reality, human-written summaries often copy continuous chunks (spans) of text to maintain coherence and accuracy.

Motivation: The Sequential Copying Phenomenon

The authors identify that multi-word copying is a fundamental characteristic of human summarization. By analyzing the English Gigaword dataset, they found that nearly 60% of words in summaries are copied from the source, and a significant portion of these are part of multi-word sequences.

Distribution of copied word sequences in the Gigaword dataset, showing that over 28% of copied words belong to multi-word spans.

As shown in the data, while single-word copies (1-copy) are common, spans of two, three, or more words constitute a large share of the output. This empirical evidence justifies moving away from word-by-word decisions toward a framework that can handle spans as single units.

Methodology: SeqCopyNet

The proposed SeqCopyNet extends the standard encoder-decoder architecture with a specialized copying module designed for spans. Instead of picking one word at a time, the module performs a structured selection process.

The Copying Module

The module operates through three primary components:

  1. Copy Switch Gate: A neural network decides the probability of entering "copy mode" versus "generate mode."
  2. Pointer Network: If in copy mode, the model predicts a start position and an end position in the source sentence to define a specific sub-span.
  3. Copy State Transducer: To ensure the end position relates logically to the start position, an internal RNN "remembers" the start point and guides the pointer to a valid end point.
The architecture of SeqCopyNet, illustrating the interaction between the Encoder, the Copying Module (predicting start/end indices), and the Decoder.

The "Copy Run" Mechanism

A technical challenge in span copying is keeping the decoder's hidden state updated. If a model copies a 5-word phrase in one step, the decoder's RNN might "lose its place" because it didn't process those words sequentially. The authors introduce Copy Run, which simulates the generation of those words internally to update the decoder’s state, ensuring the model maintains fluency for whatever it generates after the copied span.

Experimental Results

The model was evaluated on two primary tasks: Abstractive Sentence Summarization (Gigaword) and Question Generation (SQuAD).

  • Summarization: On an "untouched" Gigaword test set (preserving rare words), SeqCopyNet achieved a ROUGE-L score of 44.06, significantly higher than the standard pointer-generator model (43.87) and the vanilla attention model (43.81). Qualitative analysis showed the model successfully capturing complex entities like "Guyana's president Cheddi Jagan" as a single unit.
  • Question Generation: The model achieved a BLEU-4 score of 13.02, setting a new state-of-the-art for the SQuAD dataset at the time by effectively copying relevant context from the source sentence into the generated question.

Conclusion

SeqCopyNet demonstrates that explicitly modeling the copying of sequences, rather than individual words, leads to more coherent and accurate text generation. By treating a span as a single unit of output, the model reduces the number of independent decisions it must get right, effectively capturing entities and technical terms. Future work may involve applying this framework to multi-turn dialog systems, where maintaining context through factual copying is critical.

Summary updated

BibTeX
@inproceedings{zhou2018sequential,
  author = {Qingyu Zhou and Nan Yang and Furu Wei and Ming Zhou},
  title = {{Sequential Copying Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=By-1eRe_ZS},
}
Figure