{"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/cores-orchestrating-the-dance-of-reasoning","title":"CoReS: Orchestrating the Dance of Reasoning and Segmentation","arxiv_id":"2404.05673","date":"2024-04-08","proceeding":null,"authors":["Xiaoyi Bao","Siyang Sun","Shuailei Ma","Kecheng Zheng","Yuxin Guo","Guosheng Zhao","Yun Zheng","Xingang Wang"],"abstract":"The reasoning segmentation task, which demands a nuanced comprehension of intricate queries to accurately pinpoint object regions, is attracting increasing attention. However, Multi-modal Large Language Models (MLLM) often find it difficult to accurately localize the objects described in complex reasoning contexts. We believe that the act of reasoning segmentation should mirror the cognitive stages of human visual search, where each step is a progressive refinement of thought toward the final object. Thus we introduce the Chains of Reasoning and Segmenting (CoReS) and find this top-down visual hierarchy indeed enhances the visual search process. Specifically, we propose a dual-chain structure that generates multi-modal, chain-like outputs to aid the segmentation process. Furthermore, to steer the MLLM's outputs into this intended hierarchy, we incorporate in-context inputs as guidance. Extensive experiments demonstrate the superior performance of our CoReS, which surpasses the state-of-the-art method by 6.5\\% on the ReasonSeg dataset. Project: https://chain-of-reasoning-and-segmentation.github.io/.","url_abs":"https://arxiv.org/abs/2404.05673v3","url_pdf":"https://arxiv.org/pdf/2404.05673v3.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":"cores-orchestrating-the-dance-of-reasoning","repo_url":"https://github.com/baoxiaoyi/cores","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"reasoning-segmentation","task_name":"Reasoning Segmentation"},{"task_slug":"segmentation","task_name":"Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2404.05673","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.05673"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/baoxiaoyi/cores","reach":null}],"summary":{"ran":2,"ran_fixture":3,"unverified":8},"by_repo_kind":{"official":{"samples":11,"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":13,"samples":[{"code_sha256_prefix":"691545194b73a84d","entry":"CrossAttentionLayer","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"691545194b73a84d"}},{"code_sha256_prefix":"bbd74464f100863e","entry":"LlavaConfig","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bbd74464f100863e"}},{"code_sha256_prefix":"8acc935e3270d2b7","entry":"Weighted_GAP","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8acc935e3270d2b7"}},{"code_sha256_prefix":"a1c2083ec2eaeb22","entry":"dice_loss","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"a1c2083ec2eaeb22"}},{"code_sha256_prefix":"a9292f5d89194794","entry":"sigmoid_ce_loss","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"a9292f5d89194794"}},{"code_sha256_prefix":"a39c485c75e2a3dc","entry":"CORESForCausalLM","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"a39c485c75e2a3dc"}},{"code_sha256_prefix":"492ae76e80107677","entry":"CoresMetaModel","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"492ae76e80107677"}},{"code_sha256_prefix":"5017de1fd3dcc5b9","entry":"CoresModel","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"5017de1fd3dcc5b9"}},{"code_sha256_prefix":"d0c3203cb9c25202","entry":"LlavaLlamaForCausalLM","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"d0c3203cb9c25202"}},{"code_sha256_prefix":"4b5cc6f1b4b65d7d","entry":"LlavaLlamaModel","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"4b5cc6f1b4b65d7d"}},{"code_sha256_prefix":"24aa7ddc724a2e74","entry":"LlavaMetaForCausalLM","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"24aa7ddc724a2e74"}},{"code_sha256_prefix":"9afc541c4acb0992","entry":"LlavaMetaModel","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"9afc541c4acb0992"}},{"code_sha256_prefix":"f603e54c961dd1f4","entry":"build_vision_tower","repo":"baoxiaoyi/cores","repo_kind":"official","path":"model/CORES2seg2mask.py","file_url":"https://github.com/baoxiaoyi/cores/blob/HEAD/model/CORES2seg2mask.py","link_basis":"first_harvest_node","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":"f603e54c961dd1f4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}