Differential Privacy in Scalable General Kernel Learning via $K$-means Nystr{\"o}m Random Features

Bonwoo Lee, Jeongyoun Ahn, Cheolwoo ParkNeurIPS 2024

Overview

This paper introduces a scalable framework for Differentially Private (DP) kernel learning that works for virtually any kernel, rather than being restricted to specific types like Gaussian or Laplacian. By cleverly adapting the Nyström method—a classic technique for low-rank matrix approximation—using DP $K$-means, the authors enable private, high-performance kernel machine learning that is computationally efficient and free from the need to access test data during training.

The Challenge of Private Kernel Learning

Kernel methods act as the "Swiss Army knife" of machine learning, allowing models to capture complex, non-linear patterns by mapping data into high-dimensional spaces. However, bringing these methods into the realm of Differential Privacy (DP) has historically been notoriously difficult.

Existing DP kernel algorithms usually fall into one of three traps:

  1. Scalability Issues: Some methods require $O(n^3)$ time complexity, making them computationally prohibitive for large datasets.
  2. Kernel Restrictions: Many rely on "Random Fourier Features" (RFF), which only work for translation-invariant kernels (like the Gaussian kernel). This leaves out powerful options like polynomial or chi-squared kernels.
  3. Data Dependency: Certain approaches require access to test data during the training phase to maintain utility, which is often impractical or constitutes a privacy risk in itself.
Comparison of the proposed algorithm against existing DP kernel learning methods across key capabilities.

The authors aim to break these barriers, providing a way to perform private Empirical Risk Minimization (ERM) and Kernel Mean Embedding (KME) that is scalable, versatile, and robust across all these dimensions.

Proposed Methodology: DP $K$-means Nyström Approximation

The core innovation of this paper is the DP $K$-means Nyström Approximation.

In standard (non-private) machine learning, the Nyström method approximates a massive kernel matrix by picking a few "landmark points" and evaluating how the rest of the data relates to them. This effectively turns a complex kernel problem into a simpler linear one. The authors adapt this for privacy through several key steps:

  • DP $K$-means for Landmarks: Instead of picking random points from the dataset, they use a differentially private version of $K$-means clustering to find the centroids of the data. These centroids serve as the landmark points. Because the centroids are generated privately, the resulting "random features" derived from them are also private.
  • Linearization: Once these private features are created, any standard DP linear algorithm (such as DP-SGD or objective perturbation) can be used to train the final model.
  • Versatile Release: The authors also provide an algorithm to release a "privatized" version of the dataset. This dataset can be used for multiple different kernel tasks later without expending additional privacy budget.

Experimental Setup

The researchers evaluated their framework on several well-known benchmarks to test its versatility and performance:

  • Adult Dataset: Income classification.
  • Bank Marketing: Predicting client subscriptions to term deposits.
  • CDC BRFSS 2015: Health-related survey data for diabetes prediction.
  • Credit Card Fraud: Detecting fraudulent transactions.
  • MNIST: The classic handwritten digit recognition dataset.
  • Simulated Data: Specifically designed with a polynomial boundary to test non-translation-invariant kernels.

Key Insights and Results

Insights

  • Data-Dependence is a Double-Edged Sword: While RFFs are data-independent (and thus "free" in terms of privacy budget), they often fail to capture the specific structure of a dataset. By spending a small portion of the privacy budget on $K$-means to find landmarks, the Nyström method achieves much higher utility for the same total privacy cost.
  • Beyond Gaussian Kernels: This is one of the first DP frameworks to effectively handle general kernels (like polynomial kernels) at scale. This is crucial because the optimal kernel depends entirely on the underlying geometry of the data.
  • The "Thresholding" Trick: The authors utilize a cluster thresholding technique. If a cluster is too small, it is highly susceptible to DP noise. By ignoring tiny clusters and generating extra landmarks from a distribution, they stabilize the approximation.
  • Privacy Budget Allocation: The paper highlights that how the "privacy spend" is split matters significantly. Allocating roughly 20% of the budget to feature generation and 80% to model training often yields the best empirical results.

Results

  • Superior Accuracy: On the simulated polynomial dataset, the DP Nyström method using a polynomial kernel significantly outperformed both linear models and Gaussian-kernel models using RFF.
  • Lower Embedding Error: For Kernel Mean Embeddings (KME), the DP $K$-means approach consistently demonstrated lower error across different privacy levels ($\epsilon$) compared to random subsampling or existing DP-KME baselines.
  • Scalability: The method successfully reduces the computational complexity of kernel ridge regression from $O(n^3)$ to $O(nm^2 + nmd)$, where $m$ is the number of landmarks. This is a massive win for "Big Data" applications.

Limitations and Future Work

While highly effective, the framework has a few limitations that pave the way for future research:

  • Euclidean Constraint: The current implementation relies on $K$-means, which assumes the data lives in Euclidean space. The authors suggest that adapting $K$-medoids could extend this framework to more abstract data types.
  • Supervised Landmarks: The current landmark selection is unsupervised (it does not factor in the labels $y$). A "supervised Nyström" method might be able to find even more efficient landmarks by focusing on features that are most predictive of the target variable.
  • Hyperparameter Tuning: Like many DP methods, performance is sensitive to the choice of $m$ (number of landmarks) and the privacy budget split, which currently requires heuristic or manual tuning.

Summary updated

BibTeX
@inproceedings{lee2024differential,
  author = {Bonwoo Lee and Jeongyoun Ahn and Cheolwoo Park},
  title = {{Differential Privacy in Scalable General Kernel Learning via $K$-means Nystr\{\textbackslash\{\}"o\}m Random Features}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=MdmzAezNHq},
}
Figure