Privacy-Aware Lifelong Learning

Ozan Özdenizci, Elmar Rueckert, Robert Legenstein

TL;DR

This paper introduces Privacy-Aware Lifelong Learning (PALL), a novel framework that successfully bridges the gap between continual learning and machine unlearning. By isolating task-specific knowledge into sparse, shared subnetworks within a single model and pairing it with episodic memory rehearsal, PALL achieves exact task unlearning on demand with zero catastrophic forgetting. Crucially, it delivers these privacy guarantees while remaining up to 12x more memory-efficient than the naive approach of training independent models.

What Problem Does This Paper Address?

As AI systems deploy into dynamic environments, they face two conflicting demands: they must continuously learn new skills over time (continual or lifelong learning), and they must be able to completely forget specific data or tasks upon request to comply with privacy regulations like the "right to be forgotten" (machine unlearning).

Combining these two paradigms is incredibly difficult. Continual learning algorithms are designed to retain historical knowledge and prevent "catastrophic forgetting." Machine unlearning, on the other hand, aims to cleanly erase targeted knowledge.

Existing solutions fall short: standard unlearning methods assume full access to past datasets (which violates the core premise of sequential lifelong learning), while hybrid approaches either offer weak, "inexact" unlearning guarantees or resort to training entirely independent models for each task. This independent approach prevents parameter sharing and causes model storage requirements to skyrocket as more tasks are introduced.

Methods

PALL tackles this challenge by introducing an architecture-based hybrid strategy that operates within a single, fixed-capacity neural network.

  1. Task-Specific Sparse Subnetworks: During the learning phase of a new task, PALL jointly optimizes a binary subnetwork mask ($m_t$) and parameter importance scores ($s_t$). To prevent catastrophic forgetting, parameters unique to prior tasks are frozen.
  2. Selective Knowledge Transfer: To allow the model to build on past knowledge (forward transfer), new tasks can selectively reuse and overlap with the frozen parameters of previous subnetworks.
  3. Exact Unlearning via Parameter Resetting: When an unlearning request arrives, PALL achieves exact unlearning by resetting the parameters unique to that task back to their random initialization values. This ensures the model behaves exactly as if it had never encountered the deleted task.
  4. Episodic Memory Rehearsal: Resetting shared parameters can inadvertently degrade performance on other tasks that relied on them for forward transfer. To fix this, PALL maintains a tiny episodic memory buffer of samples from other tasks. It runs a brief retraining step on the affected parameters to restore performance across the remaining tasks.
Figure 1: Illustration of PALL. Task-specific subnetworks obtained after learning are indicated by color. The subnetwork mask m2 for Task 2 contains two shared, frozen parameters from Task 1 (dashed blue lines), as well as m2 (green connections). Following the unlearning request for Task 1, we reset all parameters trained on D1 (blue connections), and retrain any of those parameters which were used for knowledge transfer in later tasks (shown by red connections) using experience replay.

Datasets

The authors evaluated PALL across several standard image classification benchmarks adapted for sequential task-incremental learning:

  • Sequential CIFAR10 (S-CIFAR10): 5 tasks, 2 classes per task.
  • Sequential CIFAR100 (S-CIFAR100): 10 tasks, 10 classes per task.
  • Sequential TinyImageNet (S-TinyImageNet): Evaluated across longer sequences of 20 tasks (10 classes each), 40 tasks (5 classes each), and 100 tasks (2 classes each).

Experiments were conducted using standard architectures, including ResNet-18, ResNet-34, and Vision Transformers (ViT-T/8).

Key Insights and Ideas

  • Sparsity Enables Clean Erasure: By constraining task knowledge to sparse subnetworks rather than updating the entire weight matrix, exact unlearning transitions from a complex optimization problem to a straightforward parameter reset.
  • Resolving the Sharing vs. Forgetting Paradox: Weight sharing is highly desirable for forward knowledge transfer but creates a messy web of dependencies that complicates unlearning. PALL elegantly resolves this: it allows weight sharing during learning, but repairs broken dependencies post-unlearning via a highly localized, efficient episodic rehearsal step.
  • True Privacy Guarantees: Unlike approximate unlearning methods—which merely degrade a model's performance on a target dataset—PALL's exact unlearning ensures that an adversary cannot statistically distinguish the unlearned model from one trained from scratch without the forgotten data.

Key Results

PALL consistently outperforms alternative lifelong learning and approximate unlearning baselines across all metrics:

  • Perfect Unlearning & Zero Forgetting: PALL achieves true exact unlearning (dropping to chance-level accuracy on forgotten tasks) and maintains a backward forgetting metric ($Fl$) of exactly 0.0.
  • High Retained Accuracy: On the remaining tasks, PALL achieves accuracies ($A_l$) that match or even exceed the upper-bound baseline of training independent models. For instance, on S-TinyImageNet, PALL scored ~62.14% accuracy compared to the independent baseline's 61.69%.
  • Massive Memory Savings: In a long-sequence test of 100 tasks on TinyImageNet, training independent models requires a massive 2063 MB of storage. PALL handles the entire sequence within a maximum total model size of just 89.53 MB, demonstrating exceptional scalability.
Table 1: Evaluations across different datasets and models. In this experimental setting, using inde- pendent models (bottom row) is identical to CLPU (Liu et al., 2022). Methods with exact unlearning perform random classification on unlearned tasks (Au). Results are averaged over 20 random seeds, where the sequence of requests are randomly generated with Nu = 3 unlearning instructions (see Appendix A.3.5 for worst-case results across seeds). α: task-specific subnetwork connectivity rate.

Limitations and Future Work

  • Task ID Dependency: PALL is designed for task-incremental settings, meaning it requires a task ID during inference to select the correct subnetwork mask. It cannot currently handle class- or domain-incremental scenarios where task IDs are unknown. The authors suggest exploring privacy-aware gating mechanisms to address this in the future.
  • Coarse-Grained Deletion: The framework is built for whole-task unlearning. It does not yet support fine-grained, sample-level, or single-class unlearning within a task.
  • Modality Scope: The current work focuses exclusively on computer vision benchmarks. Extending PALL to language processing and transformers in NLP remains an open direction for responsible AI research.

Summary updated

BibTeX
@inproceedings{ozdenizci2025privacy,
  author = {Ozan Özdenizci and Elmar Rueckert and Robert Legenstein},
  title = {{Privacy-Aware Lifelong Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=UstOpZCESc},
}
Figure