{"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/calm-consensus-aware-localized-merging-for","title":"CALM: Consensus-Aware Localized Merging for Multi-Task Learning","arxiv_id":"2506.13406","date":"2025-06-16","proceeding":null,"authors":["Kunda Yan","Min Zhang","Sen Cui","Zikun Qu","Bo Jiang","Feng Liu","ChangShui Zhang"],"abstract":"Model merging aims to integrate the strengths of multiple fine-tuned models into a unified model while preserving task-specific capabilities. Existing methods, represented by task arithmetic, are typically classified into global- and local-aware methods. However, global-aware methods inevitably cause parameter interference, while local-aware methods struggle to maintain the effectiveness of task-specific details in the merged model. To address these limitations, we propose a Consensus-Aware Localized Merging (CALM) method which incorporates localized information aligned with global task consensus, ensuring its effectiveness post-merging. CALM consists of three key components: (1) class-balanced entropy minimization sampling, providing a more flexible and reliable way to leverage unsupervised data; (2) an efficient-aware framework, selecting a small set of tasks for sequential merging with high scalability; (3) a consensus-aware mask optimization, aligning localized binary masks with global task consensus and merging them conflict-free. Experiments demonstrate the superiority and robustness of our CALM, significantly outperforming existing methods and achieving performance close to traditional MTL.","url_abs":"https://arxiv.org/abs/2506.13406v1","url_pdf":"https://arxiv.org/pdf/2506.13406v1.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":"calm-consensus-aware-localized-merging-for","repo_url":"https://github.com/yankd22/calm","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"multi-task-learning","task_name":"Multi-Task Learning"},{"task_slug":"task-arithmetic","task_name":"Task Arithmetic"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2506.13406","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2506.13406"}},"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/yankd22/calm","reach":{"status":"ok"}}],"summary":{"ran":2,"ran_draft_wrong":1,"unverified":7},"by_repo_kind":{"official":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"2d5d7a12d8de02b7","entry":"cosine_lr","repo":"yankd22/calm","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/utils.py","link_basis":"plan_row","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":"2d5d7a12d8de02b7"}},{"code_sha256_prefix":"b1e9e0d3d7d7e615","entry":"maybe_dictionarize","repo":"yankd22/calm","repo_kind":"official","path":"src/datasets/common.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/datasets/common.py","link_basis":"plan_row","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":"b1e9e0d3d7d7e615"}},{"code_sha256_prefix":"241a2a00ba0c307b","entry":"pretify_classname","repo":"yankd22/calm","repo_kind":"official","path":"src/datasets/eurosat.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/datasets/eurosat.py","link_basis":"plan_row","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":"241a2a00ba0c307b"}},{"code_sha256_prefix":"aafcff3ad1ccef6e","entry":"accuracy","repo":"yankd22/calm","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/utils.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":"aafcff3ad1ccef6e"}},{"code_sha256_prefix":"818a9b04389c065d","entry":"calculate_entropy","repo":"yankd22/calm","repo_kind":"official","path":"src/logits_extraction.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/logits_extraction.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":"818a9b04389c065d"}},{"code_sha256_prefix":"9b1a3534a4adfb78","entry":"credible_entropy_samples","repo":"yankd22/calm","repo_kind":"official","path":"src/logits_extraction.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/logits_extraction.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":"9b1a3534a4adfb78"}},{"code_sha256_prefix":"e0bf92d9d3e3a7e6","entry":"find_classes","repo":"yankd22/calm","repo_kind":"official","path":"src/datasets/gtsrb.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/datasets/gtsrb.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":"e0bf92d9d3e3a7e6"}},{"code_sha256_prefix":"3b97c12751c0cf5b","entry":"get_features","repo":"yankd22/calm","repo_kind":"official","path":"src/datasets/common.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/datasets/common.py","link_basis":"plan_row","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":"3b97c12751c0cf5b"}},{"code_sha256_prefix":"238ff32fcbf410d6","entry":"get_features_helper","repo":"yankd22/calm","repo_kind":"official","path":"src/datasets/common.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/datasets/common.py","link_basis":"plan_row","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":"238ff32fcbf410d6"}},{"code_sha256_prefix":"7d051a7adefedb6c","entry":"torch_load_old","repo":"yankd22/calm","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/yankd22/calm/blob/HEAD/src/utils.py","link_basis":"plan_row","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":"7d051a7adefedb6c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}