{"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/weakmcn-multi-task-collaborative-network-for","title":"WeakMCN: Multi-task Collaborative Network for Weakly Supervised Referring Expression Comprehension and Segmentation","arxiv_id":"2505.18686","date":"2025-05-24","proceeding":"CVPR 2025 1","authors":["Yang Liu","Silin Cheng","Xinwei He","Sebastien Ourselin","Lei Tan","Gen Luo"],"abstract":"Weakly supervised referring expression comprehension(WREC) and segmentation(WRES) aim to learn object grounding based on a given expression using weak supervision signals like image-text pairs. While these tasks have traditionally been modeled separately, we argue that they can benefit from joint learning in a multi-task framework. To this end, we propose WeakMCN, a novel multi-task collaborative network that effectively combines WREC and WRES with a dual-branch architecture. Specifically, the WREC branch is formulated as anchor-based contrastive learning, which also acts as a teacher to supervise the WRES branch. In WeakMCN, we propose two innovative designs to facilitate multi-task collaboration, namely Dynamic Visual Feature Enhancement(DVFE) and Collaborative Consistency Module(CCM). DVFE dynamically combines various pre-trained visual knowledge to meet different task requirements, while CCM promotes cross-task consistency from the perspective of optimization. Extensive experimental results on three popular REC and RES benchmarks, i.e., RefCOCO, RefCOCO+, and RefCOCOg, consistently demonstrate performance gains of WeakMCN over state-of-the-art single-task alternatives, e.g., up to 3.91% and 13.11% on RefCOCO for WREC and WRES tasks, respectively. Furthermore, experiments also validate the strong generalization ability of WeakMCN in both semi-supervised REC and RES settings against existing methods, e.g., +8.94% for semi-REC and +7.71% for semi-RES on 1% RefCOCO. The code is publicly available at https://github.com/MRUIL/WeakMCN.","url_abs":"https://arxiv.org/abs/2505.18686v1","url_pdf":"https://arxiv.org/pdf/2505.18686v1.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":[],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"referring-expression","task_name":"Referring Expression"},{"task_slug":"referring-expression-comprehension","task_name":"Referring Expression Comprehension"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2505.18686","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.18686"}},"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/MRUIL/WeakMCN","reach":null}],"summary":{"ran":9,"ran_draft_wrong":5,"unverified":10},"by_repo_kind":{"found_in_text":{"samples":24,"ran":14,"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":24,"samples":[{"code_sha256_prefix":"67bc8a6d67479140","entry":"CollectDiffuseAttention","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"67bc8a6d67479140"}},{"code_sha256_prefix":"7bc9eff4f4d99663","entry":"GaranAttention","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"7bc9eff4f4d99663"}},{"code_sha256_prefix":"9ea9c6ce2b998b41","entry":"LayerNorm","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9ea9c6ce2b998b41"}},{"code_sha256_prefix":"b60e879191e1ba0b","entry":"MultiScaleFusion","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"b60e879191e1ba0b"}},{"code_sha256_prefix":"02042439d613744f","entry":"PositionEmbeddingSine","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"02042439d613744f"}},{"code_sha256_prefix":"11a8a18811db0245","entry":"REShead","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"11a8a18811db0245"}},{"code_sha256_prefix":"e9842d1e14c284fd","entry":"SimpleFusion","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"e9842d1e14c284fd"}},{"code_sha256_prefix":"daa0b79f2cfb71e2","entry":"aspp_decoder","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"daa0b79f2cfb71e2"}},{"code_sha256_prefix":"7fd33c7e7a168e3c","entry":"clip_boxes_to_image","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7fd33c7e7a168e3c"}},{"code_sha256_prefix":"10e8c98daabb20aa","entry":"compute_project_term","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"10e8c98daabb20aa"}},{"code_sha256_prefix":"2dee2b39b1176684","entry":"darknet_conv","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2dee2b39b1176684"}},{"code_sha256_prefix":"dbd6ffe2babb099d","entry":"dice_coefficient","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dbd6ffe2babb099d"}},{"code_sha256_prefix":"e766a0a3063c15d0","entry":"make_mask","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e766a0a3063c15d0"}},{"code_sha256_prefix":"155730105dac2066","entry":"mask_iou_batch","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"155730105dac2066"}},{"code_sha256_prefix":"72dffa3c7226201a","entry":"AttFlat","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"72dffa3c7226201a"}},{"code_sha256_prefix":"4704387a9b5f7285","entry":"LSTM_SA","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"4704387a9b5f7285"}},{"code_sha256_prefix":"31f30cf887eea37f","entry":"MHAtt","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"31f30cf887eea37f"}},{"code_sha256_prefix":"a5498ad0283f9b53","entry":"Net","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"a5498ad0283f9b53"}},{"code_sha256_prefix":"3e99f267979e0326","entry":"SA","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"3e99f267979e0326"}},{"code_sha256_prefix":"057f206d4177553f","entry":"WeakREChead","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"057f206d4177553f"}},{"code_sha256_prefix":"712223be22da0a31","entry":"build_efficient_sam_vits","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"712223be22da0a31"}},{"code_sha256_prefix":"03a654b616fb3ac4","entry":"build_efficient_sam_vitt","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"03a654b616fb3ac4"}},{"code_sha256_prefix":"c60d1a9d52f76f07","entry":"language_encoder","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"c60d1a9d52f76f07"}},{"code_sha256_prefix":"3386a96be793aa64","entry":"visual_encoder","repo":"MRUIL/WeakMCN","repo_kind":"found_in_text","path":"models/weakmcn/net.py","file_url":"https://github.com/MRUIL/WeakMCN/blob/HEAD/models/weakmcn/net.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":"3386a96be793aa64"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}