Online Forgetting Process for Linear Regression Models

Yuantong Li, Chi-Hua Wang, Guang Cheng

Abstract

Motivated by the EU’s "Right To Be Forgotten" regulation, we initiate a study of statistical data deletion problems where users’ data are accessible only for a limited period of time. This setting is formulated as an online supervised learning task with a constant memory limit. We propose a deletion-aware algorithm, FIFD-OLS, for the low-dimensional case, and witness a catastrophic rank swinging phenomenon due to the data deletion operation, which leads to statistical inefficiency. As a remedy, we propose the FIFD-Adaptive Ridge algorithm with a novel online regularization scheme that effectively offsets the uncertainty from deletion. In theory, we provide the cumulative regret upper bound for both online forgetting algorithms. In experiments, we show that FIFD-Adaptive Ridge outperforms the ridge regression algorithm with a fixed regularization level, potentially shedding light on more complex statistical models.

Introduction

Modern privacy laws, such as the EU’s General Data Protection Regulation (GDPR) and the California Consumer Privacy Act (CCPA), grant users the "Right to be Forgotten." For machine learning systems, this necessitates the ability to delete specific user data from trained models upon request. This paper formalizes this challenge as a First In First Delete (FIFD) scenario, where an online model maintains a "sliding window" of the most recent $s$ data points. Unlike standard online learning, where the model's knowledge base grows indefinitely, this constant memory limit prevents the model from reaching perfect accuracy, requiring it to constantly swap old information for new.

The Rank Swinging Phenomenon

A core challenge identified in this setting is the Rank Swinging Phenomenon. In a constant memory environment, the process of deleting data points can be mathematically unstable. If a deleted data point contains unique information not present in the remaining window, the rank of the model's feature matrix (the Gram matrix) can fluctuate significantly. This instability leads to a "catastrophic" spike in prediction error, or regret.

Visualization of the Rank Swinging Phenomenon across different memory limits ($s$). As data is swapped, the rank of the Gram matrix fluctuates, which can destabilize standard OLS.

Because the sample size never grows to infinity, cumulative regret in the FIFD setting grows linearly ($O(T)$) over time. The goal of the proposed algorithms is to minimize the slope of this linear error growth by stabilizing the model's internal representation.

Proposed Algorithms

The researchers propose two primary algorithms to handle the FIFD setting for linear regression:

  1. FIFD-OLS (Ordinary Least Squares): An incremental version of standard least squares that uses the Woodbury matrix identity to efficiently update the model as data points are added and deleted.
  2. FIFD-Adaptive Ridge: This algorithm introduces a ridge regression variant where the regularization parameter ($\lambda$) is adaptively selected at each time step using a martingale-based technique. This ensures the Gram matrix remains full rank and well-behaved even as data is deleted, acting as a buffer against the uncertainty introduced by the forgetting process.

Experimental Evaluation

The algorithms were evaluated using extensive synthetic simulations with controlled noise levels ($\sigma$), dimensions ($d$), and memory limits ($s$). The authors specifically tested robustness against heavy-tailed noise distributions to assess performance under outlier-heavy conditions.

Comparison of cumulative regret. The blue line (Adaptive Ridge) shows more stable and lower regret across various noise levels and memory sizes compared to fixed-parameter baselines (red and green).

Key results from the simulations include:

  • Superior Robustness: FIFD-Adaptive Ridge consistently outperformed standard ridge regression with fixed parameters, particularly in high-noise environments.
  • Memory vs. Performance: While increasing the memory limit $s$ reduces cumulative regret, the adaptive method maintains a much better error profile for smaller $s$ compared to non-adaptive baselines.
  • Transition to Sublinear Learning: In scenarios where data was added faster than it was deleted (a "+k, -1" pattern), the model could eventually transition back to a standard sublinear learning regime, effectively "outrunning" the forgetting requirement.

Conclusion

This work provides a rigorous framework for understanding the statistical implications of the "Right to be Forgotten" in online learning. By identifying the rank swinging phenomenon and introducing adaptive regularization, the authors offer a method to maintain model stability under strict memory constraints. Future research will focus on extending these principles to non-linear models and non-stationary data distributions.

Summary updated

BibTeX
@inproceedings{li2021online,
  author = {Yuantong Li and Chi-Hua Wang and Guang Cheng},
  title = {{Online Forgetting Process for Linear Regression Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=5YQ2Iq5YGu},
}
Figure