Privacy-Preserving Split Learning with Vision Transformers using Patch-Wise Random and Noisy CutMix

Seungeun Oh, Sihun Baek, Jihong Park, Hyelin Nam, Praneeth Vepakomma, Ramesh Raskar, Mehdi Bennis, Seong-Lyun Kim

Abstract

In computer vision, the vision transformer (ViT) has increasingly superseded the convolutional neural network (CNN) for improved accuracy and robustness. However, ViT's large model sizes and high sample complexity make it difficult to train on resource-constrained edge devices. Split learning (SL) emerges as a viable solution, leveraging server-side resources to train ViTs while utilizing private data from distributed devices. However, SL requires additional information exchange for weight updates between the device and the server, which can be exposed to various attacks on private training data. To mitigate the risk of data breaches in classification tasks, inspired from the CutMix regularization, we propose a novel privacy-preserving SL framework that injects Gaussian noise into smashed data and mixes randomly chosen patches of smashed data across clients, coined DP-CutMixSL. Our analysis demonstrates that DP-CutMixSL is a differentially private (DP) mechanism that strengthens privacy protection against membership inference attacks during forward propagation. Through simulations, we show that DP-CutMixSL improves privacy protection against membership inference attacks, reconstruction attacks, and label inference attacks, while also improving accuracy compared to DP-SL and DP-MixSL.

Introduction: The Privacy Challenge in Vision Transformers

Vision Transformers (ViTs) have revolutionized computer vision, but their deployment on resource-constrained edge devices is hindered by their massive size. Split Learning (SL) offers a path forward by dividing the model between a local device and a powerful server. However, the intermediate "smashed data" transmitted between them is a major point of leakage.

A key insight of this research is that ViTs are inherently less private than CNNs in an SL context. Unlike CNNs, ViTs often lack pooling layers that naturally compress and distort data, and they maintain spatial information more faithfully through the network.

Structural differences between CNNs and ViTs that impact privacy in Split Learning, including pooling effects, receptive field sizes, and processing units.

As illustrated above, the lack of pooling and the large receptive fields in ViTs make their smashed data highly vulnerable to reconstruction, membership inference, and label inference attacks.

Methodology: DP-CutMixSL

To secure ViT training, we introduce DP-CutMixSL. This framework inserts a trusted "mixer" entity between clients and the server to perform patch-wise data mixing combined with additive Gaussian noise.

The DP-CutMixSL framework: Clients process initial layers, a mixer applies noisy random CutMix to smashed data, and the server completes the forward pass.

The process follows three main stages:

  1. Patch-Wise Masking: The mixer generates random masks, ensuring each client only contributes a fraction of their ViT patches.
  2. Noise Injection: Clients add Gaussian noise to these patches to satisfy formal Differential Privacy (DP) requirements.
  3. Random CutMix: The mixer aggregates these noisy, partial patch sets from multiple clients into a single composite object for the server.

By operating on the patch level, DP-CutMixSL preserves the global context ViTs require for accuracy while effectively "hiding" individual client data within a crowd of patches.

Key Results and Insights

The framework was evaluated using CIFAR-10, Fashion-MNIST, and CelebA benchmarks.

  • Accuracy Gains: On CIFAR-10, DP-CutMixSL achieved 73.77% accuracy, significantly outperforming standard Parallel SL (57.21%). The CutMix operation acts as a regularizer, allowing the model to maintain high performance even with privacy-preserving noise.
  • Robustness to Attacks:
    • Membership Inference: The framework showed a lower attack success rate compared to baselines for the same privacy budget.
  • Reconstruction: Attackers could only recover blurry, unrecognizable blobs from the smashed data, whereas recognizable features were visible in standard SL.
  • Label Inference: Using AUC as a metric, the authors demonstrated that an "honest-but-curious" entity has extreme difficulty guessing another client's labels (AUC ≈ 0.5).

Conclusion

DP-CutMixSL addresses the unique privacy challenges of Vision Transformers in Split Learning. By leveraging patch-wise mixing and differential privacy, it provides a scalable and secure method for training large-scale models on edge devices without compromising sensitive data.

Summary updated

BibTeX
@article{oh2024privacy,
  author = {Seungeun Oh and Sihun Baek and Jihong Park and Hyelin Nam and Praneeth Vepakomma and Ramesh Raskar and Mehdi Bennis and Seong-Lyun Kim},
  title = {{Privacy-Preserving Split Learning with Vision Transformers using Patch-Wise Random and Noisy CutMix}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=4bo6XAnutd},
}
Figure