Abstract
Multi-label learning (MLL) often faces the challenge of missing annotations, where human labels are incomplete. Traditional contrastive learning methods struggle in this multi-label context due to the ambiguity of positive and negative pairs. We present CLML (Contrastive Learning for Multi-Label), a framework that preserves label structures through rank-based constraints and a self-correction mechanism. By enforcing low-rank local structures for specific categories and high-rank global structures for the entire dataset, CLML effectively "fills in" missing labels and improves feature representation.
Introduction
Contrastive Learning (CL) has become a cornerstone of representation learning by pulling similar samples together and pushing dissimilar ones apart. However, its application to Multi-Label Learning (MLL) is non-trivial. In MLL, images often contain multiple semantic objects, making the definition of "similarity" ambiguous. This is further complicated by Missing Labels (MLML), where incomplete annotations lead to false negatives during training. If an object exists in an image but isn't labeled, a standard contrastive loss might incorrectly penalize the model for recognizing it.
Methodology: The CLML Framework
The proposed Label Structure Preserving Contrastive Embedding (CLML) addresses these challenges through two primary components: a Label Correction mechanism and a Structural Contrastive Loss.
Label Correction Mechanism (LaCo)
CLML utilizes the "memorization effect" of neural networks—the observation that models tend to learn clean, easy patterns before overfitting to noise. Early in the training process, the model uses its own high-confidence predictions to identify likely missing labels and update the positive label set. This self-supervised "cleaning" prevents the model from being misled by incomplete ground truth.
Structural Contrastive Loss
Rather than relying on simple pairwise distances, CLML imposes rank-based constraints on the embedding space:
- Low-Rank Local Constraints: For each label category, the embeddings of images sharing that label are encouraged to form a low-rank matrix. This forces the model to learn compact and consistent features for specific object classes.
- High-Rank Global Constraints: To ensure the model doesn't collapse all embeddings into a single point, a high-rank constraint is applied to the entire batch, maximizing the diversity of the feature space.
These constraints are optimized using the subgradient of the nuclear norm, providing a differentiable way to manage the rank of embedding matrices.
Experimental Results
The framework was evaluated on three major benchmarks: MSCOCO, PASCAL VOC 2012, and NUS-WIDE. To simulate real-world conditions, labels were randomly removed to create varying levels of sparsity, down to a single label per image.
Quantitative Performance
CLML consistently outperformed standard supervised baselines like Binary Cross-Entropy (BCE) and Focal Loss. On MSCOCO, PASCAL VOC, and NUS-WIDE, the model achieved mAP (Mean Average Precision) improvements of 1.2%, 1.6%, and 1.3% respectively. Notably, the method proved highly robust in extreme sparsity scenarios (single-label training), where the gap between CLML and traditional methods was most pronounced.
Qualitative Analysis
Qualitative evaluations demonstrate how CLML effectively corrects missing labels. As shown in the predicted probability distributions, the model assigns higher confidence to objects that were present in the image but missing from the initial label set (e.g., "Dining table" or "Chair").
Conclusion
CLML offers a robust solution for multi-label learning with incomplete data. By leveraging the inherent structural relationships between labels and implementing a self-correction loop, the model transforms the "noise" of missing labels into a structured learning signal. Future work includes exploring the computational efficiency of nuclear norm gradients for larger batch sizes and integrating CLML with more diverse backbone architectures.
Summary updated