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/Focal Loss

Focal Loss

GeneralIntroduced 2000462 papers
Source Paper

Description

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 (1−p_t)γ(1 - p\_{t})^\gamma(1−p_t)γ to the standard cross entropy criterion. Setting γ>0\gamma>0γ>0 reduces the relative loss for well-classified examples (p_t>.5p\_{t}>.5p_t>.5), putting more focus on hard, misclassified examples. Here there is tunable focusing parameter γ≥0\gamma \ge 0γ≥0.

FL(p_t)=−(1−p_t)γlog⁡(p_t){\text{FL}(p\_{t}) = - (1 - p\_{t})^\gamma \log\left(p\_{t}\right)}FL(p_t)=−(1−p_t)γlog(p_t)

Papers Using This Method

LumiCRS: Asymmetric Contrastive Prototype Learning for Long-Tail Conversational Movie Recommendation2025-07-07Revisiting Reweighted Risk for Calibration: AURC, Focal Loss, and Inverse Focal Loss2025-05-29Few-Shot Class-Incremental Learning For Efficient SAR Automatic Target Recognition2025-05-26PaniCar: Securing the Perception of Advanced Driving Assistance Systems Against Emergency Vehicle Lighting2025-05-08End-to-end Audio Deepfake Detection from RAW Waveforms: a RawNet-Based Approach with Cross-Dataset Evaluation2025-04-29Comprehensive Evaluation of Quantitative Measurements from Automated Deep Segmentations of PSMA PET/CT Images2025-04-22Class Imbalance Correction for Improved Universal Lesion Detection and Tagging in CT2025-04-08Uncertainty Weighted Gradients for Model Calibration2025-03-26Self-Adaptive Gamma Context-Aware SSM-based Model for Metal Defect Detection2025-03-03Dur360BEV: A Real-world 360-degree Single Camera Dataset and Benchmark for Bird-Eye View Mapping in Autonomous Driving2025-03-02Supervised contrastive learning for cell stage classification of animal embryos2025-02-11Fast-COS: A Fast One-Stage Object Detector Based on Reparameterized Attention Vision Transformer for Autonomous Driving2025-02-11Adaptive Voxel-Weighted Loss Using L1 Norms in Deep Neural Networks for Detection and Segmentation of Prostate Cancer Lesions in PET/CT Images2025-02-04Deep Learning-Powered Classification of Thoracic Diseases in Chest X-Rays2025-01-24Dual Scale-aware Adaptive Masked Knowledge Distillation for Object Detection2025-01-13FocalPO: Enhancing Preference Optimizing by Focusing on Correct Preference Rankings2025-01-11Influences on LLM Calibration: A Study of Response Agreement, Loss Functions, and Prompt Styles2025-01-07Exploiting Boundary Loss for the Hierarchical Panoptic Segmentation of Plants and Leaves2024-12-31Detection of Body Packs in Abdominal CT scans Through Artificial Intelligence2024-12-26Distortion-Aware Adversarial Attacks on Bounding Boxes of Object Detectors2024-12-25