TL;DR
This paper introduces "Lifelong DP," a new definition for differential privacy that ensures a consistent privacy budget across an ever-growing stream of machine learning tasks. They propose L2DP-ML, a novel algorithm that achieves this by using a scalable, heterogeneous approach with streaming batch training, demonstrating strong privacy guarantees with minimal utility loss.
What Problem Does This Paper Address?
Traditional machine learning models are often trained on static datasets. However, real-world applications require models to continuously learn new tasks and adapt over time, a paradigm known as lifelong learning (L2M). While L2M offers significant advantages, it introduces substantial privacy risks. As models learn new tasks and retain knowledge from previous ones (often through mechanisms like episodic memory), the potential for sensitive data leakage increases. Existing differential privacy (DP) techniques struggle to provide a consistently bounded privacy guarantee in this dynamic, ever-expanding learning environment, leading to an unbounded privacy budget as the number of tasks grows. This paper tackles the challenge of maintaining a fixed, robust privacy guarantee for data used in lifelong learning scenarios.
Methods
The core of this work is the introduction of Lifelong DP, a formal definition that ensures a consistently bounded privacy budget ($\epsilon$) regardless of the number of tasks encountered. This is a crucial departure from traditional DP where the budget can accumulate over time.
To achieve Lifelong DP, the authors propose the L2DP-ML algorithm. Key aspects of their approach include:
- Network Architecture: A stacked auto-encoder and multi-layer neural network architecture is used. The auto-encoder learns feature representations, and the multi-layer network performs classification. This design helps tighten sensitivity and improve reusability.
- Privacy Mechanism: They employ a Laplace mechanism to inject noise into gradients, specifically targeting the auto-encoder's reconstruction loss and the multi-layer network's classification loss. This is applied in a way that the privacy budget for each component is carefully managed.
- Episodic Memory Management: The episodic memory, which stores data from previous tasks, is treated as a fixed and disjoint set of datasets. This prevents privacy leakage that could arise from overlapping data samples across different tasks' episodic memories.
- Streaming Batch Training: To address scalability and computational efficiency, they introduce a streaming batch training approach. This involves processing data in mini-batches and using a single draw of Laplace noise across batches for a given task, further preventing privacy leakage from repeated noise additions.
- Heterogeneous Training: The algorithm is designed to handle heterogeneity in data sizes and task orders, allowing for different numbers of training epochs per task to optimize utility without compromising privacy.
Datasets
The proposed L2DP-ML algorithm was evaluated on several standard and custom datasets:
- Permuted MNIST: A standard benchmark where tasks are created by permuting the pixels of MNIST images.
- Permuted CIFAR-10: Similar to Permuted MNIST, but applied to the CIFAR-10 dataset.
- Split CIFAR-10/100: Tasks are created by splitting the classes of CIFAR-10 and CIFAR-100 datasets.
- Human Activity Recognition (HARW) dataset: A custom dataset collected from Android smartphones, featuring sensor data for various human activities with different sampling rates (5Hz, 10Hz, 20Hz, 50Hz) representing distinct tasks.
Key Insights and Ideas
- The "Growing Privacy Budget" Problem: The paper clearly articulates that traditional DP mechanisms, when naively applied to lifelong learning, lead to an unbounded privacy budget as the number of tasks increases. This is a critical insight for anyone working with sequential learning and privacy.
- Consistently Bounded Lifelong DP: The formal definition of Lifelong DP is a significant contribution, providing a clear target for privacy guarantees in dynamic learning environments. The idea of a fixed privacy budget, irrespective of task count, is a powerful concept.
- Episodic Memory as a Privacy Leakage Vector: The authors highlight that the episodic memory, while crucial for preventing catastrophic forgetting, can also be a source of privacy leakage. Their approach of treating it as fixed and disjoint datasets is a clever way to mitigate this.
- Streaming Batch Training for Scalability and Privacy: The combination of streaming batch training with DP is shown to be effective not only for efficiency but also for maintaining privacy by using a single noise draw per task.
- Heterogeneity as an Opportunity: Instead of a limitation, the paper frames data and task heterogeneity as an opportunity to improve model utility under the same privacy constraints, by adjusting training epochs.
Key Results
- Superior Privacy Preservation: L2DP-ML consistently outperforms the "NaiveGaussian" baseline in terms of average accuracy, especially under tight privacy budgets and with a large number of tasks. For instance, on Permuted MNIST with 20 tasks and $\epsilon=0.5$, L2DP-ML achieved 47.73% accuracy compared to 10.43% for NaiveGaussian.
- Competitive Utility: While L2DP-ML introduces privacy, its utility is competitive with the noiseless A-gem baseline, with the gap often shrinking as the number of tasks increases. On split CIFAR-10/100, L2DP-ML even slightly surpassed the noiseless A-gem in average accuracy after 11 tasks.
- Reduced Forgetting: L2DP-ML models demonstrated significantly lower average forgetting compared to the NaiveGaussian baseline, and in some cases, even outperformed the noiseless A-gem.
- Scalability and Efficiency: The streaming batch training approach significantly reduces computational complexity and memory consumption.
- Heterogeneity Benefits: Heterogeneous training (varying epochs per task) and balanced training (uniform epochs) showed improvements in average accuracy, particularly on the HARW dataset, without compromising Lifelong DP.
Limitations and Future Work
- Fundamental L2M Trade-off: The paper acknowledges that while L2DP-ML improves forgetting compared to some baselines, the inherent trade-off between accuracy and forgetting in L2M remains. Improving this fundamental aspect of L2M is noted as out-of-scope for this study.
- Open Problem: The paper identifies designing a mechanism to preserve Lifelong DP under a tight privacy budget, especially with a large number of tasks or training steps, as a non-trivial and open problem.
- Future Directions: The authors suggest that their work opens avenues for achieving better model utility with lower computational cost under Lifelong DP. Further research could explore more advanced privacy mechanisms and optimization strategies for heterogeneous lifelong learning scenarios.
Summary updated