arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.03990stat.MLcs.CRcs.LG
收藏

子采样并非魔法:为什么大批量在差分隐私随机优化中有效

Subsampling is not Magic: Why Large Batch Sizes Work for Differentially Private Stochastic Optimisation

University of Helsinki(赫尔辛基大学)

Ossi Räisä, Joonas Jälkö, Antti Honkela

AI总结:

本研究从理论上解释DP-SGD中大批量大小的有效性:将总梯度方差分解为子采样和噪声两部分,证明在无限迭代极限下噪声方差不变而子采样方差随批量增大而减小,从而降低总方差。

摘要:

我们研究批量大小如何影响差分隐私随机梯度下降(DP-SGD)中的总梯度方差,旨在为大批量大小的有效性提供理论解释。由于DP-SGD是现代差分隐私深度学习的基础,其性质已被广泛研究,近期工作通过实验发现大批量大小是有益的。然而,关于这种益处的理论解释目前至多是启发式的。我们首先观察到DP-SGD中的总梯度方差可以分解为子采样引起的方差和噪声引起的方差。然后我们证明,在迭代次数趋于无穷的极限情况下,有效噪声引起的方差对批量大小是不变的。剩余的子采样引起的方差随着批量大小的增大而减小,因此大批量降低了有效的总梯度方差。我们通过数值实验确认,在批量大小不小的情况下,渐近状态在实际设置中是相关的,并发现超出渐近状态时,总梯度方差随大批量大小的增加而减少得更多。我们还发现一个充分条件,该条件意味着大批量大小同样能降低DP-SGD单次迭代的有效DP噪声方差。

英文摘要:

We study how the batch size affects the total gradient variance in differentially private stochastic gradient descent (DP-SGD), seeking a theoretical explanation for the usefulness of large batch sizes. As DP-SGD is the basis of modern DP deep learning, its properties have been widely studied, and recent works have empirically found large batch sizes to be beneficial. However, theoretical explanations of this benefit are currently heuristic at best. We first observe that the total gradient variance in DP-SGD can be decomposed into subsampling-induced and noise-induced variances. We then prove that in the limit of an infinite number of iterations, the effective noise-induced variance is invariant to the batch size. The remaining subsampling-induced variance decreases with larger batch sizes, so large batches reduce the effective total gradient variance. We confirm numerically that the asymptotic regime is relevant in practical settings when the batch size is not small, and find that outside the asymptotic regime, the total gradient variance decreases even more with large batch sizes. We also find a sufficient condition that implies that large batch sizes similarly reduce effective DP noise variance for one iteration of DP-SGD.

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

↑