Text Classification based on the Latent Topics of Important Sentences extracted by the PageRank Algorithm

Yukari Ogura, Ichiro KobayashiStudent Research Workshop @ ACL 2013

Introduction

Text classification performance is often hindered by "noise"—sentences or sections within a document that do not contribute significantly to its primary theme. Traditional methods typically rely on tf-idf (term frequency-inverse document frequency) to identify important words. However, tf-idf focuses solely on raw frequency and fails to account for the structural relationships between words within the document's context.

This paper proposes a document refinement pipeline that identifies "central" words using the PageRank algorithm, filters documents to retain only the most informative sentences, and utilizes latent topic modeling for improved classification accuracy.

Methodology

The proposed method follows a three-step process: word extraction, document refinement, and latent topic clustering.

1. Important Word Extraction via PageRank

Rather than relying on frequency, the authors treat each document as a graph where words are nodes. An undirected edge is established between any two words that co-occur within a three-sentence window. The PageRank algorithm is then applied to this graph to determine node centrality. Words with high centrality—those that co-occur frequently with many other words—are designated as "important."

Word co-occurrence graph used to calculate word centrality via PageRank.

2. Document Refinement

The original document is "recompiled" by retaining only the sentences that contain at least one of the top three PageRank-scoring words. This pruning process creates a condensed version of the document focused strictly on its core topics, effectively removing filler text that might distract a classification model.

3. Latent Topic Clustering

Following refinement, Latent Dirichlet Allocation (LDA) is used to estimate the topic distribution of the condensed documents. These distributions are then clustered using the k-means algorithm. To measure similarity between these probability distributions, the authors utilize Jensen-Shannon (JS) divergence, which is theoretically more appropriate for comparing distributions than standard cosine similarity.

Experimental Results

The study utilized the Reuters-21578 corpus, specifically focusing on 792 documents with more than five sentences across the top 10 categories (e.g., earn, acq, grain). The proposed PageRank-based refinement was compared against a baseline (no refinement) and traditional tf-idf refinement.

Performance comparison showing that PageRank refinement with Jensen-Shannon divergence achieves the highest accuracy and F-value.

As shown in the results, the PageRank-based method with JS divergence achieved an accuracy of 0.567 and an F-value of 0.485, outperforming the baseline (0.518 accuracy) and the tf-idf refinement approach (0.550 accuracy). The experiments also confirmed that JS divergence consistently outperformed cosine similarity across all refinement methods.

Discussion and Future Work

The findings suggest that a word's structural importance (centrality) is a more effective indicator of its thematic significance than its raw frequency. By reducing documents to their most salient parts, LDA models can more easily identify underlying latent topics.

However, the authors note limitations regarding document length; very short texts (like social media snippets) may not provide enough context for a robust co-occurrence graph. Future research will explore more sophisticated sentence selection logic and evaluate the interaction of this refinement technique with other supervised classification algorithms.

Summary updated

BibTeX
@inproceedings{ogura2013text,
  author = {Yukari Ogura and Ichiro Kobayashi},
  title = {{Text Classification based on the Latent Topics of Important Sentences extracted by the PageRank Algorithm}},
  booktitle = {Student Research Workshop @ ACL},
  year = {2013},
}
Figure