Private Collaborative Neural Network Learning

Melissa Chase, Ran Gilad-Bachrach, Kim Laine, Kristin E. Lauter, Peter Rindal

In the world of machine learning, data is the ultimate currency. However, for industries like healthcare and finance, this currency is often locked behind vaults of regulation (like HIPAA) or competitive secrecy. We know that neural networks perform better with more data, but how do you train a model on a massive, shared dataset without any participant ever seeing another's raw records?

A team from Microsoft Research and Oregon State University has proposed a solution in their paper, "Private Collaborative Neural Network Learning." By combining two heavyweights of cryptography—Differential Privacy and Secure Multi-Party Computation—they’ve created a protocol that allows for high-accuracy collaborative learning without the "noise explosion" that usually plagues such efforts.

TL;DR

This paper introduces a protocol for training neural networks on distributed datasets by combining Differential Privacy (DP) and Secure Multi-Party Computation (MPC). It solves the scalability issues of standard MPC and the accuracy degradation of distributed DP, allowing multiple parties to collaboratively train a model while ensuring individual records remain private.

What Problem Does This Paper Address?

When multiple organizations want to train a joint model, they face a "privacy vs. utility" deadlock:

  1. The MPC Approach: Secure Multi-Party Computation allows parties to compute a function without revealing their inputs. However, generic MPC is notoriously slow and communication-heavy. More importantly, while MPC protects the process, it doesn't protect the output. A trained model's weights can "leak" information about the training data.
  2. The DP Approach: Differential Privacy adds random noise to data to mask individual contributions. In a collaborative setting, if every party adds their own noise before sharing, the total noise becomes so large that the resulting model is useless (the "noise explosion").

The authors aim to bridge this gap: providing the security of MPC with the output-privacy of DP, all while keeping the computational overhead low enough for real-world use.

Methods

The core contribution is the Collaborative Gradient Computation (CGC) algorithm. Here is how the "marriage" works:

  • Secret Sharing: Instead of sending raw gradients, each party splits their gradient into "secret shares." These shares look like random noise individually but reveal the true gradient when combined.
  • The Two-Host Model: The protocol uses two nominated "hosts" ($H_1$ and $H_2$). Each party sends one share to $H_1$ and another to $H_2$.
  • Local Aggregation: The hosts sum their respective shares locally. Because addition is "linear," the sum of the shares is equal to the share of the sum. This part is incredibly fast and requires zero communication between hosts.
  • The MPC "Finish Line": Only at the very end of a mini-batch do the two hosts engage in a heavy cryptographic protocol (Garbled Circuits). They use this to combine their sums and—crucially—add the DP noise only once.

By adding noise once at the aggregate level rather than $K$ times (for $K$ parties), they maintain high model utility. By using MPC only for the final addition and noise injection, they keep the system fast.

Datasets

The authors evaluated their approach using the MNIST dataset (60,000 training examples of handwritten digits).

  • They tested a Small Network (3 layers, ~13k parameters).
  • They tested a Large Network (4 layers, ~127k parameters).
  • These served as benchmarks to compare private collaborative learning against non-private baselines (which achieve ~98.5–98.9% accuracy).

Key Insights and Ideas

  • The "Goldilocks" Batch Size: The authors provide a theoretical bound (Theorem 1) showing that mini-batch size is a critical lever. If the batch is too small, DP noise dominates; if it's too large, you don't take enough gradient steps. There is a mathematical "sweet spot" for batch size in private learning.
  • Norm Matters: The study found that using the $L_1$ norm for gradient clipping performed significantly better than the more common $L_2$ or $L_\infty$ norms in this specific private context.
  • Scalability: A major "aha" moment is that the cryptographic complexity of their protocol is independent of the dataset size and the number of parties. It only scales with the number of parameters in the model. This makes it viable for "Big Data" scenarios involving hundreds of contributors.

Key Results

  • Accuracy: On MNIST, the private collaborative model achieved up to 94.2% accuracy (with $\epsilon=8$). While lower than the 98.5% non-private baseline, it represents a highly functional model produced under strict privacy constraints.
  • Efficiency: The cryptographic overhead is minimal. The "Garbled Circuit" portion takes only 0.2 to 0.6 milliseconds per coordinate on standard laptops.
  • Communication: Because parties only send gradient shares (not the whole dataset), the protocol can actually be more efficient than centralizing data in a single location for very large datasets.

Limitations and Future Work

  • The Semi-Honest Assumption: The protocol assumes parties are "semi-honest"—they follow the rules but might try to learn extra info from the data they see. It does not protect against "malicious" actors who intentionally provide fake data to poison the model.
  • The Model Size Penalty: As the number of parameters grows, the amount of noise needed to maintain privacy also grows. This explains why the "Large" network actually performed slightly worse than the "Small" network under high privacy settings.
  • Horizontal vs. Vertical Splitting: This paper assumes "horizontal" splitting (everyone has the same features for different people). The authors note that "vertical" splitting (different parties hold different features for the same people, e.g., a hospital has health data and a bank has income data) is a much harder problem for future research.

Summary updated

BibTeX
@article{chase2017private,
  author = {Melissa Chase and Ran Gilad-Bachrach and Kim Laine and Kristin E. Lauter and Peter Rindal},
  title = {{Private Collaborative Neural Network Learning}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2017},
  url = {https://openreview.net/forum?id=8gISq2b24el},
}
Figure