{"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-2601-21702","title":"Beyond Forgetting: Machine Unlearning Elicits Controllable Side Behaviors and Capabilities","arxiv_id":"2601.21702","date":"2026-01-29","proceeding":null,"authors":["Tien Dang","The-Hai Nguyen","Dinh Mai Phuong","Nguyen Minh Phuong","Anh Bui","Hoang Thanh-Tung","Le-Minh Nguyen","Naoya Inoue"],"abstract":"We consider Representation Misdirection (RM), a class of large language model (LLM) unlearning methods that achieve forgetting by redirecting the forget-representations, that is, latent representations of forget-samples, toward a target vector. Despite being important, the roles of the target vector used in RM, however, remain underexplored. Here, we approach and revisit RM through the lens of the Linear Representation Hypothesis. Specifically, if one can identify a one-dimensional representation corresponding to a high-level concept, the Linear Representation Hypothesis enables linear operations on this concept vector within the forget-representation space. Under this view, we hypothesize that, beyond forgetting, machine unlearning via RM elicits controllable emergent side behaviors and stronger side capabilities corresponding to the high-level concept. Our hypothesis is empirically validated across a wide range of tasks, including behavioral control (e.g., controlling unlearned models' truthfulness, sentiment, refusal, and language) and capability enhancement (e.g., improving unlearned models' in-context learning (ICL) capability). Our findings reveal that this phenomenon could be either a hidden risk if misused or a mechanism that can be harnessed for developing unlearned models that require stronger capabilities and controllable behaviors.","url_abs":"https://arxiv.org/abs/2601.21702","url_pdf":"https://arxiv.org/pdf/2601.21702","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":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2601.21702","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.21702"}},"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/pemistahl/lingua-py","reach":{"status":"ok","spdx":"Apache-2.0"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/roeehendel/icl_task_vectors","reach":null}],"summary":{"ran":1,"unverified":13},"by_repo_kind":{"found_in_text":{"samples":14,"ran":1,"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":14,"samples":[{"code_sha256_prefix":"94d234b775a86dc7","entry":"get_nested_attr","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/models/utils/llm_layers.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/models/utils/llm_layers.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":"94d234b775a86dc7"}},{"code_sha256_prefix":"3eeda9d3221d357b","entry":"find_longest_modulelist","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/models/utils/llm_layers.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/models/utils/llm_layers.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":"3eeda9d3221d357b"}},{"code_sha256_prefix":"281023289972b87d","entry":"find_module","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/models/utils/llm_layers.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/models/utils/llm_layers.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":"281023289972b87d"}},{"code_sha256_prefix":"e6ed5363f89a98b2","entry":"get_input_type","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/models/utils/inference.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/models/utils/inference.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":"e6ed5363f89a98b2"}},{"code_sha256_prefix":"2585174884fca856","entry":"get_nested_tensor_size","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/utils/misc.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/utils/misc.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":"2585174884fca856"}},{"code_sha256_prefix":"9485b827ef1f49ae","entry":"get_tensor_size","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/utils/misc.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/utils/misc.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":"9485b827ef1f49ae"}},{"code_sha256_prefix":"f88e0b66c6ed10e1","entry":"get_token_ids","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/analysis/utils.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/analysis/utils.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":"f88e0b66c6ed10e1"}},{"code_sha256_prefix":"3f3edc966733bda6","entry":"is_iterable","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/utils/nested.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/utils/nested.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":"3f3edc966733bda6"}},{"code_sha256_prefix":"265c57edf183697c","entry":"is_mapping","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/utils/nested.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/utils/nested.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":"265c57edf183697c"}},{"code_sha256_prefix":"66af71d9015fcdfe","entry":"llama_local_path","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/models/llm_loading.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/models/llm_loading.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":"66af71d9015fcdfe"}},{"code_sha256_prefix":"9812506991c5c0f5","entry":"nested_apply","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/utils/nested.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/utils/nested.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":"9812506991c5c0f5"}},{"code_sha256_prefix":"9755ccd42015774c","entry":"shorten_string","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/utils/misc.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/utils/misc.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":"9755ccd42015774c"}},{"code_sha256_prefix":"df55d1839d0b102f","entry":"token_ids_ranks","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/analysis/utils.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/analysis/utils.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":"df55d1839d0b102f"}},{"code_sha256_prefix":"b63648daf9eaa0b3","entry":"tokens_ranks","repo":"roeehendel/icl_task_vectors","repo_kind":"found_in_text","path":"core/analysis/utils.py","file_url":"https://github.com/roeehendel/icl_task_vectors/blob/HEAD/core/analysis/utils.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":"b63648daf9eaa0b3"}}]},"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}