arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.15414cs.LGcs.CR
收藏

用于改进基于Transformer模型中DPSGD的权重打乱方法

Weights Shuffling for Improving DPSGD in Transformer-based Models

Shanghai Jiao Tong University(上海交通大学)

Jungang Yang, Zhe Ji, Liyao Xiang

AI总结:

本工作提出一种DPSGD中的权重打乱机制,利用置换不变性引入额外随机性以改善隐私保证,并通过推导对数正态分布求和的近似条件,在同等隐私下提升大型模型效用与准确性。

摘要:

差分隐私(Differential Privacy, DP)机制,特别是在高维环境中,通常面临在不损害数据效用的情况下维持隐私的挑战。本工作在差分隐私随机梯度下降(Differentially-Private Stochastic Gradient Descent, DPSGD)中引入了一种创新的打乱机制,以在未打乱情形相同隐私保证下增强大型模型的效用。具体而言,我们揭示了随机打乱为梯度下降的轨迹带来了额外的随机性,同时基于置换不变性属性不影响模型准确性——在置换下,模型在前向和反向传播中可以被等价地计算。我们从理论上证明置换确实改善了DPSGD的隐私保证,但在打乱模型上追踪精确的隐私损失尤为具有挑战性。因此,我们利用对数正态分布求和的近似来推导打乱DPSGD满足DP保证的条件。审计结果表明,我们的条件提供了与审计隐私水平非常接近的DP保证,证明了我们的方法在实践中是一种有效的估计。实验结果验证了我们的理论推导,并表明我们的机制在多种模型和任务上提升了DPSGD相对于最先进基线的准确性。

英文摘要:

Differential Privacy (DP) mechanisms, especially in high-dimensional settings, often face the challenge of maintaining privacy without compromising the data utility. This work introduces an innovative shuffling mechanism in Differentially-Private Stochastic Gradient Descent (DPSGD) to enhance the utility of large models at the same privacy guarantee of the unshuffled case. Specifically, we reveal that random shuffling brings additional randomness to the trajectory of gradient descent while not impacting the model accuracy by the permutation invariance property -- the model can be equivalently computed in both forward and backward propagations under permutation. We show that permutation indeed improves the privacy guarantee of DPSGD in theory, but tracking the exact privacy loss on shuffled model is particularly challenging. Hence we exploit the approximation on sum of lognormal distributions to derive the condition for the shuffled DPSGD to meet the DP guarantee. Auditing results show that our condition offers a DP guarantee quite close to the audited privacy level, demonstrating our approach an effective estimation in practice. Experimental results have verified our theoretical derivation and illustrate that our mechanism improves the accuracy of DPSGD over the state-of-the-art baselines on a variety of models and tasks.

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

↑