Large Margin Metric Learning for Multi-Label Prediction

Weiwei Liu, Ivor W. Tsang

Abstract

Multi-label prediction (MLP) involves assigning multiple tags to a single data instance. Traditional high-performance methods often rely on complex encoding-decoding frameworks where the decoding step—reconstructing labels from model outputs—becomes a significant computational bottleneck. This paper introduces LM-kNN, a novel framework that replaces expensive decoding with efficient metric learning. By embedding inputs and labels into a shared space using a large-margin formulation, LM-kNN achieves state-of-the-art accuracy while being significantly faster than existing methods like CCA and MMOC.

Introduction: The Decoding Bottleneck

In multi-label prediction, the space of possible label combinations grows exponentially with the number of labels. Conventional methods often project labels into a lower-dimensional space (encoding) and then attempt to find the optimal label set in the original space (decoding). This decoding step is often intractable or requires slow approximate inference, making methods like Canonical Correlation Analysis (CCA) and Maximum Margin Output Coding (MMOC) impractical for large-scale datasets.

The LM-kNN Framework

The authors propose Large Margin Metric Learning with $k$-nearest neighbor constraints (LM-kNN). Instead of separate encoding and decoding, LM-kNN learns a distance metric that maps both inputs ($x$) and label sets ($y$) into a unified embedding space.

Key Technical Components

  • Large Margin Formulation: The model enforces a constraint where the distance between an embedded input and its ground-truth label set is smaller than the distance to any other label set by a margin. This margin is proportional to the difference between the label sets.
  • Optimization via APG: The optimization is framed as a semidefinite programming (SDP) problem and solved using an Accelerated Proximal Gradient (APG) procedure, ensuring efficient convergence even with many labels.
  • Simplified Prediction: At test time, the model performs a simple $k$-nearest neighbor search in the learned embedding space. This eliminates the need for complex, combinatorial decoding algorithms.

Experimental Setup

The framework was evaluated on six real-world datasets ranging from image classification (scene, corel5k) to music annotation (cal500) and large-scale legal document classification (EUR-Lex). These datasets vary significantly in the number of instances and labels, providing a robust test for scalability.

Key Results and Discussion

Computational Efficiency

LM-kNN demonstrates superior scalability compared to traditional coding methods. As shown in the training time analysis, LM-kNN avoids the exponential complexity found in MMOC and the heavy decoding costs of CCA, remaining efficient even as the number of labels increases.

Figure 1: Comparison of training CPU time (log scale) across different datasets and methods.

Predictive Performance

In terms of accuracy, LM-kNN consistently matches or outperforms state-of-the-art methods. It is particularly effective on larger datasets like delicious and EUR-Lex, where it leverages its ability to capture implicit label dependencies within the learned metric.

Figure 5: Micro-F1 scores for various multi-label prediction methods. Bold values indicate the best performance.

The method's robustness stems from its ability to prune noisy features and focus on the underlying label structure, a significant advantage over standard $k$NN or Binary Relevance (BR) approaches.

Conclusion

LM-kNN addresses the primary bottleneck in multi-label prediction by unifying metric learning with $k$NN constraints. By bypassing the decoding step, it offers a scalable and accurate alternative for high-dimensional label spaces. Future work may involve integrating fast nearest-neighbor search algorithms like cover trees to further enhance performance on web-scale datasets.

Summary updated

BibTeX
@inproceedings{liu2015large,
  author = {Weiwei Liu and Ivor W. Tsang},
  title = {{Large Margin Metric Learning for Multi-Label Prediction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9610},
}
Figure