Skip to main content
QUICK REVIEW

[Paper Review] Seesaw Loss for Long-Tailed Instance Segmentation

Jiaqi Wang, Wenwei Zhang|arXiv (Cornell University)|Aug 23, 2020
Advanced Neural Network ApplicationsComputer Science57 references5 citations
TL;DR

This paper proposes Seesaw Loss, a dynamic, self-calibrating loss function that re-balances gradients in long-tailed instance segmentation by applying a mitigation factor to reduce over-punishment of tail classes and a compensation factor to prevent false positives. It achieves state-of-the-art performance on the LVIS dataset, improving AP by 6.0% over Cross-Entropy Loss with Mask R-CNN and 6.4% with Cascade Mask R-CNN, using a simple end-to-end training pipeline without bells and whistles.

ABSTRACT

Instance segmentation has witnessed a remarkable progress on class-balanced benchmarks. However, they fail to perform as accurately in real-world scenarios, where the category distribution of objects naturally comes with a long tail. Instances of head classes dominate a long-tailed dataset and they serve as negative samples of tail categories. The overwhelming gradients of negative samples on tail classes lead to a biased learning process for classifiers. Consequently, objects of tail categories are more likely to be misclassified as backgrounds or head categories. To tackle this problem, we propose Seesaw Loss to dynamically re-balance gradients of positive and negative samples for each category, with two complementary factors, i.e., 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. We conduct extensive experiments on Seesaw Loss with mainstream frameworks and different data sampling strategies. With a simple end-to-end training pipeline, Seesaw Loss obtains significant gains over Cross-Entropy Loss, and achieves state-of-the-art performance on LVIS dataset without bells and whistles. Code is available at https://github.com/open-mmlab/mmdetection.

Motivation & Objective

  • Address the poor performance of instance segmentation models on long-tailed datasets, where head classes dominate and misclassify tail classes as backgrounds or head classes.
  • Overcome the gradient imbalance caused by overwhelming negative samples from head classes during training for tail categories.
  • Develop a loss function that dynamically adjusts gradients based on real-time class sample accumulation and misclassification patterns, without relying on precomputed data distributions.
  • Achieve state-of-the-art performance on long-tailed benchmarks like LVIS without complex data sampling or decoupled training pipelines.
  • Ensure the method is distribution-agnostic and compatible with any data sampler and mainstream instance segmentation frameworks.

Proposed method

  • Introduce Seesaw Loss, which dynamically re-balances gradients for each category using two complementary factors: mitigation and compensation.
  • Apply a mitigation factor that scales down the loss gradient for negative samples on tail classes based on the cumulative ratio of training instances between categories.
  • Apply a compensation factor that increases the penalty for misclassified instances of tail categories to reduce false positives.
  • Use real-time, cumulative sample counts during training to approximate the true data distribution, enabling dynamic and self-calibrating balancing.
  • Integrate Seesaw Loss into classification branches of object detectors like Mask R-CNN and Cascade Mask R-CNN without architectural changes.
  • Combine Seesaw Loss with strong training components such as TSD, CARAFE, enhanced necks, and dual-head classification for further performance gains.

Experimental results

Research questions

  • RQ1How can gradient imbalance caused by long-tailed data distributions be effectively mitigated in instance segmentation without relying on static reweighting?
  • RQ2Can a dynamic loss function that adapts to real-time training statistics improve performance on tail categories without increasing false positives?
  • RQ3To what extent does Seesaw Loss improve instance segmentation accuracy on long-tailed benchmarks like LVIS compared to standard Cross-Entropy Loss?
  • RQ4Is Seesaw Loss effective across different detection frameworks and data sampling strategies, including random and repeat factor sampling?
  • RQ5Does Seesaw Loss eliminate the need for complex decoupled training pipelines in long-tailed learning?

Key findings

  • Seesaw Loss achieves a 6.0% absolute improvement in AP on the LVIS v1 validation split when used with Mask R-CNN and random sampling, compared to Cross-Entropy Loss.
  • With the repeat factor sampler, Seesaw Loss improves AP by 2.1% over Cross-Entropy Loss on the same Mask R-CNN setup.
  • On Cascade Mask R-CNN, Seesaw Loss achieves a 6.4% AP gain with random sampling and 2.3% with repeat factor sampling, demonstrating strong generalization.
  • The method achieves 38.92% AP on the LVIS test-dev split using a single HTC-Lite model, without external data or annotations beyond ImageNet-1k pretraining.
  • Seesaw Loss significantly improves classification accuracy by 6% on the ImageNet-LT long-tailed image classification benchmark, showing its versatility beyond instance segmentation.
  • The ablation study confirms that Seesaw Loss outperforms existing methods even when combined with strong components like TSD, CARAFE, and dual-head classification, indicating its effectiveness as a plug-in module.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.