To Each (Textual Sequence) Its Own: Improving Memorized-Data Unlearning in Large Language Models
George-Octavian Barbulescu, Peter Triantafillou
TL;DR
This paper tackles memorized-data unlearning in large language models by arguing that forgetting should be per-example rather than aggregate. It defines an exact-memorization metric g(x) and an outlier-based Forgetting metric c(D_f), then proposes two main unlearning methods—Selective Gradient Ascent (SGA) and Task Arithmetic for Unlearning (TAU)—with TA as a related detoxification technique. A novel MIAU privacy attack demonstrates weaknesses in prior aggregate-focused approaches and motivates the new per-example strategy. Empirical evaluation on GPT-Neo variants shows that SGA and TAU achieve superior privacy-utility trade-offs across model sizes and forget-set scales, with TA excelling in small models and SGATAU proving robust for larger models. The work advances practical, fine-grained unlearning and highlights the importance of monitoring per-example memorization to mitigate privacy and copyright risks in LLMs.
Abstract
LLMs have been found to memorize training textual sequences and regurgitate verbatim said sequences during text generation time. This fact is known to be the cause of privacy and related (e.g., copyright) problems. Unlearning in LLMs then takes the form of devising new algorithms that will properly deal with these side-effects of memorized data, while not hurting the model's utility. We offer a fresh perspective towards this goal, namely, that each textual sequence to be forgotten should be treated differently when being unlearned based on its degree of memorization within the LLM. We contribute a new metric for measuring unlearning quality, an adversarial attack showing that SOTA algorithms lacking this perspective fail for privacy, and two new unlearning methods based on Gradient Ascent and Task Arithmetic, respectively. A comprehensive performance evaluation across an extensive suite of NLP tasks then mapped the solution space, identifying the best solutions under different scales in model capacities and forget set sizes and quantified the gains of the new approaches.
