TL;DR
This paper introduces Ind-KNN, a novel "private prediction" algorithm that offers a more flexible and privacy-preserving alternative to traditional "private training" in machine learning. Ind-KNN achieves competitive accuracy while allowing for easier updates to the training data and precise control over individual user privacy, making it particularly suitable for scenarios with evolving datasets and regulations like GDPR.
What Problem Does This Paper Address?
The dominant approach to privacy in machine learning is "private training," where models are trained with differential privacy (DP) guarantees. While this ensures the final model is safe, it has significant drawbacks: it's computationally expensive, static (making updates difficult), and doesn't easily accommodate data deletion requests (like GDPR's "right to be forgotten"). This paper revisits "private prediction," where predictions are made directly from data without a fully trained DP model. The challenge here is that traditional private prediction methods often spend privacy budget per prediction, limiting the number of queries possible. This work aims to bridge this gap by developing a private prediction method that is efficient, adaptable, and offers strong privacy guarantees, even for a large number of queries.
Methods
The core innovation is Individual Kernelized Nearest Neighbors (Ind-KNN). Unlike standard kNN, Ind-KNN uses:
- Individualized Rényi Differential Privacy (RDP) accounting: Each data point has its own privacy budget, and its contribution to a prediction is charged precisely. This allows data points to be "removed" once their budget is exhausted, rather than the entire dataset.
- Kernelized similarity: Instead of just using the top-k neighbors, Ind-KNN uses a kernel function (like RBF or cosine) to weigh neighbors based on their similarity to the query. This allows for a more nuanced characterization of individual contributions.
- Adaptive noise and thresholding: The algorithm dynamically adjusts noise levels and uses a kernel weight threshold to select neighbors, ensuring that only those significantly contributing to the prediction are held accountable for privacy loss.
- Prediction Reuse: Disclosed predictions are treated as public information and incorporated into the active dataset, mitigating utility loss from data point exclusion.
- Hashing Tricks (Ind-KNN-Hash): For efficiency, locality-sensitive hashing (LSH) is used to group data points, allowing for faster nearest neighbor searches within relevant "buckets."
Datasets
The paper evaluates Ind-KNN on several standard datasets:
- Image Classification: CIFAR-10, Fashion MNIST.
- Text Classification: AG News, DBPedia.
These datasets are used with various pre-trained feature extractors (ViT, ResNet50, sentence-transformers) to represent private training data.
Key Insights and Ideas
- Private Prediction is a Viable Alternative: The paper convincingly argues that private prediction, when implemented effectively, can match or even surpass private training methods in certain scenarios, especially when data updates are frequent or a large number of queries are needed.
- Individual Privacy Accounting is Key: The shift from a global privacy budget to individual budgets is crucial. It allows for more fine-grained control and better utility, as only the data points actively contributing to a prediction incur a privacy cost.
- Kernelization Enhances Privacy-Utility: Using kernel functions to weigh neighbors provides a more accurate measure of contribution, leading to better privacy accounting and potentially higher utility compared to simple kNN.
- Prediction Reuse is a Game-Changer: Treating past predictions as public information significantly boosts utility, especially when dealing with a large volume of queries, by effectively expanding the "active" dataset.
- Hashing for Scalability: Ind-KNN-Hash demonstrates that efficient nearest neighbor search techniques can be integrated without compromising privacy, making the approach scalable to larger datasets.
Key Results
- Competitive Accuracy: Ind-KNN consistently achieves comparable or better accuracy than existing private prediction methods (like Private-kNN) and, in some cases, even outperforms private training methods like Linear NoisySGD, especially for a limited number of queries. For instance, on CIFAR-10, Ind-KNN requires a significantly lower privacy budget (€=2.0) to achieve 96.0% accuracy compared to Linear NoisySGD (€=6.2).
- Improved Utility with More Queries: While accuracy typically degrades for private prediction methods as the number of queries increases, Ind-KNN shows a much slower decline due to its individual privacy accounting and prediction reuse. It can handle an additional 1000 queries on CIFAR-10 without accuracy loss.
- Computational Efficiency: Ind-KNN-Hash, with its hashing implementation, achieves a 6x speedup in prediction time with only a negligible drop in accuracy. The computational cost per query remains constant for Ind-KNN variants, unlike private training methods that require costly retraining.
- Flexibility: Ind-KNN is shown to be more adaptable to frequent data updates and deletion requests compared to private training.
Limitations and Future Work
- Privacy Budget Degradation with Many Queries: While Ind-KNN is more resilient, the utility can still degrade as the number of queries increases, leading to the exclusion of more data points. The paper notes that the "exclusion of private data may result in a degradation of the algorithm's utility."
- Hyperparameter Tuning: Finding the optimal hyperparameters (like the kernel bandwidth and threshold) can be complex and requires careful tuning on a validation set.
- Future Work: The authors suggest exploring more advanced DP accounting techniques and further optimizing the hashing strategy for even greater efficiency. They also mention the potential for Ind-KNN to address scenarios with billions of data points if the private dataset is scaled accordingly.
Summary updated