Orca: FSS-based Secure Training with GPUs

Neha Jawalkar, Kanav Gupta, Arkaprava Basu, Nishanth Chandran, Divya Gupta, Rahul SharmaIACR ePrint 2023

Introduction

Privacy-preserving machine learning (PPML) is a critical requirement for industries handling sensitive data, such as healthcare and finance. Secure Two-party Computation (2PC) offers a solution by allowing two parties to jointly train models without exposing their private inputs. However, traditional 2PC systems have struggled with massive performance overheads and significant accuracy loss. Orca addresses these challenges by leveraging Function Secret Sharing (FSS) and GPU acceleration to make secure training practical.

The Challenges of Secure 2PC

Historically, secure 2PC has faced two primary hurdles. First, performance overheads often make training orders of magnitude slower than standard methods; for instance, previous state-of-the-art systems like PIRANHA required a full day to train on the CIFAR-10 dataset. Second, many systems rely on "MPC-friendly" approximations (e.g., replacing MaxPool with AveragePool) that degrade model accuracy.

Furthermore, the shift toward FSS has introduced a "storage wall," where the bottleneck moves from network communication to the compute and storage required to process gigabytes of cryptographic keys for every training iteration. Traditional CPU-based systems are ill-equipped to handle this data throughput.

The Orca Architecture

Orca overcomes these barriers through a multi-layered approach that combines hardware acceleration with cryptographic innovation.

GPU-Centric Optimizations

Orca redesigns cryptographic primitives specifically for GPUs. Key optimizations include replicating AES lookup tables in the GPU's scratchpad memory to avoid execution stalls and optimizing data layouts to improve L1 cache hit rates from 20% to 49%. These systematic improvements lead to substantial speedups over naive implementations.

Performance gains from incremental GPU optimizations.

Novel FSS Protocols and Fusion

The system introduces "faithful" FSS protocols for essential machine learning operations, including ReLU, Signed Extension, and—for the first time—stochastic truncation. By being faithful to standard quantized training algorithms, Orca maintains high accuracy without the need for performance-degrading approximations.

The Select protocol, a fundamental building block for Orca's secure ML operations.

To address the storage bottleneck, Orca employs "protocol fusion." By combining multiple nodes (e.g., Stochastic Truncation and ReLU) into a single cryptographic operation, the system reduces the size of required FSS keys by up to 5×, directly easing the pressure on the storage subsystem.

System Engineering

Orca further optimizes performance by bypassing the OS page cache for one-time-use keys and overlapping SSD read times with GPU computation. It also leverages GPU "warps" (groups of 32 threads) to pack 1-bit cryptographic outputs into 32-bit integers without expensive locking mechanisms, significantly minimizing memory bloat.

Evaluation and Results

Orca sets new benchmarks for secure 2PC performance and accuracy across standard datasets like MNIST, CIFAR-10, and ImageNet-1000:

  • CIFAR-10 Training: Orca achieved 59.6% accuracy in just 45 minutes and 69% in 112 minutes. For comparison, the previous leader (PIRANHA) reached only 55% accuracy and took an entire day.
  • Efficiency: Orca is 26× faster and uses 98× less communication than PIRANHA on CIFAR-10.
  • ImageNet Inference: It is the first system to achieve sub-second latency for secure ImageNet-scale inference on VGG-16 and ResNet-50, outperforming previous work by 8–103×.
  • Compute Power: Orca's GPU-based protocols are up to 19× more efficient than CPU-based alternatives like LLAMA.

Conclusion

Orca demonstrates that secure ML training can be both fast and accurate. By shifting the focus to GPU-optimized FSS and addressing the storage bottleneck through protocol fusion, Orca paves the way for practical, large-scale privacy-preserving machine learning. While some components like softmax currently remain on the CPU, future work will look toward fully GPU-accelerated FSS-based operations and extending these optimizations to malicious threat models.

Summary updated

BibTeX
@article{jawalkar2023orca,
  author = {Neha Jawalkar and Kanav Gupta and Arkaprava Basu and Nishanth Chandran and Divya Gupta and Rahul Sharma},
  title = {{Orca: FSS-based Secure Training with GPUs}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2023},
}
Figure