WikiHow: A Large Scale Text Summarization Dataset

Mahnaz Koupaee, William Yang Wang

Introduction

Summarization as the process of generating a shorter version of a piece of text while preserving important context information is one of the most challenging NLP tasks. Sequence-to-sequence neural networks have recently obtained significant performance improvements on summarization Rush et al. (2015); Chopra et al. (2016). However, the existence of large-scale datasets is the key to success of these models. Moreover, the length of the articles and the diversity in their styles can create more complications.

Almost all existing summarization datasets such as DUC Harman and Over (2004), Gigaword Napoles et al. (2012), New York Times Sandhaus (2008) and CNN/Daily Mail Nallapati et al. (2016) consist of news articles. The news articles have their own specific styles and therefore the systems trained on only news may not be generalized well. On the other hand, the existing datasets may not be large enough (DUC) to train a sequence-to-sequence model, the summaries may be limited to only headlines (Gigaword), they may be more useful as an extractive summarization dataset (New York Times) and their abstraction level might be limited (CNN/Daily mail).

To overcome the issues of the existing datasets, we present a new large-scale dataset called WikiHow using the online WikiHowhttp://www.wikihow.com/ knowledge base. It contains articles about various topics written in different styles making them different form existing news datasets. Each article consists of multiple paragraphs and each paragraph starts with a sentence summarizing it. By merging the paragraphs to form the article and the paragraph outlines to form the summary, the resulting version of the dataset contains more than 200,000 long-sequence pairs. We then present two features to show how abstractive our dataset is. Finally, we analyze the performance of some of the existing extractive and abstractive systems on WikiHow as benchmarks for further studies. The contribution of this work is three-fold:

We introduce a large-scale, diverse dataset with various writing styles, convenient for long-sequence text summarization.

We introduce level of abstractedness and compression ratio metrics to show how abstractive the new dataset is.

We evaluate the performance of the existing systems on WikiHow to create benchmarks and understand the challenges better.

Existing Datasets

There are several datasets used to evaluate the summarization systems. We briefly describe the properties of these datasets as follows.

DUC: The Document Understanding Conference dataset Harman and Over (2004) contains 500 news articles and their summaries capped at 75 bytes. The summaries are written by human authors and there exist more than one summary per article which is its major advantage over other existing datasets. The DUC dataset cannot be used for training models with large number of parameters and therefore is used along with other datasets Rush et al. (2015); Nallapati et al. (2017).

Gigaword: Another collection of news articles used for summarization is Gigaword Napoles et al. (2012). The original articles in the dataset do not have summaries paired with them. However, some prior work Rush et al. (2015); Chopra et al. (2016) used a subset of this dataset and constructed pairs of summaries by using the first line of the article and its headline, making the dataset suitable for short text summarization tasks.

New York Times: The New York Times (NYT) dataset Sandhaus (2008) is a large collection of articles published between 1996 and 2007. While this dataset has been mainly used for extractive systems Hong and Nenkova (2014); Durrett et al. (2016), Paulus et al. (2017) are the first to evaluate their abstractive system using NYT.

CNN/Daily Mail: This dataset mainly used in recent summarization papers Nallapati et al. (2016); See et al. (2017); Nallapati et al. (2017) consists of online CNN and Daily Mail news articles and was originally developed for question/answering systems. The highlights associated with each article are concatenated to form the summary. Two versions of this dataset depending on the preprocessing exist. Nallapati et al. (2017) has used the entity anonymization to create the anonymized version of the dataset while See et al. (2017) replaced the anonymized entities with their actual values and create the non-anonymized version.

NEWSROOM: This corpus Grusky et al. (2018) is the most recent large-scale dataset introduced for text summarization. It consists of diverse summaries combining abstractive and extractive strategies yet it is another news dataset and the average length of summaries are limited to 26.726.7.

WikiHow Dataset

The existing summarization datasets, consist of news articles. These articles are written by journalists and follow the journalistic style. The journalists usually follow the Inverted Pyramid style Po¨ ttker (2003) (depicted in Figure 1) to prioritize and structure a text by starting with mentioning the most important, interesting or attention-grabbing elements of a story in the opening paragraphs and later adding details and any background information. This writing style might be the cause why lead-3 baselines (where the first three sentences are selected to form the summary) usually score higher compared to the existing summarization systems. We introduce a new dataset called WikiHow, obtained from WikiHow data dump. This dataset contains articles written by ordinary people, not journalists, describing the steps of doing a task throughout the text. Therefore, the Inverted Pyramid does not apply to it as all parts of the text can be of similar importance.

The WikiHow knowledge base contains online articles describing a procedural task about various topics (from arts and entertainment to computers and electronics) with multiple methods or steps and new articles are added to it regularly. Each article consists of a title starting with “How to” and a short description of the article. There are two types of articles: the first type of articles describe single-method tasks in different steps, while the second type of articles represent multiple steps of different methods for a task. Each step description starts with a bold line summarizing that step and is followed by a more detailed explanation. A truncated example of a WikiHow article and how the data pairs are constructed is shown in Figure 2.

2 Data Extraction and Dataset Construction

We made use of the python Scrapy https://scrapy.org/ library to write a crawler to get the data from the WikiHow website. The articles classified into 2020 different categories, cover a wide range of topics. Our crawler was able to obtain 142,783142,783 unique articles (some containing more than one method) at the time of crawling (new articles are added regularly). To prepare the data for the summarization task, each method (if any) described in the article is considered as a separate article. To generate the reference summaries, bold lines representing the summary of the steps are extracted and concatenated. The remaining parts of the steps (the detailed descriptions) are also concatenated to form the source article. After this step, 230,843230,843 articles and reference summaries are generated. There are some articles with only the bold lines i.e. there is no more explanation for the steps, so they cannot be used for the summarization task. To filter out these articles, we used a size threshold so that pairs with summaries longer than the article size will be removed. The final dataset is made of 204,004204,004 articles and their summaries. The statistics of the dataset are shown in Table 1. The dataset is released to the publichttps://github.com/mahnazkoupaee/WikiHow-Dataset.

WikiHow Properties

The large scale of the WikiHow dataset by having more than 230,000230,000 pairs, and its average article and summary lengths makes it a better choice compared to DUC and Gigaword corpus. We also define two metrics to represent the abstraction level of WikiHow by comparing it with CNN/Daily mail known as one of the most abstractive and common datasets in recent summarization papers Nallapati et al. (2016, 2017); See et al. (2017); Paulus et al. (2017).

Abstractedness of the dataset is measured by calculating the unique n-grams in the reference summary which are not in the article. The comparison is shown in Figure 3. Except for common unigrams, bi-grams and trigrams between the articles, and the summaries, no other common n-grams exist in the WikiHow pairs. The higher level of abstractedness creates new challenges for the summarization systems as they have to be more creative in generating more novel summaries.

2 Compression Ratio

We define compression ratio to characterize the summarization. We first calculate the average length of sentences for both the articles and the summaries. The compression ratio is then defined as the ratio between the average length of sentences and the average length of summaries. The higher the compression ratio, the more difficult the summarization task, as it needs to capture higher levels of abstraction and semantics. Table 3 shows the results for WikiHow and CNN/Daily Mail. The higher compression ratio of WikiHow shows the need for higher levels of abstraction.

Experiments

We evaluate the performance of the WikiHow dataset using existing extractive and abstractive baselines. The systems used and the results generated for WikiHow and CNN/Daily mail are described in the following sections.

TextRank Extractive system: An extractive summarization system Mihalcea and Tarau (2004); Barrios et al. (2016) using a graph-based ranking method to select sentences from the article and form the summary.

Sequence-to-sequence model with attention: A baseline system applied by Chopra et al. (2016); Nallapati et al. (2016) to abstractive summarization task to generate summaries using the predefined vocabulary. This baseline is not able to handle Out of Vocabulary words (OOVs).

Pointer-generator abstractive system: A pointer-generator mechanism See et al. (2017) allowing the model to freely switch between copying a word from the input sequence or generating a word form the predefined vocabulary.

Pointer-generator with coverage abstractive system: The pointer-generator baseline with added coverage loss See et al. (2017) to reduce the repetition in the final generated summary.

Lead-3 baseline: A baseline selecting the first three sentences of the article to form the summary. This baseline cannot be directly used for the WikiHow dataset as the first 33 sentences of each article only describe a small portion of the whole article. We created the Lead-3 baseline by extracting the first sentence of each paragraph and concatenated them to create the summary.

2 Results

To study the performance of the evaluated systems, we used the Pyrouge packagepypi.python.org/pypi/pyrouge/0.1.3 to report the F1 score for ROUGE-1, ROUGE-2 and ROUGE-L Lin (2004) and the METEOR Banerjee and Lavie (2005)www.cs.cmu.edu/~alavie/METEOR both based on the exact matches and on inclusion of stem, paraphrasing and synonyms (s/p/s) to evaluate the methods . Table 2 represents the results of multiple baselines on both the CNN/Daily Mail (the well-known, most common abstractive summarization dataset) and also the proposed WikiHow dataset. As it can be seen, the summarization systems perform a lot better on CNN/Daily mail compared to the WikiHow dataset with lead-3 outperforming other baselines due to the news inverted pyramid writing style described earlier. On the other hand, the poor performance of lead-3 on WikiHow shows the different writing styles in its articles. Moreover, all baselines perform about 1010 ROUGE scores better on the CNN/Daily mail compared to the WikiHow. This difference suggests new features and aspects inherent in the new dataset which can be used to further improve the summarization systems.

Conclusion

We present WikiHow, a new large-scale summarization dataset consisting of diverse articles form WikiHow knowledge base. The WikiHow features discussed in the paper can create new challenges to the summarization systems. We hope that the new dataset can attract researchers attention as a choice to evaluate their systems.

References