Asymmetric Loss For Multi-Label Classification
Paper · 2021 · Tal Ridnik, Emanuel Ben-Baruch, Nadav Zamir et al.
Summary
An image-tagging system has to learn when a category is present and when it is absent. The second kind of decision is much more common. Even a scene with several recognizable objects leaves most of the available categories unrepresented. Each absent category supplies a training signal, and their combined influence can steer learning toward confident rejection. The authors ask how much recognition can improve by changing the rule that turns predictions into training penalties. Their proposal, Asymmetric Loss (ASL), works with a conventional image classifier and changes how much each category decision contributes to its updates.
Binary cross-entropy, a common starting point, applies corresponding penalties to mistakes about presence and absence. Focal loss discounts predictions that already agree confidently with their annotations, using the same focusing strength for both groups. ASL gives each group its own focusing strength, so the abundant easy negatives can be discounted more sharply while useful signals from the positives remain. ASL also subtracts a margin from the predicted presence probability used to calculate the negative penalty. That adjustment gives sufficiently easy negatives a penalty of zero. It also reduces the gradients from negatives at the other extreme, where the classifier is exceptionally sure that an unmarked category is present. Some of these contradictions may come from omitted annotations, although they can also be confident recognition errors.
In the main MS-COCO classification study, binary cross-entropy reaches 84.0% mean average precision (mAP), a measure of how well category scores rank relevant images. Focal loss reaches 85.1% mAP. An adaptive form of ASL that aims for equal average confidence on positive and negative training labels reaches 85.8% mAP, and the best fixed ASL setting performs better than the best adaptive run. In a separate comparison with earlier systems, the authors report 86.6% mAP on MS-COCO, an improvement of 2.8% over the preceding leading result. The study also reports favorable comparisons on Pascal-VOC, NUS-WIDE and Open Images, with experiments in fine-grained plant recognition and object detection showing that the idea can extend beyond multi-label image tagging.
The controlled comparisons identify what each change contributes. Keeping positive focusing low helps when negative focusing is already strong, and the best combination of focusing and a margin outperforms either mechanism used on its own. The selected settings vary with the task and the loss they are added to. Since ASL acts during training, a classifier trained with it still produces its usual category scores at inference. The paper thus establishes that the way training effort is distributed across label decisions can materially improve recognition with standard architectures.
Deep dive: Asymmetric Loss For Multi-Label Classification
Asymmetric Loss gives present and absent labels different influence during training, improving multi-label image recognition on several benchmarks. · about 38 minutes to read
The problem and its context
Where the imbalance comes from
Imagine a photograph whose annotations identify a person and a bicycle. A classifier has to assign scores to those categories and to the rest of its vocabulary. Its training target is a collection of decisions about that same photograph. Some categories are marked present. The others are treated as absent when the training procedure uses them as negatives. The bicycle decision may require learning which visual features distinguish bicycles from other objects. Many of the decisions about absent categories can become easy quickly, because the photograph provides little reason to predict those categories in the first place.
This structure is systematic. In the Microsoft COCO classification setup, the paper counts 80 categories and an average of 2.9 labels per image. It gives the resulting average ratio of positive to negative label decisions as 0.0376. A label decision here is an image paired with a category. The same image can contribute to the positive group for one category and the negative group for another. As a consequence, the amount of negative supervision can be large even in an image collection with accurate annotations and many different kinds of scenes.
This imbalance concerns the number of present and absent decisions. The paper also discusses work on long-tailed recognition, where some categories occur much more frequently than others over the dataset. The problems can occur together. A category that occurs often enough to have many training examples can still be absent from most of the images in which the classifier scores it. Conversely, a long tail makes some categories especially scarce on top of the basic imbalance created by sparse labels. The distribution-balanced loss discussed by the authors addresses scenarios with a long tail specifically.
An abundance of negative labels matters because training combines contributions from many decisions. Each easy negative can contribute a small incentive to lower its score further. When there are enough such decisions, their accumulated effect can compete with the signal from positives that still need to be learned. The authors are interested in that allocation of effort over training. A loss can reward movement toward greater certainty on negatives even after many of them have become easy to reject.
Hard negatives serve a different purpose. An image may contain something visually similar to the category being scored, so a high presence score can reveal a useful mistake. Training on such an example can sharpen discrimination among categories that the classifier tends to confuse. A mechanism for reducing negative influence has to preserve enough of these corrections for recognition to improve. The frequency of negatives by itself gives little guidance about which particular contributions to keep.
When the annotations leave something out
Incomplete labeling creates another source of difficulty. The paper discusses earlier work on partially labeled images and points out that annotators can overlook categories that are actually present. A training procedure that uses an unmarked category as a negative then receives a misleading instruction. In the bicycle example, an omitted bicycle annotation would ask the classifier to lower the bicycle score even if it had recognized the object correctly.
The error is especially awkward if training puts its greatest effort into correcting disagreements. An omitted positive can look exactly like a difficult negative. As its predicted presence grows, an ordinary penalty for negative annotations presses more strongly for a reversal. The same response is appropriate for a real false alarm. The classifier's score supplies a clue about the strength of a contradiction, while the validity of the negative annotation remains a separate question.
The paper tackles this by examining the shape of the learning signal across the entire probability range. There is room to give the weakest negatives no attention, reduce the contributions from somewhat easier negatives, and temper the strongest contradictions while retaining correction over the intervening range. The problem is therefore more specific than finding a small weight for all negatives. The appropriate influence depends on how training currently scores the category and on what kinds of mistakes the annotations may contain.
Earlier work on representations and training objectives
The authors describe several ways earlier image-recognition research drew on structure in multi-label data. Graph-based approaches represent relationships among categories so that information about one category can help with another. Some systems use word embeddings to bring in information about the meanings of category names. Other methods attend to regions where useful evidence might occur, or use recurrent processing to capture dependencies among predictions. These strategies make different kinds of evidence available to the classifier.
ASL intervenes at a different point in learning. The image network still extracts features and produces category scores. The loss determines which discrepancies between those scores and the annotations drive changes to the network. This makes the objective a variable the authors can study while keeping the basic category prediction mechanism in place. It also explains why they regard the approach as compatible with work on attention, label correlations and external semantic information. Those additions change the information available for prediction or how it is processed. ASL changes the learning signal generated by the resulting scores.
Earlier research used static weights to adjust the influence of groups of examples. The paper cites Class-Balanced Loss among approaches to imbalance through weighting. A fixed factor can increase the importance of positive decisions overall. All examples receiving that factor retain the same multiplier as their predictions change, however. The ASL study asks whether the evolving difficulty of an individual decision can guide a more selective allocation. The authors also point to an interaction between a static weight and focal loss's focusing parameter. Adding a weight would leave both quantities to be selected together.
Dense detection offers a closely related precedent. In that problem, many candidate locations correspond to background and relatively few correspond to foreground objects. One response is to select a subset of background examples. Selecting or discarding an entire image in multi-label classification simultaneously changes the supply of training information for all its categories. The authors argue that this makes resampling images poorly suited to adjusting the balance of an individual category decision.
Focal Loss for Dense Object Detection provides the more direct precedent. Focal loss changes the penalty continuously according to how confidently a prediction agrees with its annotation. A correctly rejected background location can then contribute much less than a difficult location. The same logic applies to an easily rejected category in a multi-label image. In the literature surveyed by the authors, binary cross-entropy was still a common multi-label objective, making focal loss a natural baseline to test alongside it.
The authors identify a constraint in carrying over the focal rule unchanged. When the exponent governing the discount increases, both easy negatives and easy positives are affected. The setting that sufficiently reduces the aggregate effect of negatives can also diminish signals from the comparatively few positives. This problem motivates independent focusing parameters. Annotation uncertainty motivates the additional probability shift. The paper studies them separately because a change in how quickly a contribution decays and a cutoff that removes it altogether are different interventions.
The method, step by step
Make a separate prediction for each category
The classifier begins with a score for each category, called a logit. A sigmoid converts each logit to a presence probability. The scores undergo this conversion independently, so a high probability for one category leaves room for high probabilities for others. During training, the annotation chooses the positive or negative branch of the loss for each score. The contributions from the categories are then collected into the image's training objective.
How ASL turns image predictions into training updates
The steps in order.
The paper gives the sigmoid in its analysis of gradients.
p = σ(z) = 1 / (1 + e^(−z))
Here, z is the logit for the category under consideration, σ is the sigmoid, and p is the resulting presence probability. The constant e is the base of the natural exponential, and the exponent is the negated logit. The constants written as 1 give the numerator and the additive term in the denominator. Larger logits yield larger probabilities. The probability p refers to presence even when the training annotation says the category is absent.
The image-level objective adds up the losses from the full category inventory.
Lₜₒₜ = ∑ₖ₌₁ᴷ L(σ(zₖ), yₖ)
Lₜₒₜ is the aggregate classification loss, K is the number of categories, and k is the category index. The sum starts at the first category and ends at K. For category k, zₖ is its logit and σ(zₖ) its probability. The annotation is yₖ. The function L takes the probability and the annotation and returns the training penalty for that label decision. The sum lets the same image contribute separately to learning about each of its categories.
ASL replaces the binary penalty in this sum. The paper writes a general branch-selection rule before specifying the particular loss functions.
L = −y L₊ − (1 − y) L₋
L is the penalty to minimize for a category, and y is its binary annotation. A value of 1 represents an annotated presence and selects L₊. A value of 0 represents an annotated absence and selects L₋ through the multiplier 1 − y. L₊ and L₋ are signed log terms. The leading minus sign on the selected term converts it to the minimized penalty. Keeping track of that sign matters when reading the derivative later.
Use prediction difficulty to change the penalty
Binary cross-entropy uses the logarithm of the probability assigned to the annotated outcome, with the minus sign from the selection rule. For a positive annotation, the relevant probability is p. For a negative annotation it is the complementary probability. A high probability for the annotated outcome gives a small penalty. When the classifier assigns little probability to that outcome, the penalty grows.
Focal loss introduces a multiplier that makes this decline steeper as the decision becomes easier. For the positive annotation the paper gives the following term.
L₊ = (1 − p)^γ log(p)
L₊ is the signed positive term, p is the category's presence probability, and log is the logarithm. The complement 1 − p is the probability assigned to absence. The exponent γ controls the strength of focusing. As p grows for an annotated positive, its complement shrinks, which shrinks the multiplier for a positive γ. The log term continues to express the agreement between the category score and the positive annotation.
For a negative annotation, focal loss uses the same exponent with the roles of the probability and its complement exchanged.
L₋ = p^γ log(1 − p)
L₋ is the signed negative term. The quantity p is still the probability of presence, 1 − p is the probability of absence, and log again denotes the logarithm. The same γ raises p to the focusing power. A small p agrees with a negative label and makes the multiplier small. A negative with a higher p calls for more correction and retains greater influence in this unshifted formulation.
With γ set to 0, both focal multipliers reduce to the unmodulated case, yielding binary cross-entropy. Increasing γ suppresses predictions that already agree with their annotations. This is useful when correct, easy rejections account for much of the training data. It also means that once the classifier begins to recognize a positive with reasonable confidence, the signal from that positive is reduced by the same kind of modulation. The focal exponent governs both transitions at once.
Give positive and negative labels independent exponents
The first ASL change is to use a separate exponent on the positive side.
L₊ = (1 − p)^(γ₊) log(p)
Here, L₊ still denotes the positive log term, p the presence probability, and log the logarithm. The factor 1 − p expresses the probability of the competing outcome. The exponent γ₊ sets how quickly the positive contribution is discounted as recognition becomes easier.
On the negative side, the first change gives the corresponding exponent its own value.
L₋ = p^(γ₋) log(1 − p)
L₋ is the negative log term before adding the margin. The quantities p and 1 − p denote the presence and absence probabilities, and log is the logarithm. The exponent γ₋ determines the attenuation on negative annotations. The authors generally set γ₋ above γ₊ so the discount is stronger for easy negatives.
The weight associated with focusing is recalculated from the current score. Consider an absent category that initially looks plausible to the classifier because the image contains a visually confusing object. Its negative term can matter early, then shrink once the classifier learns the distinction. The same reasoning applies in reverse if a category begins receiving higher presence scores. The exponents govern these responses across examples, while the score determines where any particular label decision falls.
The authors often choose γ₊ equal to 0. In that setting positive labels use the cross-entropy branch, whose penalty still falls as the classifier becomes more confident about presence. The extra focal discount is removed from that branch. Keeping γ₊ in the definition also lets the authors test other tasks where easy positives may deserve more attenuation. This flexibility matters in the detection experiment.
Shift the probability used to penalize negatives
The second change takes effect after the sigmoid and only on the negative branch. It subtracts a probability margin and floors the resulting value.
pₘ = max(p − m, 0)
Here, pₘ denotes the shifted presence probability, p is the original presence probability, and m is a tunable margin of at least 0. The max operation chooses the larger of p − m and 0. A p below m therefore sends a shifted probability of 0 to the negative branch. Above the margin, the shifted value grows with the original probability.
The paper first shows the shift with a focal exponent.
L₋ = pₘ^γ log(1 − pₘ)
L₋ denotes the signed term for negative annotations in this intermediate construction. The value pₘ enters both the focusing multiplier and the logarithm, γ is the focal exponent, and log is the logarithm. The complement 1 − pₘ is formed from the shifted probability. When pₘ is 0, the branch has zero penalty. In the case without a focusing multiplier, that conclusion follows from the log term alone.
The resulting cutoff is a rule about the training signal. A negative score below the margin can stay where it is without contributing further pressure on that category. Other decisions associated with the image can still affect the update. The same positive annotation as before receives the original probability, so the cutoff operates specifically on negative supervision.
The fact that shifting happens in probability space matters. A constant offset added to a logit passes through a nonlinear sigmoid and produces a probability change that depends on the starting score. The ASL margin is taken directly from p, and the floor creates a region of exactly zero negative loss. The authors also relate probability shifting to a geometric view of linear hinge loss, where a corresponding shift can be applied symmetrically. For ASL the shift is reserved for the side of the loss that receives the many negative labels.
The complete ASL definition combines the independent exponents with the shifted negative probability.
(L₊, L₋) = ((1 − p)^(γ₊) log(p), pₘ^(γ₋) log(1 − pₘ))
The ordered pair contains the positive term L₊ and the negative term L₋ selected by the binary annotation rule. The original presence probability p and its complement enter the positive term with exponent γ₊. The shifted presence probability pₘ and its complement enter the negative term with exponent γ₋. The log notation means the logarithm in each branch, and each complement is formed by subtracting its probability from 1. The margin m affects the pair through pₘ.
This form yields a flat region for the easiest negatives and a gradual change in negative influence after the boundary. The authors illustrate the shifted negative loss with γ₋ set to 2 and m set to 0.2. The plot compares that shape with those of binary cross-entropy and unshifted focal loss. The default training choice reported for the general multi-label experiments uses γ₋ of 4, γ₊ of 0 and m of 0.05. Regular focal loss in that procedure uses γ of 2.
Follow the gradient that descends from the penalty
The amount of a penalty and the size of the update it induces are different quantities. Training uses the derivative of the penalty with respect to the logit, with the derivative then propagated through the network. A large penalty at a particular probability may coexist with a small gradient there. That distinction explains a property of shifting which is easy to miss in a plot of the penalties alone.
Write ℓ₋ for the minimized penalty when the label is negative. In the region above the margin, the paper's gradient expression is as follows.
dℓ₋/dz = pₘ^(γ₋) [1/(1 − pₘ) − γ₋ log(1 − pₘ)/pₘ] p(1 − p)
The derivative dℓ₋/dz is the change of the negative penalty ℓ₋ with respect to the logit z. The notation ℓ₋ incorporates the outer minus sign from the binary objective. The paper labels the derivative with L₋, although the displayed right-hand side is for the minimized penalty. The presence probability is p, its shifted value is pₘ, the negative exponent is γ₋, and log denotes the logarithm. The denominators use the shifted probability and its complement with respect to 1. The term p(1 − p) is the derivative of the sigmoid with respect to the logit. Below the margin the penalty is constant and its gradient is zero. The active-region expression contains a division by pₘ and is read on the side where pₘ is positive.
The behavior near the cutoff explains why the two mechanisms can be useful together. With a shift and no focusing, the gradient immediately above the margin can be appreciable even though the gradient below it is zero. Focusing attenuates the gradient close to the active side of the boundary, where the shifted probability is small. In the combined setting with positive negative focusing, the transition of the gradient can be continuous at the cutoff. Negative decisions a little above the margin still have an effect, with its magnitude increasing as their disagreement becomes more substantial.
At very high presence probabilities, the sigmoid factor in the derivative becomes small. With a positive shift in the tested range, the shifted probability stays below 1 even as the original probability approaches 1. This keeps the logarithmic derivative terms from growing without bound in that limit, so the sigmoid factor can bring the gradient back down. The loss can still penalize the negative decision strongly while supplying a weaker corrective update than it gives to a less extreme contradiction. In the illustrated analysis the authors use a turning point to describe where the gradient begins to decline.
d/dp (dℓ₋/dz) = 0
Here, dℓ₋/dz is the logit gradient of the minimized negative penalty, p is the original presence probability, and the outer derivative measures how that gradient changes with p. The right-hand side 0 specifies a stationary point of the gradient as a function of probability. The authors denote the relevant probability by p*. The comparison is about how the strength of the corrective signal changes at high p, with p* describing the transition for the shape under study.
The paper associates the declining region with suspected annotation omissions. A category whose presence is strongly supported can continue to get a high score in spite of its negative training label. Reducing the correction from that label may be helpful if the annotation omitted a real object. The gradient also weakens for a genuinely absent category scored with the same confidence. The intended behavior is to give useful corrections enough room between the flat region for easy negatives and the attenuated region for extreme disagreements.
Read confidence in the direction of the annotation
The paper tracks training confidence separately for the positive and negative annotations. On the positive side, confidence rises with presence probability. On the negative side, it rises as presence probability falls. This makes it possible to compare the two groups on the same interpretation of a high value.
pₜ = p̄ if y = 1, and 1 − p̄ otherwise
Here, pₜ expresses confidence in the annotated outcome, p̄ is the batch average of the predicted presence probabilities for the group being considered, and y specifies which annotation group is being used. The positive group has y equal to 1 and uses the mean directly. The negative group uses the complement relative to 1. The paper denotes the resulting positive and negative means by pₜ⁺ and pₜ⁻, respectively.
The diagnostic subtracts the negative mean from the positive mean.
Δp = pₜ⁺ − pₜ⁻
Δp is the confidence gap, pₜ⁺ the mean confidence in presence for annotated positives, and pₜ⁻ the mean confidence in absence for annotated negatives. A negative gap means the classifier is more confident on average about the negative outcomes. The two means can also become similar while prediction difficulty varies considerably within either group. The authors use the gap to follow how the loss affects their relative learning trajectories.
The paper distinguishes the gap from the choice of a threshold for reporting predictions at inference.
Report presence when p > pₜₕ
Here, p is the original presence probability and pₜₕ is the threshold at inference. The greater-than condition selects categories reported as present. Lowering this threshold can retrieve more positives and admit more false positives. It changes how the trained scores are turned into decisions. The loss and its probability margin act earlier, when the scores themselves are being learned.
Let the negative exponent change during training
The adaptive variant uses the confidence gap as a quantity to control. The authors keep γ₊ at 0 and use a small fixed margin, leaving γ₋ as the quantity that changes after a batch. The target specifies the desired balance between average confidence on positive and negative annotations. The paper prints the update in terms of the measured gap as follows.
γ₋ ← γ₋ + λ(Δp − Δpₜₐᵣgₑₜ)
The arrow means to replace the existing negative exponent γ₋ with the value on the right. The quantity λ is the step size for adapting the exponent. The measured batch gap is Δp, and Δpₜₐᵣgₑₜ is the desired gap. Their difference governs the adjustment. The paper gives the rule again explicitly in terms of the group confidences.
γ₋ ← γ₋ + λ(pₜ⁺ − pₜ⁻ − Δpₜₐᵣgₑₜ)
The quantity being updated is again γ₋, using step size λ. The means pₜ⁺ and pₜ⁻ refer to confidence in their respective annotations, and Δpₜₐᵣgₑₜ is the target. The subtraction inside the parentheses substitutes the definition of the measured gap into the preceding update. The authors also print the equal-confidence form.
γ₋ ← γ₋ + λ(pₜ⁺ − pₜ⁻)
Here, γ₋ is the negative focusing exponent, λ the adaptation step size, and pₜ⁺ and pₜ⁻ the current positive and negative mean confidences. This is the form with a target of 0. All of these expressions refer to updates of the loss hyper-parameter alongside ordinary learning of the network weights.
There is a sign ambiguity between the printed rule and the verbal account of the feedback. With a positive λ, a measured gap below the target makes the printed increment negative. The authors describe increasing negative focusing to give positives more relative influence, and they describe raising the target as a way of increasing asymmetry. The reported trajectories show the behavior of their experiments. Connecting that behavior to the printed rule requires resolving the sign convention. The fixed version used for the headline benchmark comparisons requires no such adaptive update.
The rest of the training setup
The default procedure uses Adam to update the network weights and a 1-cycle learning-rate policy, which varies the size of updates over training. The authors train for 60 epochs, with a maximum learning rate of 2e-4. They apply standard image augmentation and scale the red, green and blue channels between 0 and 1. They tried the commonly used ImageNet normalization statistics and found no improvement from them in their setup.
TResNet-L is the authors' default backbone, the part of the classifier that constructs image features. Some benchmark comparisons also use ResNet101, a backbone common in the earlier multi-label systems they discuss. The paper describes the two as equivalent in runtime for its purposes. It reports releasing its implementation, trained weights and code for reproducing training. It also makes available the version of NUS-WIDE it was able to assemble, since the set of retrievable images matters for comparability.
Experiments and results
The main loss comparison on MS-COCO
MS-COCO provides the central test of the objective. The image classification setup uses 122,218 images, divided into 82,081 training images and 40,137 validation images. The scores are evaluated for the 80 categories. The loss comparison asks how well the system learns that set of category decisions under binary cross-entropy, focal loss and ASL. Comparisons with previously published systems ask a broader question about the resulting classifier and its full training configuration.
The main measure is mean average precision, abbreviated mAP. Average precision uses the ordering produced by presence scores for a category to assess how well relevant images are retrieved as more predictions are admitted. Mean average precision combines results across categories. The paper also reports class-averaged precision, recall and F1 as CP, CR and CF1, along with overall measures OP, OR and OF1. Precision describes the success of predictions declared positive. Recall describes how much of the annotated positive set is recovered. F1 combines the two. The authors report overall statistics and a top-3 setting based on the highest scores, and emphasize mAP, OF1 and CF1 in their main comparisons.
The following comparison uses the common MS-COCO classification validation metric for the symmetric baselines and the adaptive ASL setting with a target gap of 0. The focal score is the result reported in the sweep of the symmetric exponent.
Training losses on MS-COCO classification validation, mAP
Focal loss improves on binary cross-entropy, and adaptive ASL with an equal-confidence target scores higher still.
The numbers
| System or setting | mAP % |
|---|---|
| Binary cross-entropy | 84.0 |
| Focal loss | 85.1 |
| Adaptive ASL, equal-confidence target (this paper) | 85.8 |
The focal result shows how much the comparison changes when a baseline already discounts easy decisions. The adaptive result is obtained by steering the relative confidence of the label groups during training. Further tuning, including the use of fixed negative focusing, produces stronger results in the authors' study. The point of this comparison is to quantify the change from the symmetric objectives to a concrete instance of ASL trained on the same classification task.
Complete MS-COCO systems and stronger training configurations
The paper reports 86.6% mAP for MS-COCO classification validation and describes it as improving on the previous leading mAP by 2.8%. The comparison with earlier ResNet101-based systems is also favorable. At input resolution 448, the authors report an improvement of more than 1% in the leading mAP for that backbone, alongside improvements in other metrics. The headline comparison and the fixed-backbone comparison supply different views of the advance. The first captures the performance of the complete configuration. The second compares systems with a common feature extraction architecture.
The comparison with earlier methods has practical significance because many of those systems obtain category information through additional attention mechanisms, graph computation, external label embeddings or a teacher during training. The ASL configuration produces category scores using standard architectural components. The authors argue that this preserves the training and inference efficiency of the system, and that ASL can also be combined with richer approaches. The loss replacement itself operates when annotations are used to compute training penalties. The deployed classifier still computes its normal scores.
The backbone experiment compares cross-entropy, focal loss and ASL on OFA-595, ResNet101 and TResNet-L. OFA-595 is associated with Once-for-All. The authors report that ASL leads across those backbones. This is evidence that the loss effect survives changes in the feature extractor among the architectures tested. They also report that TResNet-L improves scores while matching the throughput associated with ResNet101, making backbone selection a separate source of gains in the complete system.
The authors vary pretraining and input resolution as well. Their comparison of ImageNet-1K with ImageNet-21K pretraining finds that the stronger pretraining improves MS-COCO classification validation mAP by nearly 2%. Raising the input resolution from 448 to 640 improves results further. Larger inputs and different pretrained weights change the evidence available to the classifier and the starting point of learning. Their observed effects make it important to read the loss study and the headline score with their respective comparison conditions.
Pascal-VOC and NUS-WIDE
The Pascal-VOC experiment uses VOC 2007, with 20 categories and an average of 2.5 categories per image. The trainval collection contains 5,011 images, and testing uses 4,952 images. The authors follow the general MS-COCO training settings. This brings the method to a smaller category inventory and an independently defined test set.
For Pascal-VOC, the comparison is organized around access to pretraining data. Earlier work often uses ImageNet pretraining, while some systems also use MS-COCO or additional semantic information. The authors give ASL results under ImageNet pretraining and under a setting with additional MS-COCO pretraining, then compare with the applicable earlier systems. They report leading results under both conditions. Their separate loss comparison on the Pascal-VOC test set also places ASL ahead of cross-entropy and focal loss. The paper's discussion establishes the ordering of the losses and the pretraining conditions without supplying exact scores for these comparisons in the prose.
NUS-WIDE provides annotations for 81 visual concepts. The original collection contains 269,648 images, of which the authors could download 220,000 because some of the addresses had ceased to work. They use the standard 70-30 train-test split and carry over their MS-COCO training settings. The NUS-WIDE test results are reported to exceed those of prior approaches, and the loss comparison again favors ASL over focal loss and cross-entropy.
The benchmarks contribute different kinds of evidence. Pascal-VOC makes pretraining a visible condition of the comparison, since the resources used by earlier systems differ. NUS-WIDE makes the image population itself a condition. A shared dataset name can refer to different retrievable subsets. The authors recommend the release of NUS-WIDE they assembled as a basis for later standardized comparisons. Within their version, the direct comparisons among loss functions use the test setting they specify. Comparisons against published results carry the additional uncertainty about the underlying images.
Open Images at a larger category scale
Open Images v6 expands the number of images and the category inventory. According to the paper, the complete release contains 125,436 images for testing and 9 million for training. The authors were able to retrieve 114,648 test images, which had about 5,400 distinct tagged classes. It is a partially annotated collection with both human and machine-generated labels. This setup gives the loss many opportunities to encounter weakly supported negatives and many categories for which an unmarked label might represent uncertainty.
The authors treat untagged categories as negatives with reduced weight. That is a data-handling decision layered into the training procedure. It distinguishes the influence of an untagged category from the influence it would have if treated as a full-weight negative. ASL's own treatment still depends on the predicted probability and the focusing and margin settings.
Training at input resolution 224 lasts 30 epochs and is followed by 5 epochs of fine-tuning at resolution 448. The authors increase focusing for the higher imbalance. ASL uses γ₋ of 7 and γ₊ of 0, and focal loss uses γ of 4. Other settings follow their general procedure where applicable. The comparison therefore puts ASL against a focal baseline also adjusted for the task.
The paper reports that ASL surpasses cross-entropy and focal loss on the Open Images test subset. The authors say they knew of no published scores from other methods for their v6 comparison, so the evidence there comes from the loss baselines under their own setup. This benchmark shows that the objective can work with the combination of scale, sparse labels and reduced weighting for untagged categories. The experiment evaluates that combination as a recognition system.
Fine-grained species recognition
The Herbarium 2020 challenge tests single-label classification of vascular plant species from specimen images. The collection contains over 1M images and represents over 32,000 species. Some species have a minimum of 3 specimens, while some are represented more than a hundred times. Success requires distinguishing among many possible species even though a specimen is assigned a single class. The frequency distribution also gives the training procedure much more experience with some species than with others.
The official metric is macro F1, which averages category-level F1 scores. This places weight on performance across the inventory, including categories with few examples. The authors compare focal loss with γ of 2 to ASL with γ₋ of 4 and γ₊ of 0. The scores are evaluated on an unseen private set.
ASL beats focal loss on that set, and the authors say its test result would have ranked 3rd among 153 competition teams. The reported rank places the result in context. The loss comparison shows that the idea remains useful when the annotations specify a single category and the label inventory has a long tail. This task extension evaluates a particular application and metric alongside the multi-label evidence.
The classification term inside an object detector
The detection experiment uses a different MS-COCO split, with 118k training images and 5k evaluation images. The detector is FCOS, with improvements associated with ATSS and training through the mm-detection package. The backbone is TResNet-M. In this task the system must locate objects as well as identify their categories.
FCOS uses 3 training losses. Focal loss trains category predictions, a loss based on Intersection over Union trains the bounding boxes, and cross-entropy trains centerness, a prediction concerning a location's relation to the object center. The classification term has to handle the large supply of background examples. The authors put ASL in that term and keep the box and centerness objectives in place. This gives a direct test of the classification change within a larger detection procedure.
They train with stochastic gradient descent for 70 epochs. The batch size is 48, the momentum is 0.9 and the weight decay is 0.0001. The schedule includes a warm-up, a learning rate specified as 0.01, and a 10x reduction at epochs 40 and 60. ASL uses γ₊ of 1 and γ₋ of 2, while the focal baseline uses γ of 2. The paper reports a 0.4% improvement in mAP on the MS-COCO detection evaluation set.
The positive focusing setting is consequential here. The authors found that setting γ₊ to 0 was suboptimal in this experiment. They suggest that the way the classification term interacts with the other detection losses could account for the preference. The result shows that the loss can be inserted into an existing detection objective and that a setting selected for image tagging can give way to a different one in that context.
What the ablations show
How much symmetric focusing helps
The MS-COCO study begins with an exponent sweep for focal loss. An exponent of 0 gives the binary cross-entropy baseline. The strongest focal settings lie in the range from 2 to 4. This locates a useful degree of suppression for easy decisions under a loss whose modulation is shared between positives and negatives.
The authors interpret the weaker scores below and above that range through different effects. At low focusing, many easy negatives retain an appreciable combined signal. At sufficiently strong focusing, the positive branch also gives up useful signal. This is the tradeoff that gives independent exponents a purpose. Changing from cross-entropy to focal loss can already help, while further increasing a common exponent eventually harms the category predictions the study evaluates.
The sweep supports the proposed mechanism through an intervention with a specific consequence. It changes how rapidly training contributions decay as the predictions agree with annotations. The score rises when some decay is supplied and weakens when the decay is too strong under symmetric treatment. The evidence concerns the shape of the result in this experiment. The appropriate exponent remains tied to the population of decisions encountered in training.
What happens when positives keep more influence
The next comparison varies the positive exponent with the negative exponent held at 2 or 4. In both series, the authors report an improvement as positive focusing is reduced. The best tested positive setting is γ₊ equal to 0. This is a more focused test of the explanation than comparing complete systems. Within each series the prescribed decay on negatives is fixed, so the change under study is how the loss treats the positive decisions.
When positive focusing is removed, the positive penalty still declines as classifier confidence improves. The difference is that it declines at the rate of ordinary cross-entropy. This leaves useful positive influence across a wider range of confidence while negative focusing keeps many easy rejections from dominating. The observed direction of the mAP comparison matches that rationale.
The authors tried extending the asymmetry by taking γ₊ below 0. Those runs failed to converge. This sets a practical boundary for the procedure they tested. The advantage of removing an extra discount on positives offers limited grounds for assuming that an exponent which reverses the discount will keep improving learning. Their retention of γ₊ in the definition also makes sense given the successful detection setting with positive focusing.
Why the margin changes with the baseline
The shifting experiment adds a margin to cross-entropy and to symmetric focal loss. For the focal conditions the exponents are 2 and 4. The margin improves mAP with both families of loss in the reported sweep. Its favorable value depends on the underlying focusing strength.
For cross-entropy, the best margin is m of 0.05. In the authors' explanation, shifted cross-entropy has a sharper gradient transition at the boundary because no focal factor suppresses the active side. A small margin already cuts off very easy negatives and changes the behavior for extreme contradictions. Increasing it further extends that abrupt boundary into a range of probabilities where useful corrections can be affected.
For focal loss, the preferred margin lies between 0.3 and 0.4. Focusing is already discounting many easy examples, so the authors argue that the shift has to reach farther to change their contribution substantially. With shifting in place, γ of 2 gives better scores than γ of 4. The result is consistent with the two operations jointly controlling how extensively the loss discounts decisions. A setting useful for the shift on its own within a symmetric focal formulation can differ greatly from the best shift when positive and negative focusing are already separated.
This sweep provides experimental context for the gradient analysis. A cutoff can be added to either baseline, but the slopes on either side depend on how the rest of the loss is built. Evaluating a margin by its numerical value alone would hide whether active negatives immediately above it get a sharp correction or a smoothly attenuated one. Both where the boundary falls and what happens beyond it matter.
Combining focusing and shifting
The paper then compares strong settings for the individual mechanisms with the chosen combination. The asymmetric-focusing setting uses γ₊ of 0 and γ₋ of 3. The shift applied to the symmetrically focused objective uses γ of 2 and m of 0.3. The combined configuration uses γ₊ of 0, γ₋ of 4 and m of 0.05. The reported mAP ordering puts the combined ASL configuration first.
This is a comparison among settings selected for different variants. The exponents and margin change across variants, so the result captures the value of combining the mechanisms and choosing an appropriate joint setting. A simple additive interpretation of the gains is unavailable from that design. The gradient analysis supplies a reason for complementarity. The shifted branch can eliminate a region of negative contributions and temper the strongest contradictions. The independently focused branch can preserve more positive learning and smooth the attenuation above the cutoff.
The authors also compare against a focal variant with a static weight favoring positive labels. They search from 0.5 to 0.95 in steps of 0.05. This gives static weighting its own tuning opportunity. The resulting comparison favors the combined ASL objective. A group weight scales the contributions within a whole label group. Probability shifting and independent focusing give the authors additional control over the shape of those contributions at different confidence levels. The result shows the latter control is valuable relative to the particular weighted alternative evaluated on MS-COCO.
What the training confidence curves add
The training curves monitor agreement with the annotations separately for positives and negatives. The focal condition uses γ of 2. The ASL condition uses γ₊ of 0, γ₋ of 2 and m of 0.2. These settings define the confidence analysis. They illustrate how an asymmetric loss changes training trajectories before any final decision threshold is applied.
On MS-COCO, binary cross-entropy ends training with a confidence gap of −0.23. Focal loss ends with a gap of −0.1. In each case the negative value means greater mean confidence about absence on negative annotations than about presence on positive ones. The illustrated ASL run closes the gap. The comparison shows that symmetric focusing reduces the observed confidence disparity and that a suitable asymmetric setting can reduce it further.
The authors interpret a large negative gap as evidence that learning has concentrated too much on negative decisions. That interpretation gains support from the separate experiment in which reducing positive focusing improves validation mAP. The curves alone measure group means over training, while mAP measures the quality of rankings in validation. Together they connect the intended redistribution of training influence to an improvement in recognition.
What adapting the exponent achieves
The adaptive experiments ask whether a target for confidence can provide an interpretable substitute for manually selecting the negative exponent. In the trajectory illustrated in the appendix, the authors set the target gap to 0.1, the positive exponent to 0 and the margin to 0.05. They report that the measured gap and the negative exponent settle after 10% of training. This is evidence about the observed behavior in that run, where the training process was able to reach the specified degree of positive confidence relative to negative confidence.
In the MS-COCO validation comparison, the equal-confidence target yields 85.8% mAP and exceeds the focal baseline. A target of 0.2 gives a stronger score than equal confidence. The improvement with the positive target suggests that giving the sparsely represented positives extra emphasis can be beneficial even after the average confidence disadvantage has been removed. Equal group means provide a legible training target, while validation performance determines whether a further shift is beneficial.
The best adaptive mAP remains 0.2% below the best fixed ASL mAP in the MS-COCO study. The authors suggest that adaptation can leave the exponent in a less favorable range early in training, when its influence on the final classifier may be especially consequential. They observe that the adaptive exponent tends to settle at higher values, which they discuss as possible compensation for the early period. The mechanism is their explanation of the performance gap. The reported comparison establishes the ordering of the adaptive and fixed methods, while the cause of the shortfall is left open. The authors use fixed settings for the main dataset results.
Limitations
Limits the authors identify
The dataset comparisons have explicit boundaries. For NUS-WIDE, broken image addresses affect which records can be evaluated. Earlier results may use different subsets, and the authors acknowledge that this makes direct comparisons difficult. Publishing their own retrieved subset gives future work a concrete collection on which to repeat the experiment. Comparability with earlier scores still depends on which images and split those systems used.
For Open Images v6, the authors knew of no published comparisons with other systems in their setting. The empirical claim rests on the cross-entropy and focal-loss baselines that they trained. The obtainable test subset and the treatment of untagged categories are also part of that setting. The result is a benchmark with specified conditions for future work.
The authors acknowledge a performance cost for adaptive asymmetry in their MS-COCO comparison. The convenience lies in controlling an interpretable confidence gap. The best observed result still comes from a fixed negative exponent. Adaptation of the margin, or adjustment of the negative exponent separately for each category, is discussed as future work. The results for a shared adaptive exponent leave the effectiveness of those proposals open.
The detection study also leaves a question about why a positive focusing exponent helps in that setting. The authors suggest interactions among the task's classification, bounding-box and centerness objectives. They flag the explanation for further study. Their experiments provide useful settings for several situations, with the choice of exponents remaining sensitive to the task and, in open-vocabulary-scale classification, to the degree of label imbalance.
Limits imposed by the experimental design
The strongest evidence for missing-label robustness is about the behavior of the objective. The gradient becomes smaller for extreme disagreements with a negative annotation. From the loss's perspective, an unmarked object and a genuine false positive with the same score produce the same signal. The gradient shape establishes that ASL attenuates both. Deciding how frequently this protects a correct prediction would require independently checking which disagreements reflect actual omissions.
The experiments do not measure recognition as a function of a known rate of annotation omission, or audit the examples receiving the weakest high-confidence corrections. That leaves the contribution of annotation robustness to the observed gains unresolved. The easy-negative cutoff and the suppression of potentially incorrect labels arise from the same shift, which changes the full shape of the negative gradient. Open Images also assigns reduced weights to untagged labels. Its gains therefore reflect the chosen training objective interacting with that treatment of incomplete supervision.
Average confidence introduces another limit. The confidence gap summarizes the training decisions in each annotation group. Similar means can hide categories where positives remain difficult, as well as differences in the dispersion of scores. The gap also describes agreement with training annotations, including those that may be incomplete. Its value as a diagnostic is to expose a broad disparity; evaluating the ranking, classification decisions or quality of the probabilities requires evidence on the corresponding outcome.
The printed adaptive rule leaves a reproducibility question about the direction of feedback. The claimed convergence describes the reported run and its target. A general stability claim would require conditions on the response of the confidence gap to changes in the exponent, on the sign and size of the update, and on the effects of batch variation. The paper's controlled comparison of fixed losses can be interpreted independently of those questions.
The complete-system benchmarks also leave room for several causes of improvement. The authors show separately that architecture, pretraining and resolution affect the scores. The reported advance over earlier systems measures the configuration with those choices in place. Comparisons among losses using the authors' training setup are the evidence for an effect of the objective itself. The architecture and throughput observations concern the systems evaluated, while the argument for unchanged prediction work follows from leaving the inference computation outside the training loss.
Finally, transfer in the paper is demonstrated on visual tasks. Herbarium adds single-label fine-grained recognition, and FCOS adds a detector whose classification objective competes with other training losses. Each extension supplies evidence under a specific dataset, training regime and metric. What the same gradient design would do in language classification, with different annotation practices and category inventories, remains an empirical question for later work.
What came after
The later citations lead from image recognition into several forms of language classification. Their titles identify the tasks and the main approaches. The citation record alone leaves the role of ASL unresolved in each case, including whether the authors trained with the full loss, borrowed an element of it, used it for comparison or cited it as related work.
In Arabic sentiment and emotion research, Aslam's study combines stacked embeddings with a hybrid objective for multi-label emotion classification. Its focus on the objective is directly relevant to ASL's question about the training influence of the labels present in a given example. A text assigned several emotions supplies a collection of annotation decisions, just as an image assigned several categories does. Which objective terms entered the hybrid loss, and what effect can be attributed to ASL, are unspecified in the citation record. Improving Arabic Multi-Label Emotion Classification
The Arabic ArAIEval papers place the citation in studies of persuasion techniques, propaganda and disinformation. UL & UM6P investigates transformer-based detection in the shared task. Rematchka studies prefix tuning and prompt tuning for detecting propaganda and disinformation in Arabic social media. These are distinct approaches to producing category predictions for related tasks. Their connection to ASL raises a question about how sparse label decisions enter training, with the loss implementation and any ASL-specific comparison left unspecified. UL & UM6P at ArAIEval · rematchka at ArAIEval
The multilingual polarization papers consider several routes to predicting polarization types. The Argonauts combine prompting with fine-tuning for detection and classification. The Stochastic Gradient Descenders study prompting under few-shot learning conditions. A citation to a loss-design paper in this area can connect to the general question of how a classifier handles its label inventory. Prompting from a few examples supplies a different way to obtain predictions, and the title of that study gives no basis for identifying an asymmetric training term. The Argonauts at SemEval-2026 Task 9 · Stochastic Gradient Descenders at SemEval-2026 Task 9
NASIMLab studies multilingual polarization-type detection by comparing fine-tuned and generative approaches. The comparison concerns how different systems perform the same labeling task, which makes it another setting where the choice of objective may matter for some approaches. Its citation to ASL identifies a connection to earlier classification research. The study's title establishes the scope of the comparison and leaves the specific role of asymmetric focusing or shifting open. NASIMLab at SemEval-2026 Task 9
Push and Pull studies contrastive training of sentence encoders for distance-based multi-label text classification. Here, classification depends on distances in a learned representation. ASL's original intervention is applied to the contribution of individual binary label decisions, giving the two papers different points of entry into the problem of learning useful multi-label predictions. The later work makes a connection at the level of objective design, while its title leaves open whether the original asymmetric formulation participates in training or evaluation. Push and Pull
Yuan's work brings the citation into forecasting whether a conversation will derail. It examines the use of speech acts under low-data and cross-domain conditions. Those conditions make the availability and transfer of supervision central to the forecasting problem. The connection extends the list of tasks where the relative influence of different training decisions could matter. The title identifies speech acts and forecasting as the contributions under study, with the use of ASL in either component unspecified. Leveraging Speech Acts for Conversation Derailment Forecasting
Cite
Cite as Tal Ridnik, Emanuel Ben-Baruch, Nadav Zamir, Asaf Noy, Itamar Friedman, Matan Protter and Lihi Zelnik‐Manor. 2021. Asymmetric Loss For Multi-Label Classification. IEEE/CVF International Conference on Computer Vision (ICCV).
@inproceedings{ridnik2021asymmetric,
title = {{Asymmetric Loss For Multi-Label Classification}},
author = {Tal Ridnik, Emanuel Ben-Baruch, Nadav Zamir, Asaf Noy, Itamar Friedman, Matan Protter and Lihi Zelnik‐Manor},
booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
year = {2021},
doi = {10.1109/iccv48922.2021.00015},
eprint = {2009.14119},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/iccv48922.2021.00015}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ridnik-2021-asymmetric-loss-multi-label-classification/