Privacy-Preserving Classification with Secret Vector Machines

Valentin Hartmann, Konark Modi, Josep M. Pujol, Robert West

Introduction

In the era of "big data," organizations increasingly seek to train machine learning models on sensitive information stored locally on user devices. Traditional centralized data collection poses significant privacy risks, including potential data breaches and insider threats. While Federated Learning (FL) keeps data on-device by sharing only model updates, it often assumes a trusted central server. A malicious server can potentially reconstruct private user features from these gradients. Existing defenses like Local Differential Privacy (LDP) often introduce significant noise, severely degrading model accuracy.

Secret Vector Machines (SecVM) offer a distributed learning framework that allows a central server to train a linear Support Vector Machine (SVM) without ever accessing raw user data or identifiable gradients. By leveraging the discrete nature of SVM updates and employing structural anonymity, SecVM achieves high accuracy without the typical privacy-performance trade-off.

The SecVM Framework

The SecVM architecture is built upon three fundamental pillars designed to ensure robust privacy by design:

  1. Discrete Gradients via Hinge Loss: Unlike deep learning models that produce complex, real-valued gradients, a linear SVM using hinge loss generates discrete updates (typically -1, 0, or 1). This mathematical simplicity acts as a natural information bottleneck, revealing far less about the underlying data than continuous gradients.
  2. Privacy-Preserving Feature Hashing: To obscure specific user features, SecVM employs feature hashing to map high-dimensional input spaces into a smaller number of "bins." This creates intentional collisions; when multiple features map to the same bin, the server cannot distinguish which specific feature triggered an update, providing a layer of k-anonymity for features.
  3. Update Splitting and Anonymization: Instead of transmitting a single gradient vector, clients decompose updates into "atomic" packages (e.g., "Feature index $j$ changed by +1"). These packages are sent individually through an anonymity network (such as Tor) at randomized intervals. This fragmentation prevents the server from linking individual updates back to a specific user or reconstructing a complete update vector.

Experimental Evaluation

The researchers evaluated SecVM through both offline and online experiments:

  • Offline Evaluation: Utilizing a dataset of approximately 350,000 Twitter users, the system was tasked with predicting gender based on tweet content (96 million distinct features).
  • Online Evaluation: A real-world deployment within the Cliqz web browser involved thousands of active users. The task was to predict gender based on website titles, with ground-truth labels derived from Facebook logins.

Key Results

The evaluation demonstrated that SecVM provides strong privacy guarantees with negligible impact on model performance.

Negligible Accuracy Loss

In the Twitter classification task, a standard SVM achieved 75.2% accuracy. SecVM maintained a comparable accuracy of 74.7%, even when employing aggressive feature hashing. As shown in the following figure, the accuracy remains stable across various hashing densities, only significantly dropping when the number of features per bin becomes extremely high.

Accuracy vs. Feature Hashing Density

Production Readiness

The online deployment in the Cliqz browser confirmed that SecVM is robust enough for production environments. It successfully managed the inherent "messiness" of the internet, such as users going offline and varying connection speeds. The system's resilience to dynamic user availability is reflected in the fluctuating participant counts observed during live training.

Participant Fluctuations in Online Deployment

Strong Privacy Guarantees

Mathematical analysis confirms that the probability of a malicious server successfully linking updates to a specific user is vanishingly small. In one representative scenario, this probability was calculated to be less than $5 \times 10^{-19}$. Furthermore, the protocol includes verification steps where clients ensure the server is broadcasting the same model to all participants, preventing targeted "poisoning" attacks.

Limitations and Future Work

While SecVM represents a significant step forward, several areas for improvement remain:

  • Protocol Overhead: The process of splitting updates into numerous small, anonymous packages increases network traffic and requires more intensive server-side processing compared to traditional methods.
  • Model Constraints: Currently, SecVM is optimized for linear SVMs. Extending this logic to non-linear models or neural networks (perhaps using ReLU activations or binary weights) is a promising direction for future research.
  • Client-Side Trust: The privacy guarantees rely on the integrity of the client-side implementation. Users must trust that the software correctly fragments and anonymizes their data before transmission.

Summary updated

BibTeX
@inproceedings{hartmann2019privacy,
  author = {Valentin Hartmann and Konark Modi and Josep M. Pujol and Robert West},
  title = {{Privacy-Preserving Classification with Secret Vector Machines}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2019},
  doi = {10.1145/3340531.3412051},
}
Figure