[Paper Review] Aggressive Sampling for Multi-class to Binary Reduction with Applications to Text Classification
This paper proposes a double sampling strategy to reduce large-scale multi-class text classification to binary classification, improving efficiency and consistency under long-tailed class distributions. By oversampling small classes and subsampling large ones, and constructing a reduced set of dyadic pairs, the method achieves state-of-the-art performance with significantly lower memory and training time on datasets with up to 100,000 classes.
We address the problem of multi-class classification in the case where the number of classes is very large. We propose a double sampling strategy on top of a multi-class to binary reduction strategy, which transforms the original multi-class problem into a binary classification problem over pairs of examples. The aim of the sampling strategy is to overcome the curse of long-tailed class distributions exhibited in majority of large-scale multi-class classification problems and to reduce the number of pairs of examples in the expanded data. We show that this strategy does not alter the consistency of the empirical risk minimization principle defined over the double sample reduction. Experiments are carried out on DMOZ and Wikipedia collections with 10,000 to 100,000 classes where we show the efficiency of the proposed approach in terms of training and prediction time, memory consumption, and predictive performance with respect to state-of-the-art approaches.
Motivation & Objective
- Address the challenge of extreme multi-class text classification with very large numbers of classes, such as in Wikipedia and DMOZ.
- Overcome the curse of long-tailed class distributions common in real-world text datasets.
- Reduce the computational cost of dyadic pair construction in multi-class to binary reduction without sacrificing generalization performance.
- Ensure consistency of empirical risk minimization under sampling-induced distribution shifts and pair inter-dependency.
- Achieve a favorable trade-off between predictive performance, training time, and memory consumption in extreme multi-class settings.
Proposed method
- Apply a double sampling strategy: first oversample small classes and subsample large classes in the original training set to balance the class distribution.
- Construct a reduced set of dyadic examples by pairing each instance with its true class and with randomly sampled negative classes from the resampled set.
- Use a binary classifier trained on the reduced dyadic dataset to predict whether a given (example, class) pair is positive (true label) or negative (incorrect label).
- Introduce a theoretical framework using local fractional Rademacher complexity to prove consistency of empirical risk minimization under the transformed, sampled distribution.
- Leverage similarity-based feature representations for both examples and classes to improve generalization in the binary reduction space.
- Ensure inter-dependency between pairs sharing the same example and true class is formally accounted for in generalization bounds.
Experimental results
Research questions
- RQ1Can aggressive sampling of training instances and negative classes improve the efficiency of multi-class to binary reduction in extreme multi-class settings?
- RQ2Does the proposed sampling strategy preserve the consistency of empirical risk minimization despite distribution shifts and pair inter-dependency?
- RQ3How does the method compare to state-of-the-art approaches in terms of training time, memory usage, and predictive performance on large-scale text classification benchmarks?
- RQ4To what extent does the method mitigate the negative impact of long-tailed class distributions in real-world text datasets?
- RQ5Can the method scale effectively to datasets with 50,000 to 100,000 classes while maintaining high accuracy and low resource consumption?
Key findings
- On the Wikipedia-100K dataset with 100,000 classes, the proposed $(oldsymbol{ u},oldsymbol{ ho})$-DS method achieved 25% accuracy and 17.8% macro F1, outperforming OVA, M-SVM, and FastXML.
- The method reduced training time to 9,264 seconds and memory usage to 9.8 GB on Wikipedia-100K, compared to over 1000 GB for OVA and M-SVM.
- For Wikipedia-50K, the method achieved 33.8% accuracy and 23.4% macro F1 with only 37.23 seconds of prediction time, significantly outperforming tree-based methods.
- The $(oldsymbol{ u},oldsymbol{ ho})$-DS method achieved the best overall trade-off between runtime, memory, and performance, outperforming even PD-Sparse despite its high memory usage.
- Tree-based methods like FastXML and RecallTree suffered from cascading errors, achieving lower accuracy (e.g., 15.6% on DMOZ) despite faster inference.
- The method maintained high consistency and generalization performance even under aggressive sampling, as validated by theoretical bounds using local fractional Rademacher complexity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.