Learning with Recoverable Forgetting

Jingwen Ye, Yifang Fu, Jie Song, Xingyi Yang, Songhua Liu, Xin Jin, Mingli Song, Xinchao Wang

Abstract

Machine unlearning has emerged as a critical requirement for data privacy and copyright compliance, yet traditional methods often result in the permanent loss of knowledge. We present Learning wIth Recoverable Forgetting (LIRF), a novel framework that introduces a flexible "deposit and withdrawal" system for neural network knowledge. LIRF allows model owners to selectively remove sensitive information and store it in a lightweight external module, enabling the seamless restoration of that knowledge at a later time without retraining from scratch.

Introduction

In the current landscape of strict data privacy regulations (such as GDPR) and evolving copyright frameworks, the ability to make a model "forget" specific data—machine unlearning—is no longer optional. However, existing unlearning techniques typically treat forgetting as an irreversible process. Once knowledge is deleted to protect privacy or resolve a dispute, it is permanently lost to the model.

LIRF addresses this lack of flexibility by treating knowledge as a portable asset. In many real-world scenarios, a model owner might need to temporarily disable specific tasks or samples (e.g., during a legal review) and re-enable them once the issue is resolved. While lifelong learning focuses on preventing forgetting and standard unlearning focuses on permanent deletion, LIRF bridges the gap by allowing knowledge to be moved offline and back online as needed.

Conceptual overview of the LIRF deposit and withdrawal process, illustrating how knowledge for specific data is partitioned and recovered.

The LIRF Framework

The LIRF framework operates through two primary innovative processes: Knowledge Deposit and Knowledge Withdrawal.

Knowledge Deposit

When a request is made to forget a specific subset of data ($D_r$), the original network undergoes a partitioning process:

  1. The Target Network: This model is fine-tuned to "forget" the specific samples. A specialized loss function ($\mathcal{L}_{kr}$) is employed to force the model to produce random outputs for the deleted data. Furthermore, "filtered attention distillation" ensures that the model's internal features can no longer be used to reconstruct or recognize the sensitive data.
  2. The Deposit Module: The specific knowledge being removed is extracted and stored in a lightweight, pruned version of the original network. This module, often compressed to just 20% of the original model's size, acts as a secure "knowledge container."

Knowledge Withdrawal

To "remember" the data, the Deposit Module is re-attached to the Target Network. This "amalgamation" process happens instantly, requiring no additional training or access to the original training data. The system is designed for high efficiency, requiring only a few epochs of fine-tuning on the removal samples to complete the initial deposit.

Detailed architecture of the LIRF framework, showing the pruning and transfer mechanisms used to create the Deposit Module and the subsequent recovery process.

Key Insights and Methodology

Knowledge Partitioning

A core tenet of LIRF is that knowledge is not a monolith. The framework distinguishes between sample-specific knowledge (sensitive and removable) and general knowledge (essential for overall performance). By isolating these components, LIRF ensures that forgetting the former does not degrade the latter.

Pruning as a Filter

The authors utilize network pruning not just for compression, but as a functional filter. By retaining only the most "activated" filters in the Deposit Module, they can effectively isolate the specific features related to the forgotten data, preventing the leakage of general knowledge into the external module.

Privacy via Distillation Resistance

To ensure true forgetting, LIRF aims for "undistillability." The authors demonstrate that a "student" model cannot learn the forgotten data by observing the Target Network, providing a layer of protection against knowledge recovery by unauthorized parties.

Experimental Evaluation

The LIRF framework was evaluated on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and CUB200-2011. In these tests, 30% of classes were typically designated as the "deposit set" (to be forgotten/recovered), while the remaining 70% served as the "preservation set."

Key Results

  • Effective Forgetting: On CIFAR-10, the Target Network’s accuracy on the forgotten set dropped from ~94% to approximately 15% (near random), confirming successful unlearning.
  • Seamless Recovery: Upon withdrawal, the Recover Network achieved 97.92% accuracy on the forgotten set, notably surpassing the original model's performance. This suggests the LIRF process acts as a form of specialized fine-tuning.
  • Superiority to Baselines: LIRF consistently outperformed standard incremental learning algorithms (like EWC or LwF) in terms of the Harmonic Mean (H-Mean), demonstrating a superior balance between forgetting and preservation.

Discussion and Future Work

While LIRF provides a robust solution for recoverable forgetting, it introduces certain logistical challenges, such as the storage overhead of managing multiple Deposit Modules in large-scale systems. Future research should explore individual instance-level unlearning at scale and the development of formal cryptographic or Differential Privacy guarantees to meet high-stakes legal compliance requirements. Despite these limitations, LIRF represents a significant step toward more flexible and privacy-conscious machine learning systems.

Summary updated

BibTeX
@inproceedings{ye2022learning,
  author = {Jingwen Ye and Yifang Fu and Jie Song and Xingyi Yang and Songhua Liu and Xin Jin and Mingli Song and Xinchao Wang},
  title = {{Learning with Recoverable Forgetting}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20083-0\_6},
}
Figure