UPCORE: Utility-Preserving Coreset Selection for Balanced Unlearning

Vaidehi Patil, Elias Stengel-Eskin, Mohit Bansal · Submission to ICLR 2026 · Rejected

TL;DR

UPCORE is a data selection framework that curbs collateral damage during LLM unlearning by identifying and pruning high-variance outlier examples from the "forget set." By training unlearning algorithms on this compact, low-variance coreset, models preserve their general utility on unrelated tasks while still effectively erasing targeted knowledge—even across the pruned examples—via positive generalization.

What Problem Does This Paper Address?

When large language models (LLMs) memorize sensitive, private, or copyrighted data, developers use machine unlearning algorithms (e.g., gradient ascent, refusal training) to selectively erase this information without costly retraining from scratch.

However, unlearning often suffers from collateral damage (over-generalization): attempting to delete targeted information degrades performance on unrelated capabilities or closely neighboring facts. Prior research has mostly treated the forget set as fixed and measured post-hoc damage. This paper investigates:

  1. What measurable data properties of the forget set drive collateral damage?
  2. Can we curate the forget set beforehand to optimize the trade-off between deletion efficacy and overall model utility?

Methods

The authors identify that collateral damage strongly correlates with the hidden state variance (HSV) of the forget set representations in the model. In response, they propose UPCORE (Utility-Preserving Coreset Selection), a four-stage, model- and algorithm-agnostic pipeline:

  1. Feature Extraction: Extract the model's penultimate layer representations for the final token of each prompt in the forget set $D_F$.
  2. Anomaly Scoring with Isolation Forests: Fit an Isolation Forest on these representations. Datapoints isolated with shorter binary tree paths are tagged as high-variance outliers.
  3. Outlier Pruning: Remove the top outliers (typically the top 10%) to create a compact, low-variance core forget set $D_C$.
  4. Coreset Unlearning: Apply any standard unlearning algorithm (e.g., Gradient Ascent, Refusal, or Negative Preference Optimization [NPO]) directly to $D_C$ instead of the full set.

Because evaluating unlearning at a single, arbitrary training step gives an incomplete snapshot of performance, the authors also introduce an Area-Under-the-Curve (AUC) metric. By plotting deletion success ($1 - \text{ROUGE}_{\text{forget}}$) against model utility ($\text{ROUGE}_{\text{retain}}$, neighborhood data, etc.) across training steps, the AUC captures the true dynamic Pareto frontier.

Datasets

The authors evaluate UPCORE using a Llama-3.1-8B base model across three primary benchmarks:

  • Counterfact: Factual knowledge prompt completions with single-token targets, clustered into topic groups using Fastopic and Sentence-BERT.
  • TriviaQA: Question-answering benchmark involving multi-token factual responses.
  • TOFU: A synthetic unlearning benchmark of fictitious author profiles.
  • Evaluation / Robustness Sets: Evaluation includes out-of-distribution retain sets, GPT-4o-generated neighborhood data (semantically related facts not in the forget set), paraphrased prompts, and adversarial role-playing jailbreak variants.

Key Insights and Ideas

  • Representation Variance Drives Collateral Damage: Forget sets with high hidden-state variance cause significantly more utility degradation (Pearson $r = -0.714$). In controlled intervention tests, artificially injecting Gaussian noise into forget set hidden states causally increased utility drop.
  • Positive vs. Negative Collateral Transfer: Collateral effects cut both ways. "Negative collateral damage" ruins unrelated capabilities, but "positive collateral transfer" allows unlearning updates to implicitly propagate to nearby concepts. By pruning outliers, UPCORE reduces negative transfer to the rest of the model while exploiting positive transfer to erase the pruned outlier points—even though they were never directly seen during unlearning!
  • Outliers Destabilize Boundaries: Pruning high-variance outliers keeps the unlearning updates focused on dense, semantically coherent regions of the representation space, preventing chaotic gradient shifts that lead to "garbage" text generation.

Key Results

  • Superior Pareto Frontier: Across Counterfact, TriviaQA, and TOFU, UPCORE improves utility–deletion AUC by 3–7 points over full-dataset unlearning and baseline selection strategies (Random subsampling, $D^2$-pruning, and RUM).
  • Significant Positive Transfer: In Counterfact experiments, the model’s ROUGE on pruned points dropped from $1.000$ to $0.053$ under Gradient Ascent and $0.127$ under Refusal, proving that explicitly training on outliers is unnecessary for deletion.
  • Robustness to Attacks: On adversarial role-play jailbreak attacks on Counterfact, UPCORE maintained an aggregate Model Utility AUC of 0.335 compared to 0.291 (Complete) and 0.305 (Random).
  • Stability Across Settings: UPCORE consistently improved results across different unlearning algorithms (Gradient Ascent, Refusal, NPO, RMU, FLAT) and remained robust across varying evaluation step granularities and tree counts in the Isolation Forest.

Limitations and Future Work

  • Lower Bound on Dataset Size: If a forget set is extremely sparse, tiny, or lacks clear clusters, anomaly detection cannot easily separate outliers from inliers, forcing UPCORE to default to unlearning on the full set ($D_C = D_F$).
  • Diminishing Returns on Aggressive Pruning: Pruning beyond ~30% of the dataset leads to performance plateaus; positive transfer cannot indefinitely compensate for unlearned points once the coreset becomes too small.
  • Dependency on Topic Coherence: For multi-topic takedown requests, UPCORE currently relies on an initial clustering step to group semantically coherent subsets before pruning each independently.

Summary updated

BibTeX
@misc{patil2025upcore,
  author = {Vaidehi Patil and Elias Stengel-Eskin and Mohit Bansal},
  title = {{UPCORE: Utility-Preserving Coreset Selection for Balanced Unlearning}},
  year = {2025},
  eprint = {2502.15082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.15082},
}
Figure