{"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/recognize-any-regions","title":"Recognize Any Regions","arxiv_id":"2311.01373","date":"2023-11-02","proceeding":null,"authors":["Haosen Yang","Chuofan Ma","Bin Wen","Yi Jiang","Zehuan Yuan","Xiatian Zhu"],"abstract":"Understanding the semantics of individual regions or patches of unconstrained images, such as open-world object detection, remains a critical yet challenging task in computer vision. Building on the success of powerful image-level vision-language (ViL) foundation models like CLIP, recent efforts have sought to harness their capabilities by either training a contrastive model from scratch with an extensive collection of region-label pairs or aligning the outputs of a detection model with image-level representations of region proposals. Despite notable progress, these approaches are plagued by computationally intensive training requirements, susceptibility to data noise, and deficiency in contextual information. To address these limitations, we explore the synergistic potential of off-the-shelf foundation models, leveraging their respective strengths in localization and semantics. We introduce a novel, generic, and efficient architecture, named RegionSpot, designed to integrate position-aware localization knowledge from a localization foundation model (e.g., SAM) with semantic information from a ViL model (e.g., CLIP). To fully exploit pretrained knowledge while minimizing training overhead, we keep both foundation models frozen, focusing optimization efforts solely on a lightweight attention-based knowledge integration module. Extensive experiments in open-world object recognition show that our RegionSpot achieves significant performance gain over prior alternatives, along with substantial computational savings (e.g., training our model with 3 million data in a single day using 8 V100 GPUs). RegionSpot outperforms GLIP-L by 2.9 in mAP on LVIS val set, with an even larger margin of 13.1 AP for more challenging and rare categories, and a 2.5 AP increase on ODinW. Furthermore, it exceeds GroundingDINO-L by 11.0 AP for rare categories on the LVIS minival set.","url_abs":"https://arxiv.org/abs/2311.01373v3","url_pdf":"https://arxiv.org/pdf/2311.01373v3.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":"recognize-any-regions","repo_url":"https://github.com/surrey-uplab/recognize-any-regions","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"object-recognition","task_name":"Object Recognition"},{"task_slug":"open-world-object-detection","task_name":"Open World Object Detection"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"clip","method_name":"CLIP"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.01373","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.01373"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":"deterministic:regex_extraction","url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/surrey-uplab/recognize-any-regions","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran_draft_wrong":3,"ran":1,"unverified":7},"by_repo_kind":{"official":{"samples":11,"ran":4,"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":11,"samples":[{"code_sha256_prefix":"98f385d847636a3e","entry":"basic_clean","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/clip/simple_tokenizer.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"98f385d847636a3e"}},{"code_sha256_prefix":"d5c3a7cf666001a1","entry":"get_model_ema_state","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/util/model_ema.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/util/model_ema.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"d5c3a7cf666001a1"}},{"code_sha256_prefix":"d919ae32e5e4e616","entry":"get_pairs","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/clip/simple_tokenizer.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d919ae32e5e4e616"}},{"code_sha256_prefix":"9542161e9640b858","entry":"whitespace_clean","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/clip/simple_tokenizer.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/clip/simple_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9542161e9640b858"}},{"code_sha256_prefix":"4c1065395ab68be4","entry":"apply_model_ema","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/util/model_ema.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/util/model_ema.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4c1065395ab68be4"}},{"code_sha256_prefix":"e84ea670369605f2","entry":"build_decoder","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/decoder.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/decoder.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e84ea670369605f2"}},{"code_sha256_prefix":"e27e49bc00fb8960","entry":"build_model","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/clip/model.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/clip/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e27e49bc00fb8960"}},{"code_sha256_prefix":"a21a61e41d986b6a","entry":"filter_images_with_only_crowd_annotations","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/build.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/build.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a21a61e41d986b6a"}},{"code_sha256_prefix":"a3f9a5bb4ae010d4","entry":"load","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/clip/clip.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/clip/clip.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"a3f9a5bb4ae010d4"}},{"code_sha256_prefix":"1e00541b5a150708","entry":"may_get_ema_checkpointer","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/util/model_ema.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/util/model_ema.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1e00541b5a150708"}},{"code_sha256_prefix":"fda70a3344a4ff1d","entry":"tokenize","repo":"Surrey-UPLab/Recognize-Any-Regions","repo_kind":"official","path":"regionspot/modeling/clip/clip.py","file_url":"https://github.com/Surrey-UPLab/Recognize-Any-Regions/blob/HEAD/regionspot/modeling/clip/clip.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"fda70a3344a4ff1d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}