Manuscript Offprint

arXiv:2611.03955

Forget What Comes Next: LLM Unlearning via Statistical Independence

Andrii Shkabrii, Claudia Plant, Martin Pawelczyk

ABSTRACT

Large language models (LLMs) can memorize and reproduce fragments of their training data, raising privacy and legal concerns that motivate machine unlearning. Yet poisoned training examples can remain statistically detectable after unlearning, which raises the question of whether current unlearning objectives remove what the model has memorized at all. In this work, we introduce PINT, a novel algorithm for machine unlearning that uses the Hilbert-Schmidt Independence Criterion (HSIC) to reduce the statistical dependence between tokens to be forgotten and the internal representations used to predict them. We formally relate our HSIC-based objective to Exact Memorization through a computable upper bound, connecting the training objective directly to the model's ability to reproduce the forgotten tokens. In extensive experiments, we compare forgetting-utility trade-offs across eight settings with models up to 7B parameters and demonstrate scalability to 70B parameter models. Our evaluations cover unlearning Gaussian poisons, personal information, hazardous knowledge in biology and cybersecurity, and copyrighted books and news articles. PINT achieves the strongest forgetting-utility trade-off on average and is the only method to make Gaussian poisons undetectable while maintaining near-original model utility.

Codebase

1 INTRODUCTION

The tendency of large language models (LLMs) to memorize and reproduce fragments of their training data, including personally identifiable information and copyrighted text (Carlini et al., 2021; 2022), poses significant privacy and legal concerns. With the right to be forgotten now formalized in major data protection frameworks across the EU, the US, and China (European Parliament and Council of the European Union, 2016; California State Legislature, 2018; Standing Committee of the National People's Congress, 2021), there is a growing need for methods that can remove the influence of specific training examples without the prohibitive cost of retraining from scratch. A growing body of work on approximate machine unlearning has made empirical progress in this direction (Jang et al., 2023; Maini et al., 2024; Li et al., 2024; Zhang et al., 2024). Nevertheless, significant gaps remain: Pawelczyk et al. (2025) show that current methods may fail to unlearn poisoned examples injected during training, leaving them statistically detectable even after an unlearning attempt.

Figure

Figure 1: PINT achieves the strongest trade-off between forgetting and utility. Each axis is one benchmark, on which methods are ranked by the area under their forgetting-utility frontier, from the worst on the inner circle to the best on the outer one.

Figure

Figure 2: Overview of PINT. On the forget set, PINT minimizes the HSIC between prefix representations and next tokens, reducing their statistical dependence. On the retain set, it constrains prefix representations to stay close to those of the original model, preserving general model utility.

To understand how an LLM can forget a memorized sequence, we look at how it predicts each token from the preceding context. At each position in a sequence, an autoregressive LLM encodes the preceding context into a prefix representation. From this representation, the output head predicts the next token. Reproducing a memorized sequence requires that these prefix representations carry information about the tokens that follow. This relationship can be expressed in terms of statistical dependence. So, can we induce forgetting by minimizing this statistical dependence?

To answer this, we propose PINT (Prefix-representation Independence of the Next Token). On the data targeted for removal (the forget set), PINT minimizes the Hilbert-Schmidt Independence Criterion (HSIC) (Gretton et al., 2005) between prefix representations and their corresponding next tokens, capturing and penalizing complex, non-linear dependencies. To preserve utility, PINT constrains representations on a retain set to remain close to those of the original model (see Figure 2 for an overview). As illustrated in Figure 1, this approach is highly effective: across benchmarks for personal information, hazardous knowledge, copyrighted text and Gaussian poisons, PINT achieves the strongest forgetting-utility trade-off on average. It is also the only method that makes Gaussian poisons statistically undetectable (Pawelczyk et al., 2025) while retaining near-original utility.

In addition to our empirical evidence, we formally connect the unlearning objective to memorization. Exact Memorization (EM) (Tirumala et al., 2022) measures how many tokens of the forgotten text a model predicts correctly. We prove that EM admits an HSIC-based upper bound and measure this bound on LLMs with up to 7B parameters (Figure 4). To the best of our knowledge, this is the first work to use HSIC between prefix representations and next tokens as an LLM unlearning objective.

Our main contributions are as follows:

  • We introduce PINT, an LLM unlearning method based on statistical independence. On the forget set, it makes prefix representations independent of their next tokens by minimizing HSIC, while keeping retain set representations close to those of the original model.
  • We derive an HSIC-based upper bound on Exact Memorization, formally connecting the PINT objective to how much of the forgotten text the model can still reproduce.
  • PINT achieves the strongest forgetting-utility trade-off across eight unlearning settings with models up to 7B parameters, covering personal information, hazardous knowledge, copyrighted text and Gaussian poisons. It is the only method that makes Gaussian poisons statistically undetectable while retaining near-original model utility.

References (46)