Abstract
Here we study the problem of learning labels for large text corpora where each text can be assigned a variable number of labels. The problem might seem trivial when the label dimensionality is small and can be easily solved using a series of one-vs-all classifiers. However, as the label dimensionality increases to several thousand, the parameter space becomes extremely large, and it is no longer possible to use the one-vs-all technique. Here we propose a model based on the factorization of higher order moments of the words in the corpora, as well as the cross moment between the labels and the words for multi-label prediction. Our model provides guaranteed convergence bounds on the estimated parameters. Further, our model takes only three passes through the training dataset to extract the parameters, resulting in a highly scalable algorithm that can train on GB's of data consisting of millions of documents with hundreds of thousands of labels using a nominal resource of a single processor with 16GB RAM. Our model achieves 10x-15x order of speed-up on large-scale datasets while producing competitive performance in comparison with existing benchmark algorithms.
Introduction
In multi-label learning, documents are often assigned multiple tags simultaneously (e.g., a news article tagged with "politics," "war," and "international relations"). While traditional "one-vs-all" approaches work for small label sets, they fail in "extreme" multi-label settings where the number of labels ($L$) and vocabulary size ($D$) reach hundreds of thousands. In such scenarios, the parameter space explodes to $O(DL)$, exceeding standard memory capacities. Existing low-rank models like LEML attempt to mitigate this but often rely on iterative discriminative training, which is computationally expensive on massive corpora. This paper introduces a generative approach using the Method of Moments (MoM) to provide a scalable solution with theoretical convergence guarantees.
Methodology: Generative Modeling and Method of Moments
The proposed approach shifts from discriminative learning to a latent variable generative model. It assumes $K$ hidden topics generate both the words ($v$) and the labels ($l$) of a document.
To estimate model parameters efficiently without the slow, iterative nature of Expectation-Maximization (EM), the paper employs the Method of Moments (MoM) in three distinct passes over the dataset:
- Second-order moments ($M_2$): Estimates word co-occurrences across the corpus.
- Third-order moments ($M_3$): Captures word triplets; tensor decomposition is then used to extract word-topic relationships.
- Cross-moments ($M_{2L}$): Maps labels to the same latent topics.
Crucially, the author provides a provable guarantee: theoretical bounds show that as the number of training samples increases, the estimated parameters are guaranteed to converge to the true values.
Experimental Setup
The model was benchmarked against six datasets, ranging from small-scale (Bibtex) to extreme-scale (WikiLSHTC), which features over 1.7 million documents and 325,000 labels. These larger datasets represent the primary challenge for modern multi-label classifiers.
Results and Discussion
The MoM algorithm demonstrates significant scalability and efficiency advantages over state-of-the-art discriminative models:
- Massive Speedups: On the WikiLSHTC dataset, MoM completed training in approximately 3 hours, compared to over 48 hours for the LEML benchmark—a 16x improvement.
- Memory Efficiency: While LEML required high-memory instances (122GB RAM) for large datasets, MoM operated within a standard 16GB footprint by exploiting the sparsity of moment matrices.
- Competitive Accuracy: Despite the speed gains, MoM produced AUC (Area Under the Curve) scores very similar to state-of-the-art models, proving that efficiency does not require sacrificing performance.
Conclusion
The Method of Moments provides a robust, scalable framework for extreme multi-label classification. While it requires a minimum sample size proportional to the square of latent topics ($\Omega(K^2)$), its "embarrassingly parallel" nature and minimal memory requirements make it ideal for web-scale data. Future work includes implementation on distributed frameworks like Apache Spark to further enhance its scalability beyond single-processor environments.
Summary updated