---
title: Exact and Approximate Unlearning
url: https://www.emergentmind.com/topics/exact-and-approximate-unlearning
type: topic
---

# Exact and Approximate Unlearning

Exact and Approximate Unlearning

Machine unlearning comprises a suite of algorithmic techniques that enable a machine learning model to “forget” the influence of specified training data—typically in response to data deletion or privacy requests—such that the resulting model behaves as if the forgotten data had never been used during training. Methods are generally classified into exact unlearning, which guarantees functional or distributional equivalence to retraining the model on the retained data, and approximate unlearning, which aims to efficiently reduce or minimize the residual data influence—typically evaluated under some metric of closeness to retraining but without a provable guarantee of erasure. This distinction has foundational implications for privacy, auditability, computational cost, and the validity of unlearning claims in legal or regulatory regimes.

## 1. Formal Definitions and Foundational Distinctions

Let $\mathcal{D}$ be a training dataset, $\mathcal{D}_r$ the retained subset, and $\mathcal{D}_f$ the subset to be forgotten. Let $A$ denote the complete machine learning procedure, including model architecture, optimizer, hyperparameters, and random seeds. The model parameters after training on $\mathcal{D}$ are $\theta_{\mathcal{D}} = A(\mathcal{D})$, and after retraining on $\mathcal{D}_r$, denoted $\theta_{\mathcal{D}_r} = A(\mathcal{D}_r)$.

**Exact unlearning** requires that the unlearning mechanism $U$ produces a model $\theta^-$ such that
\[
\theta^- = U(A(\mathcal{D}), \mathcal{D}, \mathcal{D}_f) = A(\mathcal{D}_r)
\]
meaning that the unlearned model is identically distributed (and, for deterministic $A$, identical in parameters and outputs) to what would have been obtained had $\mathcal{D}_f$ never participated in training. This guarantee applies to all test inputs and output statistics [2110.11891][2504.13610][2308.07061][2410.08557].

**Approximate unlearning** relaxes this requirement, demanding only that the unlearning process yields a model $\theta_u$ close to $\theta_{\mathcal{D}_r}$ under a prespecified metric $d$,
\[
d(\theta_u, \theta_{\mathcal{D}_r}) \leq \epsilon
\]
where $d$ may denote $\ell_2$ parameter distance or output-space divergences such as KL-divergence,
\[
d(\theta, \theta') = \|\theta - \theta'\|_2 \quad \text{or} \quad D_{KL}(p(\cdot|\theta)\|p(\cdot|\theta'))
\]
[2110.11891][2504.13610][2308.07061]. The choice of $\epsilon$ reflects an empirical or analytic upper bound on residual influence.

A key critique is that, particularly for deep learning under stochastic optimization, there may exist disjoint datasets yielding identical models, rendering the standard $\epsilon$-closeness definition vacuous—one could claim to have unlearned without modifying the model at all [2110.11891].

## 2. Algorithmic Paradigms for Exact and Approximate Unlearning

### Exact Unlearning

- **Full retraining:** Discard the original model and train a new model on $\mathcal{D}_r$ from scratch with the same random seed and setup. Guarantees complete removal of the forgotten data's influence, but is often computationally prohibitive for large models or frequent deletions [2110.11891][2504.13610][2308.07061].
- **Sharding and isolation (SISA):** Partition data into disjoint shards and sequential slices, train independently, and store intermediate model checkpoints. Upon deletion, only the affected shard and subsequent slices are retrained; the rest of the model remains untouched. This approach achieves exact unlearning while amortizing retraining cost, at the expense of increased storage and aggregation overhead [2308.07061][2410.08557][2406.16257].
- **Parameter isolation and modular architectures:** Approaches such as LegoNet (fixed-encoder, multiple adapters) or S3T (sequence-aware, sharded, and sliced fine-tuning) enable efficient exact unlearning by retraining or removing only the model components uniquely affected by the deleted data [2210.16023][2406.16257].
- **Algorithmic stability and total-variation (TV) stability:** Algorithms designed with intrinsic strong stability to deletions, e.g., TV-stable noisy-SGD, enable Las Vegas–style unlearning with rigorous risk bounds and only occasional retraining, proportional to the TV-stability parameter [2102.13179].

### Approximate Unlearning

- **Influence function updates:** Use first-order or Newton approximations, typically involving the Hessian or Fisher matrix, to estimate and subtract the forgotten point’s influence on the learned parameter [2308.07061][2504.13610][2412.14505]. The canonical influence update is:
  \[
  \theta_u = \theta_{\mathcal{D}} - H^{-1}_{\theta_{\mathcal{D}}} \nabla_\theta \ell(\theta_{\mathcal{D}}; x^*)
  \]
- **Gradient-based rollbacks and fine-tuning:** Modify the trained model by performing a small number of gradient steps (often with modified or random labels) on the retained data, the forgotten data, or their union (e.g., catastrophic forgetting, boundary-shrink, knowledge distillation) [2504.13610][2308.07061].
- **Scrubbing and functional reoptimization:** Iteratively minimize an objective balancing residual memory of the forgotten data and performance on the retained set, potentially through KL-based scrubbing, Fisher projection, or parameter regularization terms [2308.07061][2412.14505].
- **Model sparsification:** Empirically and theoretically, sparsity (through pruning) improves the effectiveness of approximate unlearning by reducing the approximation gap and localizing data influence to a small parameter subspace [2304.04934].

A summary of canonical exact and approximate strategies is provided in the following table:

| Method               | Paradigm         | Exactness Guarantee                    |
|----------------------|------------------|----------------------------------------|
| Full retraining      | Exact            | Yes, parameter/output equivalence      |
| SISA                 | Exact            | Yes, if retrain schedule is followed   |
| Influence functions  | Approximate      | No, error bounded by Taylor expansion  |
| Gradient rollbacks   | Approximate      | No, empirical $\ell_2$/output bound    |
| Modular architectures| Exact (LegoNet, S3T) | Yes, within component granularity      |
| TV-stable SGD        | Exact (w.p. $1-\rho$)| Yes, with bounded risk, randomized    |

## 3. Theoretical Limitations and Auditability

A central finding is that unlearning definitions or claims grounded solely in closeness of model parameters, outputs, or even training trajectories are fundamentally non-auditable due to *forgeability* [2110.11891]. Specifically:

- For SGD and mean-sampler algorithms, it is possible (with high probability as batch size increases) to construct two disjoint datasets yielding the same final weights. Thus,
  \[
  \exists \theta, \mathcal{D}, \mathcal{D}' = \mathcal{D} \setminus \{x^*\}:~ \theta = A(\mathcal{D}) = A(\mathcal{D}')
  \]
- Attempts to verify unlearning through "proof-of-unlearning" logs or model distance are defeated by the possibility of forging logs via alternative batch traces that exclude the forgotten data but yield indistinguishable models [2110.11891].
- Only unlearning claims made at the *algorithmic level*—i.e., assertions and evidence that a specific, externally auditable unlearning procedure was executed without access to $\mathcal{D}_f$—are meaningful. Achieving this may require verifiable computation primitives, cryptographic audit logs, or trusted execution environments [2110.11891].

As a consequence, approximate unlearning based solely on $\epsilon$-closeness is mathematically vacuous in the presence of forging; exact unlearning claims cannot be audited from models or logs, but only from process-level attestations.

## 4. Measurement, Diagnostics, and Evaluation Metrics

The evaluation of unlearning effectiveness, particularly for approximate methods, is nontrivial:

- **Verification error ($\ell_2$ gap):** The norm difference between the unlearned model and an exactly retrained model on $\mathcal{D}_r$ is a primary metric subsuming others [2109.13398]. However, this cannot be computed without retraining.
- **Membership inference attack (MIA) resistance:** Ability of an attacker to infer the presence or absence of the forgotten data from the model's outputs or gradients. While widely used, MIAs are fundamentally binary and computationally costly, and fail to capture the continuum of unlearning completeness in approximate methods [2506.06112].
- **Interpolated Approximate Measurement (IAM):** A recent framework that quantifies sample-level unlearning completeness by interpolating the generalization–fitting gap between models, yielding continuous scores for under- and over-unlearning. IAM achieves strong performance under both exact and approximate settings and is robust to data/model shifts [2506.06112].

Advanced diagnostics are critical because empirical studies reveal that approximate unlearners are prone to both under-unlearning (residual influence remains) and over-unlearning (unintentional loss of information about retained data) [2506.06112][2504.13610]. IAM and other continuous scoring systems are advocated for systematic measurement and safeguard deployment.

## 5. Fairness, Robustness, and Structural Guarantees

Unlearning algorithms affect not only privacy and data influence, but also fairness (class-wise feature variance) and adversarial robustness:

- **Fairness-gap metric:** Defined as the maximal difference in class-wise feature variance at a specified layer,
  \[
  \epsilon^l = \max_c \sigma_c^l - \min_c \sigma_c^l
  \]
  where higher $\epsilon^l$ indicates greater model sensitivity and fairness violations [2504.13610].
- **Empirical findings:** Methods that track or preserve the original fairness-gap are more robust to adversarial attacks; approximate unlearning methods often inflate the fairness-gap, increasing vulnerability [2504.13610].
- **Layer-wise unlearning:** Focusing unlearning updates on intermediate and final layers can efficiently restore original fairness and robustness with sub-linear computational/memory cost [2504.13610].
- These findings recommend explicit joint monitoring of accuracy, fairness-gap, and adversarial robustness when evaluating unlearning algorithms for both privacy and trustworthiness.

## 6. Specialized and Hybrid Frameworks

Emerging developments address domain- and resource-specific requirements for unlearning:

- **Model merging for scalable exact unlearning:** SIFT-Masks achieves exact unlearning at scale (hundreds of tasks) via sign-constrained fine-tuning and task-local masks, enabling $O(1)$ unlearning per deletion while recovering most task performance [2504.04626].
- **Resource-constrained (edge) exact unlearning:** Approaches such as CAUSE combine sharding, adaptive pruning, and memory-efficient replacement to implement exact unlearning with orders-of-magnitude reductions in speed, energy, and storage requirements for devices with limited compute capacity [2410.10128].
- **Hybrid strategies:** Adaptive frameworks dynamically select between exact and approximate unlearning modes based on estimated retraining workload, with lightweight correction of approximate updates to regain accuracy when full retraining is infeasible [2412.14505].
- **Bayesian unlearning:** Exact and approximate Bayesian unlearning algorithms use posterior modification (reverse KL or adjusted likelihood bounds) to balance forgetting and retention, with robust performance across likelihood models [2010.12883].

Additionally, several works focus on the overparameterized regime, where classical definitions based on loss minimization or interpolation are insufficient; minimum-complexity interpolation, regularized orthogonal gradient perturbations, and relabeling-based alternating optimization are proposed to achieve exact or near-exact unlearning [2410.08557][2505.22601].

## 7. Open Challenges, Future Directions, and Practical Implications

- **Auditability remains a central challenge:** Verifiable, cryptographically-audited, algorithmic-level guarantees are necessary to support legal and regulatory compliance for unlearning claims [2110.11891].
- **Closing the exact–approximate gap:** Model sparsification, improved diagnostics, and hybrid algorithms help reduce but do not eliminate the trade-off between computational efficiency and strict data removal [2304.04934][2412.14505][2506.06112].
- **Generalization beyond convex and linear models:** Many principled guarantees rely on convexity or overparameterized linear regimes; robust methods for non-convex deep networks and transformers are an ongoing area of investigation [2410.08557][2505.22601][2406.16257].
- **Robustness and fairness:** Monitoring fairness-gap and adversarial accuracy is essential to avoid degraded performance in high-stakes or regulated environments [2504.13610].
- **Practical systems and operational integration:** Parameter-efficient fine-tuning, modular architectures, and partitioned sequence training enable scalable deployments, but at the cost of increased offline storage or permutation selection complexity [2210.16023][2406.16257][2410.10128].

Ongoing research is directed at scalable, robust, and auditable exact unlearning, closing the measurement and diagnostic gap in practical settings, and incorporating unlearning guarantees into standard machine learning pipelines and privacy-preserving deployments.

---
References:

- [2110.11891] On the Necessity of Auditable Algorithmic Definitions for Machine Unlearning
- [2504.13610] Fairness and Robustness in Machine Unlearning
- [2504.04626] Exact Unlearning of Finetuning Data via Model Merging at Scale
- [2506.06112] Towards Lifecycle Unlearning Commitment Management: Measuring Sample-level Unlearning Completeness
- [2410.08557] MUSO: Achieving Exact Machine Unlearning in Over-Parameterized Regimes
- [2410.10128] Edge Unlearning is Not "on Edge"! An Adaptive Exact Unlearning System on Resource-Constrained Devices
- [2210.16023] LegoNet: A Fast and Exact Unlearning Architecture
- [2412.14505] A hybrid framework for effective and efficient machine unlearning
- [2504.13774] DP2Unlearning: An Efficient and Guaranteed Unlearning Framework for LLMs
- [2010.12883] Variational Bayesian Unlearning
- [2505.22601] Machine Unlearning under Overparameterization
- [2304.04934] Model Sparsity Can Simplify Machine Unlearning
- [2308.07061] Machine Unlearning: Solutions and Challenges
- [2102.13179] Machine Unlearning via Algorithmic Stability
- [2109.13398] Unrolling SGD: Understanding Factors Influencing Machine Unlearning
- [2406.16257] Towards Scalable Exact Machine Unlearning Using Parameter-Efficient Fine-Tuning

Source: https://www.emergentmind.com/topics/exact-and-approximate-unlearning