Feature Generation for Text Categorization Using World Knowledge

Evgeniy Gabrilovich, Shaul MarkovitchIJCAI 2005

Abstract

Traditional text categorization relies heavily on the "Bag of Words" (BOW) representation, which often fails to capture the semantic nuances and contextual relationships inherent in natural language. This paper introduces a framework for Feature Generation (FG) that utilizes large-scale, human-curated ontologies—specifically the Open Directory Project (ODP)—to enrich document features with "world knowledge." By mapping document snippets to a hierarchy of millions of concepts, the system enables classifiers to reason about entities and topics not explicitly named in the text. Evaluation on standard benchmarks like Reuters-21578 and RCV1 shows substantial improvements in categorization accuracy, particularly for categories with limited training examples, effectively breaking the performance plateau of knowledge-blind induction algorithms.

Introduction

For decades, the field of text categorization has been dominated by the Bag of Words (BOW) model. In this paradigm, documents are treated as unordered collections of words, and classification is based on word frequencies. While computationally efficient and robust, BOW is fundamentally "knowledge-blind." It suffers from two primary linguistic challenges: synonymy (different words sharing the same meaning) and polysemy (the same word having multiple meanings depending on context).

Furthermore, BOW models cannot infer facts that are not explicitly stated. For instance, a news article discussing "Teck Corporation" might be highly relevant to the category "copper," but without the specific keyword "copper," a BOW classifier may fail. Humans bridge these gaps using vast stores of world knowledge. This research aims to equip machine learning models with a similar capability by automatically generating features from external knowledge bases.

Methodology

The proposed framework generates new features by leveraging the Open Directory Project (ODP), a massive, human-edited hierarchy of web content. The process involves several key stages:

  1. Knowledge Base Construction: The authors crawled approximately 4 million URLs categorized within the ODP's 600,000+ nodes, creating a 70GB corpus that defines the semantic scope of each category.
  2. Feature Generation (FG): A "meta-classifier" analyzes input documents at multiple resolutions—words, sentences, and paragraphs. It maps these snippets onto relevant ODP concepts (e.g., Business/Mining_and_Drilling).
  3. Multi-Resolution Analysis: By examining varying context window sizes, the system performs implicit word-sense disambiguation. The meaning of a word is refined by its neighbors, ensuring that "Apple" is correctly mapped to "Computers" rather than "Fruit" when surrounded by technical terms.
  4. Feature Selection: To manage the high dimensionality of the resulting feature space, Information Gain is used to select the most predictive concepts.
The feature generation process: mapping document text to ODP concepts like 'Business/Mining_and_Drilling' to create enriched feature vectors.

Experimental Evaluation

The effectiveness of the FG approach was tested on four diverse datasets:

  • Reuters-21578: A standard news categorization benchmark.
  • Reuters Corpus Volume I (RCV1): A large-scale dataset containing over 800,000 documents.
  • 20 Newsgroups (20NG): A collection of Usenet posts across 20 topics.
  • Movie Reviews: A sentiment analysis dataset used to test if world knowledge aids in identifying tone.

Results and Analysis

The experimental results demonstrate that augmenting BOW with generated features (BOW+GEN) consistently outperforms the baseline across all datasets. The most significant improvements were observed in the RCV1 dataset, particularly in macro-averaged Break-Even Point (BEP), which measures performance across categories regardless of their size.

Comparison of performance (BEP) between the BOW baseline and the Feature Generation (FG) approach across multiple datasets.

As shown in the table above, the FG approach yielded a remarkable 25.4% improvement in macro BEP for the RCV1 Industry-10A subset. Even in sentiment analysis (Movie Reviews), where the task is more subjective, the system achieved a 3.6% boost. These gains suggest that world knowledge provides the necessary context to resolve ambiguities that stymie traditional induction algorithms like SVMs.

Discussion and Future Work

The success of this approach highlights that the performance of text classifiers was previously limited not by the induction algorithms themselves, but by the poverty of the information provided to them. By providing a "knowledge-rich" representation, the authors have effectively broken a long-standing performance plateau.

However, the approach is computationally intensive, requiring significant engineering effort to crawl and index massive amounts of web data. Future work could explore more lightweight knowledge sources, such as Wikipedia or domain-specific ontologies like MeSH for medical text. Additionally, the principles of knowledge-based feature generation could be extended beyond categorization to fields like information retrieval and semantic search.

Conclusion

This paper demonstrates that integrating large-scale human knowledge into the text categorization process significantly enhances machine learning performance. By moving beyond the "Bag of Words" and allowing models to "understand" the broader context of the information they process, we can build more accurate and robust systems for managing the ever-growing sea of digital text.

Summary updated

BibTeX
@inproceedings{gabrilovich2005feature,
  author = {Evgeniy Gabrilovich and Shaul Markovitch},
  title = {{Feature Generation for Text Categorization Using World Knowledge}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure