[Paper Review] DiSMEC - Distributed Sparse Machines for Extreme Multi-label Classification
DiSMEC proposes a distributed, sparse machine learning framework for extreme multi-label classification (XMC) that bypasses low-rank assumptions by using one-vs-rest linear classifiers with explicit capacity control via sparsity induction. It achieves state-of-the-art accuracy—up to 15% higher than FastXML and 10% over SLEEC—while reducing model size by three orders of magnitude and enabling training in hours on hundreds of thousands of labels using double parallelization.
Extreme multi-label classification refers to supervised multi-label learning involving hundreds of thousands or even millions of labels. Datasets in extreme classification exhibit fit to power-law distribution, i.e. a large fraction of labels have very few positive instances in the data distribution. Most state-of-the-art approaches for extreme multi-label classification attempt to capture correlation among labels by embedding the label matrix to a low-dimensional linear sub-space. However, in the presence of power-law distributed extremely large and diverse label spaces, structural assumptions such as low rank can be easily violated. In this work, we present DiSMEC, which is a large-scale distributed framework for learning one-versus-rest linear classifiers coupled with explicit capacity control to control model size. Unlike most state-of-the-art methods, DiSMEC does not make any low rank assumptions on the label matrix. Using double layer of parallelization, DiSMEC can learn classifiers for datasets consisting hundreds of thousands labels within few hours. The explicit capacity control mechanism filters out spurious parameters which keep the model compact in size, without losing prediction accuracy. We conduct extensive empirical evaluation on publicly available real-world datasets consisting upto 670,000 labels. We compare DiSMEC with recent state-of-the-art approaches, including - SLEEC which is a leading approach for learning sparse local embeddings, and FastXML which is a tree-based approach optimizing ranking based loss function. On some of the datasets, DiSMEC can significantly boost prediction accuracies - 10% better compared to SLECC and 15% better compared to FastXML, in absolute terms.
Motivation & Objective
- Address the computational, storage, and statistical challenges of extreme multi-label classification (XMC) with label sets of 100,000–670,000 labels.
- Overcome limitations of low-rank embedding-based methods in power-law distributed label spaces where many labels have few training instances.
- Develop a scalable, distributed framework that trains and predicts efficiently on massive label sets without relying on label matrix low-rank assumptions.
- Control model size explicitly to eliminate spurious parameters, ensuring compactness without sacrificing prediction accuracy.
Proposed method
- Employ a doubly parallelized architecture: data parallelism across labels and model parallelism across feature blocks to scale to hundreds of thousands of labels.
- Use one-vs-rest linear classifiers trained in a distributed fashion, avoiding any low-rank assumption on the label matrix.
- Apply explicit sparsity induction via a hyper-parameter Δ to prune redundant weights, filtering out billions of spurious parameters.
- Introduce a two-stage learning process: first train classifiers in batches, then apply sparsity control to reduce model size while preserving accuracy.
- Leverage sparsity in both input features and model weights to enable fast, parallelized prediction via efficient vector-matrix dot products.
- Use a capacity control mechanism that tunes the trade-off between model size and prediction accuracy by adjusting Δ, effectively interpolating between l1 and l2 regularization.
Experimental results
Research questions
- RQ1Can a distributed, one-vs-rest learning framework outperform state-of-the-art embedding-based and tree-based XMC methods without assuming low-rank structure in the label matrix?
- RQ2How effective is explicit sparsity induction via a hyper-parameter Δ in reducing model size while maintaining or improving prediction accuracy on extreme multi-label datasets?
- RQ3To what extent can double-layer parallelization reduce training time and enable real-time inference on datasets with up to 670,000 labels?
- RQ4How does the power-law distribution of label frequencies affect the performance of non-low-rank methods like DiSMEC compared to low-rank alternatives?
Key findings
- DiSMEC achieved 64.4% precision@1 on the WikiLSHTC-325K dataset, significantly outperforming SLEEC’s 52% under the same 3GB model size constraint.
- On some datasets, DiSMEC improved prediction accuracy by 10 percentage points over SLEEC and 15 percentage points over FastXML in absolute terms.
- For the WikiLSHTC-325K dataset, DiSMEC reduced model size from 870GB (as reported in prior work) to just 3GB through explicit sparsity control.
- DiSMEC trained the Wikipedia-31K dataset in ~10 minutes on 300 cores and WikiLSHTC-325K in ~6 hours on 400 cores, reducing training time from weeks to hours.
- Prediction speed reached 3 milliseconds per test instance on WikiLSHTC-325K, which is 1,000× faster than LEML and comparable to FastXML (0.5 ms), enabling real-time deployment.
- The hyper-parameter Δ enabled tuning between model compactness and accuracy, with Δ=0.01 yielding near-optimal performance and minimal accuracy drop compared to Δ=0.
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.