Papers › Jogging the Memory of Unlearned LLMs Through Targeted Relearning Attacks

Jogging the Memory of Unlearned LLMs Through Targeted Relearning Attacks

19 Jun 2024arXiv:2406.13356archive 2025-07-28

Shengyuan Hu, Yiwei Fu, Zhiwei Steven Wu, Virginia Smith

Machine unlearning is a promising approach to mitigate undesirable memorization of training data in LLMs. However, in this work we show that existing approaches for unlearning in LLMs are surprisingly susceptible to a simple set of targeted relearning attacks. With access to only a small and potentially loosely related set of data, we find that we can "jog" the memory of unlearned models to reverse the effects of unlearning. For example, we show that relearning on public medical articles can lead an unlearned LLM to output harmful knowledge about bioweapons, and relearning general wiki information about the book series Harry Potter can force the model to output verbatim memorized text. We formalize this unlearning-relearning pipeline, explore the attack across three popular unlearning benchmarks, and discuss future directions and guidelines that result from our study.

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="2406.13356")

Code

Syntology Ran 13 of 16 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 11 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

s-huu/jog_llm_memory officialmentioned in papermentioned on GitHubpytorchApache-2.0 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

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

2ran · our draft was wrong
11ran
3unverified

Licence: 0 of the 16 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 s-huu/jog_llm_memory. “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.

collate_fn s-huu/jog_llm_memory/synthetic/data_module.py official repository ran Apache-2.0 (permissive) · cdd171f20cd6f53d · report
compute_metrics s-huu/jog_llm_memory/synthetic/dataloader.py official repository ran Apache-2.0 (permissive) · 88a4f13abd54a00c · report
convert_data_to_model_format s-huu/jog_llm_memory/synthetic/data_module.py official repository ran Apache-2.0 (permissive) · b4caf62fbc9c93a4 · report
custom_data_collator_forget s-huu/jog_llm_memory/synthetic/dataloader.py official repository ran Apache-2.0 (permissive) · e951dedc21c69ac1 · report
find_all_linear_names s-huu/jog_llm_memory/synthetic/finetune.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 649fc48067a48529 · report
forward_with_cache s-huu/jog_llm_memory/wmdp/src/utils.py official repository ran Apache-2.0 (permissive) · 5740a4c2fd3b51ed · report
get_answers s-huu/jog_llm_memory/wmdp/src/gpt4_eval.py official repository ran Apache-2.0 (permissive) · 28f40801cc5a9fd3 · report
get_files s-huu/jog_llm_memory/wmdp/src/generate_answers.py official repository ran Apache-2.0 (permissive) · 2c9cb9e02d070bfd · report
get_loss s-huu/jog_llm_memory/synthetic/dataloader.py official repository ran Apache-2.0 (permissive) · 650d5f6bfcd7d9bb · report
get_names s-huu/jog_llm_memory/synthetic/data_module.py official repository ran Apache-2.0 (permissive) · 44e1322cb51c6acf · report
get_params s-huu/jog_llm_memory/wmdp/src/utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · db42ee03f6308ed9 · report
get_questions s-huu/jog_llm_memory/wmdp/src/gpt4_eval.py official repository ran Apache-2.0 (permissive) · c85b881c2039a329 · report
get_total_len s-huu/jog_llm_memory/synthetic/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 6c542acea5aa211c · report
get_model_identifiers_from_yaml s-huu/jog_llm_memory/synthetic/utils.py official repository unverified Apache-2.0 (permissive) · 06448b0513272463 · report
get_steering_vec s-huu/jog_llm_memory/wmdp/src/utils.py official repository unverified Apache-2.0 (permissive) · 52ef2a3d873c868f · report
query_gpt s-huu/jog_llm_memory/wmdp/src/gpt4_eval.py official repository unverified Apache-2.0 (permissive) · 87698f5388a86342 · report

Tasks

ArticlesMachine UnlearningMemorization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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