Skip to main content
QUICK REVIEW

[论文解读] Adversarial Risk Bounds for Neural Networks through Sparsity based Compression

Emilio Rafael Balda, Arash Behboodi|arXiv (Cornell University)|Jun 3, 2019
Adversarial Robustness in Machine LearningComputer Science参考文献 31被引用 3
一句话总结

该论文提出了一种基于边际的泛化界,用于神经网络在 $\varepsilon$-有界 $\pi_{\infty}$ 对抗攻击下的表现,采用基于稀疏性的压缩框架。通过利用权重矩阵中的有效稀疏性和联合稀疏性,作者推导出与输入维度和类别数量无关的泛化界,表明稀疏网络在提升鲁棒性的同时也实现了更好的泛化性能。

ABSTRACT

Neural networks have been shown to be vulnerable against minor adversarial perturbations of their inputs, especially for high dimensional data under $\ell_\infty$ attacks. To combat this problem, techniques like adversarial training have been employed to obtain models which are robust on the training set. However, the robustness of such models against adversarial perturbations may not generalize to unseen data. To study how robustness generalizes, recent works assume that the inputs have bounded $\ell_2$-norm in order to bound the adversarial risk for $\ell_\infty$ attacks with no explicit dimension dependence. In this work we focus on $\ell_\infty$ attacks on $\ell_\infty$ bounded inputs and prove margin-based bounds. Specifically, we use a compression based approach that relies on efficiently compressing the set of tunable parameters without distorting the adversarial risk. To achieve this, we apply the concept of effective sparsity and effective joint sparsity on the weight matrices of neural networks. This leads to bounds with no explicit dependence on the input dimension, neither on the number of classes. Our results show that neural networks with approximately sparse weight matrices not only enjoy enhanced robustness, but also better generalization.

研究动机与目标

  • 为解决神经网络在对抗鲁棒性方面缺乏对未见数据的泛化保证的问题,特别是针对未见数据的鲁棒性。
  • 弥合在 $\pi_{\infty}$ 攻击下,训练数据上的鲁棒性与测试数据上的鲁棒性之间的差距。
  • 开发一种基于压缩的方法,在保留对抗风险的同时实现泛化界。
  • 消除对抗风险界中对输入维度和类别数量的显式依赖。
  • 证明权重矩阵中的有效稀疏性可同时提升鲁棒性和泛化性能。

提出的方法

  • 提出一种压缩框架,通过有效稀疏性和联合稀疏性将全精度权重矩阵映射为稀疏近似。
  • 定义了一个 $(\gamma, \varepsilon, \mathcal{S})$-可压缩函数类 $\mathcal{G}$,其中 $\gamma$ 控制对抗风险,$\varepsilon$ 控制压缩误差。
  • 采用基于有效参数数量 $\overline{s}_1^i \overline{s}_2^i$ 的逐层误差分配规则,确保 $\varepsilon^i > \varepsilon^{i-1}$ 且 $\varepsilon^d = \gamma/2$。
  • 应用压缩算子 $\mathrm{MatrixCompress}$,根据 $\varepsilon^i - \varepsilon^{i-1}$ 推导出的相对误差阈值对权重进行量化。
  • 通过 $\log|\mathcal{G}| \leq \widetilde{\mathcal{O}}\left(d \left(\frac{1+\gamma/2-\varepsilon}{\gamma/2-2\varepsilon}\right)^2 \left(\sum_{j=1}^d \sqrt{\overline{s}_1^j \overline{s}_2^j}\right)^2\right)$ 对压缩后函数类的对数大小进行界定。
  • 应用定理 1 推导出泛化界:$L_0^\varepsilon(f_{\widehat{W}}) \leq \widehat{L}_\gamma^\varepsilon(f_W) + \widetilde{\mathcal{O}}\left(\sqrt{\frac{d}{m} \left(\frac{1+\gamma/2-\varepsilon}{\gamma/2-2\varepsilon}\right)^2 \left(\sum_{j=1}^d \sqrt{\overline{s}_1^j \overline{s}_2^j}\right)^2}\right)$。

实验结果

研究问题

  • RQ1在 $\pi_{\infty}$ 攻击下,对抗鲁棒性能否泛化到未见数据?
  • RQ2能否在不显式依赖输入维度或类别数量的前提下,推导出对抗风险的泛化界?
  • RQ3权重矩阵中的有效稀疏性如何影响对抗鲁棒性和泛化性能?
  • RQ4基于压缩的方法能否在保留对抗风险的同时实现泛化保证?
  • RQ5在各层之间如何分配误差,才能最小化压缩后函数类的样本复杂度?

主要发现

  • 所提方法实现了与输入维度和类别数量无关的对抗风险泛化界。
  • 泛化界以 $\widetilde{\mathcal{O}}\left(\sqrt{\frac{d}{m} \left(\sum_{j=1}^d \sqrt{\overline{s}_1^j \overline{s}_2^j}\right)^2}\right)$ 的形式缩放,其中 $d$ 为层数,$m$ 为训练样本数量。
  • 该界依赖于各层有效稀疏性乘积的平方根之和,表明稀疏网络可获得更紧的界。
  • 通过基于层间稀疏性的误差分配策略,避免了 $\mathcal{O}(d^2)$ 的样本复杂度,优于朴素的均匀分配策略。
  • 先前工作的实证证据得到支持:鲁棒模型表现出更稀疏的权重,本文形式化建立了稀疏性与泛化之间的联系。
  • 该框架表明,具有近似稀疏权重矩阵的神经网络可同时实现更强的鲁棒性和更优的泛化性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。