Abstract
Multi-label classification tasks are frequently hindered by extreme class imbalance and the inherent rigidity of standard loss functions like Binary Cross-Entropy (BCE). This paper introduces Asymmetric Polynomial Loss (APL), a novel approach that decomposes BCE into a Taylor series expansion. By fine-tuning the polynomial coefficients and incorporating asymmetric focusing, APL provides a flexible framework to balance the gradient contributions of rare positive samples and redundant negative ones. Experimental results across image classification, text classification, and relation extraction benchmarks—including MS-COCO and DocRED—demonstrate that APL achieves state-of-the-art performance by effectively navigating the trade-offs between precision and recall in imbalanced datasets.
Introduction
In multi-label classification, models must simultaneously predict the presence or absence of multiple categories within a single data point. The standard approach typically employs Binary Cross-Entropy (BCE) loss, treating each label as an independent binary task. However, this method faces two significant hurdles: the massive imbalance between a few positive labels and a vast majority of negative ones, and the lack of flexibility in the loss function's mathematical shape.
When a dataset contains hundreds or thousands of labels, the overwhelming number of negative samples generates a cumulative gradient that can drown out the signal from the sparse positive samples. This often results in models that are overly conservative, failing to predict positive labels with high confidence. Furthermore, because BCE is a fixed function, it cannot be easily adapted to the specific noise profiles or class distributions of different domains, such as the difference between visual object detection and document-level relation extraction.
Methodology: Asymmetric Polynomial Loss (APL)
The core innovation of APL lies in the reinterpretation of the logarithmic function within BCE through the lens of a Taylor expansion. By viewing the loss as an infinite sum of polynomials, the researchers identified that the "shape" of the loss—and thus its optimization behavior—can be modified by adjusting specific coefficients.
Polynomial Coefficient Tuning
Rather than adhering to the fixed coefficients of a standard Taylor series, APL allows for the adjustment of the leading coefficients: $\alpha_1$ and $\alpha_2$ for positive samples, and $\beta_1$ for negative samples. This adjustment provides a "design space" that allows the loss function to be tailored to the specific needs of a dataset. For instance, modifying $\beta_1$ can reduce the penalty for "hard negatives," which is particularly useful in large-scale datasets where positive samples are frequently mislabeled as negatives.
Asymmetric Focusing and Thresholding
Building upon the concepts introduced in Asymmetric Loss (ASL), APL applies different scaling factors ($\gamma^+$ and $\gamma^-$) to positive and negative samples. This decoupling allows the model to prioritize learning from rare positive features without being overwhelmed by easy negatives. To further refine this, the authors introduce a hard threshold ($p_{th}$) for negative samples. When the model's confidence that a label is negative exceeds this threshold, the sample is discarded from the loss calculation entirely, preventing "easy" negatives from contributing unnecessary noise to the gradient.
Experimental Evaluation
To demonstrate the versatility of APL, the authors evaluated the method across three distinct domains:
- Image Classification: Using the industry-standard MS-COCO and NUS-WIDE datasets. MS-COCO is particularly notable for its complex multi-object scenes.
- Text Classification: The AAPD dataset, consisting of arXiv academic paper abstracts categorized into 54 subject labels.
- Relation Extraction: The DocRED dataset, a challenging benchmark for identifying relationships between entities at a document level.
Key Results
APL demonstrated consistent performance gains across all benchmarks without increasing computational overhead during the training phase:
- Computer Vision: On MS-COCO, APL achieved a state-of-the-art 90.08 mAP (mean Average Precision), a significant jump from the previous best of 86.6. On NUS-WIDE, it reached 31.27 mAP, showing strong performance even in zero-shot scenarios.
- Natural Language Processing: For the AAPD text dataset, APL improved the Precision at top 1 (P@1) to 86.56%. Similar improvements in F1 scores were observed in the DocRED relation extraction tasks.
Discussion and Insights
The success of APL highlights that BCE should be viewed as a starting point rather than a definitive solution for multi-label tasks. The ability to adjust the loss curve both vertically and horizontally provides a level of optimization flexibility that previous methods lacked.
A critical insight from the study is the handling of mislabeled negatives. In many real-world datasets, a "negative" label might simply be a missing positive label. By shifting the gradient curve via the $\beta_1$ coefficient, APL prevents the model from over-correcting on these likely errors, leading to a more robust final representation.
Limitations and Future Work
Despite its performance, APL introduces additional hyperparameters ($\alpha, \beta, \gamma, p_{th}$). While the authors suggest a simplified implementation for general use, reaching peak performance currently requires domain expertise or grid searching to find the optimal configuration. Additionally, while adjusting $\beta_1$ helps with noisy labels, it can occasionally create a trade-off where the optimization of legitimate hard negatives is slightly diminished.
Future research may focus on automating the tuning of these polynomial coefficients. Potential avenues include using meta-learning to dynamically adjust coefficients during training or developing adaptive schedules that respond to the model's performance on a validation set in real-time.
Summary updated