Term
focal loss
Meaning
A variant of sigmoid cross-entropy that multiplies each per-class term by a modulating factor \((1-p_t)^{\gamma}\), where \(p_t\) is the predicted probability of the target. This reduces the loss of well-classified samples so that training focuses on difficult samples, and \(\gamma\) controls how strongly this happens.
Source Class-Balanced Loss Based on Effective Number of Samples
How papers use it 20 papers
Class-Balanced Loss Based on Effective Number of Samples
Use Used in the paper both as a baseline with \(\gamma\) values of 0.5, 1.0 and 2.0 and as the base of a class-balanced focal loss. The paper says the class-balanced focal loss is an explicit way to set the \(\alpha_t\) factor of focal loss from the effective number of samples. The paper also notes that its class-balanced term is complementary to re-weighting based on sample difficulty, as shown by improving focal loss.
Focal and Efficient IOU Loss for Accurate Bounding Box Regression
Use Described by the paper as the classification-side precedent for its regression method, which keeps hard examples in focus. The paper also uses this focal weighting as a comparison point: in its Focal-EIOU* variant, the form \(-(1-\text{IOU})^{\gamma}\log(\text{IOU})\) multiplies the EIOU loss. The authors report that it gains performance over the baseline but declines as γ increases, which they attribute to suppressing hard regression examples too strongly.
Meaning A classification loss that reweights examples so that hard examples receive larger weights than easy ones. The reweighting is applied to a standard cross-entropy-style loss to reduce the influence of easy negatives.
YOLOv3: An Incremental Improvement
Use Tested by the authors as an alternative training objective for YOLOv3 and not adopted. In their experiments it lowered mAP by about 2 points. They suggest YOLOv3 may already be less affected by the problem it targets, because it predicts objectness separately from conditional class probabilities, but they say they are not sure.
Meaning A loss for dense object detection that rescales the cross-entropy term so that the many easy, well-classified examples contribute less to training than the hard ones.
Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection
Use Applied to each text-token logit in Grounding DINO's contrastive classification. Each query is dot-multiplied with the text features to produce these logits, and the focal loss is computed per logit, following GLIP.
Meaning A classification loss that scales cross-entropy by a factor that down-weights well-classified examples, so that training focuses on hard examples.
PointRCNN: 3D Object Proposal Generation and Detection from Point Cloud
Use Used as the loss for foreground point segmentation in the stage-1 sub-network. Foreground points are far fewer than background points in large outdoor scenes, so the focal term addresses this class imbalance. The weighting coefficient and focusing exponent are kept at the values from the original focal loss work.
Meaning A classification loss for dense or imbalanced detection problems. It scales the cross-entropy term by a factor that shrinks as the predicted probability of the correct class grows, so that well-classified (easy) examples contribute less and training focuses on hard examples. A class-balancing weight can be added to the same term.
Collaborative Federated Learning For Healthcare: Multi-Modal COVID-19 Diagnosis at the Edge
Use Used as the training loss to counter class imbalance in the binary COVID-19 versus healthy classification on both datasets, in the α-balanced form with a focusing parameter γ ≥ 0. The loss is written as \(FL(p_t)=-\alpha_t(1-p_t)^{\gamma}\log(p_t)\), where \(p_t\) is the predicted probability term used in the paper's formula. The paper motivates it by the highly imbalanced class distributions in the datasets.
Meaning A classification loss that multiplies the cross-entropy term by a modulating factor. The factor reduces the weight of well-classified examples, controlled by a focusing parameter, and an optional α-balancing term weights the positive and negative classes.
YOLOP: You Only Look Once for Panoptic Driving Perception
Use Used for the classification term \(L_{class}\) and the objectness term \(L_{obj}\) of the detection loss \(L_{det}\) in equation (1). It is combined with a CIoU box loss and weighted by the coefficients \(\alpha\), which the paper says can be tuned.
Meaning A classification loss that scales the cross entropy so that well-classified examples contribute less, which concentrates training on hard examples.
Libra R-CNN: Towards Balanced Learning for Object Detection
Use Cited as a prior remedy for sample-level imbalance. The paper notes that it helps single-stage detectors but brings little gain to two-stage R-CNN style detectors, because the proposal stage already filters out most easy negatives. Libra R-CNN is positioned as a lower-cost alternative for hard-sample emphasis.
Meaning A classification loss that scales the cross-entropy term so that well-classified examples contribute less, which reduces the dominance of the many easy background examples in dense object detection training.
Object Detection in Optical Remote Sensing Images: A Survey and A New Benchmark
Use In the paper's discussion of RetinaNet, the traditional cross-entropy loss is replaced by Focal loss, which is described as a feature pyramid network variant that increases accuracy. The paper does not give its formula.
Meaning A classification loss that reshapes the standard cross-entropy so that well-classified examples contribute less to training, which helps dense detectors cope with the imbalance between foreground and background examples.
Deformable DETR: Deformable Transformers for End-to-End Object Detection
Use Replaces the default classification loss for bounding box classification in the paper's experimental setup, with a loss weight of 2. This setting is applied together with a larger number of object queries and is used for the DETR-DC5+ comparison.
Meaning A classification loss for dense detection that scales the cross-entropy term to reduce the contribution of easily classified examples, focusing training on hard ones.
Segment Anything
Use Used together with dice loss to supervise mask prediction in SAM, as a linear combination with a 20:1 ratio of focal loss to dice loss. The paper follows earlier work in this choice and reports that auxiliary deep supervision after each decoder layer did not help in its setting.
Meaning A loss function for dense binary prediction that down-weights well-classified examples so that training focuses on hard, misclassified pixels.
FCOS: Fully Convolutional One-Stage Object Detection
Use Serves as the classification term \(L_{cls}\) in the FCOS training loss. Because FCOS trains \(C\) binary classifiers instead of one multi-class classifier, the focal loss is applied to each binary output, following the RetinaNet setting.
Meaning A classification loss for dense detection that rescales the cross-entropy so that well-classified examples contribute less, which reduces the dominance of the many easy background samples.
YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications
Use Serves as the baseline classification loss in the YOLOv6 loss ablations. Models with TAL, Focal Loss and GIoU reach 35.0% AP on YOLOv6-N, 42.9% on YOLOv6-S and 48.0% on YOLOv6-M in those experiments, and VFL is compared against it.
Meaning A classification loss that modifies cross-entropy to handle class imbalance between positive and negative examples and between hard and easy samples.
Center-based 3D Object Detection and Tracking
Use Used to train the K-channel center heatmap in CenterPoint. The heatmap targets a 2D Gaussian built from projected 3D object centers, and the loss handles the sparse positive supervision in the map view, where most locations are background.
Meaning A training loss for dense detection that down-weights easy, well-classified samples so that training focuses on hard examples. It is usually applied to per-pixel classification outputs where background locations heavily outnumber positives.
FairMOT: On the Fairness of Detection and Re-Identification in Multiple Object Tracking
Use Defines the heatmap loss for predicting object centers in the detection branch. For each pixel it uses the predicted heatmap value, a Gaussian-shaped target centered on each ground-truth object center, and the parameters α and β that control the focusing and the weighting of negative locations. The loss is normalized by the number of objects N in the image.
Meaning A pixel-wise logistic loss with a modulating factor that down-weights easy, well-classified examples so that training focuses on hard ones. It is typically applied to dense predictions where most locations are easy negatives.
CornerNet: Detecting Objects as Paired Keypoints
Use CornerNet uses a variant to train its corner heatmaps. Positive locations are weighted by an exponent alpha set to 2, and negative locations are weighted by an exponent beta set to 4 and additionally scaled by a term that reduces the penalty near ground-truth corners using an unnormalized Gaussian around each corner, so the penalty near positive locations is lighter.
Meaning A loss for dense detection that scales the cross-entropy term by a power of the prediction error, so that well-classified examples contribute less and training focuses on hard examples.
Focal Loss for Dense Object Detection
Use The authors' loss, which multiplies cross entropy by a modulating factor so that easy examples count for less.
Meaning A variant of cross entropy that multiplies the loss by a factor which shrinks as the predicted probability of the correct class rises.
Objects as Points
Use Used in CenterNet as a penalty-reduced pixelwise logistic regression on the keypoint heatmap. Positive locations use a factor \((1-\hat{Y})^{\alpha}\) on the log term, and negative locations additionally weight by \((1-Y)^{\beta}\) near the Gaussian peaks, with the loss normalized by the number of keypoints. The paper sets \(\alpha = 2\) and \(\beta = 4\) in all experiments, following Law and Deng.
Meaning A loss for dense classification that multiplies the cross-entropy term by a modulating factor, so that well-classified examples contribute less and hard examples dominate training. The strength of the modulation is set by a focusing hyper-parameter.
PV-RCNN: Point-Voxel Feature Set Abstraction for 3D Object Detection
Use Trains the foreground confidence head of the PKW module with default hyper-parameters to handle the unbalanced foreground and background keypoints. It is also used for anchor classification in the region proposal loss, again with default hyper-parameters.
Meaning A classification loss for dense detection that adds a modulating factor to the cross-entropy so that well-classified examples contribute less and training focuses on hard examples. It addresses the imbalance between many background samples and few foreground samples.
PointPillars: Fast Encoders for Object Detection from Point Clouds
Use Used as the object classification loss over anchors in PointPillars, with the class probability of an anchor written as \(p_a\). The authors adopt the settings of the original focal loss paper, \(\alpha = 0.25\) and \(\gamma = 2\), and weight this term by \(\beta_{cls} = 1\) in the total loss.
Meaning A classification loss that multiplies the cross-entropy term by a modulating factor \((1-p)^{\gamma}\) and a balancing weight \(\alpha\), so that well-classified examples contribute less to the total loss and hard examples dominate training.