Protecting Split Learning by Potential Energy Loss

Fei Zheng, Chaochao Chen

Abstract

Split learning (SL) is an efficient framework for distributed machine learning, yet it is vulnerable to "model completion attacks" where intermediate embeddings leak private label information. We propose Potential Energy Loss (PELoss), a defense mechanism inspired by electrostatic principles. By treating embeddings of the same class as repulsive charges, PELoss pushes them toward decision boundaries, making them resistant to clustering and fine-tuning attacks. Our evaluation across four benchmarks (MNIST, Fashion-MNIST, CIFAR-10, and DBpedia) demonstrates that PELoss significantly reduces attacker accuracy while maintaining high task performance, often reaching a "perfect protection" state.

Introduction: The Privacy Gap in Split Learning

Split learning partitions a neural network between a feature owner (Alice) and a label owner (Bob). Alice processes raw data $X$ through a "bottom" model $M_b$ and sends the resulting embeddings $Z$ to Bob, who completes the task with a "top" model $M_t$. While this avoids sharing raw data, the embeddings $Z$ naturally cluster by class to facilitate classification. This clustering allows an attacker to perform a Model Completion Attack, using a small set of labeled samples to fine-tune a surrogate model or unsupervised clustering to infer private labels.

Overview of Split Learning and the Model Completion Attack threat model.

Methodology: Potential Energy Loss (PELoss)

To counter these attacks, we introduce PELoss, a regularizer that disrupts the natural clustering of embeddings.

The Electrostatic Analogy

PELoss is inspired by the behavior of like charges in a conductor, which repel each other to reach a state of minimum potential energy at the boundaries. We treat embeddings of the same class as "like charges" and apply a repulsive force based on Coulomb’s Law:

  1. Repulsion: For every pair of same-class embeddings in a training batch, we calculate a repulsive term.
  2. Latent Space Geometry: To prevent numerical instability, we apply Layer Normalization, constraining embeddings to a high-dimensional hypersphere. This shifts the distance metric from Euclidean to angular distance.
  3. Objective Function: The total loss is defined as $L' = L_{task} + \alpha L_{pe}$, where $\alpha$ controls the strength of the repulsion.

By forcing same-class samples to repel, the model learns a representation where class members are spread out toward the decision boundaries, maximizing the difficulty for an attacker to define a clear surrogate boundary.

Experimental Evaluation

We evaluated PELoss against standard Split Learning (Vanilla), Label Differential Privacy (LabelDP), and Distance Correlation (DcorLoss) across four datasets: MNIST, Fashion-MNIST, CIFAR-10, and DBpedia.

Key Results

Our experiments show that PELoss provides a superior trade-off between task accuracy and privacy protection.

Attack accuracy vs. test accuracy across various datasets and leakage scenarios. PELoss consistently achieves lower attack accuracy, often falling into the 'perfect protection' zone (grey area).
  • Resistance to Fine-tuning: Even when an attacker has access to 32 labeled samples per class (e.g., on CIFAR-10), PELoss maintains significantly lower attack accuracy compared to Vanilla SL.
  • Defeating Clustering: PELoss effectively randomizes the latent space for unsupervised attacks. Visualization of angular distances confirms that PELoss spreads same-class distances toward $\pi/2$, effectively masking the underlying class structure.
  • Perfect Protection: In many scenarios, PELoss pushes the attacker's accuracy into the "Perfect Protection" zone, where the leaked embeddings provide no more information than a model trained from scratch on the small leaked subset.

Discussion and Limitations

While PELoss is highly effective against inference-phase leakage, it does not explicitly address privacy risks from backward gradients during the training phase. Additionally, the hyperparameter $\alpha$ requires tuning to balance privacy and task accuracy. Future work will focus on establishing formal theoretical leakage bounds to provide mathematical guarantees alongside these strong empirical results.

Summary updated

BibTeX
@inproceedings{zheng2024protecting,
  author = {Fei Zheng and Chaochao Chen},
  title = {{Protecting Split Learning by Potential Energy Loss}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=tdpD6dDAIc},
}
Figure