Papers › Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense...
Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
Xiang Li, Wenhai Wang, Lijun Wu, Shuo Chen, Xiaolin Hu, Jun Li, Jinhui Tang, Jian Yang
One-stage detector basically formulates object detection as dense classification and localization. The classification is usually optimized by Focal Loss and the box location is commonly learned under Dirac delta distribution. A recent trend for one-stage detectors is to introduce an individual prediction branch to estimate the quality of localization, where the predicted quality facilitates the classification to improve detection performance. This paper delves into the representations of the above three fundamental elements: quality estimation, classification and localization. Two problems are discovered in existing practices, including (1) the inconsistent usage of the quality estimation and classification between training and inference and (2) the inflexible Dirac delta distribution for localization when there is ambiguity and uncertainty in complex scenes. To address the problems, we design new representations for these elements. Specifically, we merge the quality estimation into the class prediction vector to form a joint representation of localization quality and classification, and use a vector to represent arbitrary distribution of box locations. The improved representations eliminate the inconsistency risk and accurately depict the flexible distribution in real data, but contain continuous labels, which is beyond the scope of Focal Loss. We then propose Generalized Focal Loss (GFL) that generalizes Focal Loss from its discrete form to the continuous version for successful optimization. On COCO test-dev, GFL achieves 45.0\% AP using ResNet-101 backbone, surpassing state-of-the-art SAPD (43.5\%) and ATSS (43.6\%) with higher or comparable inference speed, under the same backbone and training settings. Notably, our best model can achieve a single-model single-scale AP of 48.2\%, at 10 FPS on a single 2080Ti GPU. Code and models are available at https://github.com/implus/GFocal.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2006.04388")
Code
Syntology Ran 1 of 24 code samples harvested from 3 repositories linked to this paper; 23 have no recorded run. Of those that ran: 1 ran with no contract checked.
By repository: community (archive-listed): 24 samples from 3 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
24 samples harvested; 1 ran; 0 honoured the contract we drafted; 23 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 0 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
e76a491553cf9fcf · report
b91d549254b2a59b · report
9009230480b50bc0 · report
1c502073f07e4cee · report
e96a127893eaee62 · report
848d74abab4b027b · report
f93dd0c8fe12d34e · report
897e22a6f6e6b5f3 · report
e86ae414e2afc197 · report
fee6fb3d147348e3 · report
923d5e079649e00c · report
320960c2db6c2963 · report
3fe3b77a594bbd68 · report
56d39004d57cb3a2 · report
eecbba9b0cb09860 · report
2b8f4c5e5fe0ce7e · report
b2108b927c53418b · report
574e3947b96f2084 · report
3498f707d22460cd · report
9c971c77b77a1514 · report
c8d98ae32946f6f0 · report
75b6eb0293a69f4e · report
de3d6c82feeafe6b · report
830fa82177642209 · report
Tasks
1 archive task tag without a task page not shown.
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Object Detection | COCO test-dev | GFL (X-101-32x4d-DCN, single-scale) | AP50 | 67.4 | #109 of 225 | Archive leaderboard | report |
| Object Detection | COCO test-dev | GFL (X-101-32x4d-DCN, single-scale) | AP75 | 52.6 | #109 of 225 | Archive leaderboard | report |
| Object Detection | COCO test-dev | GFL (X-101-32x4d-DCN, single-scale) | APL | 60.2 | #109 of 225 | Archive leaderboard | report |
| Object Detection | COCO test-dev | GFL (X-101-32x4d-DCN, single-scale) | APM | 51.7 | #109 of 225 | Archive leaderboard | report |
| Object Detection | COCO test-dev | GFL (X-101-32x4d-DCN, single-scale) | APS | 29.2 | #109 of 225 | Archive leaderboard | report |
| Object Detection | COCO test-dev | GFL (X-101-32x4d-DCN, single-scale) | box mAP | 48.2 | #109 of 225 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Methods
Introduced by this paper: Generalized Focal Loss
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections