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

梯度成形技术在抑制数据投毒攻击中的应用

On the Effectiveness of Mitigating Data Poisoning Attacks with Gradient Shaping

University of Maryland, College Park(马里兰大学帕克分校);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);University of Toronto(多伦多大学);Vector Institute(向量研究所)

Sanghyun Hong, Varun Chandrasekaran, Yiğitcan Kaya, Tudor Dumitraş, Nicolas Papernot

摘要:

机器学习算法容易受到数据投毒攻击。先前的分类法侧重于特定的场景,例如,不加区别的或有针对性的攻击,使防御相应的已知攻击的子集。然而,这不可避免地在对手和捍卫者之间引发了军备竞赛。在这项工作中,我们研究了依赖于所有中毒攻击所共有的工件的攻击不可知防御的可行性。具体来说,我们关注所有攻击之间的一个共同元素:它们修改计算的梯度以训练模型。我们确定了两个主要的文物的梯度计算中存在的毒药:(1)他们的$\ell_2$规范有显着更高的幅度比干净的梯度,(2)他们的方向不同于干净的梯度。基于这些观察,我们提出了一个通用的中毒防御的先决条件:它必须绑定梯度幅度和最小化方向的差异。我们称之为梯度成形。作为评估梯度成形可行性的示例工具,我们使用差分私有随机梯度下降(DP-SGD),它在训练期间剪辑和扰动个体梯度以获得隐私保证。我们发现,DP-SGD,即使在配置,不产生有意义的隐私保证,增加了模型的鲁棒性不分青红皂白的攻击。它还减轻了最坏情况下的有针对性的攻击,并增加了对手在多毒药场景中的成本。我们发现DP-SGD唯一无效的攻击是强大的,但不切实际的,不分青红皂白的攻击。我们的研究结果表明,虽然我们目前缺乏一个通用的中毒防御,梯度成形是未来研究的一个有前途的方向。

英文摘要:

Machine learning algorithms are vulnerable to data poisoning attacks. Prior taxonomies that focus on specific scenarios, e.g., indiscriminate or targeted, have enabled defenses for the corresponding subset of known attacks. Yet, this introduces an inevitable arms race between adversaries and defenders. In this work, we study the feasibility of an attack-agnostic defense relying on artifacts that are common to all poisoning attacks. Specifically, we focus on a common element between all attacks: they modify gradients computed to train the model. We identify two main artifacts of gradients computed in the presence of poison: (1) their $\ell_2$ norms have significantly higher magnitudes than those of clean gradients, and (2) their orientation differs from clean gradients. Based on these observations, we propose the prerequisite for a generic poisoning defense: it must bound gradient magnitudes and minimize differences in orientation. We call this gradient shaping. As an exemplar tool to evaluate the feasibility of gradient shaping, we use differentially private stochastic gradient descent (DP-SGD), which clips and perturbs individual gradients during training to obtain privacy guarantees. We find that DP-SGD, even in configurations that do not result in meaningful privacy guarantees, increases the model's robustness to indiscriminate attacks. It also mitigates worst-case targeted attacks and increases the adversary's cost in multi-poison scenarios. The only attack we find DP-SGD to be ineffective against is a strong, yet unrealistic, indiscriminate attack. Our results suggest that, while we currently lack a generic poisoning defense, gradient shaping is a promising direction for future research.

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

↑