Adaptive label thresholding methods for online multi-label classification

Tingting Zhai, Tang Hongcheng, Hao WangarXiv 2021 · DOI

Abstract

Online multi-label classification (MLC) faces a significant hurdle in the "thresholding problem"—the challenge of dynamically determining which labels are relevant as data arrives sequentially. This paper introduces the Adaptive Label Thresholding (ALT) framework, which integrates scoring and thresholding models into a unified online optimization problem. By utilizing a novel multi-label loss function that measures the distinction between relevant and irrelevant labels, the authors develop two algorithms: a first-order linear algorithm (FALT) and a second-order algorithm (SALT). Both methods feature closed-form updates and are theoretically proven to achieve sub-linear regret. Experimental results across nine diverse datasets demonstrate the effectiveness of ALT in both linear and non-linear prediction tasks.

Introduction

In many real-world applications, such as image tagging or document categorization, a single instance can belong to multiple categories simultaneously. Multi-label classification (MLC) aims to predict these sets of relevant labels. In "online" scenarios, where data arrives in a continuous stream, the model must update itself incrementally without retraining on the entire history.

A persistent challenge in MLC is the thresholding problem. While models typically output a score for each label, a threshold is required to decide which labels to include in the final prediction. Most existing online MLC methods either use a fixed threshold or treat thresholding as an independent post-processing step, failing to capture the dynamic relationship between label scores and the decision boundary.

The Adaptive Label Thresholding (ALT) Framework

The core innovation of this research is the ALT framework, which treats the threshold itself as a learnable parameter. Instead of maintaining weights only for the $L$ possible labels, the model maintains a weight matrix $W$ that includes an $(L+1)$-th column representing a "threshold predictor."

Algorithm 1: The Framework of Adaptive Label Thresholding (ALT)

As shown in Algorithm 1, for each incoming instance $x_t$, the model calculates scores for all labels and compares them against the score generated by the threshold predictor. A label $i$ is predicted as relevant if its score $x_t^\top w_t^{(i)}$ exceeds the threshold score $x_t^\top w_t^{(L+1)}$. This unified approach allows the model to learn the optimal thresholding strategy in tandem with its scoring capabilities.

Proposed Algorithms: FALT and SALT

To optimize the ALT framework, the authors derived a new multi-label hinge loss function. This loss penalizes the model if a relevant label's score is not sufficiently higher than the threshold, or if the threshold is not sufficiently higher than an irrelevant label's score. Based on this, two primary algorithms were developed:

  1. FALT (First-order ALT): Utilizing Online Gradient Descent, FALT is computationally efficient and provides a robust baseline. It can be extended to non-linear tasks using Mercer kernels, allowing it to handle complex data distributions.
  2. SALT (Second-order ALT): Based on Adaptive Mirror Descent, SALT incorporates second-order information by adjusting learning rates for individual features. This makes it particularly effective for sparse datasets, such as text, where most features are zero for any given instance.

Theoretical Analysis and Regret Bounds

A key contribution of this work is the first formal regret analysis for online MLC with adaptive thresholding. The authors proved that both FALT and SALT achieve "sub-linear regret." This means that as the number of observed instances $T$ increases, the average loss of the online algorithm converges to the loss of the best fixed predictor that could have been chosen with full knowledge of all data. Notably, the regret bound for FALT is independent of the number of labels ($L$), highlighting its scalability for large-scale classification problems.

Experimental Results

The algorithms were evaluated on nine datasets spanning text (Rcv1v2, Bibtex), audio (Birds, Emotions), images (Scene), biology (Yeast), and video (Mediamill).

  • Performance on Sparse Data: SALT consistently outperformed state-of-the-art baselines on high-dimensional, sparse text datasets, demonstrating the value of second-order updates.
  • Non-linear Capabilities: On datasets like Birds and Emotions, the kernelized version of FALT significantly outperformed linear models, often improving F1-measures by over 3%.
  • Efficiency: Both algorithms maintain closed-form updates, making them significantly faster than complex ensemble or Extreme Learning Machine (ELM) based online methods.

Conclusion and Future Directions

The ALT framework provides a theoretically sound and empirically effective solution to the online label thresholding problem. By integrating the threshold into the optimization process, FALT and SALT offer superior adaptability in streaming environments.

Future research will focus on two areas:

  1. Memory Efficiency: Developing "budgeted" kernel methods to manage the growing memory requirements of non-linear FALT.
  2. Kernelized SALT: Finding ways to apply the kernel trick to second-order algorithms, which currently require explicit feature mapping.

Summary updated

BibTeX
@misc{zhai2021adaptive,
  author = {Tingting Zhai and Tang Hongcheng and Hao Wang},
  title = {{Adaptive label thresholding methods for online multi-label classification}},
  year = {2021},
  eprint = {2112.02301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.02301},
}
Figure