Large-Scale Bayesian Multi-Label Learning via Topic-Based Label Embeddings

Piyush Rai, Changwei Hu, Ricardo Henao, Lawrence Carin

Introduction

In modern machine learning, we often need to assign multiple tags to a single object—such as categorizing a YouTube video or tagging a webpage. This task, known as multi-label learning, becomes exceptionally challenging when the number of possible labels grows into the thousands or millions.

Existing methods typically struggle with two main issues:

  1. Scalability: Calculating the probability for every single possible label (most of which are absent for any given example) is computationally crushing.
  2. Sparsity and Imbalance: In a typical dataset, an object might have only 3 labels out of 10,000. Standard models, such as those using logistic or probit links, treat label "presence" and "absence" with similar weight, failing to reflect the extreme sparsity of real-world data.

To address this, the authors present BMLPL (Bayesian Multi-label Learning via Positive Labels), a scalable Bayesian model that handles massive, sparse label sets by scaling its computational cost only to the number of positive labels. By treating label embeddings as "topics" and using a unique Bernoulli-Poisson link function, BMLPL achieves state-of-the-art accuracy and faster inference than traditional methods.

Methods: The BMLPL Framework

The BMLPL architecture relies on three clever components designed to handle extreme sparsity and scale efficiently:

Graphical model of the BMLPL framework
  • Topic-Based Embeddings: The model assumes labels are not independent. Instead, they are generated by a small set of "topics" (distributions over labels). Each example has "topic proportions" (embeddings) that are conditioned on its input features.
  • The Bernoulli-Poisson Link: This is the core innovation. Instead of a standard logistic function, the authors model binary labels as thresholded Poisson counts. Mathematically, this leads to a likelihood where the zeros in the label matrix effectively "drop out" of the sufficient statistics. Consequently, training complexity scales with the number of non-zero entries in the label matrix, rather than its total size.
  • Efficient Inference: To keep the Bayesian approach fast, the framework uses data augmentation (specifically Polya-Gamma and Poisson-multinomial tricks). This allows for closed-form Gibbs sampling and Expectation-Maximization (EM) updates, making the model highly parallelizable.

Datasets

The model was evaluated on four benchmark multi-label datasets of varying sizes and feature dimensions:

  • bibtex: 159 labels, ~5,000 examples.
  • delicious: 983 labels, ~13,000 examples.
  • compphys: 208 labels, featuring very high-dimensional inputs (33,284 features).
  • eurlex: A larger set with 3,993 labels and ~17,000 examples.

Key Insights

  • Scaling with "Ones": Most algorithms operate at $O(L)$ complexity, where $L$ is the total number of labels. BMLPL operates at $O(\text{nnz}(\mathbf{Y}))$, where $\text{nnz}$ is the number of non-zero entries. In sparse datasets, this provides a massive performance boost.
  • Asymmetric Modeling: The Bernoulli-Poisson link is naturally asymmetric. It is far superior at modeling "label imbalance" (where zeros far outnumber ones) compared to the symmetric logistic or probit links used in most alternative models.
  • Interpretability: Because the model is rooted in topic modeling principles, the learned embeddings are semantically meaningful. A learned "topic" often represents a cluster of related labels (e.g., a "Nuclear" topic containing labels like safety, power station, and radiation).
  • Closed-form Predictions: Unlike some Bayesian methods that require expensive sampling at test time, BMLPL provides a closed-form expression for predicting labels on new examples.

Key Results

BMLPL consistently outperformed or matched state-of-the-art methods like LEML, WSABIE, and CPLST across all datasets in terms of Area Under the ROC Curve (AUC).

Performance and scalability of BMLPL, showing linear time scaling with positive labels and AUC vs. Time for different inference methods
  • Robustness to Missing Labels: The model is remarkably robust. In experiments where only 20% of the labels were revealed during training, BMLPL significantly outperformed competitors, proving its generative approach handles incomplete data exceptionally well.
  • Speed and Scalability: The EM version of the algorithm converged much faster than Gibbs sampling while maintaining similar accuracy. Furthermore, empirical results demonstrated the promised linear scalability relative to the fraction of positive labels.

Limitations and Future Work

While highly effective, the authors note a few areas for future exploration:

  • Label Correlations: Although the topic-based approach captures some correlations, explicitly imposing more complex label correlation structures (e.g., using logistic-normal distributions) could further improve the model.
  • Online Learning: The current paper focuses on batch EM and Gibbs sampling. An online version is theoretically possible and would be necessary for massive-scale "millions of labels" scenarios, but it was not implemented here.
  • Active Learning: Because the model provides a full predictive distribution, it is naturally well-suited for active learning (intelligently choosing which labels to ask an oracle about), which remains an open avenue for future research.

Summary updated

BibTeX
@inproceedings{rai2015large,
  author = {Piyush Rai and Changwei Hu and Ricardo Henao and Lawrence Carin},
  title = {{Large-Scale Bayesian Multi-Label Learning via Topic-Based Label Embeddings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
}
Figure