CaPC Learning: Collaborative Learning with Both Confidentiality and PrivacyCaPC Learning: Confidential and Private Collaborative Learning
The authors propose the CaPC protocol, which combines homomorphic encryption, MPC, and PATE-style private aggregation to let a small number of participants collaboratively learn without sharing data and model architectures; the authors claim an average accuracy improvement of 4.09 percentage points on CIFAR10.
A small number of participants each hold a private dataset and a local model, and collaborate by querying each other for labels; confidentiality (query inputs and models are not leaked to each other) and differential privacy (predictions do not leak training data) are required. It is assumed that the semi-trusted privacy guardian (PG) does not collude with any party, and the adversary is honest-but-curious and can corrupt any C participants; when multiple parties are corrupted, the privacy budget ε degrades proportionally to C.
- In scenarios such as healthcare and finance, multiple parties want to collaboratively learn but are constrained by privacy regulations: federated learning guarantees only confidentiality and not privacy, differentially private training requires a large data volume, and both require a unified model architecture. The authors state that previously there was no collaborative learning method that simultaneously guarantees confidentiality and privacy.
- Proposes CaPC: the querier sends encrypted inputs to other parties using homomorphic encryption, each party performs confidential inference with its local teacher model, computes the argmax via secret sharing and Yao garbled circuits, a semi-honest privacy guardian adds noise to aggregate labels with differential privacy, and the querier retrains its local model with these labels.
- Experiments on CIFAR10 and SVHN (with MNIST and Fashion-MNIST in the appendix): in the homogeneous setting, average accuracy improves by 4.09 (CIFAR10) and 1.92 (SVHN) percentage points; under data skew, the best active learning strategy improves balanced accuracy by 9.94 (CIFAR10) percentage points; encrypted inference overhead is 100–1000 times that of plaintext CPU inference.
- The authors point out that HE-transformer leaks certain aspects of the model architecture (such as the activation function type and MaxPooling layers), and that the number of participants should preferably be reduced below 50; the experiments are conducted only on four image classification datasets, with 50–400 parties, under the honest-but-curious assumption, and fairness is measured only by balanced accuracy.
- Evaluated models
- VGG-5VGG-7ResNet-8ResNet-10LeNetCryptoNet-ReLU
- Benchmarks
- CIFAR10SVHNMNISTFashion-MNIST
- Metrics
- accuracybalanced accuracy隐私预算 εwall-clock time
CaPC Learning is the first collaborative learning method proposed in the paper that provably guarantees both confidentiality and privacy: parties collaborate by combining secure multi-party computation (MPC), homomorphic encryption (HE), and a privately aggregated teacher model, without centrally combining training data or training a central model. Even when datasets are non-IID and parties' model architectures are heterogeneous, each participant can still improve the accuracy and fairness of its local model.
Paper analysis
What problem does this paper attempt to solve?
Addresses the problem of simultaneously guaranteeing data confidentiality and (differential) privacy in multi-party collaborative learning; the authors state that CaPC is the first method that provably achieves both simultaneously.
Core problem: a small number of participants holding privacy-sensitive data (such as hospitals) want to collaborate to improve their respective local models, but existing methods cannot simultaneously guarantee confidentiality (not directly sharing data) and privacy (not indirectly leaking data through model predictions).
- Application scenarios: in fields such as healthcare and finance, regulations prohibit centralizing data in one place (confidentiality) and also restrict implicitly sharing data through model predictions (privacy); a typical example is a network of hospitals consulting each other for a "second opinion".
- Shortcomings of existing methods (as stated in the paper): federated learning provides only confidentiality, and the shared gradients still contain private information; differentially private training assumes an unreasonably large dataset; and both produce a central model whose architecture is agreed upon in advance by all parties, and do not support each party training its own local model.
- Core idea: the shared information is "labels" rather than gradients, so the parties do not need a unified model architecture; cryptographic tools are used to decentralize PATE's private teacher aggregation, so that even a small number of participants can obtain differential privacy guarantees (the authors state that the sensitivity of aggregating histograms is lower than that of aggregating gradients in federated learning).
- The paper proposes: the CaPC (Confidential and Private Collaborative) learning protocol, combining homomorphic encryption, secure multi-party computation, and private aggregation, with formal guarantees and experimental validation.
- Threat model:
- Goal: protect the confidentiality of the query input x and each party's model M_i, and provide (ε, δ)-differential privacy for the responding parties' training data.
- Knowledge/capability: the adversary is honest-but-curious (follows the protocol but tries to infer information from records) and can corrupt any C participants.
- Assumption: there is a semi-trusted third party, the privacy guardian (PG), and the PG does not collude with any party.
- Victim system: the collaborating parties' local models and private datasets; when C>1, the privacy budget ε degrades proportionally to C.
What related research exists?
Related work falls into four categories: cryptographic protocols for confidential inference, differential privacy and PATE, multi-party learning such as federated learning, and active learning and fairness.
Confidential inference and MPC protocols
- CryptoNets (Gilad-Bachrach et al., 2016), nGraph-HE (Boemer et al., 2019): secure neural network inference with pure homomorphic encryption; the paper notes that pure HE does not support common non-polynomial activation functions and leaks hidden-layer pre-activation values.
- Gazelle (Juvekar et al., 2018), Delphi (Mishra et al., 2020), MP2ML (Boemer et al., 2020): hybrid HE and MPC protocols; the paper notes that pure MPC schemes may leak activation functions or model structure, and hybrid schemes attempt to reduce these leaks. CaPC's confidential inference step is implemented directly on top of MP2ML (HE-transformer).
- Basic cryptographic tools: Yao garbled circuits (Yao, 1986), secret sharing (Shamir, 1979), oblivious transfer (Rabin, 2005), CKKS (Cheon et al., 2017), etc., used as protocol building blocks.
Differential privacy and PATE
- PATE (Papernot et al., 2017) and its improved analysis (Papernot et al., 2018): private aggregation of teacher ensembles, giving privacy bounds via noisy argmax and data-dependent analysis. The paper explicitly contrasts: PATE assumes a centralized setting where training and inference are done by a single party, whereas CaPC's teacher models are each trained by different participants and computation is decentralized using cryptography.
- DP-SGD (Abadi et al., 2016), RDP (Mironov, 2017): provide the moments accountant and Rényi differential privacy tools used to compute CaPC's privacy budget ε.
Multi-party learning and confidentiality during training
- Federated learning (McMahan et al., 2017; Konečný et al., 2016): the paper notes that it only preserves confidentiality, requires many participants, and requires a unified architecture; Sheller et al. (2020)'s medical federated learning is named as "with few participants, one can only trade off between utility and privacy, and only confidentiality is guaranteed."
- TextHide, InstaHide (Huang et al., 2020a;b) and neuron pruning (Huang et al., 2020c): confidentiality/privacy methods during training; the paper notes that CaPC differs in that it uses cryptographic tools at inference time.
Active learning and fairness
- margin, entropy uncertainty sampling (Lewis & Gale, 1994; Scheffer et al., 2001) and greedy k-center (Sener & Savarese, 2017): the three active learning strategies adopted by CaPC in the data skew experiments.
- Fairness metrics: balanced accuracy, equalized odds, equal opportunity (Hardt et al., 2016); the paper adopts balanced accuracy on the grounds that the datasets used have no sensitive attributes, so the other metrics do not apply.
Positioning: the authors state that CaPC is the first collaborative learning method that provably achieves both confidentiality and privacy, distinct from federated learning (confidentiality only, requires a unified architecture and massive participants) and PATE (centralized setting).
How does the paper address this problem?
CaPC decentralizes PATE-style private teacher aggregation: encrypted query + two-party confidential inference + secret-shared argmax + PG noisy aggregation, outputting DP labels for the querier to retrain.
Overall approach: the querying party Pi∗ sends the encrypted input to the other participants; each party performs confidential inference with its local teacher model, computes the one-hot argmax via secret sharing and garbled circuits, and the privacy guardian (PG) adds noise, aggregates, and returns the label; the querying party retrains its local model on the new label data. The protocol flow is shown in Figure 1.
Problem setting
- K participants {Pi}, each holding a private dataset Di and a local model Mi; they cannot directly share data or model weights, and instead collaborate by querying each other for labels.
- Threat model: an honest-but-curious adversary can corrupt any C parties; the PG is semi-trusted and does not collude; when C>1, the aggregation sensitivity is scaled by C and the privacy guarantee degrades.
Protocol steps (Section 3.2)
- For each responding party Pi: run secure two-party inference with the querying party, and Pi obtains the encrypted logits Encpk(ri); Pi generates a random vector r̂i and sends Encpk(ri − r̂i) to the querying party for decryption; both parties then run a Yao garbled circuit to obtain the secret shares si + ŝi = OneHot(argmax(ri)).
- Each Pi sends ŝi to the PG, and the PG computes ŝ = ∑i ≠ i∗ ŝi + DPNoise(ϵ) (Laplacian or Gaussian noise); the querying party sums locally s = ∑ si.
- The PG and the querying party run another garbled circuit to compute the argmax: the querying party obtains argmax(ŝ + s), and the PG learns nothing.
Guarantees and implementation
- Confidentiality: Appendix E proves, under the real-world/ideal-world paradigm, that the protocol leaks only the final noised result to the querying party and is secure against semi-honest adversaries; the random padding for secret sharing must be drawn from a field much larger than the shared values.
- Differential privacy: follows PATE's noisy argmax (sensitivity 1) and data-dependent analysis; the ε bound is tighter when there are more participants and stronger consensus; the PG does not touch the prediction content, so there is no privacy leakage.
- Implementation: step 1a uses HE-transformer/MP2ML for two-party confidential inference; steps 1b and 1c are implemented outside the private inference library to adapt to arbitrary libraries; garbled circuits use the EMP toolkit; ciphertexts are converted to prime-field integers according to the CKKS parameters for secret sharing; noise is calibrated according to the maximum logit value of each model on the training set.
Learning paradigm
- The querying party retrains its local model on the original private data plus the newly obtained query-label pairs; it supports active learning (margin, entropy, greedy k-center) to select queries, improving balanced accuracy under data skew.
What experiments did the paper conduct?
Collaboration gains, fairness, the privacy-utility trade-off, and computational cost are validated on CIFAR10/SVHN (with MNIST/Fashion-MNIST in the appendix); under the homogeneous setting, the average accuracy improves by 1.92–4.09 percentage points.
Experimental setup
- Participants and data: the training set is split uniformly without replacement into equal-sized, identically distributed private partitions; K=50 parties for CIFAR10 and K=250 parties for SVHN (SVHN merges the original training set and the extra set); Q=3 querying parties.
- Models: VGG-5 for CIFAR10 and VGG-7 for SVHN; the heterogeneous experiments use VGG-7, ResNet-8, and ResNet-10 (K/3 parties per architecture); LeNet variants for MNIST/Fashion-MNIST (Appendix F).
- Privacy settings: Gaussian noise σ=40 (SVHN/MNIST/Fashion-MNIST) and σ=7 (CIFAR10); fixed ε=2 (SVHN), ε=20 (CIFAR10), ε=2.35 (MNIST), ε=3.89 (Fashion-MNIST), with about 550 queries per party.
- Evaluation sets: 1,000 points each for CIFAR10 and MNIST/Fashion-MNIST, and 16,032 points for SVHN; the reported values are the average accuracy and per-class accuracy over retraining with 5 different random seeds.
- Data skew: reduce samples by 80% for the horse/ship/truck classes in CIFAR10 and by 90% for classes 1 and 2 in SVHN; fairness is measured by balanced accuracy.
- Baselines/controls: each party's local model accuracy before CaPC; the skew experiments compare random sampling with three active learning strategies.
Main results
According to Figures 2, 3, and 8 and Section 4.3 of the main text (the values are the average improvements reported by the authors, in percentage points):
Swipe horizontally to read the table
Dataset Setting Metric Improvement CIFAR10 Homogeneous, uniform data Average accuracy 4.09 SVHN Homogeneous, uniform data Average accuracy 1.92 SVHN Heterogeneous models Average accuracy 2.64 CIFAR10 Skew + best active learning balanced accuracy 9.94 (0.8 more than random) SVHN Skew + best active learning balanced accuracy 5.67 (0.38 more than random) MNIST Homogeneous (ε=2.35) Average accuracy 4.5 Fashion-MNIST Homogeneous (ε=3.89) Average accuracy 2.9 - The authors state that all querying parties improve in overall accuracy under both homogeneous and heterogeneous settings, and that the improvement magnitude is roughly constant across architectures; only 6.67% of cases show a class-level accuracy decrease, but overall accuracy still improves net.
- The authors state that under the skew setting, entropy and margin sampling give the largest improvements for under-represented classes, and attribute this to these classes having higher margin/entropy (Figure 9 shows under-represented classes are sampled more frequently).
Privacy-utility trade-off
- Figure 4 (SVHN, balanced setting): with K=150/200/250/300/400 parties, the accuracy gains are 0.62/1.45/2.39/3.07/3.87%, with corresponding best ε of 3.50/3.32/2.60/2.40/1.91; the authors state that with more participants, more queries can be issued at the same ε and the gain is higher, and that all K values yield net improvements.
- Figure 12 (MNIST): with K=150–400, the gains are 4.11/3.33/4.50/4.69/8.39%, with best ε of 4.50/2.50/2.35/2.00/1.63.
- σ is selected by grid search as "the maximum noise before accuracy starts to noticeably decrease" (Figure 11).
Computational cost
- Table 1 (batch size 1, CryptoNet-ReLU): encrypted forward inference on CPU takes 14.22±0.11, 29.46±2.34, and 57.26±0.39 seconds for P=8192/16384/32768 respectively; plaintext CPU takes 0.152±0.0082 seconds and GPU 3.15±0.22 seconds (the authors note that GPU is slower due to single-sample and transfer overhead).
- Steps 1b+1c take only 0.12±0.0058 seconds, and steps 2+3 take only 0.030±0.0045 seconds; the authors state that compared with plaintext CPU inference, the overhead is about 100× at the basic security level and up to 1000× at the high security level, and the secret-sharing part's overhead is negligible.
Other ablations and analyses
- Per-querying-party breakdown (Figures 5–7): on CIFAR10 and SVHN, each QP's per-class and overall accuracy improve.
- Heterogeneous setting (Figure 7): on SVHN, querying parties of all three architectures VGG-7, ResNet-8, and ResNet-10 benefit.
- MNIST/Fashion-MNIST skew experiments (Figure 10): the best active learning strategy improves BA by 10.10 (MNIST, 0.45 more than random) and 10.94 (Fashion-MNIST, 2.48 more than random) percentage points in total.
- Resource usage (Figure 13): network peaks occur during ReLU and MaxPool execution, because intermediate feature maps need to be exchanged between the two parties via garbled circuits.
What are some points that can be further explored?
The authors point out two limitations of HE-transformer: it leaks some architecture information, and the number of participants needs to be reduced below 50; they also propose two directions: virtual participants and fairness with respect to sensitive attributes.
Limitations and future directions pointed out by the authors
- HE-transformer cannot prevent leaking certain aspects of the model architecture, such as the type of nonlinear activation function and the presence of MaxPooling layers (Section 5).
- Although CaPC reduces the required number of participants, the authors believe it would be best to reduce this number below 50 for better flexibility and practicality (Section 5).
- For the case of few participants, the authors propose further splitting each physical party's data to train multiple local models, generating more "virtual participants" to tolerate more noise and obtain better privacy guarantees (Section 5).
- Future work: analyze CaPC's fairness impact in scenarios where sensitive attributes (rather than only class labels) are subject to discrimination, and explore metrics such as equalized odds and equal opportunity (Section 5).
Scope of experiments
- The datasets tested are CIFAR10 and SVHN (main text) and MNIST and Fashion-MNIST (Appendices F and G), all image classification.
- The participant scale is K=50 (CIFAR10) and K=250 (SVHN/MNIST/Fashion-MNIST), and the privacy-utility experiments cover K=150–400; the number of querying parties is Q=3.
- The model architectures are VGG-5, VGG-7, ResNet-8, ResNet-10, and LeNet variants; confidential inference is based on HE-transformer's CryptoNet-ReLU and supports only CPU.
- Fairness is measured only by balanced accuracy, on the grounds that the datasets have no sensitive attributes; the skew settings reduce samples by 80% for three classes in CIFAR10 and by 90% for two classes in SVHN.
- The security analysis assumes honest-but-curious adversaries and a non-colluding semi-trusted PG; the paper does not report experiments under malicious adversaries or PG collusion.
Summarize the main content of the paper
CaPC uses HE+MPC+private aggregation to achieve collaborative learning that is both confidential and private, and a small number of heterogeneous participants can improve the accuracy and fairness of their respective models.
An ICLR 2021 paper that proposes CaPC (Confidential and Private Collaborative) learning, which the authors state is the first collaborative learning method that provably guarantees both confidentiality and privacy.
- Problem: a small number of participants such as hospitals want to collaborate to improve their respective models, but federated learning only preserves confidentiality and requires a unified architecture and a massive number of participants, and differentially private training requires large amounts of data; previously there was no method that simultaneously prevents explicit (data-centralized) and implicit (prediction leakage) sharing.
- Method: the querier sends inputs using homomorphic encryption, each party performs two-party confidential inference with its local teacher model, computes the argmax via secret sharing and Yao garbled circuits, and a semi-honest privacy guardian adds noise (Laplacian/Gaussian) to aggregate labels with (ε, δ)-DP; the querier retrains its local model with the new labels, optionally combined with margin/entropy/greedy k-center active learning. Labels rather than gradients are shared, so architectures can be heterogeneous.
- Main results: in the CIFAR10 homogeneous setting, average accuracy improves by 4.09 percentage points, SVHN by 1.92, and SVHN heterogeneous by 2.64 (Figure 2); under data skew, the best active learning strategy improves balanced accuracy by 9.94 (CIFAR10) and 5.67 (SVHN) percentage points (Figure 3); on SVHN with K=400 parties, ε=1.91 yields a 3.87% gain (Figure 4); only 6.67% of cases show a class-level decrease, but overall there is still a net improvement.
- Cost: encrypted inference is about 100–1000 times slower than plaintext CPU (Table 1), and the overhead of the rest of the protocol is negligible.
- Authors' conclusion: CaPC still improves accuracy and fairness with a small number of heterogeneous, non-IID participants, and adds only low overhead to the underlying secure inference library; limitations are that HE-transformer leaks some architecture information and the number of participants still needs to be further reduced.