{"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/arxiv-2605-21539","title":"DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models","arxiv_id":"2605.21539","date":"2026-05-20","proceeding":"ICML","authors":["Xuyang Zhong","Qizhang Li","Yiwen Guo","Chen Liu"],"abstract":"We propose DualOptim+, a novel optimization framework for improving machine unlearning in large language models. It introduces a base state to capture common representations shared by forgetting and retaining objectives and delta states to preserve objective-specific residuals. This architecture allows the optimizer to adaptively bridge shared and decoupled states based on the directional conflict between forgetting and retaining gradients. We further introduce DualOptim+ 8bit, a quantized variant that reduces memory overhead without compromising performance. Extensive experiments across fictitious and real-world unlearning, safety alignment, and multi-task learning tasks demonstrate that DualOptim+ consistently achieves a superior trade-off between different objectives. Codes are available at https://github.com/CityU-MLO/DualOptimPlus.","url_abs":"https://arxiv.org/abs/2605.21539","url_pdf":"https://arxiv.org/pdf/2605.21539","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2605.21539","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.21539"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/CityU-MLO/DualOptimPlus","reach":null}],"summary":{"ran":6,"ran_draft_wrong":1,"ran_fixture":1,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":12,"ran":8,"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":12,"samples":[{"code_sha256_prefix":"cdd171f20cd6f53d","entry":"collate_fn","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"dataset/data_module.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/dataset/data_module.py","link_basis":"harvester_set","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":"cdd171f20cd6f53d"}},{"code_sha256_prefix":"649fc48067a48529","entry":"find_all_linear_names","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"forget.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/forget.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":"649fc48067a48529"}},{"code_sha256_prefix":"457da053738e9af1","entry":"general_eval","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"real_world_eval.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/real_world_eval.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":"457da053738e9af1"}},{"code_sha256_prefix":"d22e1d9f373cc86f","entry":"get_model_identifiers_from_yaml","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"utils/utils.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/utils/utils.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":"d22e1d9f373cc86f"}},{"code_sha256_prefix":"6c542acea5aa211c","entry":"get_total_len","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"utils/utils.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/utils/utils.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":"6c542acea5aa211c"}},{"code_sha256_prefix":"8076aab5782c4d02","entry":"merge_dicts","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"utils/utils.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/utils/utils.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":"8076aab5782c4d02"}},{"code_sha256_prefix":"a3b77597ef1aa5c9","entry":"npo_loss","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"trainer/losses.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/trainer/losses.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3b77597ef1aa5c9"}},{"code_sha256_prefix":"10c5cb88157f0830","entry":"summary_results","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"real_world_eval.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/real_world_eval.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":"10c5cb88157f0830"}},{"code_sha256_prefix":"320e8a603ee47508","entry":"convert_raw_data_to_model_format","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"dataset/data_module.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/dataset/data_module.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":"320e8a603ee47508"}},{"code_sha256_prefix":"28aa527377c5b4e8","entry":"convert_raw_forget_data_to_model_format","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"dataset/data_module.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/dataset/data_module.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":"28aa527377c5b4e8"}},{"code_sha256_prefix":"3c6bd6e091c76ca3","entry":"ga_loss","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"trainer/losses.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/trainer/losses.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":"3c6bd6e091c76ca3"}},{"code_sha256_prefix":"8619f797a24bf12e","entry":"get_loss","repo":"CityU-MLO/DualOptimPlus","repo_kind":"found_in_text","path":"trainer/losses.py","file_url":"https://github.com/CityU-MLO/DualOptimPlus/blob/HEAD/trainer/losses.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":"8619f797a24bf12e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}