Focal Loss

Introduced by Lin et al. in Focal Loss for Dense Object Detection

A Focal Loss function addresses class imbalance during training in tasks like object detection. Focal loss applies a modulating term to the cross entropy loss in order to focus learning on hard misclassified examples. It is a dynamically scaled cross entropy loss, where the scaling factor decays to zero as confidence in the correct class increases. Intuitively, this scaling factor can automatically down-weight the contribution of easy examples during training and rapidly focus the model on hard examples.

Formally, the Focal Loss adds a factor to the standard cross entropy criterion. Setting reduces the relative loss for well-classified examples ( ), putting more focus on hard, misclassified examples. Here there is tunable focusing parameter .

Source: Focal Loss for Dense Object Detection

Read Paper See Code

Usage Over Time


Created with Highcharts 9.3.0 Proportion of Papers (Quarterly) Focal Loss Cycle Consistency Loss Triplet Loss GAN Least Squares Loss InfoNCE NT-Xent 2019 2020 2021 2022 2023 2024 2025 0 0.00025 0.0005 0.00075 0.001This feature is experimental; we are continuously improving our matching algorithm.

Components


ComponentType
đŸ€– No Components FoundYou can add them if they exist; e.g. Mask R-CNN uses RoIAlign