NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph-based Ranking Algorithms for Sentence Extraction, Applied to Text Summarization

Rada Mihalcea

Abstract

Automated text summarization has traditionally relied on supervised learning models that require extensive labeled datasets, limiting their portability across languages and domains. This paper introduces TextRank, a fully unsupervised graph-based ranking model for sentence extraction. By representing sentences as vertices in a weighted graph and defining edges based on content overlap, the framework leverages algorithms like PageRank to determine sentence importance. Experimental results on the DUC 2002 dataset demonstrate that TextRank achieves competitive performance, outperforming several state-of-the-art supervised systems without requiring prior training.

Introduction

The challenge of extractive summarization lies in identifying the most "central" sentences within a document. While supervised models have dominated the field, their dependency on domain-specific training data is a significant bottleneck. This research proposes a shift toward global, graph-based heuristics. Instead of relying on local features like sentence position or keyword frequency, TextRank treats a document as a network of interconnected ideas, where the importance of a sentence is determined recursively by its relationship to all other sentences in the text.

Methodology

The TextRank framework adapts classic web-ranking algorithms—specifically PageRank and Kleinberg’s HITS—to the domain of natural language processing.

Graph Construction and Similarity

In this model, each sentence in a document is represented as a vertex. An edge is established between two sentences if there is a "similarity" between them, defined by the overlap of their content. The similarity score is calculated as the number of common tokens divided by the sum of the logarithms of the lengths of the two sentences. This normalization prevents long sentences from gaining an unfair advantage simply by containing more words.

Weighted Ranking

Unlike the binary links of the early World Wide Web, text-based graphs are inherently weighted. The authors modified the standard ranking equations to incorporate these weights, ensuring that strong content overlaps carry more "voting power" in determining a sentence's rank.

Figure 1: A sample graph representing sentence similarities within a document. Nodes correspond to sentences, and edge weights reflect content overlap.

Graph Directionality

The researchers explored three distinct graph configurations to understand how information flow affects ranking:

  1. Undirected: Connections are bidirectional.
  2. Directed Forward: Sentences point to those that follow them.
  3. Directed Backward: Sentences point to those that preceded them.

Experimental Setup

The model was evaluated using the DUC 2002 (Document Understanding Conference) dataset, comprising 567 news articles. The task involved generating a 100-word summary for each article. Performance was measured using the ROUGE metric, which calculates the overlap between machine-generated and human-written reference summaries.

Results and Discussion

The experimental results highlight the effectiveness of the graph-based approach. TextRank achieved a peak ROUGE score of 0.5023, surpassing the top-performing supervised system at the DUC 2002 competition (0.5011) and significantly exceeding the standard "lead" baseline of 0.4799.

Table 1: Comparison of ROUGE scores across different ranking algorithms and graph directionalities.

As shown in Table 1, the directionality of the graph plays a crucial role. The "Directed Backward" and "Undirected" models consistently outperformed the "Directed Forward" model. This suggests that in news writing, later sentences often provide evidence or elaboration for the foundational context established earlier, effectively "recommending" the earlier sentences as more central to the narrative.

Key Insights

  • The Recommendation Analogy: Sentence similarity acts as a recommendation system. A high-overlap edge between Sentence A and Sentence B implies that Sentence A "votes" for the importance of Sentence B.
  • Global Context: Graph algorithms capture recursive importance. A sentence is deemed important not just because it has many connections, but because it is connected to other highly-ranked sentences.
  • Language Independence: Because the model relies on token overlap rather than deep linguistic parsing or domain-specific rules, it is highly portable across different languages and genres.

Conclusion and Future Work

TextRank demonstrates that unsupervised, graph-based methods can match or exceed the performance of supervised summarization systems. However, the authors note that the current model does not explicitly handle redundancy—a critical issue for multi-document summarization. Future research may involve integrating diversity-promoting techniques to ensure summaries are both informative and non-repetitive. Additionally, exploring syntactic filters (e.g., focusing only on nouns and verbs) could further refine the similarity weights.

Summary updated

BibTeX
@inproceedings{mihalcea2004graph,
  author = {Rada Mihalcea},
  title = {{Graph-based Ranking Algorithms for Sentence Extraction, Applied to Text Summarization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2004},
}
Figure