TL;DR
Continual learning (retaining knowledge over sequential tasks) directly conflicts with differential privacy (guaranteeing that individual data points cannot be memorized or reconstructed). This paper addresses this tension by pairing a public pre-trained Vision Transformer with two rehearsal-free, privacy-preserving strategies: private feature-sum prototypes (Cosine Classifier) and task-modular parameter-efficient fine-tuning (PEFT Ensemble). Under realistic privacy assumptions, these methods mitigate catastrophic forgetting while maintaining formal $(\epsilon, \delta)$-differential privacy guarantees.
What Problem Does This Paper Address?
Continual learning (CL) and differential privacy (DP) work fundamentally at cross-purposes:
- CL aims to preserve task knowledge across a continuous data stream, historically relying on storing exemplar data (episodic replay) or generating synthetic samples to prevent catastrophic forgetting.
- DP requires mathematical guarantees that the model does not memorize or expose the presence of any individual record. Storing exemplar samples directly violates privacy, and repeatedly training or querying across sequential tasks quickly exhausts the allowed privacy budget through sequential composition.
Prior attempts to combine the two relied on private synthetic data generators or noisy episodic autoencoders, which fail to scale beyond simple toy datasets like MNIST. This paper investigates whether leveraging public pre-trained foundation models can bridge the privacy–utility trade-off in class-incremental continual learning without needing data rehearsal.
Methods
The authors outline two key assumptions required for sound DP accounting in continual learning:
- $S_1$ (Known Total Label Space): The total universe of possible class labels is known beforehand. Releasing which classes are present in a given task would otherwise leak private metadata. All task heads output logits for the global class set $C$.
- $S_2$ (Disjoint Tasks & No Replay): Tasks have non-overlapping boundaries, and historical samples cannot be replayed. Because each task’s dataset $D_t$ is accessed independently and only once, privacy accounting relies on parallel composition rather than sequential composition, preventing budget degradation across tasks.
Using a frozen ViT-Base-16 pre-trained on ImageNet-21K as the feature extractor, the authors propose two architectures:
- Private Cosine Similarity Classifier: Computes a noisy sum-of-features for each class using the Gaussian Mechanism ($s_c = \sum_{x \in D_{t,c}} f_\theta(x) + \mathcal{N}(0, \sigma^2 I)$). For unseen classes in task $t$, pure noise is added to avoid revealing class absence. Feature sums are normalized, and inference uses nearest cosine similarity. This method requires zero gradient training during CL.
- PEFT Ensemble: Trains a small task-specific module per task using DP-SGD (via Opacus). The backbone remains frozen while learning a linear classification head or FiLM (Feature-wise Linear Modulation) adapters. Inference routes test inputs through all task modules, predicting the class with the maximum logit across all heads ($\hat{y}^* = \arg\max_{c,t} M_t(x^*)$).
Datasets
The authors evaluate class-incremental performance on three benchmarks:
- Split CIFAR-100: CIFAR-100 partitioned into 10 sequential tasks (10 classes per task).
- 5-Dataset: A 5-task benchmark combining 10-class datasets: MNIST, SVHN, notMNIST, FashionMNIST, and CIFAR-10.
- Split ImageNet-R: Renditions of 200 ImageNet classes split into 10 tasks (20 classes per task), containing 30,000 imbalanced images with heavy distribution shifts.
Pre-training data: ImageNet-21K (publicly available). No new datasets were introduced.
Key Insights and Ideas
- Rehearsal-free CL via parallel composition: Storing exemplar memory creates a compounding privacy penalty under sequential composition. By completely decoupling tasks and relying on pre-trained representations, each task’s privacy budget remains independent.
- Sum-of-features vs. mean-of-features: Standard prototype classifiers compute the class mean, which requires privatizing two values: the feature sum and the class sample count. Using normalized private sums bypasses the need to count class frequencies, avoiding a secondary source of privacy noise.
- Zero-training prototypes shine at tight privacy budgets: At stringent privacy budgets ($\epsilon = 1$), the closed-form private Cosine Similarity Classifier frequently outperforms iterative DP-SGD adapters because DP-SGD accumulates noise at every optimization step.
- Uncalibrated logits cause unexpected ensemble behavior: In the 5-Dataset benchmark, non-private PEFT ensembles performed worse than private versions (65.75% vs. 87.83% at $\epsilon=8$). Because the ensemble takes the raw maximum logit across separately trained heads, unregularized non-DP models produce overconfident out-of-distribution logits that misclassify samples across tasks. DP noise inadvertently acts as a regularizer that smooths head calibration.
Key Results
- Split CIFAR-100: The PEFT Ensemble achieved 78.81% average accuracy at $\epsilon = 1.0$ and 82.48% at $\epsilon = 8.0$, nearly matching its non-private accuracy of 82.60% with almost zero forgetting ($0.06\%$). The Cosine Classifier followed at 72.78% ($\epsilon = 1.0$) and 78.93% ($\epsilon = 8.0$).
- 5-Dataset: The PEFT Ensemble with FiLM layers achieved 79.69% ($\epsilon = 1.0$) and 87.83% ($\epsilon = 8.0$), drastically outperforming the Naive baseline (15.93%–17.56%) which suffered severe catastrophic forgetting.
- Split ImageNet-R: The Cosine Classifier proved superior in the strictest privacy regime ($\epsilon = 1$), scoring 13.04% accuracy compared to the PEFT Ensemble's 7.29%. At $\epsilon = 8.0$, PEFT Ensemble pulled ahead to 47.97% vs. 46.17%.
Limitations and Future Work
- Reliance on public pre-training: The framework assumes the pre-training dataset (ImageNet-21K) is fully public and clean. If sensitive or private data overlaps with pre-training, downstream DP guarantees become compromised.
- Fixed label space requirement ($S_1$): Assuming the total number and identity of classes is known in advance is restrictive for open-world continual learning, but relaxing this without leaking private membership remains an open challenge.
- Cross-task class splitting: The PEFT ensemble assumes classes do not reappear across different tasks. If samples from the same class are distributed across tasks, the max-logit ensemble heuristic breaks down.
- Hyperparameter tuning under DP: DP-SGD hyperparameters were tuned once per privacy budget and applied across baselines; more exhaustive hyperparameter sweeps under strict privacy budgets could yield further utility gains.
Summary updated