Stress testing machine unlearning under adversarial prompts

Current tests for machine unlearning mostly rely on straightforward questions, missing how easily models can be coaxed into revealing targeted facts.

3 min read

Stress testing machine unlearning under adversarial prompts

When artificial intelligence models absorb sensitive or outdated data during training, removing that information without starting over requires a process called machine unlearning. Machine unlearning modifies a trained model so that its behavior on designated data mimics a model that never saw those files, while keeping its performance intact for everything else. Standard evaluations typically test this with clean, straightforward questions. But a new study from researchers at Microsoft and the University of Massachusetts Amherst asks whether information that appears gone under standard checks can be recovered through strategic prompting.

Key facts

Base model
Llama-3.2-3B-Instruct
Targeted authors
200
Tested unlearning methods
6
Base model leak rate
87.5%
Unleading method leak range
72.8% to 84.3%
Multilingual leak rate
2.95%
Comparison of unlearning method families
Modifies model weights
Prompt-based methods: No
Fine-tuning methods: Yes
Forget Quality stability
Prompt-based methods: Fades as forget request grows
Fine-tuning methods: Stays high across settings
Attack Success Rate
Prompt-based methods: —
Fine-tuning methods: 72.8% to 84.3%

Evaluating unlearning methods side by side

To test how well unlearning actually works, researchers built a controlled study around a benchmark called TOFU, which stands for Task of Fictitious Unlearning. This benchmark contains two hundred made-up authors, each with a synthetic biography and twenty question-and-answer pairs. Because the authors do not exist in the real world, there is no ambiguity about where the model learned their details.

The team fine-tuned Llama-3.2-3B-Instruct on information about all two hundred authors to create a uniform base model. Then, they applied six different unlearning methods to make the model forget two, ten, or twenty of those authors. These methods fall into two groups. Prompt-based methods, known as SPUL and ICUL, leave the model weights untouched and try to suppress the knowledge at answer time. Fine-tuning methods, known as NPO, SimNPO, RMU, and AltPO, alter the internal weights of the model so it is less able to reproduce the facts.

Past work usually judged each unlearning method under different conditions, making fair comparisons difficult. By running all six from the same starting point and scoring them with identical metrics, the researchers found a clear divide. The fine-tuning methods kept their primary evaluation score, called Forget Quality, between 0.919 and 0.999 across every setting. Meanwhile, the prompt-based methods degraded as the forget request grew larger.

Recovering forgotten facts with adversarial attacks

Having high scores on clean evaluation benchmarks can create a false sense of security. To check if the information was truly gone, the researchers used an attacker model to generate tricky prompts that attempted to coax the forgotten facts back out. They measured success using Attack Success Rate, which tracks the share of adversarial attempts that successfully recover the targeted information.

Flowchart showing queries sent to an LLM Hacker, passing through an unlearned model and judge, and iterating until computing attack success rate.
Flow diagram illustrating the adversarial testing loop where an attacker model mutates queries to test unlearned models., Source ↗

Across forty targeted questions, the four fine-tuning methods leaked the forgotten facts in 72.8% to 84.3% of adversarial attempts. For comparison, a base model that underwent no unlearning at all leaked at a rate of 87.5%. The best unlearning method was only 14.7 percentage points safer than doing nothing at all.

Prompt-injection attacks—which use claims of authority or system-style instructions—proved to be the most effective, averaging roughly 86.6% success. Multiple-choice prompts yielded the lowest recovery rates, ranging from 45% to 70%. When the same questions were translated into seven other languages, such as German, Chinese, and Arabic, the leakage dropped significantly to an average of just 2.95%, suggesting that the phrasing of the prompt matters far more than the language used.

For teams building and governing AI systems, these findings highlight a practical takeaway. A high score on standard unlearning benchmarks does not guarantee that targeted information is resistant to recovery. Adversarial stress testing can serve as a useful complement to standard evaluations by checking whether sensitive information reappears under strategic prompting.

Source: Original announcement

Worth a read?

Report

Comments