arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.10904cs.CRcs.DCcs.LG
收藏

用于设备端机器学习推理的基于 GPU 的私有信息检索

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

Meta AI;Harvard University(哈佛大学);Virginia Tech(弗吉尼亚理工大学);Penn State(宾夕法尼亚州立大学);Intel(英特尔);Cornell University(康奈尔大学)
Maximilian Lam, Jeff Johnson, Wenjie Xiong, Kiwan Maeng, Udit Gupta, Yang Li, Liangzhen Lai, Ilias Leontiadis, Minsoo Rhu, Hsien-Hsin S. Lee, Vijay Janapa Reddi… 展开作者

Maximilian Lam, Jeff Johnson, Wenjie Xiong, Kiwan Maeng, Udit Gupta, Yang Li, Liangzhen Lai, Ilias Leontiadis, Minsoo Rhu, Hsien-Hsin S. Lee, Vijay Janapa Reddi, Gu-Yeon Wei, David Brooks, G. Edward Suh

AI总结:

针对设备端 ML 无法容纳大型嵌入表的问题,本文提出 GPU 加速的 PIR 及 PIR-ML 协同设计,在保持模型精度的同时实现较 CPU 基线超百倍的检索吞吐。

摘要:

设备端机器学习(ML)推理能够在用户设备上使用私有用户数据,而不会将这些数据泄露给远程服务器。然而,对于许多依赖嵌入表、且嵌入表过大而无法存储在设备上的应用而言,纯设备端的私有 ML 推理解决方案并不现实。特别是,推荐模型通常使用多个嵌入表,每个嵌入表的数据量约为 1–10 GB,这使得它们不适合存储在设备上。为克服这一障碍,我们提出使用私有信息检索(PIR),在不共享任何私有信息的情况下,从服务器高效且私密地检索嵌入。由于现成的 PIR 算法通常计算开销过大,无法直接用于对延迟敏感的推理任务,我们:1)提出了新颖的基于 GPU 的 PIR 加速方法;2)将 PIR 与下游 ML 应用协同设计,以获得进一步加速。我们的 GPU 加速策略相比经过优化的 CPU PIR 实现,将系统吞吐量提高了 20 倍以上;而我们的 PIR-ML 协同设计在固定模型质量下额外带来超过 5 倍的吞吐量提升。综合来看,对于推荐和语言建模等多种设备端 ML 应用,我们的系统在单张 V100 GPU 上每秒最多可处理 100,000 个查询——相比基于 CPU 的基线实现吞吐量提升超过 100 倍——同时保持模型精度。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑