CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computation
Jinyu Liu, Gang Tan, and Kiwan Maeng

TL;DR
CrypTorch is a PyTorch extension that auto-tunes approximations for MPC-based machine learning, significantly improving performance while maintaining accuracy, thus enabling more efficient privacy-preserving ML computations.
Contribution
It introduces a compiler that disentangles and optimizes approximations in MPC ML, providing automatic selection for better performance and accuracy, integrated into PyTorch 2.
Findings
Auto-tuning yields 1.20--1.7× speedup without accuracy loss.
Allowing some accuracy degradation increases speedup to 1.31--1.8×.
Overall framework achieves 3.22--8.6× end-to-end speedup over CrypTen.
Abstract
Machine learning (ML) involves private data and proprietary model parameters. MPC-based ML allows multiple parties to collaboratively run an ML workload without sharing their private data or model parameters using multi-party computing (MPC). Because MPC cannot natively run ML operations such as Softmax or GELU, existing frameworks use different approximations. Our study shows that, on a well-optimized framework, these approximations often become the dominating bottleneck. Popular approximations are often insufficiently accurate or unnecessarily slow, and these issues are hard to identify and fix in existing frameworks. To tackle this issue, we propose a compiler for MPC-based ML, CrypTorch. CrypTorch disentangles these approximations with the rest of the MPC runtime, allows easily adding new approximations through its programming interface, and automatically selects approximations to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Cloud Computing and Resource Management · Security and Verification in Computing
