Abstract
Extreme Multi-label Classification (XMC) involves assigning relevant labels from a massive pool to data instances, a task often hampered by significant computational costs. We present PrunEX, a straightforward pre-processing scheme that removes up to 90% of redundant input data by thresholding tf-idf weights. By filtering out low-signal features before training begins, PrunEX reduces training time and model size by approximately 50% with negligible impact on prediction accuracy. Our results suggest that a universal threshold can be applied across diverse XMC datasets and algorithms.
Introduction
Extreme Multi-label Classification (XMC) is essential for large-scale applications such as product recommendation on Amazon or article tagging on Wikipedia. However, the sheer scale of these problems—often involving millions of labels and features—creates a massive computational burden. While most optimization efforts focus on post-processing (pruning model parameters after training), the training phase itself remains a bottleneck. This is largely due to a "redundancy gap" in the input space, where a vast number of features contribute very little to the final classification. PrunEX addresses this by pruning the input data itself.
Methodology
PrunEX is based on the intuition that machine learning models, much like humans skim-reading a document, can ignore low-weight terms without losing core understanding. The pre-processing pipeline consists of three steps:
- TF-IDF Transformation: Raw text is converted into term frequency-inverse document frequency (tf-idf) weights.
- Unit Normalization: Each instance's feature vector is normalized to unit length.
- Threshold Pruning: Any feature with a weight below a specific threshold ($\lambda$) is zeroed out.
Empirical analysis across various large-scale datasets indicates that a threshold of $\lambda = 0.07$ is highly effective. Unlike model-based pruning, PrunEX realizes efficiency gains during the training phase, reducing both memory usage and compute cycles.
Experimental Results
We evaluated PrunEX on several benchmark datasets, including EURLex-4K, Wikipedia-31K, and Amazon-670K, using the DiSMEC algorithm as a baseline. The results demonstrate that "less is more" in extreme classification.
Data Reduction and Accuracy
PrunEX achieved massive data reduction across all tested datasets. For instance, on the Delicious-200K dataset, 88.19% of features were removed. Despite this aggressive pruning, the drop in precision was minimal, often staying within 1% of the full-data baseline.
Efficiency Gains
By removing spurious input features early, the model avoids wasting cycles on irrelevant data. Training times were approximately halved, and the resulting model sizes were significantly smaller, facilitating easier deployment in resource-constrained environments.
Discussion and Conclusion
The effectiveness of a single, near-universal threshold ($\lambda \approx 0.07$) suggests that redundancy is a fundamental property of XMC data. PrunEX demonstrates that a significant portion of the input signal is concentrated in a small fraction of "heavy" features. While the threshold was determined empirically, its consistency across different datasets and algorithms (including 1-vs-All and tree-based methods) makes it a robust tool for XMC practitioners.
Future work may explore automated mathematical frameworks for threshold selection and the application of similar pruning techniques to non-textual data, such as image embeddings.
Summary updated