The Utility and Complexity of In- and Out-of-Distribution Machine Unlearning

Youssef Allouah, Joshua Kazdan, Rachid Guerraoui, Sanmi Koyejo · DOI

Machine learning models are often criticized for their "long memories." As privacy regulations like GDPR grant users the "right to be forgotten," and as data poisoning becomes a more prevalent threat, the need for efficient machine unlearning has never been greater. Machine unlearning aims to remove the influence of specific training samples without the prohibitive cost of retraining the entire model from scratch.

In their ICLR 2025 paper, Allouah et al. provide a rigorous theoretical framework to understand the trade-offs between utility (model accuracy) and complexity (computational cost) in unlearning scenarios, specifically distinguishing between in-distribution (ID) and out-of-distribution (OOD) data.

The Challenges: Dimension Gaps and OOD Traps

Traditional unlearning theories faced two significant hurdles. First, the Dimension Gap: previous research suggested that as model complexity (dimension $d$) increases, the amount of data a model can "forget" while remaining accurate decreases. Second, the OOD Trap: most algorithms assume the data to be deleted follows the same distribution as the training set. If a user requests the deletion of highly unusual or adversarial (OOD) data, standard unlearning techniques can paradoxically take longer than full retraining.

Methods for Scalable Unlearning

The authors propose two primary algorithmic approaches to address these challenges:

  1. Algorithm 1 (Noisy Minimizer Approximation): Designed for "easy" in-distribution data. This method involves training the model to high precision, performing a few optimization steps on the remaining data, and applying output perturbation (adding Gaussian noise) to ensure privacy and "forgetting."
  2. Algorithm 2 (Robust Training with Noisy Minimizer): Designed for "hard" OOD data. This approach incorporates robustness during the initial training phase using a coordinate-wise trimmed mean for gradients. By preventing the model from becoming overly sensitive to outliers, it ensures that OOD samples can be removed efficiently later.

Key Insight: Dimension Independence

A major contribution of this work is the proof that unlearning capacity for in-distribution data is actually independent of the model dimension. This settles a long-standing theoretical debate, showing that we can unlearn a constant fraction of a dataset even as models grow larger.

Figure 2: In-distribution error remains constant as dimension increases for Algorithm 1, whereas it grows for standard DP-SGD.

Key Insight: Robustness is the Key to Speed

The research demonstrates that robustness is not just a security feature but a prerequisite for computational efficiency. Without robust training, a single adversarial "forget" request can force an unlearning algorithm into an "OOD Trap," requiring excessive iterations to converge.

Figure 1: Algorithm 2 (solid lines) converges significantly faster than Algorithm 1 (dashed lines) when unlearning out-of-distribution data.

As shown in Figure 1, the robust variant (Algorithm 2) achieves much faster convergence of the OOD error compared to the non-robust version. In real-world tests on the California Housing dataset, this translated to up to a 10x speedup for OOD unlearning as the fraction of data to be forgotten increased.

Conclusion and Future Directions

Allouah et al. establish that while OOD data can make unlearning difficult, robust training provides a path to near-linear time complexity. While the current theory focuses on strongly convex and smooth loss functions, it provides a foundational "theoretical floor" for developing deletable AI in more complex, non-convex deep learning environments. Future work will likely explore unified upper bounds for unlearning capacity and ways to reduce the computational overhead of robust training operations like the trimmed mean.

Summary updated

BibTeX
@inproceedings{allouah2025utility,
  author = {Youssef Allouah and Joshua Kazdan and Rachid Guerraoui and Sanmi Koyejo},
  title = {{The Utility and Complexity of In- and Out-of-Distribution Machine Unlearning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=HVFMooKrHX},
}
Figure