An Optimized NBC Approach in Text Classification

Yao Zhao, Zhimin ChenPhysics 2012 · DOI

TL;DR

This paper tackles the challenge of fine-grained text classification in large, hierarchical datasets. They introduce a novel "Deep Naive Bayesian" (DNB) approach that optimizes classification by focusing on relevant categories and employing a multi-layer language model, significantly outperforming traditional Naive Bayes and SVM methods on deep hierarchical tasks.

What Problem Does This Paper Address?

The internet is awash with information, and organizing it effectively is crucial. While text classification algorithms are good at assigning documents to broad categories, they often fall short when users need more detailed, hierarchical topic information. Existing methods struggle with the "coarseness" of top-level categories in large text hierarchies, leading to a loss of precision. This paper aims to improve the effectiveness and efficiency of text classification, particularly in large-scale, multi-level hierarchical scenarios, by providing more granular topic-related class information.

Methods

The authors propose a "Deep Naive Bayesian" (DNBC) algorithm designed for large-scale, multi-level text classification. The core idea is to first identify document-related categories from the vast hierarchy and then focus classification efforts on these relevant subsets. This "trimming" of the hierarchy, performed in a top-down manner, creates smaller, more manageable multi-layer structures for training classifiers.

Key aspects of their method include:

  • Hierarchical Trimming: Instead of classifying across the entire, potentially massive, hierarchy, they first narrow down the relevant categories for a given document.
  • Top-Down Classification: Classification proceeds layer by layer, starting from the top-level categories and moving down to the leaf nodes.
  • Optimized Classifier Choice: While considering various traditional classifiers like SVM and KNN, they opt for Naive Bayesian Classifier (NBC) due to its efficiency and sensitivity to feature selection. They then propose an improved NBC, termed DNB.
  • Multi-Layer Language Model: To address the issue of term interdependencies in adjacent categories, they employ a multi-layer language model that considers the probability of a term given its preceding terms within a sequence. This is a departure from standard NBC, which assumes independence.

Datasets

The authors evaluated their approach using a dataset abstracted from the Open Directory Project (ODP). This dataset comprises approximately 4.8 million web pages and over 712,000 categories, organized into 17 top-level categories. They used about 1.3 million articles, with 70% allocated to the test set and 30% for training.

Key Insights and Ideas

  • Focusing on Relevance is Key: The most significant insight is that by intelligently trimming the search space to only relevant categories, classification performance can be dramatically improved, especially in deep hierarchies.
  • Traditional NBC Limitations: Standard NBC struggles with term interdependencies, which become more pronounced in closely related categories within a hierarchy.
  • Multi-Layer Models for Hierarchies: The proposed multi-layer language model effectively captures these interdependencies, leading to better discrimination between similar categories.
  • Efficiency Matters: For large-scale classification, the computational cost of training classifiers is a critical factor. NBC's efficiency makes it a suitable choice for this task, especially when optimized.

Key Results

The experimental results demonstrate the superiority of the proposed DNB algorithm over traditional Naive Bayes (NB) and Hierarchical SVM.

  • Significant Performance Gains: In the 5th layer of the hierarchy, DNB achieved improvements of 55.48% over NB and 31.46% over Hierarchical SVM.
  • Handling Deep Hierarchies: The paper presents results across 10 hierarchical layers, showing DNB consistently outperforming the other methods, particularly as the depth of classification increases.
  • SVM Limitations at Depth: The paper notes that SVM's performance degrades significantly in deeper layers, possibly due to the difficulty in building a sufficiently large training set for such granular categories.
  • NB vs. SVM in Deep Layers: Interestingly, in the 8th layer, NB's performance surpassed SVM's, highlighting the challenges of SVM in very deep classification tasks.

Limitations and Future Work

  • Limitations: The paper acknowledges that while DNB shows significant improvements, the performance still degrades in deeper layers (beyond the 5th layer). The authors also mention that SVM's performance degradation in deeper categories might be due to the inability to build a large enough training set.
  • Future Work: The authors plan to apply their method to a wider variety of large-scale text classification tasks and further improve classification performance through enhanced algorithms.

Summary updated

Abstract

state-of-the-art text classification algorithms are good at categorizing the Web documents into a few categories. But such a classification method does not give very detailed topic-related class information for the user because the first two levels are often too coarse in Large-scale Text Hierarchies. In this paper, we propose a method named DNB which can improve the performance of classification effectively in experimental results.
BibTeX
@inproceedings{zhao2012optimized,
  author = {Yao Zhao and Zhimin Chen},
  title = {{An Optimized NBC Approach in Text Classification}},
  booktitle = {Physics},
  year = {2012},
  doi = {10.1016/j.phpro.2012.02.281},
}
Figure