TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Methods/Seesaw Loss

Seesaw Loss

GeneralIntroduced 20003 papers
Source Paper

Description

Seesaw Loss is a loss function for long-tailed instance segmentation. It dynamically re-balances the gradients of positive and negative samples on a tail class with two complementary factors: mitigation factor and compensation factor. The mitigation factor reduces punishments to tail categories w.r.t the ratio of cumulative training instances between different categories. Meanwhile, the compensation factor increases the penalty of misclassified instances to avoid false positives of tail categories. The synergy of the two factors enables Seesaw Loss to mitigate the overwhelming punishments on tail classes as well as compensate for the risk of misclassification caused by diminished penalties.

L_seesaw(x)=−∑C_i=1y_ilog⁡(σ^_i)L\_{seesaw}\left(\mathbf{x}\right) = - \sum^{C}\_{i=1}y\_{i}\log\left(\hat{\sigma}\_{i}\right)L_seesaw(x)=−∑C_i=1y_ilog(σ^_i)

with σ_i^=ez_i−∑C_j≠1S_ijez_j+ez_i\text{with } \hat{\sigma\_{i}} = \frac{e^{z\_{i}}}{- \sum^{C}\_{j\neq{1}}\mathcal{S}\_{ij}e^{z\_{j}}+e^{z\_{i}} }with σ_i^​=−∑C_j=1S_ijez_j+ez_iez_i​

Here S_ij\mathcal{S}\_{ij}S_ij works as a tunable balancing factor between different classes. By a careful design of S_ij\mathcal{S}\_{ij}S_ij, Seesaw loss adjusts the punishments on class j from positive samples of class iii. Seesaw loss determines S_ij\mathcal{S}\_{ij}S_ij by a mitigation factor and a compensation factor, as:

S_ij=M_ij⋅C_ij\mathcal{S}\_{ij} =\mathcal{M}\_{ij} · \mathcal{C}\_{ij} S_ij=M_ij⋅C_ij

The mitigation factor M_ij\mathcal{M}\_{ij}M_ij decreases the penalty on tail class jjj according to a ratio of instance numbers between tail class jjj and head class iii. The compensation factor C_ij\mathcal{C}\_{ij}C_ij increases the penalty on class jjj whenever an instance of class iii is misclassified to class jjj.

Papers Using This Method

Underwater Soft Coral Detection: SCoralNet for Accurate and Efficient Annotation.2024-08-01Watch out Venomous Snake Species: A Solution to SnakeCLEF20232023-07-19Seesaw Loss for Long-Tailed Instance Segmentation2020-08-23