Introduction
In traditional supervised text classification, we operate under the Identically and Independently Distributed (IID) assumption: the training and test data are drawn from the same distribution. However, this assumption frequently breaks down in real-world applications, particularly for the "negative" class. This paper explores how including negative training examples that do not match the test distribution can severely degrade model performance and proposes a robust alternative using Positive and Unlabeled (PU) learning.
The Challenge of the "Negative" Class
While the "positive" class in a classification task (e.g., "Sentiment Analysis papers") is often well-defined and stable, the "negative" class is typically a catch-all category for "everything else." When the scope of "everything else" changes—for instance, moving from an NLP conference dataset to a Data Mining conference dataset—the distribution of the negative class shifts significantly. This phenomenon, known as sample selection bias or covariate shift, means that negative training data can act as a "poison," creating a biased decision boundary that fails to generalize to new environments.
Methodology: Embracing PU Learning
To mitigate the risks of biased negative data, the authors suggest a counterintuitive approach: discard the negative training data entirely. Instead, they utilize PU learning, which builds classifiers using only labeled positive examples ($P$) and a large pool of unlabeled data ($U$). In this framework, the test set itself serves as the unlabeled pool, allowing the model to adapt to the actual distribution it will encounter.
The authors introduce CR-SVM (Cosine-Rocchio SVM), a two-step algorithm:
- Extracting Reliable Negatives (RN): Using TF-IDF representations, a "positive representative vector" is created. Cosine similarity and a Rocchio classifier are then used to identify documents in the unlabeled set that are most likely to be negative.
- Iterative SVM Training: An SVM is trained on the labeled positives and the identified reliable negatives. The process is then iterated, pulling more negative-looking documents from the unlabeled pool until convergence.
Key Results
The effectiveness of CR-SVM was tested against traditional supervised models (SVM, Naive Bayes) and existing PU methods (S-EM) using the Reuters-21578 and 20 Newsgroups datasets. To simulate distribution shift, "other topic" documents were incrementally added to the test sets.
As shown in the experimental results, traditional supervised models like SVM and Naive Bayes experience a sharp decline in F-score as the test distribution diverges from the training distribution. In contrast, CR-SVM remains remarkably stable, maintaining high performance even when the negative class is heavily contaminated with new topics.
Even in IID scenarios where training and test distributions match, CR-SVM performs within 1-2% of a fully supervised SVM. This suggests that the information within the unlabeled distribution is often sufficient to define an accurate boundary, making the trade-off for increased robustness highly favorable.
Conclusion
The research demonstrates that the negative class in binary classification is often a liability due to its inherent instability. By shifting to a PU learning paradigm like CR-SVM, practitioners can build models that are significantly more resilient to real-world distribution shifts, effectively "defending" the classifier against the harmful influence of biased negative training data.
Summary updated