Papers › On Large Language Model Continual Unlearning

On Large Language Model Continual Unlearning

14 Jul 2024arXiv:2407.10223archive 2025-07-28

Chongyang Gao, Lixu Wang, Kaize Ding, Chenkai Weng, Xiao Wang, Qi Zhu

While large language models have demonstrated impressive performance across various domains and tasks, their security issues have become increasingly severe. Machine unlearning has emerged as a representative approach for model safety and security by removing the influence of undesired data on the target model. However, these methods do not sufficiently consider that unlearning requests in real-world scenarios are continuously emerging, especially in the context of LLMs, which may lead to accumulated model utility loss that eventually becomes unacceptable. Moreover, existing LLM unlearning methods often ignore previous data access limitations due to privacy concerns and copyright protection. Without previous data, the utility preservation during unlearning is much harder. To overcome these challenges, we propose the OOO framework that includes an Orthogonal low-rank adapter (LoRA) for continually unlearning requested data and an Out-Of-Distribution (OOD) detector to measure the similarity between input and unlearning data. The orthogonal LoRA achieves parameter disentanglement among continual unlearning requests. The OOD detector is trained with a novel contrastive entropy loss and utilizes a glocal-aware scoring mechanism. During inference, our OOO framework can decide whether and to what extent to load the unlearning LoRA based on the OOD detector's predicted similarity between the input and the unlearned knowledge. Notably, OOO's effectiveness does not rely on any retained data. We conducted extensive experiments on OOO and state-of-the-art LLM unlearning methods across three tasks and seven datasets. The results indicate that OOO consistently achieves the best unlearning effectiveness and utility preservation, especially when facing continuous unlearning requests. The source codes can be found at https://github.com/GCYZSL/O3-LLM-UNLEARNING.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.10223")

Code

Syntology Ran 12 of 13 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 5 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 11 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gcyzsl/o3-llm-unlearning officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 12 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5ran · our draft was wrong
6ran
1unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from gcyzsl/o3-llm-unlearning. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gmm_cdf gcyzsl/o3-llm-unlearning/ScienceQA_expriment/eval_o3.py official repository ran · honoured contract no licence file found · pointer only · 6aae6e9b4ac2228d · report
get_answer GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/preprocess_scienceqa.py official repository ran no licence file found · pointer only · 2579b1304396d99b · report
get_choice_text GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/preprocess_SQ.py official repository ran no licence file found · pointer only · b0b23225c7093f32 · report
get_choice_text_coqa GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/preprocess_SQ.py official repository ran no licence file found · pointer only · e3cef24d9da3da3b · report
get_context_text GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/preprocess_SQ.py official repository ran · our draft was wrong no licence file found · pointer only · 85f084f6054a421e · report
gmm_cdf GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/run_ood.py official repository ran no licence file found · pointer only · f7be25a5ac19ce90 · report
jload GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/src/base_model_utils.py official repository ran · our draft was wrong no licence file found · pointer only · d07d04439cd1d44f · report
knowledge_weights gcyzsl/o3-llm-unlearning/ScienceQA_expriment/eval_o3.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · a90b344d8d3f9642 · report
preprocess GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/train_basemodel.py official repository ran no licence file found · pointer only · 817d5f759487007d · report
weighting_func_gmm gcyzsl/o3-llm-unlearning/ScienceQA_expriment/eval_o3.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 6aaaa34ed0eeb089 · report
weighting_func_gmm GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/run_ood.py official repository ran no licence file found · pointer only · c7a84b0f9e83bcb8 · report
dispatch_default GCYZSL/O3-LLM-UNLEARNING/ScienceQA_expriment/src/lora_layer_hacked_o.py official repository unverified no licence file found · pointer only · a6b3c7cd556b9bd1 · report
hash_args identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 20a7cc804eb22661 · report

Tasks

DisentanglementLanguage ModelingLanguage ModellingLarge Language ModelMachine Unlearningmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Adapter

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections