Continual Learning and Private Unlearning

Bo Liu, Qiang Liu, Peter Stone

Abstract

As AI agents transition into roles as lifelong companions, they must balance the ability to accumulate knowledge over time (Continual Learning) with the legal and ethical necessity to delete specific data upon request (Machine Unlearning). This paper introduces the Continual Learning and Private Unlearning (CLPU) framework, addressing the inherent tension between knowledge retention and privacy. We propose CLPU-DER++, a novel approach that utilizes isolated temporary models to achieve exact unlearning without sacrificing the performance benefits of knowledge transfer. Our results demonstrate that while standard continual learning methods suffer from significant privacy leaks, CLPU-DER++ provides robust privacy guarantees while maintaining competitive accuracy across standard benchmarks.

Introduction

In the field of artificial intelligence, Continual Learning (CL) has traditionally focused on overcoming "catastrophic forgetting"—the tendency of neural networks to lose previously acquired knowledge when learning new tasks. However, in the context of the "Right to be Forgotten," forgetting is not a failure but a requirement. As AI agents handle increasingly sensitive personal data, users require the ability to command an agent to learn a task temporarily and subsequently expunge that data entirely.

Existing Machine Unlearning (MU) techniques are largely designed for static datasets and do not account for the "streaming" nature of CL, where knowledge from different tasks becomes inextricably linked. Standard CL methods are designed to maximize knowledge transfer, meaning that traces of private data often remain embedded in the model's weights even after performance on a specific task has degraded. This paper formalizes the CLPU problem: how can an agent learn and transfer knowledge effectively while ensuring that specific tasks can be deleted so thoroughly that their prior existence cannot be proven by an adversary?

The CLPU Framework

The authors formalize the interaction between the user and the agent through a sequence of learning instructions ($\rho$):

  • Remember (R): The agent learns the task and incorporates it into its permanent knowledge base.
  • Temporary (T): The agent learns the task but flags it for potential future deletion.
  • Forget (F): The agent must perform "exact unlearning" of a previously learned temporary task.

CLPU-DER++

To address these requirements, the authors propose CLPU-DER++, an evolution of the state-of-the-art Dark Experience Replay (DER++) algorithm. The method introduces a structural strategy to ensure privacy:

  1. Isolation for Temporary Tasks: When a task is marked as "Temporary," the agent avoids updating its main model. Instead, it instantiates an isolated temporary network. This network is initialized with the weights of the main model to benefit from "forward transfer" (using prior knowledge to accelerate new learning) but remains logically separate.
  2. Selective Merging: If a user decides to transition a task from "Temporary" to "Remember," the agent uses knowledge distillation to merge the temporary network's insights back into the main model.
  3. Exact Unlearning via Deletion: When a "Forget" request is received, the agent simply deletes the temporary network and its associated memory buffer. Since the main model’s weights were never directly modified by the temporary data, the model returns to a state identical to one that never encountered the task.

Experimental Setup

The researchers evaluated CLPU-DER++ using four adapted Continual Learning benchmarks:

  • Rot-MNIST & Perm-MNIST: Variants of handwritten digit recognition involving rotations or pixel permutations.
  • Split-CIFAR10 & Split-CIFAR100: Image classification tasks where classes are introduced sequentially.

These benchmarks were modified into specific "request sequences" (e.g., Learn Task 1, Learn Task 2 as Temporary, Learn Task 3, Forget Task 2) to simulate real-world usage patterns and test the efficacy of interleaved learning and unlearning.

Key Insights and Results

The Privacy-Performance Trade-off

The research highlights a Pareto front between three competing objectives: Knowledge Transfer, Model Space (Memory), and Privacy. While standard CL methods prioritize transfer and space, they fail significantly on privacy. CLPU-DER++ successfully navigates this trade-off by prioritizing privacy and transfer at the cost of increased memory usage.

Catastrophic Forgetting vs. Private Unlearning

A critical finding of the paper is that natural "catastrophic forgetting" does not constitute unlearning. Even when a model's accuracy on a task drops to zero, a "fingerprint" of the data remains in the weights. The authors used membership inference attacks and statistical metrics (JS-ratio and In-Range Rate) to prove that standard CL methods like EWC, LwF, and original DER++ retain detectable traces of "forgotten" tasks. In contrast, CLPU-DER++ achieved near-perfect privacy scores, making the unlearned model statistically indistinguishable from a "clean" model.

Competitive Accuracy

Despite the isolation of temporary tasks, CLPU-DER++ maintained a Final Average Accuracy (ACC) nearly identical to non-private upper bounds. This suggests that the initialization strategy (starting temporary models from the main model) is a highly effective mechanism for forward transfer, allowing the agent to remain "intelligent" while staying private.

Limitations and Future Work

The primary drawback of the CLPU-DER++ approach is memory overhead. Storing separate weights for every active temporary task leads to linear growth in memory usage relative to the number of temporary tasks. This presents a challenge for scaling the method to Large Language Models (LLMs).

Future research directions include:

  • Developing memory-efficient architectures that avoid full model duplication.
  • Exploring Approximate Unlearning ($\delta$-unlearning) to allow for limited weight sharing while maintaining mathematical privacy guarantees.
  • Investigating how task similarity influences the complexity of the unlearning process.

Summary updated

BibTeX
@inproceedings{liu2022continual,
  author = {Bo Liu and Qiang Liu and Peter Stone},
  title = {{Continual Learning and Private Unlearning}},
  booktitle = {CoLLAs},
  year = {2022},
}
Figure