From Adaptive Query Release to Machine Unlearning

Enayat Ullah, Raman Arora

TL;DR

This paper reframes machine unlearning—the process of "forgetting" specific data points from a trained model—as a problem of adaptive query release. By leveraging a binary tree data structure and probabilistic "coupling" techniques borrowed from differential privacy, the authors develop algorithms that can efficiently delete data from complex models with state-of-the-art accuracy and speed, even in the face of continuous streams of insertions and deletions.

The Challenge of Exact Unlearning

With the rise of data privacy regulations like GDPR and CCPA, users now have the "right to be forgotten." For a machine learning system, this means if a user asks to have their data deleted, the system must update its model so that it looks exactly as if that user's data was never included in the training set. This strict requirement is known as exact unlearning.

The naive solution is to simply retrain the model from scratch every time a deletion request arrives. However, for large datasets and complex models, this is computationally ruinous. The core challenge is adaptivity: in popular iterative algorithms like Gradient Descent, every step depends on the result of the previous one. If you change a single data point at the start, the entire "trajectory" of the training process shifts, making it incredibly difficult to "undo" just one piece of the puzzle without starting over.

Methods: Trees, Noise, and Coupling

The authors propose a general framework that views learning algorithms as a series of adaptive queries to a dataset. They focus on two specific types of queries:

  1. Linear Queries: Simple averages or sums of functions of the data.
  2. Prefix-Sum Queries: A sequence where each query adds a new data point's contribution to the previous total.

To make unlearning efficient, they introduce two key components:

  • The Binary Tree Mechanism: Borrowed from the field of Differential Privacy, this technique organizes data contributions into a tree structure. Instead of adding noise to every individual gradient step, noise is added to the nodes of the tree. This ensures the algorithm is "stable"—meaning a small change in the data doesn't wildly change the output.
  • Reflection Coupling: This is a probabilistic trick used during the unlearning phase. When a deletion request comes in, the algorithm tries to "couple" the old model with a hypothetical new model trained without that data. Because of the tree structure and the injected noise, the algorithm often finds that it can reuse most of the old "noisy" computations, only needing to "retrain" a tiny fraction of the tree (logarithmic relative to the dataset size).
Binary Tree Mechanism for Unlearning

For specific applications like Generalized Linear Models (GLMs), they also incorporate Johnson-Lindenstrauss (JL) transforms (dimensionality reduction) to ensure that the unlearning performance doesn't degrade as the number of features (dimensions) in the data increases.

Key Insights

  • Unlearning as "Stable" Querying: The biggest insight is realizing that if you make an algorithm stable enough, unlearning becomes a matter of efficient "transport." You aren't just deleting data; you are moving from one probability distribution to another with minimal effort.
  • The Power of Prefix-Sums: Many advanced optimization algorithms (like Dual Averaging or variance-reduced Frank-Wolfe) can be mathematically decomposed into prefix-sum queries. This allows the authors to apply their binary tree framework to a wide variety of standard machine learning tasks.
  • Dimension Independence: By combining dimensionality reduction with their unlearning framework, they show that for models like logistic regression, you can unlearn data at a rate that doesn't depend on how many features your data has—a significant win for high-dimensional applications.
  • Dynamic Streams: Most prior work looks at a single deletion. This paper extends the logic to "dynamic streams," where data is constantly being added and removed, providing "anytime" guarantees for the model's accuracy.

Key Results and Theoretical Bounds

This is a theoretical paper focused on algorithmic foundations and provable guarantees. The "benchmarks" here are the mathematical rates of excess population risk (a measure of how much worse the unlearned model is compared to the theoretical best model).

The paper provides several improved theoretical bounds for the trade-off between accuracy and unlearning efficiency ($\rho$):

Summary of Unlearning Rates
  • Smooth Stochastic Convex Optimization (SCO): Achieves a risk of $\tilde{O}\big(\frac{1}{\sqrt{n}} + \frac{\sqrt{d}}{n\rho}\big)$. This is a tighter bound than previous state-of-the-art methods.
  • Non-Smooth SCO: Provides the first known unlearning guarantees for non-smooth losses (like Hinge loss).
  • GLMs (e.g., Logistic Regression): Achieves dimension-independent rates, meaning the $d$ (dimensionality) term disappears from the error bound, which is a major theoretical milestone for this sub-field.
  • Efficiency: The "relative unlearning complexity" is shown to be $O(\rho)$, meaning if you want a very stable model (small $\rho$), unlearning is extremely fast compared to retraining.

Limitations and Future Work

  • Exact vs. Approximate: The paper focuses on the strictest definition of unlearning (exact). While this is great for privacy, it is often harder to achieve than "approximate" unlearning, which might allow for even faster algorithms.
  • Query Class Restrictions: The current framework is elegantly designed for linear and prefix-sum queries. Extending this to more complex, non-linear query structures—which would be necessary for deep neural networks—remains an open challenge.
  • Computational Overhead: While the query complexity is low, maintaining the binary tree data structure adds some memory overhead, which might be a concern for resource-constrained systems.

Summary updated

BibTeX
@inproceedings{ullah2023from,
  author = {Enayat Ullah and Raman Arora},
  title = {{From Adaptive Query Release to Machine Unlearning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=IK2mgOCwt3},
}
Figure