Generating Wikipedia by Summarizing Long Sequences

Peter J. Liu*, Mohammad Saleh*, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, Noam Shazeer

This 2018 paper from Google Brain represents a pivotal moment in the evolution of large language models (LLMs). Before the ubiquity of GPT-style architectures, this research demonstrated that generating long-form, coherent text—like a Wikipedia article—is best handled not as a simple translation task, but as a massive multi-document summarization problem.

The Challenge of Multi-Document Summarization

Most neural text summarization at the time focused on "single-document" tasks, such as turning the first sentence of a news article into a headline. These tasks involve relatively short inputs and outputs. However, real-world knowledge synthesis requires "multi-document" summarization: distilling information from dozens of disparate sources into a structured, multi-paragraph narrative.

The primary technical hurdle for this task was sequence length. Standard encoder-decoder architectures (like the original Transformer) struggled with very long sequences due to the quadratic memory cost of self-attention. Reading 10,000 words of source material to write a 500-word article would simply cause standard models to run out of memory.

A Two-Stage Methodology

To overcome these limitations, the researchers proposed a two-stage framework—extractive followed by abstractive—to generate English Wikipedia articles from web search results and citations.

1. The Extractive Stage

Because it is computationally infeasible to feed thousands of source documents into a neural network at once, the authors used traditional Information Retrieval (IR) techniques, specifically $tf-idf$, to rank and select the most relevant paragraphs from the source material. This drastically reduced the input size while preserving the most salient facts.

2. The Abstractive Stage

This stage contains the paper's core architectural innovations. Instead of using a standard encoder-decoder, the team utilized a Transformer Decoder (T-D).

  • Decoder-Only Architecture: They treated the task as a pure language modeling problem, concatenating the input (source text) and target (Wikipedia article) into one long sequence. This halved the parameter count and reduced redundancy, proving that the "encoder-decoder" split wasn't strictly necessary for transduction tasks.
  • Memory-Compressed Attention (T-DMCA): To handle sequences up to 11,000 tokens, they modified the attention mechanism. They combined Local Attention (dividing the sequence into manageable blocks) with Memory-Compressed Attention (using strided convolutions to reduce the number of keys and values).
  • Mixture of Experts (MoE): They integrated MoE layers to increase the model's capacity without a proportional increase in computational cost.
Comparison of standard Decoder Self-Attention, Memory-compressed Attention, and Local Attention.

The WikiSum Dataset

To train this architecture, the authors introduced WikiSum, a massive new dataset tailored for multi-document summarization.

  • Target: The text of English Wikipedia articles.
  • Input: A combination of the article's cited references and the top 10 Google search results for the article's title.
  • Scale: The dataset contains roughly 1.8 million examples, featuring input sequences that are orders of magnitude larger than previous benchmarks like Gigaword or CNN/DailyMail.

Key Insights and Results

The T-DMCA model successfully generated coherent multi-paragraph text and even entire articles, maintaining factual consistency better than previous methods. In DUC-style human evaluations, the model was rated significantly higher than baselines in focus, grammar, and coherence.

Quantitatively, the T-DMCA model with 256 experts achieved a log-perplexity of 1.90 and a ROUGE-L score of 38.8, significantly outperforming standard Seq2Seq models (which managed only 12.7) and traditional extractive baselines.

ROUGE-L F1 scores comparing baseline extractive models against the proposed T-DMCA model.

The Extraction Bottleneck

One of the most fascinating findings was the impact of the extractive stage. By testing a "cheating" extractor—which used the ground truth Wikipedia article to perfectly pick the best source paragraphs—the authors observed a massive jump in performance (ROUGE-L soared from 34.2 to 59.3). This proved that the quality of the final generated summary is heavily bottlenecked by the initial "search" phase.

Emergent Capabilities

Interestingly, the model learned to translate names from English into other languages (e.g., Hindi or Ukrainian) even though it wasn't explicitly trained for translation. This occurred simply because those translations naturally appeared in the retrieved source documents, hinting at the emergent capabilities of large-scale language modeling.

Limitations and Future Work

While groundbreaking, the paper noted several limitations:

  • Reliance on $tf-idf$: The biggest limitation is the reliance on basic term frequency for the extractive stage. The authors suggested that a neural, supervised relevance model could significantly improve the quality of the input text.
  • Repetition: While much better than older RNNs, the model still occasionally suffered from phrase repetition, a common "hallucination" in early Transformer models.
  • Full Article Structure: While the paper showed that generating a Wikipedia "lead section" is quite strong, generating a full, structured article with multiple coherent sub-headings remained a preliminary result and a target for future research.

Summary updated

BibTeX
@inproceedings{liu2018generating,
  author = {Peter J. Liu* and Mohammad Saleh* and Etienne Pot and Ben Goodrich and Ryan Sepassi and Lukasz Kaiser and Noam Shazeer},
  title = {{Generating Wikipedia by Summarizing Long Sequences}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=Hyg0vbWC-},
}
Figure