Generating Wikipedia by Summarizing Long Sequences
Paper · 2018 · Peter J. Liu, Mohammad Saleh, Etienne Pot et al.
Summary
A Wikipedia lead has to introduce a subject and explain why it matters, often drawing on information scattered across several sources. Gathering the relevant pages only gets a writer partway there. The source material may be long, repetitive, and written for completely different purposes. The authors turn this editorial problem into a supervised summarization task. Given an article title and a collection of external documents, a system learns to produce the opening section that Wikipedia editors wrote. The project tests whether it can select useful evidence and turn it into a coherent account of the subject.
The authors build WikiSum by collecting crawlable citations from English Wikipedia and supplementing them with Google results obtained using article section titles as queries. They remove Wikipedia itself and filter out search results whose wording overlaps heavily with any section of the corresponding article. Even with access to the source collections, a system that can only copy has limited room to succeed. WikiSum’s input covers 59.2 of the reference leads’ word content on the paper’s ROUGE-1 recall scale, below the corresponding coverage in the news datasets the authors examine. The external pages can contain useful facts even when their wording differs from the lead.
The system first ranks source paragraphs and gives the writer the highest-ranked material that fits within its input budget. The writer then produces a new sequence of text, a process known as abstractive summarization. The authors adapt the Transformer by using a single decoder for both the source prefix and the article text. Their final architecture, T-DMCA, alternates attention restricted to local blocks with attention that can reach across the sequence through compressed representations. With these changes, they train on inputs of up to 11,000 tokens. In their experiments, the recurrent baseline performs poorly by comparison, and the encoder–decoder Transformer stops benefiting from longer inputs much earlier.
The best system substantially improves on extraction alone in ROUGE-L F1, a measure of how much wording a candidate and reference share in the same order. Human raters also find the generated leads more focused, clearer in their references, and better organized than the extracted text. The results depend on the source material and on which passages reach the writer. Combining search results with cited pages works better than using either collection on its own, and ranking paragraphs by relevance to the title beats taking the beginning of the input as it comes. The authors also generate full articles in preliminary experiments. These samples sometimes sustain a plausible structure and incorporate source facts, although their quality falls short of the generated leads and of the original Wikipedia articles.
Deep dive: Generating Wikipedia by Summarizing Long Sequences
WikiSum tests how a decoder-only Transformer can turn cited sources and web pages into a Wikipedia lead, even when the input spans thousands of tokens. · about 37 minutes to read
The problem and its context
From a set of sources to an introduction
A news headline can sometimes be inferred from a single sentence. The lead of an encyclopedia article has a different job. It needs to introduce an identified subject, decide which facts belong in the opening, and arrange them so a reader can follow the account without consulting the sources. Those sources may each have a narrower purpose than the article. The example of a law firm later discussed in the paper illustrates the difference in scope. An account of its formation and an account of its eventual decline can both contribute to the lead even if each was written to explain a different event.
The authors define the subject with the Wikipedia article title. The completed lead supplies the target during training, and the source documents give the system material from which to write. This creates a supervised learning problem, meaning that training pairs each input with an example of the intended output. For a new case, the desired lead is withheld and the system has to produce it. The point of using Wikipedia is that it supplies a recognizable kind of target across many subjects, while its citations offer a route from the finished writing back to some of the documents that could support it.
The output and input have quite different properties. Wikipedia leads tend to follow a shared editorial style, encouraged by its Manual of Style. They can extend across several sentences or paragraphs. The underlying pages come from the open web and can differ widely in both form and purpose. An encyclopedia entry and its sources therefore need not look like shorter and longer versions of the same document. A system has to infer which parts of a collection belong together and how to present the result in the style expected of an introduction.
This is a multi-document task because the evidence is distributed across pages. It is abstractive because the desired output can use a different formulation from any of them. The distinction from extraction concerns what the system may do with the wording. An extractive system selects material that already exists, such as paragraphs or sentences. An abstractive system can compose a sentence that names the topic explicitly, draw together information from separate passages, or state the same point more briefly. The authors use both operations: selection deals with the volume of the input, and generation deals with the form of the output.
What earlier summarization systems had been asked to do
The paper traces neural abstractive summarization back to headline prediction on English Gigaword. In the Gigaword headline study, the input is the opening sentence of a news article and the target is its headline. The authors characterize this setup as close to paraphrasing because the system turns a single sentence into another short piece of text. Attentive recurrent summarization is part of that line of work. Its systems could use attention, a way of weighting input representations according to what is currently being generated, within a recurrent encoder–decoder.
The CNN and Daily Mail task moved closer to summarizing an entire document. In the earlier CNN/Daily Mail study, news articles were paired with highlights adapted from a question-answering dataset. A useful highlight could depend on something found well beyond the first sentence. The paper also identifies a training tradeoff in this move. It gives the available parallel examples as 310k for this task versus 3.8M for the headline task. It points out that the two news publishers write their highlights in different styles and that the editorial rules for assembling those highlights are unclear.
Multi-document summarization adds another decision before writing can begin. Even if each page is individually intelligible, the system needs a way to choose among pages and passages. Earlier work on this problem, as the authors describe it, concentrated on extraction. Large collections of passages paired with a shared, human-written summary were scarce, which the authors offer as a possible reason for the limited use of supervised neural generation. A Wikipedia lead paired with accessible sources offers a way to assemble examples on a large scale without separately commissioning a reference summary for every collection.
Wikipedia was already used as a source for a range of language tasks. The paper mentions WikiReading and SQuAD in the context of answering questions, DBpedia in the context of extracting information, and biography generation from structured data as an example of writing from structured inputs. These uses give the system different material and ask it to produce different outputs. In WikiSum, the system is given prose from external pages and has to produce encyclopedia prose. There is no intermediate inventory of facts supplied as part of the input.
The closest antecedent the authors identify is the work of Sauper and Barzilay. It also gathers web documents using the topic as a search query and uses those documents to assemble Wikipedia-style writing. Its approach selects text using learned templates, and its experiments cover disease and American actor articles. WikiSum is designed to cover a broader range of subjects, incorporates sources found through Wikipedia’s citations, and asks the writer to generate the wording of the lead. The shift in scope matters because a template learned for one kind of article may reflect conventions particular to that kind of subject.
Why the writing architecture mattered
Earlier neural summarizers drew on sequence-to-sequence methods that had succeeded in machine translation. In an encoder–decoder, the encoder processes the input, and the decoder uses the resulting representations to predict the output. An attentive decoder can refer back to relevant parts of the encoded input as it writes. This division is natural when the input and output are distinct texts. The difficulty in WikiSum is the size of the input side. Even an architecture capable of writing a good summary from a modest amount of text may be unable to train on the sources the task can provide.
Attention Is All You Need introduced a nonrecurrent alternative in the translation setting. The Transformer can process positions within a training example with more parallelism than a recurrent system. Its standard self-attention, however, forms interactions between positions, so the number of interactions grows quadratically with sequence length. The paper consequently faces two decisions. It needs to decide how much of the raw collection to discard before training, and it needs a writer that can make effective use of the material that survives. Those are distinct parts of the design even though both determine how much evidence ultimately contributes to a lead.
The method, step by step
Collecting documents that can serve as evidence
For each eligible article, the authors construct a pool of text from cited documents and a pool from web searches. On the citation side, they follow crawlable references and strip markup from the retrieved documents. A citation can point to material that a Wikipedia editor found relevant, so these sources have a reason to be in the collection beyond a match to the subject name. Coverage is uneven, however. The paper notes that many articles have few citations, motivating the search collection.
On the search side, the authors query Google with article section titles and collect 10 result pages for each query. The queries help gather text associated with parts of the subject as well as with the article as a whole. The search results broaden the evidence pool and can introduce pages that editors did not cite. They also create a risk specific to this task. Wikipedia frequently appears prominently in the results, and another site may reproduce some of the same article. If that copy reaches the writer, predicting the lead can become an exercise in finding text that was meant to be held out.
The notation uses aᵢ for article i, D for the universe of documents under consideration, Cᵢ for the cited documents collected for the article, and Sᵢ for its filtered search documents. Both collections are subsets of D. The target typically means the lead of aᵢ. Later, the full-article experiments change the target to the article body as a whole. The title, written T(aᵢ), serves both as a topic cue for ranking and as part of the writer’s input.
From external sources to a Wikipedia lead
The steps in order.
Detecting pages that reproduce Wikipedia
The authors discard the article itself from the search results and test the remaining pages for substantial word overlap with the original. They make the comparison section by section. This lets a reproduced section trigger the filter even if the rest of the page contains substantial unrelated text. The unit is a unigram, a single item in the n-gram terminology used for sequences of words. The rule compares the coverage of Wikipedia’s words by the candidate document, rather than the share of the candidate document devoted to Wikipedia.
r(d, a) = max over s ∈ sections(a) of |unigrams(d) ∩ unigrams(s)| / |unigrams(s)|
Here d is the candidate document, a is the Wikipedia article, and s is one of the sections returned by sections(a). The symbol ∈ means that s belongs to that collection. unigrams(·) identifies the single-word units in its argument, ∩ takes the overlap, and the vertical bars give the size of a collection. Each division measures the fraction of one section’s unigrams found in the candidate. The max operation keeps the largest such fraction, called r(d, a). A candidate is flagged as a clone when this score is greater than 0.5.
The comparison is directional. A long page can contain enough of a short Wikipedia section to be flagged even when most of that page is unrelated to the article. That behavior is useful when a site wraps reproduced material in other content. The test relies on shared words, so word order and the origin of the wording are outside the rule itself. Its role is to reduce direct exposure to the intended output before the dataset is used for summarization.
Ranking before writing
The raw source collections can contain more text than the neural writer can process in a training example. The extractive stage turns the collection into an ordered list. Let pᵢⱼ be the paragraph at original position j for article i, and let Rᵢ(j) give its rank. The writer consumes the resulting order from the most relevant end. The experiment can then vary how many tokens it takes from that order. A larger budget retains material further down the ranking, while a better ranking can put useful material into the same budget.
The identity setting leaves the input in its original order and takes the initial tokens. It establishes how well the writer can do without relevance ranking. The default used later in the experiments is TF-IDF. It treats the article title as a query and the paragraphs as candidate documents. Query terms contribute more when they occur frequently in a particular paragraph and appear in relatively few candidate paragraphs. A term that occurs throughout the collection has less power to help choose where the writer should start.
score(pᵢⱼ, T(aᵢ)) = ∑ over words w in T(aᵢ) of N_w · log(N_d / N_dw)
In this expression score gives a paragraph’s relevance to the title query. The sum ∑ combines contributions from words w in T(aᵢ). N_w counts occurrences of w in the candidate paragraph, N_d counts the documents being ranked, and N_dw counts how many of them contain w. In this application the candidate documents are paragraphs. The multiplication sign joins the local count to the logarithm of inverse document frequency. A title word can therefore provide a strong signal when it is concentrated in a particular passage. A relevant passage whose author uses an indirect reference to the subject can receive less credit under this scoring rule.
TextRank evaluates passages in relation to one another. It represents paragraphs as nodes in a graph, gives connections weights based on word overlap, and uses a ranking algorithm related to PageRank. The useful signal is how a paragraph connects to the rest of the collection. That differs from querying it with the article title. A paragraph can be central because several pages discuss similar material, while title relevance can be high for a paragraph that uses distinctive subject terms.
SumBasic uses word frequencies to estimate which sentences to select. After it chooses a sentence, it reduces the scores of the words used there. This changes the next decision because a candidate containing those words now receives less support from them. The procedure repeats until it reaches the intended length. The paper describes SumBasic in terms of sentence selection, whereas its general representation for the writer starts from ordered paragraphs. In the direct extraction evaluation, it explicitly discusses matching the lengths of SumBasic and TextRank outputs to the target.
The final comparison uses an extractor given access to the correct Wikipedia text. Its purpose is diagnostic. It asks what happens when the source ordering can exploit knowledge of the desired wording. It scores paragraphs by their coverage of reference bigrams, which are pairs of adjacent words. In set notation, making the counts in the fraction explicit, the rule is as follows.
d(pᵢⱼ, aᵢ) = |bigrams(pᵢⱼ) ∩ bigrams(aᵢ)| / |bigrams(aᵢ)|
Here d(·, ·) is the relevance score, pᵢⱼ is paragraph j for article i, and aᵢ supplies the reference text for the task. bigrams(·) gives the adjacent word pairs, ∩ selects the ones shared by the paragraph and the target, and the bars give their counts. Dividing by the reference count turns the overlap into recall. A paragraph receives credit for covering the target wording regardless of how much other material it contains. The use of the true target makes this extractor unavailable for predicting a new lead, but it lets the authors test the consequences of improved access to passages related to that lead.
Preparing the source prefix and the target
The ranking determines the order in which the source paragraphs are joined. The title comes before them, so the writer always begins with an explicit topic cue. Let Pᵢ denote the paragraphs for article i in descending ranking order.
textᵢ = T(aᵢ) ∥ Pᵢ
textᵢ is the resulting input string and ∥ means concatenation, with the text on its left placed before the text on its right. T(aᵢ) supplies the article title, and Pᵢ supplies the ordered passage text. At this point the ranking has already done its work. The writer receives the passages as a sequence.
The authors use subword tokenization, which can represent a word as a sequence of smaller pieces. The shared vocabulary for inputs and outputs has 32,000 entries. This lets the two sides use the same representation even though their wording and style can differ.
tokenize(textᵢ) = xᵢ = (xᵢ¹, xᵢ², …, xᵢⁿⁱ)
tokenize is the operation that converts the raw string textᵢ to the token sequence xᵢ. Each superscript indicates the token’s position, with xᵢ¹ at the beginning and xᵢⁿⁱ at the end. The final superscript denotes position nᵢ, the total token count for that input. The ellipsis stands for the intervening positions. Because some words occupy more than one position, a token budget and a word budget measure different things.
mᵢᴸ = (xᵢ¹, …, xᵢ at position min(L, nᵢ))
mᵢᴸ is the input the writer actually receives at budget L. min(L, nᵢ) returns the smaller of the budget and the available number of tokens. The sequence starts at the title and proceeds into the ranked material until it reaches that position. A short input can pass through in full. The last retained token of a longer input can fall within a paragraph, because the budget is applied after concatenation and tokenization.
yᵢ = tokenize(aᵢ)
yᵢ is the tokenized target for example i, and aᵢ on the right-hand side denotes the reference article text selected for prediction, usually the lead. The lead experiments keep the complete target under the shared tokenization. The authors describe these outputs as usually shorter than 500 tokens, while the source budget can reach 11,000 tokens. This asymmetry is central to the architecture comparisons. Most of the sequence a writer has to handle can be evidence that precedes the output.
âᵢ = W(mᵢᴸ)
W is the learned writer and âᵢ denotes its generated article text for input mᵢᴸ. The hat distinguishes the prediction from the human-written aᵢ. The equation describes the job common to the writers in the paper. They differ in how they process the source and in which positions provide a learning signal.
Learning from the lead or from the whole sequence
The recurrent baseline, seq2seq-att, uses an LSTM encoder and an attentive decoder. LSTM stands for long short-term memory, a recurrent unit that carries a state along a sequence. The decoder uses the encoded source as it predicts the lead. The paper follows the attention-based sequence-to-sequence approach associated with the neural translation alignment study. The second baseline, T-ED, uses a Transformer encoder and decoder in place of the recurrent architecture. Both approaches treat source processing and target generation as distinct parts of the system.
∏ from i = 1 to N of p(yᵢ | mᵢᴸ)
∏ multiplies the terms across training examples indexed by i, starting at 1 and ending at N, the number of examples. The expression p(yᵢ | mᵢᴸ) is the probability assigned to the reference sequence yᵢ conditional on the retained source sequence. Maximizing the product encourages the writer to assign high probability to the actual training leads. The conditional bar marks the information the writer is given as it makes each prediction.
The plain Transformer decoder, T-D, uses the same decoder component as T-ED and removes the separate encoder. It joins the source and lead into a single sequence with a separator. The entire example can then be treated as a next-token prediction task of the kind used to train a language model. The source text still has a special role when the system is used to write, since it is supplied as the initial prefix. During training, though, positions on the source side also contribute prediction errors.
(w¹, …, wⁿ⁺η⁺¹) = (m¹, …, mⁿ, δ, y¹, …, yη)
w names the joined sequence and its superscripts identify positions. The m terms are source tokens, n is their count, δ is the separator token, and the y terms are target tokens with count η. The final yη means the target token at position η. The combined length includes the separator, represented by the extra 1. Superscripts designate sequence positions throughout this expression.
p(w¹, …, wⁿ⁺η⁺¹) = ∏ from j = 1 to n + η + 1 of p(wʲ | w¹, …, wʲ⁻¹)
p is the probability assigned to the joined sequence on the left and to each next token on the right. The product takes a term for each position j. The term for wʲ uses the earlier positions in w, ending just before j. At the start of the sequence the earlier-token prefix is empty. This notation uses the position j consistently and counts the separator in the sequence length. The displayed probability expression in the paper has an index and length slip relative to its definition of the joined sequence.
Training in this form lets the decoder learn from predicting the natural text in the source as well as from predicting the encyclopedia text that follows. The authors consider this an aid to optimization. They also suggest that the encoder and decoder of the conventional design may relearn some of the same information about the language in a monolingual task. Removing one of the stacks almost halves the parameter count for a given set of hyper-parameters, as the paper describes it. The experiments test the resulting design as a package, since the deletion of the encoder, the shared sequence, and the extra prediction signals come together.
At inference time, the source is supplied as a prefix and the decoder begins writing on the output side of the separator. Generation is autoregressive. Once the decoder chooses a token, that token becomes part of the history used to choose the following one. This gives the writer access to the evidence and to the wording it has already produced, including how it introduced the subject. It also means that the evidence and the growing lead occupy positions in a common attention sequence.
Making self-attention fit longer sequences
A self-attention layer lets positions exchange information by comparing queries with keys and then combining values. At a position that needs information, the query represents what that position can look for. The key at another position represents what it can be matched on. The corresponding value carries the information that is passed forward if the match receives weight. In the Transformer, multiple attention heads do this in parallel. The paper writes the operation underlying them as scaled dot-product attention.
Attention(Q, K, V) = softmax((QKᵀ) / √dₖ) V
Attention denotes the operation and Q, K, and V collect the queries, keys, and values, respectively. The superscript ᵀ transposes the key matrix so the product QKᵀ computes query–key dot products. The divisor √dₖ is the square root of the key dimension dₖ and sets the scale of the scores. softmax converts the scores for a query to normalized weights. Multiplication by V uses those weights to build a weighted combination of value representations. The decoder also applies a mask so that a token prediction cannot depend on future information.
The costly part for long inputs is the matrix that pairs queries with keys. If all positions compare against the full sequence, length adds positions along both dimensions. T-DMCA changes which pairs are computed. Its local layers split the sequence into blocks of 256 tokens and apply attention independently within each block. With a fixed block size, adding more tokens adds blocks with bounded attention cost, so the number of attention activations for these layers grows linearly with sequence length. The tradeoff is that a position can exchange information directly only with positions in its own block at that layer.
The memory-compressed layers provide a route across blocks. They start by projecting tokens into queries, keys, and values, as in ordinary attention. A convolution then reduces the number of keys and values. It uses a kernel of size 3 and a stride of 3, meaning that it combines nearby positions and advances by that stride between applications. The queries stay at their original resolution. A position can thus look across the whole sequence through a shorter collection of keys and values. The global comparison remains more costly as sequences grow, but it is performed against fewer entries than in ordinary full attention.
The final stack has the pattern LMLML, with L indicating local attention and M indicating memory-compressed attention. These letters describe layer types. The L used for the input budget is a separate quantity. The architecture has 5 layers, using local layers for detailed within-block interactions and compressed layers to pass information across the input. Each layer preserves a sequence of output representations at token positions. The compression concerns the material being attended to inside the global layers, so later layers can still act on a representation at each position. Future positions are masked in both types of attention.
The authors also try a mixture-of-experts layer in some versions. Its role in the study is to increase the capacity of the writer, with different settings for the number of experts. The relevant constraint is that a larger expert layer and a longer sequence both have to fit in memory. Changing the attention pattern consequently opens room for more context without settling how to allocate the available memory between context and capacity.
Training and decoding settings
The authors train the writers with tensor2tensor and describe plans to release their extensions, along with experimental URLs available through CommonCrawl. The recurrent baseline uses a hidden size of 128 and 2 layers. For T-ED, the paper uses the Transformer base hyper-parameters specified in its training setup and reports training for 1 million steps with little overfitting and no need for early stopping. T-D keeps the decoder configuration of T-ED, while T-DMCA changes the attention pattern as described above.
For the usual decoding setting, the paper uses beam search of size 4. Beam search keeps several partial continuations in play, compares their scores as they extend, and uses those scores to choose an output. A length penalty controls how sequence length influences this choice. The coefficient is α, set to 0.6. The writer continues until it produces the end-of-sequence token. Its output length can therefore vary by example, which matters when a generated lead is compared with the reference.
Experiments and results
What the dataset and the metrics measure
The authors keep only articles with at least one crawlable citation. That requirement lets them use the same article population in experiments with cited text, search text, or both. The WikiSum split is approximately 80/10/10. It contains 1,865,750 training examples, 233,252 development examples, and 232,998 test examples. The amount of available source text varies considerably across articles. The training examples teach the writer the relationship between sources and lead text, and the held-out examples let the authors examine whether the resulting behavior carries over to articles outside training.
To characterize the dataset, the paper measures how much of the original summary wording occurs anywhere in the available input. It uses ROUGE-1 recall for this purpose. ROUGE is a family of summary overlap measures, and ROUGE-1 works with single words. In the coverage comparison, those words are matched between the available source text and the human-written summary. WikiSum scores 59.2. The news datasets have higher coverage, with 76.1 for CNN/DailyMail and 78.7 for Gigaword. This comparison describes the materials available to a system before it selects or generates anything. The paper presents it as an indication of how amenable each task is to extraction.
The source-coverage calculation and the generated-lead evaluation answer different questions. A source might describe the same event in different words, leaving low overlap while still containing adequate evidence. Conversely, overlap can be high when sources repeatedly mention a topic in the same terms but provide little basis for arranging them into a lead. The dataset comparison makes the lexical challenge visible. It does not establish the fraction of the lead’s facts that human readers could verify from the sources.
For the writers, the paper reports perplexity per wordpiece. Perplexity reflects the probability assigned to the reference tokens given the context available to the writer. Lower values indicate that the reference text is more predictable under the system. The measure can B>score the whole reference even when a decoded candidate takes a different path. ROUGE-L F1 instead works on the text the system actually produces. It evaluates overlap through the longest sequence of matching words that preserves order, allowing gaps. The paper uses ROUGE-1.5.5 as its scoring implementation.
F1 combines the precision and recall views of the match using their harmonic mean. Recall rewards covering the reference and can benefit from longer output. Precision rewards keeping the generated text close to what matches and can favor brevity. The authors choose F1 because they let the writers decide when to stop. This is especially relevant for a lead that could reasonably be shorter or longer than the particular reference, provided it manages to convey the right material. The score remains tied to that one reference’s wording and order.
The experiments vary the extractor, the input corpus, the input length, and the writing architecture. The comparison between extractors and corpora uses an input budget of L=500 with T-ED, allowing the authors to observe selection and source effects with a fixed writer. They then use TF-IDF and the combined source corpus to compare writers over budgets ranging from 100 to 11,000. The configuration carried forward for the length comparisons therefore reflects choices made in the preceding controlled comparisons.
Extraction, source collections, and the writer
The authors first evaluate TF-IDF, TextRank, and SumBasic with no neural writer. They match the output lengths of TextRank and SumBasic to the reference length for this comparison. The extractors are roughly in line with each other on ROUGE-L F1. The strongest configuration combining an extractor with T-DMCA more than doubles the overlap score achieved by extraction alone, according to the paper’s discussion. The linguistic ratings also improve, especially for the organization of the lead. The generation stage can produce connections and transitions that would require a suitable passage to exist already if the output had to be copied.
In the fixed-budget comparison with T-ED, TF-IDF gives a substantial improvement over identity, and the extractor that sees the reference improves substantially over TF-IDF. Both comparisons matter. The former establishes that preparation of the sources influences the result even when the writer stays the same. The latter shows that the ranking used in the practical system leaves useful information farther down the collection or places less useful information ahead of it. The authors suggest learning a supervised relevance score as a future direction.
The combined corpus gives the best results in the fixed-budget comparison. Using cited documents alone or search documents alone both produces a noticeable decline. This supports the authors’ interpretation that the sources provide complementary material. Editorial references can lead directly to relevant pages, while search can supply coverage where references are sparse. At L=500, all the configurations have the same token budget for the writer, so the result also suggests that the system can benefit from choosing among a broader set of candidate passages before the cutoff.
How far the writers scale with input length
The attention-equipped LSTM performs poorly relative to the Transformer architectures on WikiSum. T-ED improves as its input grows toward a best range of about L=500-1000. At L=2000, the authors report that it is unable to learn in their setup. T-D continues to learn and improve through L=4000. Further extension of the plain decoder hits the memory limit of the machines used in the experiments, which have 16GB of GPU RAM on NVIDIA P100 hardware.
T-DMCA trains at L=11000 and continues to register gains with longer source inputs. The authors report that the modified attention lets them process sequences 3x in length over the plain decoder in practice. This is a result for their architecture and resources. It describes the useful range they reached and the boundary they encountered, giving the comparison a practical meaning beyond the relative scores of the systems.
Capacity also makes a difference once the input is long. In a comparison at L=11000, using 128 experts reduces the reported log-perplexity from 2.05 to 1.93. The plot below holds the source budget fixed. The paper describes this result as part of the combined-corpus experiments with TF-IDF extraction and does not identify a separate split in the prose reporting those values.
WikiSum log-perplexity for T-DMCA at L=11000 with TF-IDF and combined sources
Adding the mixture-of-experts layer improves prediction at the same source budget.
The numbers
| System or setting | log-perplexity |
|---|---|
| T-DMCA without an expert layer | 2.05 |
| T-DMCA with 128 experts (this paper) | 1.93 |
The authors’ best attempted configuration uses 256 experts at L=7500. They give its value as 1.90 and call that value perplexity in the prose, whereas the comparison at L=11000 is explicitly described as log-perplexity. The paper places these values in the same discussion of improvements, but the metric labels differ. The authors were unable to fit the 256-expert configuration at L=11000, so the study supplies no result for that combination of context and capacity.
What human readers saw
The authors run a DUC-style evaluation of linguistic quality on randomly selected test outputs. The comparisons cover the recurrent writer, direct TF-IDF extraction, and the best T-DMCA writer. A rater assigns a score on a 1–5 scale, with higher values indicating better quality. For each system the study samples 25 examples and averages each item’s scores across 3 raters from a pool of 7. The evaluation covers grammaticality, repetition, clarity about what names and expressions refer to, focus on the subject, and coherence of the overall organization.
T-DMCA performs significantly better on the dimensions assessed except for non-redundancy, where TF-IDF extraction does about as well. The paper interprets significance using a Welch Two Sample t-test at p=0.001. Disconnected structure is the particular weakness the authors identify in the extracted summaries. The recurrent writer repeats phrases more often in their inspection. T-DMCA does sometimes repeat phrases, and the authors note that this affects both redundancy and the impression of coherent development.
In a separate evaluation, raters compare pairs of generated leads next to the human-written reference. The authors choose pairs with large automatic score differences. They randomize which side each system appears on for each example and rater. In the reported experiments, 3 raters score 25 examples each, and results are summarized by the share of ratings favoring one system over the other. Human preferences generally move with the automatic metrics in these comparisons. The raters find it harder to tell the systems apart when comparing outputs at the stronger end of the range.
The law-firm example provides a more concrete account of what improved. The authors compare several generated leads for the same topic, all based on TF-IDF extraction over the combined corpus. They find the stronger T-DMCA output more fluent and concise while still covering where the firm was located, how and when it was formed, and its trajectory. The case helps explain what the metric gains can look like to a reader. An improved lead can convey a larger part of the relevant story while using fewer words than the reference example.
Generation beyond the lead
The full-article experiments take advantage of the same ability to train on long joined sequences. The paper describes a reference-conditioned T-DMCA setup trained with L=6000 source tokens and targets capped at 2192 article tokens. Longer examples are omitted in that setup. It also describes a title-only T-DMCA setup that generates articles up to 4000 tokens long. The appendix caption separately describes a reference-conditioned sample using 8192 document tokens. The caption and main experimental description give different source lengths, so the sample’s stated conditioning length should be kept distinct from the reported L=6000 training setup.
The outputs sometimes develop their subjects across plausible sections and maintain coherence over several paragraphs. The reference-conditioned samples show that a system can incorporate factual details into a longer article. The authors judge the full-article outputs weaker than their lead samples and real Wikipedia articles. They present this work as preliminary, with examples illustrating feasibility instead of a quantitative full-article comparison on the scale of the lead experiments.
What the ablations show
Relevance matters even when the writer sees the same amount of text
The clearest controlled comparison in the first stage fixes the writer and the amount of text it can receive. At L=500, the difference between identity and TF-IDF is the preparation of the source pool. Identity exposes the beginning of the material in its initial order. TF-IDF puts passages with stronger matches to the subject near the start. The performance gap shows that some of the gain attributed to the complete system comes from giving it a more useful prefix of the same length. This comparison separates relevance ranking from the opportunity to use more context.
The reference-informed extractor supplies a different diagnostic. A better result after ranking by target bigrams shows that there is value in reshuffling what the writer sees. A passage selected this way might provide a needed fact, phrase it similarly to the expected lead, or do both. The experiment does not reveal which explanation accounts for each improvement. It demonstrates that the writer benefits from a stronger cue about what belongs in the target and makes a case for trying to learn relevance from supervision. The reported extractor is itself deliberately given information that a deployed writer would be trying to predict.
The direct extraction experiment tests another dependency. It shows that TF-IDF can be a good way to prepare evidence even when the extracted text is a weak finished lead. A passage may be worth retaining because it helps the writer explain an event, in spite of being too long or poorly placed to serve as a sentence in an encyclopedia introduction. The more than doubled ROUGE-L F1 and the coherence ratings in the full system show what generation adds after that selection. The close scores among direct extraction methods give less evidence about how those methods would compare under every writer and source budget.
Source diversity helps under a fixed budget
The citation-only and search-only comparisons ask whether combining sources simply adds volume or actually gives the ranker more useful choices. Because the writer still receives a fixed amount of text, the improvement from the combined pool cannot be explained by the writer consuming a longer sequence in that comparison. It can choose from passages that would have been missing in either smaller pool. The results show an aggregate benefit for the combination. They do not trace particular lead statements back to a citation or search page or identify which subjects receive most of the benefit.
The eligibility rule also shapes the interpretation. By comparing corpora for the same articles, the authors can attribute the result more directly to the evidence presented. Every article in the comparison already clears the crawlable-citation requirement. A search-only score obtained in this experiment therefore describes what happens when citations are withheld from an article population that has them. The setup does not measure performance for all the topics that lack accessible references.
Context length and capacity both influence the outcome
The length comparison shows that the value of additional source material depends on the writer. The encoder–decoder Transformer reaches its useful range earlier. The plain decoder handles a longer source before the reported memory limit, and the modified decoder stretches the range further. Since the passage order comes from TF-IDF, increasing L generally exposes material that this ranker considers less relevant than the earlier paragraphs. Continued improvement indicates that the later material is still useful in aggregate. It does not settle whether a stronger extractor could surface the same evidence with a smaller prefix.
The T-D comparison changes the architecture and training objective together. Its stronger behavior for long sequences is evidence for the decoder-only formulation tested in the paper. The result leaves several possible contributors in play, including a smaller parameter count under matched hyper-parameters, common processing of the source and target, and next-token errors on the source part of the sequence. The authors suggest especially that the latter gives useful learning signals. Their comparison does not vary only that signal while holding the rest of the architecture fixed.
T-DMCA similarly combines local and compressed attention in one stack. The results demonstrate that the combination fits and learns at lengths the plain decoder could not reach on the authors’ machines. Local attention confines each detailed comparison to a block. Compressed global attention provides contact across blocks while reducing the number of key and value positions. The paper describes those roles, but it supplies no numerical comparison that removes either type of layer from the final stack and measures the resulting loss. The separate contribution of each is therefore an architectural explanation, with evidence for the combined design.
The mixture-of-experts comparison is narrower. The drop in log-perplexity with 128 experts at L=11000 shows that raising capacity helps even after the source count has been held fixed. The 256-expert configuration at L=7500 illustrates the practical allocation decision. A writer with more capacity and a shorter source may be competitive with a configuration that sees more tokens, but that pair of settings changes both factors. The memory limit prevents the authors from carrying the larger expert configuration to the longest budget in the study.
What the examples and the older benchmark add
In the law-firm example, several systems get their evidence from the same extraction method and source pool. Reading their outputs side by side shows how the higher-performing writer handles sentence flow, detail, and narrative order for one topic. The example is particularly helpful because a lead can fail while containing recognizable facts. It may introduce those facts abruptly, repeat a point, or give a detail too much prominence. The published comparison gives the reader a way to see these qualitative differences alongside automatic overlap.
The comparison with Sauper and Barzilay asks whether the broader system is competitive on topics studied previously. The authors identify WikiSum test articles about diseases and American actors and compare ROUGE-1 scores as closely as the available setups permit. The new approach has higher scores on average in this comparison but fares worse on the disease category. The authors suggest that the prevalence of actors and biographies may help the globally trained system, while category-specific templates may suit the disease articles. That is an explanation of the pattern, since the test does not control the training prevalence of individual topics or rerun both systems on shared inputs and targets.
The paper also reports that generated text sometimes renders names in another language. The authors notice cases they judge correct and inspect whether the strings could simply have been copied. They also encounter cases where the rendering is in the wrong language. This observation concerns behavior visible in individual outputs. There is no systematic translation evaluation, so it supplies an example of what the writer can learn from text exposure and illustrates how an apparently plausible generation can still make a language choice that does not fit.
Limitations
Limits the authors identify
The first major limit is the amount of source text that can be used. The authors introduce rough extraction because the raw collections exceed the memory available for direct end-to-end training. Even the longer-reaching decoder still operates within a budget, and the largest expert configuration cannot be combined with the longest source window tried. The reported limits reflect the architectures, settings, and hardware used in the study. The experiments provide evidence for longer usable inputs under those conditions, while leaving the behavior under other capacity or hardware choices open.
The authors also regard extraction quality as unfinished. The gap between TF-IDF and the reference-informed ranker gives them a reason to expect improvements from better selection. Their proposed supervised relevance predictor remains future work. As a result, the experiments do not compare widening the context with improving the ranker under an equally strong learned alternative. Those routes target related but distinct problems. More context admits evidence farther down the list. Better ranking can move useful material into a prefix the writer can already afford.
For the comparison with the older template system, the authors acknowledge different category coverage, different target scope, and unavailable matching inputs and outputs. They evaluate leads, while the older work reports scores for full articles. They also cannot establish equivalent clone filtering. The comparison can reveal a pattern across the two named subject categories, but the numbers cannot establish how the systems would perform on the same prediction task with identical evidence.
The authors describe full-article generation as preliminary and say that they did not focus on or tune that task. The reference-conditioned experiment excludes targets that exceed its stated limit. The examples show plausible sections and some source-based factual information, without a comprehensive evaluation of whether an entire generated article covers its subject adequately. The name-rendering observation has a similar boundary. It comes from manual inspection rather than a measured test of cross-language correctness.
Limits of what the measurements establish
The factual claims in the lead examples go further than their primary automatic metrics can independently establish. Perplexity evaluates how predictable the human-written text is. ROUGE rewards overlap with that text. Neither measure verifies that every generated claim is supported by a specific source passage. A text can share much of the right vocabulary while changing the relationship between entities, and it can state a supported fact using wording the reference happens to omit. The authors’ human quality dimensions add judgments about how the text reads. They do not constitute a claim-by-claim evidence audit.
The preference experiment also answers a bounded question. It compares outputs from systems selected to have sizable automatic-score gaps, and its reported human sample is small relative to the WikiSum test set. Its agreement with the automatic metrics is informative for those comparisons. The reported difficulty distinguishing stronger outputs suggests caution in treating small metric differences as evidence of perceptible improvements. The paper’s explanation that Wikipedia’s uniform style may help ROUGE is a hypothesis about why the measures agree here.
Source provenance remains partly dependent on the dataset construction. The use of citations brings in material chosen by editors of an existing article. Section-title search queries use clues from that article’s organization. Both choices help operationalize the summarization task with a relevant evidence pool. They also mean that the main lead experiments concern writing with an existing article’s sources and structure available to the collection procedure. Generating a lead for a new topic from a title and an independently gathered source pool would remove some of those cues and is a separate setting.
The clone rule reduces one prominent form of overlap while leaving limits that follow from its design. It can flag genuine shared wording if a search page and Wikipedia cover the same material in similar terms, and it can miss reproduced text that has been extensively rewritten. The filtering rule and the lower unigram coverage make it harder to solve WikiSum by finding a ready-made copy. They cannot establish that all retained passages are independent of Wikipedia or that every sample requires the same depth of synthesis.
Finally, the task is defined around English Wikipedia and a particular collection of eligible articles. Its lead style, citation practices, and accessible web sources all shape the inputs and targets. The broad subject coverage in that collection supports training a single system across topics. It supplies limited evidence about performance in other languages, on collections with different sourcing practices, or on topics for which little supporting text is available.
What came after
Longer sequences and multi-document inputs
Generating Long Sequences with Sparse Transformers takes up the long-sequence generation problem through sparse attention. The point of contact with WikiSum is the cost of allowing every position to interact with every other position. In the Wikipedia system, local blocks and compressed global attention control that cost inside a decoder asked to process evidence and output together. The later work’s stated focus is sequence generation with sparsity. It belongs to the same line of inquiry about what relationships an attention layer can omit while still supporting generation over long contexts.
Hierarchical Transformers for Multi-Document Summarization pursues the multi-document problem through architectural hierarchy. WikiSum uses a paragraph ranking to establish an input order and then processes the retained text as a sequence. The follow-on title identifies hierarchy as the organizing idea for a Transformer in this setting. The connection is to how a system represents material drawn from several documents after collection, a design question that remains important even when a writer can process a long prefix.
Multi-News carries large-scale multi-document summarization into a news dataset and pairs it with a hierarchical abstractive architecture. This is the closest continuation in the list on the dataset side. WikiSum brings many sources together around an encyclopedia lead, while Multi-News brings the multi-document setup to news. The application changes what belongs in the target, even though the need to select and combine evidence from several documents remains.
A Discourse-Aware Attention Model for Abstractive Summarization of Long Documents approaches long inputs through discourse-aware attention. Discourse concerns how parts of a text relate across sentences and larger units. The connection with WikiSum is the need to decide which pieces of a long input matter to a generated summary. WikiSum gives a large part of that decision to the paragraph ranker, and its decoder reads the resulting prefix. The cited work puts attention to discourse structure at the center of long-document summarization.
Efficient Attentions for Long Document Summarization addresses the intersection of the same two practical demands, attention efficiency and the ability to write a summary of lengthy material. WikiSum links them experimentally by comparing several budget limits for writers exposed to the same ranked source pool. The later title places efficient attention within long-document summarization itself. That relationship is more specific than a general interest in accelerating Transformers, since the usefulness of extra context has to be judged in the resulting summary.
External evidence and the quality of generated text
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks takes up the broader design of supplying external evidence before generation. In WikiSum that evidence is made available through citations and title-based searches, then filtered and ranked before the decoder writes. The later work’s stated scope is knowledge-intensive language tasks, a wider use of retrieval-augmented generation. The connection is the dependence of the generated answer on an earlier choice of evidence. A writer can only make direct use of retrieved material that reaches its input.
Bottom-Up Abstractive Summarization is another continuation of the question of how to combine selection and abstraction. WikiSum makes selection explicit before writing, using a limited portion of the source collection to condition its decoder. The bottom-up formulation identifies content selection as part of building an abstractive summary. The shared subject is the division of labor between finding what belongs in the output and deciding how to express it. The citation alone leaves open which parts of WikiSum’s paragraph ranking, training objective, or decoder design carry over.
On Faithfulness and Factuality in Abstractive Summarization pursues the evaluation question left open by WikiSum’s combination of overlap, predictability, and linguistic ratings. Faithfulness asks whether a summary’s claims are supported by what the system was given. Factuality asks whether the claims are true. WikiSum’s fluent leads and its inspected examples make the distinction consequential. The later work identifies those properties as subjects of evaluation in their own right. Its place in this citation history is alongside the architecture and dataset papers, because better access to source text and better evidence for the accuracy of generated statements are separate advances.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Summarization · 246 works
Cite
Cite as Peter J. Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser and Noam Shazeer. 2018. Generating Wikipedia by Summarizing Long Sequences. arXiv:1801.10198.
@misc{liu2018generating,
title = {{Generating Wikipedia by Summarizing Long Sequences}},
author = {Peter J. Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser and Noam Shazeer},
year = {2018},
doi = {10.48550/arxiv.1801.10198},
eprint = {1801.10198},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1801.10198}
}References
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. our card
- Sumit Chopra, Michael Auli, and Alexander M Rush. Abstractive sentence summarization with attentive recurrent neural networks. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 93–98, 2016. our card
- Hoa Trang Dang. Overview of duc 2005. In Proceedings of the document understanding conference, volume 2005, pp. 1–12, 2005. OpenAlex ↗ · Scholar ↗
- David Graff and Christopher Cieri. English gigaword 2003. Linguistic Data Consortium, Philadeplhia, 2003. OpenAlex ↗ · Scholar ↗
- Daniel Hewlett, Alexandre Lacoste, Llion Jones, Illia Polosukhin, Andrew Fandrianto, Jay Han, Matthew Kelcey, and David Berthelot. Wikireading: A novel large-scale language understanding task over wikipedia. arXiv preprint arXiv:1608.03542, 2016. our card
- Rémi Lebret, David Grangier, and Michael Auli. Neural text generation from structured data with application to the biography domain. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016, Austin, Texas, USA, November 1-4, 2016, pp. 1203–1213, 2016. URL http://aclweb.org/anthology/D/D16/D16-1128.pdf. our card
- Jens Lehmann, Robert Isele, Max Jakob, Anja Jentzsch, Dimitris Kontokostas, Pablo N Mendes, Sebastian Hellmann, Mohamed Morsey, Patrick Van Kleef, Sören Auer, et al. Dbpedia–a large-scale, multilingual knowledge base extracted from wikipedia. Semantic Web, 60 (2):0 167–195, 2015. our card
- Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out: Proceedings of the ACL-04 workshop, volume 8. Barcelona, Spain, 2004. our card
- Rada Mihalcea and Paul Tarau. Textrank: Bringing order into text. In Proceedings of the 2004 conference on empirical methods in natural language processing, 2004. OpenAlex ↗ · Scholar ↗
- Ramesh Nallapati, Bowen Zhou, Cicero dos Santos, Ça glar Gulçehre, and Bing Xiang. Abstractive text summarization using sequence-to-sequence rnns and beyond. CoNLL 2016, pp. 280, 2016. our card
- Ani Nenkova and Lucy Vanderwende. The impact of frequency on summarization. Microsoft Research, Redmond, Washington, Tech. Rep. MSR-TR-2005, 101, 2005. OpenAlex ↗ · Scholar ↗
- Lawrence Page, Sergey Brin, Rajeev Motwani, and Terry Winograd. The pagerank citation ranking: Bringing order to the web. Technical report, Stanford InfoLab, 1999. our card
- Romain Paulus, Caiming Xiong, and Richard Socher. A deep reinforced model for abstractive summarization. arXiv preprint arXiv:1705.04304, 2017. our card
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100,000+ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250, 2016. our card
- Juan Ramos et al. Using tf-idf to determine word relevance in document queries. In Proceedings of the first instructional conference on machine learning, volume 242, pp. 133–142, 2003. OpenAlex ↗ · Scholar ↗
- Alexander M. Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, EMNLP 2015, Lisbon, Portugal, September 17-21, 2015, pp. 379–389, 2015. URL http://aclweb.org/anthology/D/D15/D15-1044.pdf. our card
- Christina Sauper and Regina Barzilay. Automatically generating wikipedia articles: A structure-aware approach. In Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP: Volume 1 - Volume 1, ACL '09, pp. 208–216, Stroudsburg, PA, USA, 2009. Association for Computational Linguistics. ISBN 978-1-932432-45-9. URL http://dl.acm.org/citation.cfm?id=1687878.1687909. our card
- Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017. our card
- Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/liu-2018-generating-wikipedia-summarizing-long-sequences/