Paper 2025/424 Original: eprint.iacr.org/2025/424 ↗

Matchmaker: Fast Secure Inference across Deployment Scenarios

Neha Jawalkar
Nishanth Chandran
Divya Gupta
Rahul Sharma
Arkaprava Basu
Abstract

Secure Two-Party Computation (2PC) enables secure inference with cryptographic guarantees that protect the privacy of the model owner and client. However, it adds significant performance overhead. In this work, we make 2PC-based secure inference efficient while considering important deployment scenarios. We observe that the hitherto unconsidered latency of fetching keys from storage significantly impacts performance, as does network speed. We design a Linear Secret Sharing (LSS)-based system $LSS^M$ and a Function Secret Sharing (FSS)-based system $FSS^M$ for secure inference, optimized for small key size and communication, respectively. Notably, our highly-optimized and hardware-aware CPU-based $LSS^M$ outperforms prior GPU-based LSS systems by up to $50\times$. We then show that the best choice between $LSS^M$ and $FSS^M$ depends on the deployment scenario. In fact, under certain deployments, a combination of $LSS^M$ and $FSS^M$ can leverage heterogeneous processing across CPU and GPU. Such protocol-system co-design lets us outperform state-of-the-art secure inference systems by up to $21\times$ (geomean $3.25\times$).

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint.
History
2025-03-05: last updated
2025-03-05: published
Short URL
https://ia.cr/2025/424
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2025/424,
      author = {Neha Jawalkar and Nishanth Chandran and Divya Gupta and Rahul Sharma and Arkaprava Basu},
      title = {Matchmaker: Fast Secure Inference across Deployment Scenarios},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/424},
      year = {2025},
      url = {https://eprint.iacr.org/2025/424}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.