Abstract
Machine Unlearning (MU) aims at removing the influence of specific data from a pretrained model while preserving performance on the remaining data. In this work, a novel perspective for MU is presented upon low-dimensional feature subspaces, which gives rise to the potentials of separating the remaining and forgetting data herein. This separability motivates our LOFT, a method that proceeds unlearning in a LOw-dimensional FeaTure subspace from the pretrained model through principal projections, which are optimized to maximally capture the information of the remaining data and meanwhile diminish that of the forgetting data. In training, LOFT simply optimizes a small-size projection matrix flexibly plugged into the pretrained model, and only requires one-shot feature fetching from the pretrained backbone instead of repetitively accessing the raw data. Hence, LOFT mitigates two critical issues in mainstream MU methods, i.e., the privacy leakage risk from massive data reload and the inefficiency of updates to the entire pretrained model. Extensive experiments validate the significantly lower computational overhead and superior unlearning performance of LOFT across diverse models, datasets, tasks, and applications.
Introduction: The Challenge of Forgetting
With data regulations like GDPR enforcing the "right to be forgotten," companies must be able to remove specific user data from their trained AI models. The gold standard—retraining the model from scratch without the deleted data (Exact Machine Unlearning)—is prohibitively expensive for modern deep neural networks.
To avoid retraining, researchers use "Approximate Machine Unlearning" to fine-tune the existing model. However, current methods face two major hurdles:
- Frequent data revisits: They require repeatedly loading massive amounts of original training data (both the data to keep and the data to forget) during optimization, which is slow and poses privacy risks.
- Iterative model modifications: They update the entire pretrained model's weights. Managing multiple versions of massive neural networks for different unlearning requests is impractical.
Proposed Method: LOFT
The authors propose LOFT (Learning LOw-dimensional FeaTure subspaces). Instead of updating the original model's weights, LOFT freezes the pretrained model and inserts a small, learnable projection matrix $\mathbf{U}$ (typically before the final classification layer).
The method works in three main steps:
- One-Shot Feature Fetching: The "forgetting data" ($D_{fg}$) and "remaining data" ($D_{rm}$) are passed through the frozen model exactly once to extract features and compute covariance matrices.
- Subspace Optimization: Using Riemannian optimization on the Stiefel manifold, LOFT trains the projection matrix to maximize the variance captured from the remaining data while minimizing that of the forgetting data.
- Plug-and-Play Inference: During inference, features pass through this projection matrix, which filters out information related to the forgotten data while preserving the rest.
Key Insights: Feature Separability
A core finding of this research is that you don't need to modify a model's weights to achieve unlearning. By analyzing perfectly retrained models, the authors observed that the features of forgotten and remaining data are naturally separable in a low-dimensional space. LOFT artificially induces this separation via its optimized projection matrix.
Because LOFT optimizes over feature covariance matrices rather than raw data batches, it eliminates the need for iterative raw data loading. This modular approach allows for handling multiple unlearning requests by simply swapping tiny projection matrices (a few kilobytes) instead of hosting multiple full-sized models.
Experimental Evaluation
LOFT was evaluated across computer vision (Tiny-ImageNet, ImageNet-1K, VGGFace2, RAF-DB) and NLP (WMT-19) tasks. Key results include:
- State-of-the-Art Accuracy: On Tiny-ImageNet, LOFT achieved a performance gap of just 0.85 compared to an exact retrained model.
- Efficiency: On ImageNet-1K (ResNet50), LOFT optimized its projection matrix in just 0.94 seconds, compared to 24 hours for retraining from scratch.
- Minimal Parameter Updates: LOFT updates only a fraction of the model's parameters (~4% for ResNet50) compared to 100% for traditional fine-tuning methods.
Limitations and Future Work
While LOFT is highly effective for discriminative tasks, applying it to generative models (like diffusion models) remains challenging due to their sensitivity to intermediate feature changes. Additionally, while LOFT provides mathematical bounds on output differences, it does not yet offer formal differential privacy guarantees. To prevent white-box recovery of forgotten data, the authors suggest mathematically absorbing the projection matrix into adjacent linear layers before deployment.
Summary updated