GPU-based Private Information Retrieval for On-Device Machine Learning Inference

Maximilian Lam, Jeff Johnson, Wenjie Xiong, Kiwan Maeng, Udit Gupta +9 more
1/26/2023
cs.CRcs.DCcs.LG

No official code found. Best implementation: facebookresearch/GPU-DPF (59 stars, Apache-2.0, last commit 2023-01-27).

Abstract

On-device machine learning (ML) inference can enable the use of private user data on user devices without revealing them to remote servers. However, a pure on-device solution to private ML inference is impractical for many applications that rely on embedding tables that are too large to be stored on-device. In particular, recommendation models typically use multiple embedding tables each on the order of 1-10 GBs of data, making them impractical to store on-device. To overcome this barrier, we propose the use of private information retrieval (PIR) to efficiently and privately retrieve embeddings from servers without sharing any private information. As off-the-shelf PIR algorithms are usually too computationally intensive to directly use for latency-sensitive inference tasks, we 1) propose novel GPU-based acceleration of PIR, and 2) co-design PIR with the downstream ML application to obtain further speedup. Our GPU acceleration strategy improves system throughput by more than $20 \times$ over an optimized CPU PIR implementation, and our PIR-ML co-design provides an over $5 \times$ additional throughput improvement at fixed model quality. Together, for various on-device ML applications such as recommendation and language modeling, our system on a single V100 GPU can serve up to $100,000$ queries per second -- a $>100 \times$ throughput improvement over a CPU-based baseline -- while maintaining model accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

GPU-based Distributed Point Functions (DPF) and 2-server private information retrieval (PIR).

596C, C++Dec 20, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{lam2023gpubased,
  title  = {GPU-based Private Information Retrieval for On-Device Machine Learning Inference},
  author = {Maximilian Lam and Jeff Johnson and Wenjie Xiong and Kiwan Maeng and Udit Gupta and Yang Li and Liangzhen Lai and Ilias Leontiadis and Minsoo Rhu and Hsien-Hsin S. Lee and Vijay Janapa Reddi and Gu-Yeon Wei and David Brooks and G. Edward Suh},
  year   = {2023},
  eprint = {2301.10904},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.10904v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.10904.svg)](https://codeofpaper.com/paper/2301.10904)

Discussion