Abstract
We introduce a model of online algorithms subject to strict constraints on data retention. An online learning algorithm encounters a stream of data points, one per round, generated by some stationary process. Crucially, each data point can request that it be removed from memory $m$ rounds after it arrives. To model the impact of removal, we do not allow the algorithm to store any information or calculations between rounds other than a subset of the data points (subject to the retention constraints). At the conclusion of the stream, the algorithm answers a statistical query about the full dataset. We ask: what level of performance can be guaranteed as a function of $m$? We illustrate this framework for multidimensional mean estimation and linear regression problems. We show it is possible to obtain an exponential improvement over a baseline algorithm that retains all data as long as possible. Specifically, we show that $m = \textsc{Poly}(d, \log(1/\epsilon))$ retention suffices to achieve mean squared error $\epsilon$ after observing $O(1/\epsilon)$ $d$-dimensional data points. This matches the error bound of the optimal, yet infeasible, algorithm that retains all data forever. We also show a nearly matching lower bound on the retention required to guarantee error $\epsilon$. One implication of our results is that data retention laws are insufficient to guarantee the right to be forgotten even in a non-adversarial world in which firms merely strive to (approximately) optimize the performance of their algorithms. Our approach makes use of recent developments in the multidimensional random subset sum problem to simulate the progression of stochastic gradient descent under a model of adversarial noise, which may be of independent interest.
1. Introduction
Modern privacy regulations, such as the EU’s General Data Protection Regulation (GDPR), grant individuals a "right to be forgotten," requiring organizations to delete personal data upon request. However, the technical definition of "deletion" in the context of machine learning is often ambiguous. If an algorithm trains on a dataset and updates its internal weights, the influence of a specific data point may persist in those weights even after the raw data is scrubbed from storage.
This paper explores a "prescriptive" model of data retention to address this tension. We investigate whether an algorithm can still perform effective online learning if it is forbidden from storing any internal state—such as running averages or model weights—and must delete every data point after a fixed, short period.
2. The Model of Limited Retention
The proposed framework subjects an online learning algorithm to two primary constraints:
- Limited Retention: Every data point $x_t$ must be deleted exactly $m$ rounds after its arrival.
- No Internal State: The algorithm cannot store any information between rounds except for a subset of the data points it is currently permitted to keep.
Under these constraints, the central question is whether an algorithm can achieve the same statistical performance as an "infeasible" counterpart that remembers all data points indefinitely.
3. Methodology: Simulating SGD via Adaptive Subsampling
The authors bridge the gap between state-free algorithms and traditional machine learning by simulating Stochastic Gradient Descent (SGD) through a process called Adaptive Subsampling.
In a standard SGD setting, one maintains a parameter $\theta$ and updates it with each new data point. Since the limited-retention model prohibits storing $\theta$, the algorithm instead "encodes" the model's state into the choice of data points it retains:
- Targeting: In each round, the algorithm calculates the "ideal" SGD update it would perform if it could store state.
- Curation: It then searches its current pool of $m$ available data points for a specific subset whose average (or Maximum Likelihood Estimator) is as close as possible to that ideal target.
This approach leverages recent mathematical breakthroughs in the multidimensional random subset sum problem. If the pool of random vectors is sufficiently large, there almost always exists a subset whose average points toward the desired target. By saving this specific subset, the algorithm effectively hides its memory within the dataset itself.
4. Key Results and Theoretical Bounds
The paper evaluates this framework using synthetic data streams, such as $d$-dimensional Gaussian distributions for mean estimation and well-conditioned linear models for regression.
4.1 Mean Estimation and Regression
The authors prove that for mean estimation, retaining only $m = \text{poly}(d, \log(1/\epsilon))$ data points is sufficient to achieve a mean squared error of $\epsilon$. This matches the performance of an algorithm with infinite memory. For linear regression, they show that a memory of $m = \Theta(d^2 \log d \log(d/\epsilon))$ is sufficient for near-optimal prediction error.
4.2 Exponential Efficiency and Lower Bounds
While a naive approach might suggest that achieving an error of $\epsilon$ requires storing $1/\epsilon$ points, the authors demonstrate an exponential improvement, requiring only $\log(1/\epsilon)$ points. Furthermore, they provide a nearly matching lower bound: if the retention window $m$ is sub-logarithmic in $1/\epsilon$, high accuracy becomes fundamentally impossible.
5. Discussion: Implications for Privacy
The most profound insight of this work is that curation is memory. The act of choosing which data to keep is itself a form of information storage. Even if an outlier is deleted, the fact that a specific "normal" point was kept to balance the average means the outlier's influence persists. This suggests that "process-based" privacy laws focusing on raw data deletion may be insufficient to guarantee a true right to be forgotten, as algorithms can follow the letter of the law while retaining the "spirit" of the data through strategic curation.
6. Limitations and Future Directions
While the framework provides a robust theoretical starting point, several challenges remain:
- Stationarity: The current proofs assume data comes from a stationary distribution; future work is needed to address "concept drift."
- Complexity: The curation step involves searching through subsets, which may become a computational bottleneck in extremely high-dimensional settings.
- Adversarial Robustness: The model assumes well-behaved data; it remains unclear how these algorithms would perform against adversarial data designed to disrupt the subset-sum encoding.
Summary updated