LACUNA: A Testbed for Evaluating Localization Precision for LLM Unlearning

Matteo Boglioni, Thibault Rousset, Siva Reddy, Marius Mosbach, Verna Dankers

TL;DR

LACUNA is the first unlearning testbed that provides ground-truth information on exactly which parameters store specific knowledge. By benchmarking state-of-the-art methods, the authors reveal a startling reality: current unlearning techniques often fail to target the correct weights, merely "hiding" information that can be easily recovered through simple resurfacing attacks.

What Problem Does This Paper Address?

As Large Language Models (LLMs) are trained on massive web scrapes, they inevitably memorize sensitive personally identifiable information (PII). "Machine unlearning" aims to surgically remove this data post-training without the prohibitive cost of retraining the entire model from scratch.

However, a major evaluation gap exists. Currently, we only measure unlearning by checking if a model stops outputting the sensitive data (behavioral evaluation). This is dangerous because the knowledge might still reside in the model's weights, just obfuscated. Recent "resurfacing attacks" have shown that supposedly unlearned information can be brought back with minimal fine-tuning. The core challenge is that in standard models, we don't actually know where specific facts are stored, making it impossible to tell if an unlearning algorithm is hitting the right target or just breaking the model's ability to express that knowledge.

Methods

The authors introduce LACUNA, a testbed that solves the "where is it stored?" problem through a technique called masked continual pretraining.

  1. Surgical Injection: Instead of letting the model decide where to store new PII, the researchers use a binary mask to restrict gradient updates to a specific, randomly selected 5% of the model's parameters (specifically in the FFN and attention layers). This creates a "ground-truth" location for specific PII profiles.
  2. The Pipeline: As shown in the overview below, the process involves injecting PII into a "memorization model," applying various unlearning algorithms, and then evaluating them.
Overview of the LACUNA pipeline, showing the injection, unlearning, and evaluation phases.
  1. Localization Precision Metric: They use ROC AUC to measure how well an unlearning method's weight changes correlate with the ground-truth mask. An AUC of 0.5 means the method is modifying weights randomly relative to where the knowledge is actually stored.
  2. OracleGrad: They introduce a baseline that has "privileged" access to the ground-truth mask, serving as an upper bound for what precise unlearning can achieve.

Datasets

  • PANORAMA: A synthetic PII dataset containing nearly 10,000 profiles (names, emails, phone numbers, etc.) designed to emulate real-world data.
  • OLMo-2 Pretraining Corpus: A 4.3B token subset used as the "neutral" base data to ensure the model maintains general language capabilities.
  • LACUNA Testbed: The released benchmark includes 1B and 7B OLMo-based models with injected PII, along with specific "forget" and "retain" sets for evaluation.
Figure 2: PII data management. We inject 1, 200 PII profiles divided into 6 groups; 150 of these are additionally used for instruction tuning, and the remaining 1, 050 are memorization targets. After training, we keep the memorized PII profiles. The LACUNA release includes 200 profiles for hyperparameter tuning and 200 for evaluating localization precision. The diagram also includes example PII and a matching Q&A pair.

Key Insights and Ideas

  • Obfuscation is not Erasure: The most significant finding is that state-of-the-art (SOTA) methods like SimNPO achieve excellent "forgetting" scores at the output level but have localization precision scores near 0.5. They are essentially "shouting down" the PII rather than removing it.
  • Precision Equals Robustness: The "OracleGrad" baseline proves that if you can target the correct weights, unlearning becomes significantly more resistant to resurfacing attacks. This suggests that the future of unlearning lies in better localization techniques.
  • The "Stubborn" Data Problem: Even with perfect localization, some PII profiles are harder to erase than others. This indicates that the structural properties of the data itself (e.g., how unique or predictable an email address is) play a role in how deeply it is embedded in the weights.

Key Results

  • Localization Failure: SOTA methods (AlphaEdit, MemFlex, SimNPO) all failed to achieve non-trivial localization precision, with AUCs ranging from 0.500 to 0.516. In contrast, the Oracle baseline achieved ~0.91.
  • Vulnerability to Attacks: After a simple relearning attack, models unlearned with MemFlex and AlphaEdit leaked 74-87% of the "forgotten" PII. SimNPO was more robust but still leaked up to 23%. The Oracle method remained the most secure, with leakage as low as 0-8%.
  • Utility Preservation: The masked injection process successfully maintained the models' general capabilities, showing performance on par with standard pretrained models on benchmarks like MMLU and ARC.

Limitations and Future Work

  • Mask Coverage Trade-off: The authors found that a 5% weight mask was the "sweet spot." Attempting to cram knowledge into only 1% or 2% of weights failed to result in successful memorization.
  • Dense Model Realities: While LACUNA provides a controlled environment, knowledge in real-world dense models might be more diffuse. The authors suggest that in the future, it might be safer to intentionally confine sensitive data to specific modules during initial training.
  • Attack Sophistication: The study used a straightforward retraining attack; the authors acknowledge that more sophisticated adversarial attacks might uncover even more "hidden" knowledge.

Summary updated

BibTeX
@inproceedings{boglioni2026lacuna,
  author = {Matteo Boglioni and Thibault Rousset and Siva Reddy and Marius Mosbach and Verna Dankers},
  title = {{LACUNA: A Testbed for Evaluating Localization Precision for LLM Unlearning}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=BFWTLrAJNZ},
}
Figure