Neural sequence-to-sequence models frequently suffer from a specific failure mode: they get stuck in loops. Whether summarizing a news article or translating a sentence, these models often repeat the same phrase indefinitely or fixate on a single segment of the source text while ignoring the rest. This "stuttering" occurs because the decoder, at each step, lacks a formal memory of what it has already expressed.
To solve this, researchers have developed coverage mechanisms—architectural "checklists" that track which parts of the source information have been processed and penalize the model for revisiting them.
The Stuttering Problem in Sequence Models
In a standard attention-based encoder-decoder model, the decoder decides where to look in the source text at every time step. However, these decisions are often independent. If the model finds a particular source phrase highly relevant, it may attend to it repeatedly, leading to outputs like "the president said the president said the president said."
As noted by Abigail See, Christopher D Manning, and Peter J. Liu in Get To The Point: Summarization with Pointer-Generator Networks, this lack of historical awareness is the primary driver of linguistic looping. Without a mechanism to track "coverage," the model has no way to know that it has already satisfied the requirement to translate or summarize a specific fact.
Tracking Attention History
The most influential solution to this problem is the coverage vector. In this approach, the model maintains a running sum of all previous attention distributions. If a specific word in the source document has received high attention in the past, its "coverage" score increases.
Abigail See and her colleagues implemented this by adding a "coverage loss" to the training objective. This loss penalizes the model when the current attention overlaps with the cumulative coverage vector. Intuitively, this acts like a highlighter: once the model has "highlighted" a section of the source text by attending to it, the cost of attending to it again becomes prohibitively high, forcing the model to move its focus to unvisited regions.
This concept has been adapted across various domains. For instance, in Neural Machine Translation Decoding with Terminology Constraints, Eva Hasler and her team used a more aggressive version of this idea: once a specific terminology constraint is met, the attention weights for that source span are zeroed out entirely, preventing the model from generating the same term twice.
Intra-Attention and Decoder Memory
While source-side coverage tracks what has been read, models also need to track what they have written. Angela Fan, David Grangier, and Michael Auli addressed this in Controllable Abstractive Summarization using an intra-attention mechanism.
Instead of only attending to the encoder's hidden states, the decoder also attends to its own previous hidden states. This allows the model to "see" its own output history directly. By maintaining this internal memory, the decoder can explicitly avoid generating tokens that are semantically similar to what it just produced. A similar "intra-temporal attention" was used in A Deep Reinforced Model for Abstractive Summarization to ensure the model focuses on novel information throughout long-form generation.
Diminishing Returns and Submodularity
A more mathematically elegant framing of coverage involves the principle of diminishing returns. In Resurrecting Submodularity in Neural Abstractive Summarization, Simeng Han and Shafiq Joty integrated submodular functions into the attention mechanism.
In this framework, the marginal value of attending to a token decreases as its cumulative attention increases. By passing the coverage vector through a concave function (like a square root), the model naturally finds that the "gain" from attending to a new, unvisited token is much higher than revisiting a known one. This encourages comprehensive coverage of the source text without requiring complex manual penalties.
Specialized Applications of Coverage
The utility of coverage extends beyond simple text-to-text tasks:
- Keyphrase Generation: Models like CorrRNN, developed by Jun Chen and colleagues in Keyphrase Generation with Correlation Constraints, use coverage to ensure that a set of generated keyphrases covers different topics within a paper rather than repeating synonyms.
- Data Augmentation: In C2C-GenDA: Cluster-to-Cluster Generation for Data Augmentation of Slot Filling, Yutai Hou used "cross-sequence redundancy attention" to ensure that a batch of generated training examples are diverse and do not repeat the same linguistic patterns.
- Reasoning: In multi-step quantitative reasoning, Armineh Nourbakhsh and Carolyn Rose showed in Improving compositional generalization for multi-step quantitative reasoning in question answering that coverage penalties force models to use different logical cues for each step of a math problem, preventing the model from "recycling" the same numbers for different operations.
Precision Coverage
Recent work has refined these penalties to be less "blunt." Traditional coverage can sometimes suppress necessary words (like "the" or "and") or prevent a model from revisiting a keyword that is needed for grammatical structure.
In A Timestep aware Sentence Embedding and Acme Coverage for Brief but Informative Title Generation, Feng Wang introduced "Acme Coverage," which only penalizes the attention weights of words that have been explicitly generated in the output, rather than every word that was merely attended to. This precision ensures that the model maintains access to the full context of the sentence until the specific information is actually verbalized.