Manipulating Large Corpora for Text Classification

Fumiyo Fukumoto, Yoshimi SuzukiEMNLP 2002

Abstract

In the early 2000s, the explosion of online documentation presented a significant challenge for Natural Language Processing: balancing the computational efficiency of simple models with the high accuracy of complex ones. This paper proposes a hybrid classification strategy that leverages Naive Bayes (NB) to handle "easy" documents while reserving computationally expensive Support Vector Machines (SVMs) for "hard" cases. By training SVMs on a targeted subset of difficult data, the authors achieved state-of-the-art accuracy on massive datasets with a fraction of the traditional computational cost.

Introduction

By 2002, researchers faced a wall in text classification. Support Vector Machines (SVMs) were recognized for superior performance in high-dimensional spaces, but their training complexity—ranging from $O(l^2)$ to $O(l^3)$—made them practically unusable for corpora containing hundreds of thousands of documents. Conversely, Naive Bayes (NB) offered incredible speed due to its word-independence assumption but struggled with overlapping categories. The central challenge addressed here is maintaining SVM-level accuracy on large-scale corpora without prohibitive training times.

The NB-SVM Hybrid Approach

The proposed solution is a two-stage "data manipulation" approach integrated with a hierarchical category structure. The core philosophy is the "Easy Case" hypothesis: the majority of documents are simple enough for a word-count model like NB to solve, and using an SVM on these cases is a waste of resources.

  1. Hierarchical Filtering: The system utilizes a category tree to greedily narrow down a document's classification at each node.
  2. Targeted Training: The authors use 10-fold cross-validation on the training set with Naive Bayes to identify documents it cannot classify correctly. Only these "incorrect" documents (the "hard" cases) are used to train the SVM. This reduced the SVM training set in their experiments from over 150,000 documents to approximately 23,000.
  3. Inference Pipeline: New documents are first processed by NB. If the classifier's confidence exceeds a specific threshold, the result is accepted. If uncertain, the document is handed off to the "expert" SVM.
The two-stage hybrid classification process: (1) Extracting difficult training documents using Naive Bayes, and (2) Classifying test documents using the NB-SVM pipeline.

Experimental Setup and Datasets

The study utilized the Reuters 1996 Corpus, a massive collection of 279,303 documents organized into a four-level hierarchy of 126 categories. After cleaning, the training set consisted of 150,939 documents and a test set of 120,242 documents, featuring a vocabulary of over 183,000 unique words. This scale was significantly larger than the then-standard Reuters-21578 dataset.

Results and Discussion

The hybrid "Manipulating Data" approach proved both accurate and efficient. It achieved a Micro-F1 score of 0.704, significantly outperforming standalone Naive Bayes (0.519). Notably, a baseline SVM could not even finish training on the largest categories within a 10-day window on contemporary hardware, highlighting the necessity of the hybrid approach.

Comparison of performance metrics (Micro-F1) between ensemble methods and the proposed data manipulation approach across hierarchical and non-hierarchical structures.

As shown in the results table, the system achieved performance parity with complex ensemble methods (like Bagging and Boosting) but required significantly less training time. Furthermore, incorporating the category hierarchy led to a 10.8% reduction in error rates compared to flat classification.

Conclusion

This work demonstrates that you don't necessarily need more data to improve an SVM; you need better-targeted data. By using SVMs as specialized error-correctors for Naive Bayes, the authors created a system that scales to large corpora while maintaining high precision. While modern hardware has advanced, the principle of filtering "easy" data remains a foundational concept in cascaded model architectures and efficient machine learning pipelines.

Summary updated

BibTeX
@inproceedings{fukumoto2002manipulating,
  author = {Fumiyo Fukumoto and Yoshimi Suzuki},
  title = {{Manipulating Large Corpora for Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2002},
  doi = {10.3115/1118693.1118719},
}
Figure