Automatic Content-Based Categorization of Wikipedia Articles

Zeno Gantner, Lars Schmidt-Thieme

Abstract

Wikipedia’s massive category hierarchy creates a significant barrier for contributors, leading to incomplete or missing labels. This study investigates the feasibility of automated category suggestions using content-based features and linear Support Vector Machines. By evaluating different thresholding strategies—Rank Cut (RCut) and Score Cut (SCut)—on subsets of the German Wikipedia, the authors show that automated systems can significantly outperform simple baselines, especially when optimized for macro-averaged performance to capture niche categories.

What Problem Does This Paper Address?

Wikipedia’s category system is a double-edged sword: a goldmine for semantic resources but incredibly difficult for human authors to navigate due to its tens of thousands of categories. This leads to the "new article problem" (articles with no categories) and the "missing categories problem" (articles with incomplete labels). Automating this process involves a massive multi-label classification problem with highly imbalanced class distributions and significant computational hurdles.

Methods

The authors employ a content-based approach, representing articles using a "bag-of-words" model. To manage the multi-label nature of the task, the problem is decomposed into individual binary classification tasks for each category using Linear Support Vector Machines (SVMs).

The core contribution lies in the thresholding strategies used to suggest categories:

  • RCut (Rank Cut): Sorts labels by prediction score and selects the top t labels.
  • SCut (Score Cut): Optimizes an individual threshold for each category during training. A label is suggested only if its prediction score exceeds its specific threshold.

Datasets

Experiments were conducted on two subsets of the German Wikipedia:

  • Philosoph (Philosopher): 2,445 instances across 55 category labels.
  • Eishockey (Ice Hockey): 5,037 instances across 159 category labels.

Key Insights and Results

The authors argue for a "virtuous circle" where human-generated data trains machine learning models, which then help humans maintain that data. A key finding is the importance of Macro-averaged F1 scores; suggesting niche categories is often more helpful to editors than broad ones.

Performance comparison on the Eishockey dataset showing micro-averaged (left) and macro-averaged (right) F1 scores across different thresholding strategies.

As shown in the experimental results, SCut is significantly better at handling the "long tail" of infrequent categories. On the Eishockey dataset, SCut achieved a Macro-$F_1$ of 0.554, vastly exceeding the baseline. Similar trends were observed in the Philosoph dataset, where both RCut (at its optimal rank) and SCut significantly outperformed the most-frequent baseline.

Performance comparison on the Philosoph dataset showing micro-averaged (left) and macro-averaged (right) F1 scores.

The system scales linearly with the number of categories, making it potentially viable for the full-scale Wikipedia.

Limitations and Future Work

The study focused on content-based features, but Wikipedia’s link structure offers additional potential. Future work will explore hybrid models and address label dependencies, such as hierarchical relationships between categories. Scaling to the English Wikipedia will also require faster training algorithms.

Summary updated

BibTeX
@inproceedings{gantner2009automatic,
  author = {Zeno Gantner and Lars Schmidt-Thieme},
  title = {{Automatic Content-Based Categorization of Wikipedia Articles}},
  booktitle = {PWNLP@IJCNLP},
  year = {2009},
}
Figure