{"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-2606-22627","title":"Orthogonal Representation Editing: Decoupling Semantic Entanglement in Batch Knowledge Editing of LLMs","arxiv_id":"2606.22627","date":"2026-06-21","proceeding":null,"authors":["Wenhao Yu","Zhicong Lu","Bo Lv","Fangyin Ma","Kaiwen Wei","Shihao Yang","Nayu Liu"],"abstract":"Knowledge editing aims to efficiently update factual information in Large Language Models (LLMs) without full retraining. However, existing methods still suffer from performance degradation in batch knowledge editing. We identify that semantic representation entanglement, such as overlapping concepts and shared syntactic patterns, accumulates interference in the representation space and reduces editing precision. To bridge this gap, in this paper, we propose Orthogonal Representation Editing (ORE), which performs edits in the hidden representation space of LLMs by constructing a general semantic subspace and enforcing orthogonal constraints on edit vectors, effectively decoupling semantic entanglement. Furthermore, we introduce a gated non-linear representation head to enable adaptive learning of editing locations and precise control over knowledge injection. Extensive experiments show that ORE outperforms existing methods and achieves superior performance in cross-lingual knowledge editing scenarios. We release our code at https://github.com/YVVH/ORE.","url_abs":"https://arxiv.org/abs/2606.22627","url_pdf":"https://arxiv.org/pdf/2606.22627","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":"https://syntology.ai/paper/2606.22627","atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.22627"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/YVVH/ORE","reach":null}],"summary":{"ran":5,"ran_draft_wrong":2,"ran_fixture":2,"unverified":12},"by_repo_kind":{"found_in_text":{"samples":21,"ran":9,"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":0,"samples":[{"code_sha256_prefix":"48891b8496966711","entry":"AverageMeter","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"48891b8496966711"}},{"code_sha256_prefix":"2446b47d34d2a36a","entry":"LayerRepAdapter","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2446b47d34d2a36a"}},{"code_sha256_prefix":"6347bf161968fa04","entry":"RMSNorm","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6347bf161968fa04"}},{"code_sha256_prefix":"8e2ada57a31cbb01","entry":"RepHead","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e2ada57a31cbb01"}},{"code_sha256_prefix":"14374bd37af63bc3","entry":"ce_loss","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"14374bd37af63bc3"}},{"code_sha256_prefix":"a37133c7a083ec7c","entry":"chunks","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a37133c7a083ec7c"}},{"code_sha256_prefix":"df1ee0eb56dd13f9","entry":"gate_bce_loss","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"df1ee0eb56dd13f9"}},{"code_sha256_prefix":"9f7b345fe9b853cc","entry":"is_main_process","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9f7b345fe9b853cc"}},{"code_sha256_prefix":"8959db6923feedce","entry":"kl_loss","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8959db6923feedce"}},{"code_sha256_prefix":"f88a420258132b97","entry":"ExternalRepHeadModel","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f88a420258132b97"}},{"code_sha256_prefix":"7a52361b1565ae24","entry":"HyperParams","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7a52361b1565ae24"}},{"code_sha256_prefix":"c6263f4e82a5a169","entry":"OREHyperParams","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c6263f4e82a5a169"}},{"code_sha256_prefix":"2e10fb38be74f95a","entry":"_rep_heads","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e10fb38be74f95a"}},{"code_sha256_prefix":"244fc534d2c08b91","entry":"apply_ORE_to_model","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"244fc534d2c08b91"}},{"code_sha256_prefix":"89544dc7e474b383","entry":"empty_cache","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"89544dc7e474b383"}},{"code_sha256_prefix":"d3c9f7ddd7020f82","entry":"execute_ore","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d3c9f7ddd7020f82"}},{"code_sha256_prefix":"42427b24096ac89f","entry":"generate_fast","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"42427b24096ac89f"}},{"code_sha256_prefix":"01a9d26251bf2a78","entry":"get_context_templates","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"01a9d26251bf2a78"}},{"code_sha256_prefix":"53045bee82a2ab4a","entry":"orth_loss","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53045bee82a2ab4a"}},{"code_sha256_prefix":"6648649dbdfad9b5","entry":"tokenized","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6648649dbdfad9b5"}},{"code_sha256_prefix":"5813326e00feabd0","entry":"train_step","repo":"YVVH/ORE","repo_kind":"found_in_text","path":"ORE/ORE_main.py","file_url":"https://github.com/YVVH/ORE/blob/HEAD/ORE/ORE_main.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5813326e00feabd0"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}