Pushing One Pair of Labels Apart Each Time in Multi-Label Learning: From Single Positive to Full Labels
Xiang Li, Xinrui Wang, Songcan Chen

TL;DR
This paper introduces a novel loss function for multi-label learning that improves robustness to noisy labels by selectively pushing label pairs apart, applicable to both single positive and full label scenarios.
Contribution
The authors propose a new loss that mitigates noisy label effects in multi-label learning by focusing on one label pair at a time and leveraging label matrix high-rankness.
Findings
The proposed loss outperforms existing SPMLL methods on CUB dataset.
High-rankness of label matrix helps reduce performance drop in SPMLL.
The method is effective without additional regularization or label correction.
Abstract
In Multi-Label Learning (MLL), it is extremely challenging to accurately annotate every appearing object due to expensive costs and limited knowledge. When facing such a challenge, a more practical and cheaper alternative should be Single Positive Multi-Label Learning (SPMLL), where only one positive label needs to be provided per sample. Existing SPMLL methods usually assume unknown labels as negatives, which inevitably introduces false negatives as noisy labels. More seriously, Binary Cross Entropy (BCE) loss is often used for training, which is notoriously not robust to noisy labels. To mitigate this issue, we customize an objective function for SPMLL by pushing only one pair of labels apart each time to prevent the domination of negative labels, which is the main culprit of fitting noisy labels in SPMLL. To further combat such noisy labels, we explore the high-rankness of label…
| Datasets | #Class | #Training | #Validation | #Test |
| VOC | 20 | 4574 | 1143 | 5823 |
| COCO | 80 | 65665 | 16416 | 40137 |
| NUS | 81 | 120000 | 30000 | 60260 |
| CUB | 312 | 4795 | 1199 | 5794 |
| Observed labels | Methods | VOC | COCO | NUS | CUB |
| All P. & All N. | BCE | 89.42(0.27) | 76.78(0.13) | 52.08(0.20) | 30.90(0.64) |
| 1 P. & All N. | BCE | 87.60(0.31) | 71.39(0.19) | 46.45(0.27) | 20.65(1.11) |
| 1 P. & 0 N. | BCE | 85.89(0.38) | 64.92(0.19) | 42.27(0.56) | 18.31(0.47) |
| BCE+DW | 86.98(0.36) | 67.59(0.11) | 45.71(0.23) | 19.15(0.56) | |
| BCE+L1R | 85.97(0.31) | 64.44(0.20) | 42.15(0.46) | 17.59(1.82) | |
| BCE+L2R | 85.96(0.36) | 64.41(0.24) | 42.72(0.12) | 17.71(1.79) | |
| BCE+LS | 87.90(0.21) | 67.15(0.13) | 43.77(0.29) | 16.26(0.45) | |
| BCE+N-LS | 88.12(0.32) | 67.15(0.10) | 43.86(0.54) | 16.82(0.42) | |
| ROLE (CVPR21) | 87.77(0.22) | 67.04(0.19) | 41.63(0.35) | 13.66(0.24) | |
| ROLE+LI (CVPR21) | 88.26(0.21) | 69.12(0.13) | 45.98(0.26) | 14.86(0.72) | |
| LL-R (CVPR22) | 88.79(0.03) | 70.36(0.21) | 48.10(0.12) | 20.55(0.18) | |
| LL-Ct (CVPR22) | 88.80(0.11) | 70.27(0.08) | 48.18(0.17) | 20.53(0.18) | |
| LL-Cp (CVPR22) | 88.37(0.23) | 70.37(0.13) | 47.92(0.02) | 20.55(0.22) | |
| BCE+EntMax (ECCV22) | 89.09(0.17) | 70.70(0.31) | 47.15(0.11) | 20.85(0.42) | |
| BCE+EntMax+APL (ECCV22) | 89.19(0.31) | 70.87(0.23) | 47.59(0.22) | 21.84(0.34) | |
| 1 P. & 0 N. | OPML (Ours) | 87.77(0.04) | 68.93(0.06) | 47.93(0.05) | 22.30(0.08) |
| OPML-SP (Ours) | 89.20(0.03) | 71.75(0.07) | 50.14(0.09) | 24.11(0.22) |
| Methods | VOC | COCO | NUS | CUB |
| BCE | 85.89(0.38) | 64.92(0.19) | 42.27(0.56) | 18.31(0.47) |
| Focal | 87.59(0.58) | 68.79(0.14) | 47.00(0.14) | 19.80(0.30) |
| ASL | 87.76(0.51) | 68.78(0.32) | 46.93(0.30) | 18.81(0.48) |
| ZLPR | 87.63(0.03) | 68.41(0.24) | 47.72(0.14) | 21.02(0.12) |
| OPML | 87.77(0.04) | 68.93(0.06) | 47.93(0.05) | 22.30(0.08) |
| Smoothing | Correction | VOC | COCO | NUS | CUB | ||
| ✓ | 87.77(0.04) | 68.93(0.06) | 47.93(0.05) | 22.30(0.08) | |||
| ✓ | ✓ | 87.81(0.11) | 69.36(0.02) | 48.11(0.06) | 22.41(0.10) | ||
| ✓ | ✓ | 88.62(0.13) | 70.42(0.13) | 48.98(0.20) | 22.37(0.06) | ||
| ✓ | ✓ | 88.36(0.10) | 69.38(0.18) | 48.97(0.07) | 23.62(0.18) | ||
| ✓ | ✓ | ✓ | ✓ | 89.20(0.03) | 71.75(0.07) | 50.14(0.09) | 24.11(0.22) |
| Methods | VOC | COCO | NUS | CUB |
| BCE | 89.42(0.27) | 76.78(0.13) | 52.08(0.20) | 30.90(0.64) |
| FOCAL | 90.74(0.07) | 77.35(0.13) | 53.20(0.08) | 33.36(0.05) |
| ASY | 90.60(0.36) | 77.61(0.32) | 52.84(0.17) | 33.37(0.19) |
| ZLPR | 90.96(0.05) | 76.35(0.10) | 53.40(0.15) | 33.27(0.12) |
| OPML | 91.36(0.06) | 76.71(0.16) | 53.98(0.20) | 33.72(0.08) |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsText and Document Classification Technologies
Pushing One Pair of Labels Apart Each Time in Multi-Label Learning: From Single Positive to Full Labels
Xiang Li∗, Xinrui Wang∗, Songcan Chen Xiang Li, Xinrui Wang, and Songcan Chen are with College of Computer Science and Technology/College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics, Nanjing, 211106, China, and also with MIIT Key Laboratory of Pattern Analysis and Machine Intelligence. Corresponding author is Songcan Chen.
E-mail: {lx90, wangxinrui, s.chen}@nuaa.edu.cn.Manuscript received February 28, 2023.
Abstract
In Multi-Label Learning (MLL), it is extremely challenging to accurately annotate every appearing object due to expensive costs and limited knowledge. When facing such a challenge, a more practical and cheaper alternative should be Single Positive Multi-Label Learning (SPMLL), where only one positive label needs to be provided per sample. Existing SPMLL methods usually assume unknown labels as negatives, which inevitably introduces false negatives as noisy labels. More seriously, Binary Cross Entropy (BCE) loss is often used for training, which is notoriously not robust to noisy labels. To mitigate this issue, we customize an objective function for SPMLL by pushing only one pair of labels apart each time to prevent the domination of negative labels, which is the main culprit of fitting noisy labels in SPMLL. To further combat such noisy labels, we explore the high-rankness of label matrix, which can also push apart different labels. By directly extending from SPMLL to MLL with full labels, a unified loss applicable to both settings is derived. Experiments on real datasets demonstrate that the proposed loss not only performs more robustly to noisy labels for SPMLL but also works well for full labels. Besides, we empirically discover that high-rankness can mitigate the dramatic performance drop in SPMLL. Most surprisingly, even without any regularization or fine-tuned label correction, only adopting our loss defeats state-of-the-art SPMLL methods on CUB, a dataset that severely lacks labels.
Index Terms:
Multi-label, single positive, noisy label.
11footnotetext: Equal contribution.
I Introduction
As a general extension of multi-class learning, multi-label learning (MLL) [1, 2, 3] often contains multiple labels in a single training sample, and the goal is to assign every label that associated with the corresponding sample. Since the setting of MLL is much closer to reality where multi-objects often co-occur in a natural scene, it has received considerable attention in the past two decades and has developed wide applications as diverse as image classification [4, 5, 6], video analysis [7, 8, 9], natural language processing [10, 11, 12], just to name a few.
As we all know, exhaustively and accurately annotating every object that appears in a sample, i.e., making full labels, is extremely expensive, and sometimes even impossible, since there may exist unknown objects due to limited knowledge. To circumvent the obstacles in making full labels, a good and more practical alternative should be Single Positive Multi-Label Learning (SPMLL) [13], i.e., annotating only one object that appears in a sample and other labels remain unknown or unannotated.
The advantages of SPMLL lie in the following aspects. First, annotating single positive label is much simpler and less expensive since there is no need to exhaustively examine every corner of the sample. Second, the risk of introducing false positive label is greatly reduced because we tend to annotate the object that we are more familiar with and more confident in. Recently, in [14], the authors have proven that single positive label is sufficient for MLL, which provides a theoretical support for this application.
Although SPMLL enjoys the above advantages, naturally, the least annotation of each sample tends to make traditional MLL methods underperform. And those relying on the co-occurrence to learn label correlations [15, 16, 17] will even fail due to that the co-occurrence in a single sample is no longer available in the setting of SPMLL. Therefore, in such an emerging field, algorithms specialized for SPMLL should be carefully designed.
To deal with the challenge of SPMLL, the pioneering work [13] assumes all the unknown labels to be negatives, and the subsequent works [18, 14, 19] also adopt the so-called “Assume Negative” (AN) assumption. Obviously, such an assumption inevitably introduces false negatives, which involves noisy labels during training. More seriously, as the default choice of loss function in these works, Binary Cross Entropy (BCE) loss is notoriously not robust to noisy labels [20, 21, 22]. The reason hidden behind is that BCE loss utilizes the same gradient regime for positive and negative labels, which means that BCE loss treats each label equally [23, 24]. Therefore, BCE loss will fit not only the clean labels but also the noisy labels. Note that in SPMLL, only one positive label is observed for each sample, and the AN assumption makes the number of negative labels far more than that of positive label. Consequently, the negative labels will dominate the training, conversely, the single positive label will be hindered during training, which causes a performance gap between the SPMLL and MLL with full labels.
From the above analyses, it can be seen that there are two key factors for robust SPMLL, one is making good use of the precious single positive label, and the other is preventing the domination of negative labels. To close such gap, in this work, we customize an objective function for SPMLL by pushing only one pair of labels apart each time from the motivation of considering the two key factors. Specifically, we select the observed single positive label and the unobserved label with the maximum score as a pair of labels to be optimized each time, informally, we maximize the difference of the scores between the selected labels to distinguish them. A formal formulation will be detailed in Section III. By such a design, only one positive label and one unobserved label are optimized each time, thus the domination of negative labels is prevented and meanwhile the importance of the positive label is emphasized.
For convenience of comparison, a visualized description of the optimization procedure for BCE and our loss is depicted in Figure 1. In a nutshell, our loss optimizes only one pair of labels each time whereas the BCE loss optimizes all the pairs. From Figure 1, it can be also found that our loss slows down the process of turning the unknown true positive to false negative. Note that, the strategy of pushing one pair of labels apart can be directly extended to MLL with full labels by selecting the negative label with the maximum score and the positive label with the minimum score as a pair of labels to be optimized. By such an extension, we derive a unified loss for both SPMLL and MLL with full labels.
In SPMLL, as the precise supervised information is seriously insufficient, the unknown true positive label will gradually turn to false negative during training. To further combat the noisy labels, we cooperate the high-rank property of multi-label matrix [25] with our newly proposed loss. The motivation is that the high-rank property encourages to push apart different labels, which will further slow down the the process of turning the unknown true positive to false negative. Finally, experiments in both SPMLL and MLL with full labels are conducted to verify the effectiveness of our method.
In summary, our contributions are threefold:
(1) We derive a new loss by optimizing One Pair of labels each time for Multi-Label learning abbreviated as OPML, which can be seamlessly used in both the single positive and full labels settings. Experiments show that the OPML loss not only performs more robustly to noisy labels in SPMLL but also works well in MLL with full labels.
(2) We empirically discover that in SPMLL, the high-rank property can alleviate the negative impact of noisy labels during the learning process, specifically, with such regularization, performance drop is not that dramatic, which may shed new light on general noisy label learning.
(3) Compared with state-of-the-art methods [18, 24] that adopt extra regularization or fine-tuned label correction, only adopting OPML loss defeats them on CUB, a dataset that severely lacks labels, even without any of these techniques.
II Related Work
In this section, we review the related works from the following two aspects. The first is the commonly used loss functions in MLL and the mechanisms behind them, the second is recent advances focusing on SPMLL.
Loss functions in MLL. In both MLL and its closely related studies, BCE loss is often used as a default choice combined with various tricks and regularizations [26, 27, 28, 29]. However, it has been shown that BCE loss is not robust to noisy labels [20, 21, 22], which are pervasive in MLL. Recently, [30] has revealed that by alleviating the imbalance problem in MLL, some variants of BCE loss like focal loss [31] and asymmetric loss [30] can significantly boost the performance. [31] is originally proposed to deal with the serious imbalance between the targets and numerous backgrounds in object detection. Since focal loss can well handle the imbalance problem, which is inherent in MLL, it has become a widely used loss in MLL [32, 30, 33, 34, 35] and has achieved great empirical success. [30] even points out that, by simply reducing the contribution of negative samples to the loss when their probability is low, the BCE loss with the carefully tuned reweighting parameter can reach state-of-the-art results. Besides, [36] has extended the popular cross-entropy loss to MLL by exploring the proper surrogate function for softmax in MLL, which is a special case fallen into our loss. It is worth mentioning that our proposed OPML loss can be seamlessly applied in both traditional methods and popular deep neural networks.
Recent advances in SPMLL. SPMLL is first proposed by [13] considering its significantly reduced annotation costs. Due to the lack of precise supervision, it takes the AN assumption on the unobserved labels combined with various re-weighting strategies by incorporating the expected number of true positive labels, which is not available in reality. Following [13], authors in [18] also take the AN assumption and cast the SPMLL task into noisy multi-label classification. Later, instead of making the AN assumption, [24] treats all unannotated labels as unknown by maximizing the entropy, and then adopts a heuristic asymmetric pseudo-labeling method. Recently, in [14], the authors have proven that single positive label is sufficient for MLL by deriving a risk estimator approximately converging to the optimal risk minimizer of fully supervised learning, which provides a solid theoretical support. Inspired by the empirical success of consistency regularization in multi-class classification, [19] extends this popular regularization to SPMLL with the help of their proposed label-aware attention module. Plus, [37] studies the setting of SPMLL from the perspective of generating multi-label data from a single positive label. Despite great efforts have been made, the performance gap between the SPMLL and MLL with full labels still exists.
III Proposed approach
III-A Problem statement
In this subsection, we first describe the setting of MLL with full labels, and then detail the setting of SPMLL.
MLL with full labels. Given a training dataset , where is the number of training samples. , if the -th label is relevant to , which is also called positive label, otherwise , also knowing as negative label (), where is the number of labels. All the labels of each () in the training set are observed under the setting of MLL with full labels. The goal is to train a model that outputs the labels of unseen samples in the feature space .
SPMLL. For SPMLL, there is only one label observed for each () in the training set. Formally, satisfies the following two conditions. (1) for all and , where denotes that the -th label in the -th sample is unobserved. (2) for all , where is the indicator function, which equals to when the proposition in the square brackets holds, and [math] otherwise [13]. Obviously, in the SPMLL, the least annotation of each sample makes the supervised information severely insufficient, which causes performance gap between the SPMLL and MLL with full labels.
III-B The proposed OPML loss
To close such performance gap, existing SPMLL methods [13, 18, 14, 19] have made great efforts on it. Most of them assume the unknown labels as negative labels, which inevitably introduces false negatives as noisy labels. More seriously, as the commonly used loss functions in these works, BCE loss is notoriously not robust to noisy labels [20, 21, 22]. To prevent the domination of negative labels, which is the main culprit of fitting noisy labels in SPMLL, we tailor an objective function to push only one pair of labels apart each time. Concretely, we select the observed single positive label and the unobserved label with the maximum score as the pair of labels, and then maximize the difference of the scores between the selected pair of labels to distinguish them. Formally, it can be formulated as follows:
[TABLE]
where is the parameter of deep neural networks, and are the scores of single positive label and assumed negative labels, respectively, and is the index set of assumed negative labels. Note that, the maximum function is non-differentiable, thus we employ the smooth approximation of maximum function [38], which is defined as for any and , where is the natural logarithmic function, and is the exponential function.
By the smooth approximation of and some simple mathematical computations, we have the following objective function:
[TABLE]
Let be the loss function for SPMLL. Note that, this loss is unbounded and the optimal tends to negative infinity, which is unstable and difficult to be optimized in deep neural networks. To make this loss function bounded and stable, we add two positive constants and into and achieve the final loss function customized for SPMLL, denoted as ,
[TABLE]
Note that, the objective function in Eq. 1 can be easily extended to MLL with full labels by selecting the negative label with the maximum score and the positive label with the minimum score as one pair of labels to be optimized. Similarly, the formal formulation can be written as:
[TABLE]
where and are the index sets of positive and negative labels, respectively. Note that , then we can equivalently transform Eq. 4 into the following formulation:
[TABLE]
For conciseness, similar to the transformation of Eq. 1 to Eq. 3, we achieve the final loss function for MLL with full labels.
[TABLE]
It is worth emphasizing that Eq. 6 degenerates to Eq. 3 when only single positive label is observed. Hence, by Eq. 6, a unified loss for both SPMLL and MLL with full labels is derived.
Since and belong to , which are too wide to select appropriate parameters, here we provide a simple yet flexible mechanism to choose them. Specifically, let and , where and belong to . By this transformation, we can choose the parameters from while still keeping and belong to .
III-C Gradient analysis
In this section, to better understand why BCE loss fits the noisy labels and why our OPML loss performs more robustly than BCE loss in SPMLL, we make detailed gradient analyses for both of them. Given a data point (, ) for any , the BCE loss is
[TABLE]
where and are the numbers of training samples and labels, respectively. is the -th label of the -th sample, is the corresponding predicted score. For the brevity of notation, let , since the sigmoid function is used as the activation function in the BCE loss, then the gradient of BCE loss with respect to the score can be written as:
[TABLE]
Note that, this gradient is a centrosymmetric function about the origin, thus BCE loss utilizes the same gradient regime for positive and negative labels, which means that BCE loss treats each label equally [24]. Consequently, BCE loss will fit not only the clean labels but also the noisy labels during training.
By taking the derivative of Eq. 6, the gradients of our OPML loss with respect to the scores and in the SPMLL setting can be calculated as:
[TABLE]
For ease of comparison, let and , then we can see that, the gradient of OPML loss with respect to the score of the single positive label is the same as that of BCE loss while the gradient of OPML loss with respect to the score of the negative labels is less than that of BCE loss due to the fact that . In conclusion, compared with BCE loss, the domination of negative labels is alleviated and meanwhile the importance of the positive label is maintained in SPMLL by adopting the OPML loss for training.
III-D High-rank regularization
As mentioned in Section I, in SPMLL, the unknown true positive label will gradually turn to false negative during training. Motivated by the intuition that different labels fall into different subspaces, the label matrix is often prone to be high-rank [25]. To further reduce the risk brought by noisy labels, we explore such high-rank property to push apart different labels, which aims at further slowing down the the process of turning the unknown true positive to false negative. Specifically, we add a high-rank constraint on the prediction label matrix, which can be formulated as follows:
[TABLE]
where is a trade-off hyper-parameter, is the determinant function, is the predicted label matrix, and is its corresponding singular value. Here, we adopt the minus function [39] as the high-rank regularization rather than the minus trace norm used in [25] for the reason that the function is differentiable, which is easier to optimize in deep neural networks. The framework of cooperating this high-rank regularization with our newly proposed OPML loss is depicted in Figure 2.
III-E Soft variant and label correction
As our OPML loss is customized for SPMLL, a setting with unavoidable noisy labels under the AN assumption, then it is natural to ask whether our OPML loss can be combined with some commonly used techniques in noisy label learning, such as label smoothing [40, 41, 42] and label correction [43, 44, 45]. To answer this question, in this subsection, we propose a soft variant of OPML loss by label smoothing and further combine it with a label correction mechanism to verify that our loss can be well cooperated with these techniques.
Soft OPML loss. In SPMLL, most methods assume the unknown labels as negatives, which incorrectly annotates the unobserved positives as false negatives. To combat such noisy labels, we utilize the label smoothing to soften the hard discrete labels to continuous labels . Formally, the soft variant of OPML loss can be rewritten as:
[TABLE]
where is the index set of unobserved labels, is a smoothing parameter of the -th label. It is worth noting that instead of manual selection, is a dynamic adaptive parameter computed by the metric of Average Precision (AP) [46] on the training set. Concretely, , where is a power parameter, and are the prediction score and AP score of the -th label, respectively. The intuition of calculating the adaptive parameter in such a way is that the larger the AP, the more reliable its corresponding prediction score is.
Label correction. In noisy label learning, label correction [43, 44, 45] is a common and important data cleansing technique. To further validate that our loss can also be well combined with the label correction technique, we likewise propose an AP-based label correction mechanism. Our motivation is intuitive that the larger the AP, the less number the corresponding label is modified. For each class of label, the number of labels to be corrected can be calculated as , where is the number of labels to be corrected for the -th label, is the number of training samples, is a parameter of label correction ratio, is the AP score of the -th label. Note that we use the AP scores of the observed labels in our label smoothing and correction mechanisms.The process of the label correction is summarized in the following algorithm.
The in step 2 is computed by , where is the number of observed labels in the -th label, and is a parameter that will be specified in the Section IV.
IV Experiments
In this section, we conduct extensive experiments on multi-label image classification in both single positive label and full labels settings to verify the effectiveness of our proposed method.
IV-A Experiments settings
Datasets. For fairness of comparisons, we follow the setting in [13, 18, 24]. Specifically, four standard benchmark datasets, PASCAL VOC 2012 (VOC) [47], MS-COCO 2014 (COCO) [48], NUS-WIDE (NUS) [49], and CUB-200-2011 (CUB) [50] are used for evaluation. Given four full labels datasets, first, for each dataset, of the training set is withheld for validation. Second, to create single positive training data, one positive label is randomly selected to keep for each training sample, and the remaining annotations are discarding, which is performed only once for each dataset and the single positive training set is fixed. The statistics of four datasets are shown in Table I. Note that, we use totally the same number of seeds as in [13, 18, 24] for random sampling and spitting to create the same dataset for fair comparisons.
Compared methods. For SPMLL, we compare our method with two kinds of methods, one is the methods customized for SPMLL, and the other is the commonly used loss functions in MLL. The latter contains BCE loss, focal loss [31], asymmetric loss [30], and ZLPR loss [36], and the former includes BCE + DW (down-weighting negative labels), BCE + L1R/L2R ( regularization), BCE + LS (label smoothing), BCE + N-LS (label smoothing for only negative labels), ROLE (regularized online label estimation) [13], ROLE + LI (ROLE combined with the “LinearInit”) [13], LL-R (large loss with rejection) [18], LL-Ct (large loss with temporary correction) [18], LL-Cp (large loss with permanent correction) [18], BCE + EntMax (entropy maximization regularization) [24], and BCE + EntMax + APL (BCE + entropy maximization regularization + asymmetric pseudo-labeling) [24].
Implementation details. Following [13, 18, 24], ResNet-50 [51] pretrained on the ImageNet [52] is adopted as the backbone network in all the experiments. Although simply using the up-to-date weights of ResNet-50 pretrained on the ImageNet can achieve better performance, we still use the old V1 version as the compared methods for fair comparisons. The grid search is adopted for model selection, and the best hyper-parameters are selected by the best mean average precision (mAP) on the validation set. Each experiment runs three times, and both the mean and standard deviation of mAP are reported. Due to the limited space, the best parameters for each dataset are provided in the supplementary materials.
IV-B Experimental results of SPMLL
In this subsection, we report the results of our methods and the compared methods by conducting experiments on four SPMLL benchmarks, and then make detailed analyses.
In Table II, BCE loss in SPMLL setting can be seen as a baseline, and methods starting from “ROLE” focus on SPMLL. We also report the results of BCE loss with full labels as an oracle. Our method OPML-SP is short for OPML loss for Single Positive setting, which is the soft OPML loss with high-rank regularization and label correction. From Table II, we have the following findings. 1) Compared with full labels, the mAP of BCE in SPMLL drops dramatically, e.g., and decrease on COCO and CUB, respectively, which illustrates that BCE loss is not appropriate for SPMLL. 2) Although some of the BCE variants improve the performance, there still exists a large gap between the SPMLL and full labels, especially on CUB, which severely lacks labels in SPMLL. Besides, the second best result is not obtained by the same method, which indicates that the compared methods are not suitable for all the four datasets. Whereas our OPML-SP performs the best on all four datasets and closes the performance gap between SPMLL and full labels, e.g., there are only and differences on VOC and NUS, respectively. And on the most difficult dataset CUB, OPML-SP achieves a new state-of-the-art result, which demonstrates that our method performs more robustly than the compared methods even when there severely lacks labels. 3) Most surprisingly, even in the SPMLL setting, OPML-SP still performs better than BCE in the one positive and all negative labels observed setting. Besides, only adopting the OPML loss defeats state-of-the-art SPMLL methods with regularizations or fine-tuned label correction on CUB. These two funny results can be attributed to that our strategy of pushing one pair of labels apart each time not only prevents the domination of negative labels but also emphasizes the importance of the observed single positive label.
In Table III, results of the commonly used loss functions and our OPML loss are displayed. From this table, we can find that the performance of BCE loss is the worst, which also verifies that BCE loss is not appropriate for SPMLL. Although the variants of BCE loss, i.e., focal and asymmetric losses improve the performance compared with BCE loss, they are still not good enough. Moreover, on the dataset CUB, the improvements are marginal, the reason for this result is that in the setting of SPMLL, CUB suffers from a severe lack of labels, making it more susceptible to noisy labels. Besides, as a special case of our OPML loss, ZLPR achieves a inferior performance, which validates that OPML loss is more flexible and has more potential in SPMLL.
In the following, we conduct statistical experiments to see the distribution of predicted confidence with respect to the positive labels for test set. First, we find the positions where the ground truth in the test label matrix are positive labels, then correspondingly, the predicted confidence scores at the same position in the predicted label matrix are selected for statistical experiments. The Figure 3 shows the statistical histogram of the predicted confidence corresponding to the positive labels in the test label matrix. From Figure 3a, we can find that in the interval of , the frequency of OPML is larger than BCE, which means when trained with the OPML loss, the predicted confidence scores of positive labels are more inclined to . Besides, in the interval of , the frequency of OPML is smaller than BCE, indicating that OPML can alleviate the domination of negative labels in SPMLL. This phenomenon is more obvious in Figure 3b, when trained with BCE loss, the frequencies of the predicted confidence that falling into the interval of and are zero, which means that compared with BCE loss, our OPML loss has a more prominent advantage when the dataset is with more unannotated positive labels.
IV-C Ablation study
In this subsection, we conduct experiments to verify the effectiveness of the high-rank regularization. Besides, we also validate that our OPML loss can be well cooperated with label smoothing and label correction, which are commonly used techniques in noisy label learning. Unless otherwise specified, the experiments in Sections IV-B, IV-C, IV-D and IV-E are all performed in the setting of single positive.
High-rank regularization. Compared with the first row in Table IV, we can find that the mAP scores of the second row on all four datasets increase, which verifies the effectiveness of high-rank regularization. Besides, to validate the performance drop is not that dramatic with the high-rank regularization, we conduct experiments adopting BCE loss, OPML loss, and OPML loss with high-rank regularization, respectively. Results of running 40 epochs on VOC and CUB are shown in Figure 4. It can be seen that the mAP scores are more stable with the high-rank regularization. The reason may be that the high-rank property encourages to push different labels apart, which slows the process of turning the true positive labels to false negative labels. Thus, such a property reduces the impact of noisy label and achieves a stable training in SPMLL. We hope this discovering can bring new inspiration on general noisy label learning.
Label smoothing and correction. From the third and the fourth rows of Table IV, we can find that the performance is improved on all the four datasets with both the label smoothing and correction. Label smoothing achieves higher improvements than CUB on all the other three datasets, which can be attributed to that the ground-truth of CUB contains more positive labels, while label smoothing tries to transform the hard labels to continuous , such an operation does not pay enough attention to the positive labels. Besides, label correction obtains noticeable improvement on all the four datasets, which validates that our training AP-based correction strategy is effective in SPMLL. To sum up, all the experiments illustrate that our OPML loss can be well cooperated with the label smoothing and correction.
IV-D Hyper-parameters study
In this subsection, we conduct experiments with different values of hyper-parameters to study their effects. Note that, the best hyper-parameter is selected by the best mAP on the validation set. In Figure 5, we show the results with different hyper-parameters of and in Eq. 6. Recalling that we transform and for convenience of hyper-parameters selection, thus results are reported with different and . The best hyper-parameter is denoted by the orange pillar. and are the best parameters for VOC, and and are the best parameters for CUB. Note that, as a special case of our loss, the mAP values of ZLPR ( and ) are lower than our OPML loss, which indicates that OPML is more flexible and achieves better performance.
Besides, we also carry out experiments to study the sensitivity of the hyper-parameter in Eq. 10. To better observe the downtrend when is larger than -, we add the mAP values of - and -. From Figure 6, we can see that the mAP value keeps stable when is below -, and the best for VOC and CUB are - and -, respectively. This figure demonstrates that is not sensitive to variations when less than -.
IV-E Grad-CAM visualization
In this section, we utilize the Gradient-weighted Class Activation Mapping (Grad-CAM) [53] to visualize the explanation of the proposed OPML loss, which produces a coarse localization map highlighting the important regions in the image for predicting the concept. In Figure 14, we show seven groups of pictures and their class activation maps, respectively. It can be seen that our OPML loss is capable of highlighting the locations of the concept to be recognized. It is worth mentioning that in Figure 7-(6) and 7-(7), the class activation maps discover missing concepts that are neglected in the ground truth but actually exist in the image. For example, in Figure 7-(6), the ground truth labels ignore the “potted plant” and “car”, which indeed appear in the image. Especially for “car”, it can hardly be recognized even by human, and the same phenomenon can also be found in Figure 7-(7). These intriguing findings demonstrate that our OPML loss not only has an explanatory power that matches with humans, but also has the potential to help humans complete the missing labels, which can provide more accurate and complete labels for training.
IV-F Experimental results of full labels
In this subsection, we conduct experiments on MLL with full labels to validate that our OPML loss can still work well in such a setting, even though it is originated from the SPMLL setting. Note that, ASY [30] is a state-of-the-art method in MLL with full labels, which focuses on addressing the imbalance between positive and negative labels. From Table V, we can find that our OPML loss performs the best on three datasets, which can be attributed to that pushing the positive label with the minimum score and negative label with the maximum score apart may increase the discrimination between them.
IV-G Details of experimental implementation
To better reproduce the experimental results reported in this work, we elaborate the details of experimental implementation in this section. The Stochastic Gradient Descent (SGD) optimizer is used for training. The parameters of OPML-SP (the abbreviation of OPML loss for Single Positive setting) on dataset VOC are listed as follows: batch size is , learning rate is , running epochs are , , , smoothing power parameter , label correction parameter . The parameters used on COCO are that batch size is , learning rate is , running epochs are , , , smoothing power parameter , and label correction parameter . Besides, the parameters used on NUS are that batch size is , learning rate is , running epochs are , , , smoothing power parameter , label correction parameter . Finally, the parameters used on CUB are as below: batch size is , learning rate is , running epochs are , , , smoothing power parameter , and the label correction parameter . The hyper-parameter is fixed at on all four datasets. Note that, the parameters reported here are not fine-tuned, and performance may be further improved with fine-tuned parameters.
V Conclusion
In this paper, we present a novel unified loss named OPML for both SPMLL and MLL with full labels by pushing one pair of labels apart each time to prevent the domination of negative labels. Experiments on four benchmarks verify that the OPML loss not only performs more robustly in SPMLL for alleviating the impact of noisy labels but also works well in MLL with full labels for separating the positive and negative labels. Besides, we empirically find that the high-rank property of the label matrix can slow down the dramatic performance drop, which may shed new light on general noisy label learning. Note that, the imbalance between the positive and negative labels becomes more severe in SPMLL, thus, how to deal with this issue may be a future research direction for further closing the gap between SPMLL and MLL with full labels.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M.-L. Zhang and Z.-H. Zhou, “A review on multi-label learning algorithms,” IEEE Transactions on Knowledge and Data Engineering , vol. 26, no. 8, pp. 1819–1837, 2014.
- 2[2] E. Gibaja and S. Ventura, “A tutorial on multilabel learning,” ACM Computing Surveys (CSUR) , vol. 47, no. 3, pp. 1–38, 2015.
- 3[3] W. Liu, H. Wang, X. Shen, and I. W. Tsang, “The emerging trends of multi-label learning,” IEEE transactions on pattern analysis and machine intelligence , vol. 44, no. 11, pp. 7955–7974, 2021.
- 4[4] J. Wang, Y. Yang, J. Mao, Z. Huang, C. Huang, and W. Xu, “Cnn-rnn: A unified framework for multi-label image classification,” in Proceedings of the IEEE conference on computer vision and pattern recognition , 2016, pp. 2285–2294.
- 5[5] F. Zhu, H. Li, W. Ouyang, N. Yu, and X. Wang, “Learning spatial regularization with image-level supervisions for multi-label image classification,” in Proceedings of the IEEE conference on computer vision and pattern recognition , 2017, pp. 5513–5522.
- 6[6] J. Lanchantin, T. Wang, V. Ordonez, and Y. Qi, “General multi-label image classification with transformers,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , 2021, pp. 16 478–16 488.
- 7[7] J. Ray, H. Wang, D. Tran, Y. Wang, M. Feiszli, L. Torresani, and M. Paluri, “Scenes-objects-actions: A multi-task, multi-label video dataset,” in Proceedings of the European Conference on Computer Vision (ECCV) , 2018, pp. 635–651.
- 8[8] Y. Zhang, X. Li, and I. Marsic, “Multi-label activity recognition using activity-specific features and activity correlations,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , 2021, pp. 14 625–14 635.
