Large convolutional neural networks (CNN) can be difficult to train in the differentially private (DP) regime, since the optimization algorithms require a computationally expensive operation, known as the per-sample gradient clipping. We propose an efficient and scalable implementation of this clipping on convolutional layers, termed as the mixed ghost clipping, that significantly eases the private training in terms of both time and space complexities, without affecting the accuracy. The improvement in efficiency is rigorously studied through the first complexity analysis for the mixed ghost clipping and existing DP training algorithms. Extensive experiments on vision classification tasks, with large ResNet, VGG, and Vision Transformers, demonstrate that DP training with mixed ghost clipping adds $1\sim 10\%$ memory overhead and $<2\times$ slowdown to the standard non-private training. Specifically, when training VGG19 on CIFAR10, the mixed ghost clipping is $3\times$ faster than state-of-the-art Opacus library with $18\times$ larger maximum batch size. To emphasize the significance of efficient DP training on convolutional layers, we achieve 96.7\% accuracy on CIFAR10 and 83.0\% on CIFAR100 at $\epsilon=1$ using BEiT, while the previous best results are 94.8\% and 67.4\%, respectively. We open-source a privacy engine (\url{https://github.com/woodyx218/private_vision}) that implements DP training of CNN with a few lines of code.
翻译:大型连锁神经网络(CNN)可能很难在不同的私人(DP)制度下进行培训,因为优化算法需要计算成本昂贵的操作,称为每模版梯度剪切。我们建议高效和可扩展地执行这一关于连锁层剪切的剪切,称为混合幽灵剪切,这大大便利了私人在时间和空间两方面的复杂程度两方面的培训,同时不影响准确性。通过对混合私人幽灵剪切除和现有DP培训算法的第一次复杂分析,对效率的提高进行了严格研究。关于视觉分类任务的广泛实验,包括大型ResNet、VGG和愿景变换器,表明混合幽灵剪切的DP培训增加了1美元=10美元记忆管理费和1美元=2美元减速到标准非私人培训。具体地说,在对VGGG19进行CIFAR10培训时,混合幽灵剪切速度比21级开放式开放图书馆快3美元,最高分批量为18美元。为了强调在Culeval-DADRA4层进行高效的DP培训的重要性,我们分别利用了94-FAR_10的成绩。