{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/freeanchor-learning-to-match-anchors-for","title":"FreeAnchor: Learning to Match Anchors for Visual Object Detection","arxiv_id":"1909.02466","date":"2019-09-05","proceeding":"NeurIPS 2019 12","authors":["Xiaosong Zhang","Fang Wan","Chang Liu","Rongrong Ji","Qixiang Ye"],"abstract":"Modern CNN-based object detectors assign anchors for ground-truth objects under the restriction of object-anchor Intersection-over-Unit (IoU). In this study, we propose a learning-to-match approach to break IoU restriction, allowing objects to match anchors in a flexible manner. Our approach, referred to as FreeAnchor, updates hand-crafted anchor assignment to \"free\" anchor matching by formulating detector training as a maximum likelihood estimation (MLE) procedure. FreeAnchor targets at learning features which best explain a class of objects in terms of both classification and localization. FreeAnchor is implemented by optimizing detection customized likelihood and can be fused with CNN-based detectors in a plug-and-play manner. Experiments on COCO demonstrate that FreeAnchor consistently outperforms their counterparts with significant margins.","url_abs":"https://arxiv.org/abs/1909.02466v2","url_pdf":"https://arxiv.org/pdf/1909.02466v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"freeanchor-learning-to-match-anchors-for","repo_url":"https://github.com/zhangxiaosong18/FreeAnchor","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"freeanchor-learning-to-match-anchors-for","repo_url":"https://github.com/MegEngine/Models/tree/master/official/vision/detection","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","reach":null},{"paper_slug":"freeanchor-learning-to-match-anchors-for","repo_url":"https://github.com/MindSpore-paper-code-3/code10/tree/main/FreeAnchor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"freeanchor-learning-to-match-anchors-for","repo_url":"https://github.com/open-mmlab/mmdetection","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"object","task_name":"Object"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"bottleneck-residual-block","method_name":"Bottleneck Residual Block"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"focal-loss","method_name":"Focal Loss"},{"method_slug":"freeanchor","method_name":"FreeAnchor"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"},{"method_slug":"grouped-convolution","method_name":"Grouped Convolution"},{"method_slug":"kaiming-initialization","method_name":"Kaiming Initialization"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"non-maximum-suppression","method_name":"Non Maximum Suppression"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"resnext","method_name":"ResNeXt"},{"method_slug":"resnext-block","method_name":"ResNeXt Block"},{"method_slug":"residual-block","method_name":"Residual Block"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"sgd","method_name":"SGD"},{"method_slug":"step-decay","method_name":"Step Decay"}],"datasets_introduced":[],"methods_introduced":[{"slug":"freeanchor","name":"FreeAnchor","full_name":"FreeAnchor"}],"results":[{"leaderboard":"/sota/object-detection-on-coco","task":"Object Detection","dataset":"COCO test-dev","model":"FreeAnchor (ResNeXt-101)","rank_in_archive_order":140,"of":225,"metrics":{"AP50":"64.3","AP75":"48.4","APL":"56","APM":"47.9","APS":"27","box mAP":"44.8"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/1909.02466","atlas_url":"https://app.syntology.ai/?focus=1909.02466","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1909.02466"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhangxiaosong18/FreeAnchor","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/open-mmlab/mmdetection","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MegEngine/Models/tree/master/official/vision/detection","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MindSpore-paper-code-3/code10/tree/main/FreeAnchor","reach":null}],"summary":{"ran_fixture":2,"ran_draft_wrong":1},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"b4392a86bb773ddd","entry":"focal_loss","repo":"zhangxiaosong18/FreeAnchor","repo_kind":"official","path":"maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py","file_url":"https://github.com/zhangxiaosong18/FreeAnchor/blob/HEAD/maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b4392a86bb773ddd"}},{"code_sha256_prefix":"ccf87e6c1da6f696","entry":"positive_bag_loss","repo":"zhangxiaosong18/FreeAnchor","repo_kind":"official","path":"maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py","file_url":"https://github.com/zhangxiaosong18/FreeAnchor/blob/HEAD/maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ccf87e6c1da6f696"}},{"code_sha256_prefix":"13099e0dd83850a8","entry":"smooth_l1_loss","repo":"zhangxiaosong18/FreeAnchor","repo_kind":"official","path":"maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py","file_url":"https://github.com/zhangxiaosong18/FreeAnchor/blob/HEAD/maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"13099e0dd83850a8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}