arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.09063cs.LGcs.CRcs.PF
收藏

通过即时编译和矢量化实现快速差分专用SGD

Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization

University of Waterloo(滑铁卢大学)

Pranav Subramani, Nicholas Vadivelu, Gautam Kamath

摘要:

差分私有机器学习中的一个常见痛点是执行差分私有随机梯度下降(DPSGD)时产生的显著运行时开销,其可能高达两个数量级。我们彻底证明,通过利用强大的语言原语,包括向量化,即时编译,静态图优化,可以大大减少这些开销,在许多情况下,几乎匹配的最佳非私有运行时间。这些收益是在两个框架中实现的:JAX和TensorFlow。JAX通过XLA编译器为这些原语提供了丰富的支持,将其作为语言的核心特性。我们还重新构建了TensorFlow Privacy的核心部分,集成了TensorFlow 2和XLA编译的功能,与当前版本相比,内存和运行时都有了显著的改进。与最佳替代方案相比,这些方法使我们能够实现高达50倍的加速。我们的代码可在https://github.com/TheSalon/fast-dpsgd上获得。

英文摘要:

A common pain point in differentially private machine learning is the significant runtime overhead incurred when executing Differentially Private Stochastic Gradient Descent (DPSGD), which may be as large as two orders of magnitude. We thoroughly demonstrate that by exploiting powerful language primitives, including vectorization, just-in-time compilation, and static graph optimization, one can dramatically reduce these overheads, in many cases nearly matching the best non-private running times. These gains are realized in two frameworks: JAX and TensorFlow. JAX provides rich support for these primitives as core features of the language through the XLA compiler. We also rebuild core parts of TensorFlow Privacy, integrating features from TensorFlow 2 as well as XLA compilation, granting significant memory and runtime improvements over the current release version. These approaches allow us to achieve up to 50x speedups in comparison to the best alternatives. Our code is available at https://github.com/TheSalon/fast-dpsgd.

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

↑