Abstract
Multi-label classification (MLC) involves objects associated with multiple labels simultaneously. Traditional metric learning methods often assume a consistent distance metric across the entire label space, which fails to capture the nonlinear and context-dependent nature of real-world data. We propose Label-Specific Multi-Metric learning (LSMM), a framework that decomposes the distance metric into a shared global component and multiple label-specific local components. Our framework includes two partitioning strategies: semantic-based (LSMM-SE) and cluster-based (LSMM-CL). Experimental results on nine benchmark datasets demonstrate that LSMM significantly improves classification performance over state-of-the-art metric learning methods in terms of Hamming loss and Ranking loss.
Introduction
In multi-label classification (MLC), a single object—such as an image or a document—is associated with multiple labels. Many popular MLC algorithms, particularly those based on $k$-Nearest Neighbors (KNN), rely heavily on a distance metric to determine similarity between examples. However, current metric learning approaches typically assume a "one-size-fits-all" metric across the entire label space.
This assumption is often flawed because real-world data is nonlinear and context-dependent. For instance, the label "sun" might appear in vastly different visual contexts, such as a lush forest or an urban skyline. A single global metric struggles to reconcile these diverse instances. To address this, we introduce LSMM, which moves beyond global metrics by incorporating label-specific local biases.
The LSMM Framework
LSMM learns a transformation matrix ($L$) to project data into a space where distances are more meaningful. The core innovation is the decomposition of the metric into two parts:
- Global Metric ($L_0$): Captures common characteristics across all labels and implicitly models high-order label correlations.
- Label-Specific Local Metrics ($L_p$): Acts as local biases that account for the unique distribution of instances for specific labels or groups of labels.
To handle nonlinearity, we propose two partitioning strategies:
- Semantic-based Partition (LSMM-SE): Assigns different local metrics to positive and negative examples for each label.
- Cluster-based Partition (LSMM-CL): Uses $k$-means to divide the label space into disjoint clusters, training a unique local metric for each cluster.
The model is optimized using a smooth hinge loss function and the L-BFGS algorithm, ensuring efficiency even with a high number of variables.
Experimental Evaluation
We evaluated LSMM on nine benchmark multi-label datasets spanning music, audio, text, and image domains. These datasets vary significantly in scale and complexity, as shown in the table below.
LSMM was compared against four state-of-the-art metric learning algorithms: LM, LJE, COMMU, and LIMIC. We integrated these metrics into two standard classifiers: Binary Relevance KNN (BR-KNN) and Multi-Label KNN (ML-KNN).
Results and Discussion
Experimental results indicate that LSMM-SE and LSMM-CL consistently outperform competing metric learning algorithms across multiple evaluation metrics. As shown in the results table, the LSMM variants frequently achieve the lowest Hamming loss and Ranking loss (indicated by bold and underlined values).
Key findings include:
- Superior Performance: LSMM-SE/CL significantly enhanced the performance of standard classifiers in over 88% of tested cases.
- Importance of the Global Metric: Ablation studies confirmed that the global metric is vital; removing it led to clear performance degradation, proving that local metrics alone are insufficient.
- Implicit Correlation: By sharing a transformation space, the global metric captures label relationships without the computational expense of explicit correlation mapping.
Conclusion
LSMM successfully addresses the limitations of global distance metrics in multi-label classification by integrating label-specific local metrics. While the framework demonstrates superior performance, its computational burden grows linearly with the number of labels. Future work will focus on improving scalability for extreme multi-label learning (XML) scenarios involving thousands of labels.
Summary updated