文章目录

Mustafa A., Khan S., Hayat M., Goecke R., Shen J., Shao L., Adversarial Defense by Restricting the Hidden Space of Deep Neural Networks, arXiv preprint arXiv:1904.00887, 2019.

代码

类似的, 是large margin的思想, 亮点是多层?

主要内容

以下, flf^l表示第ll层的输入, ff为最后一层的输入.
Adversarial Defense by Restricting the Hidden Space of Deep Neural Networks

一般的网络只有LCE\mathcal{L}_{CE}:
LCE(x,y)=i=1mlogexp(wyiTfi+bi)j=1kexp(wjTfi+bj),(1) \tag{1} \mathcal{L}_{CE}(x,y)=\sum_{i=1}^m -\log \frac{\exp(w_{y_i}^Tf_i+b_i)}{\sum_{j=1}^k\exp(w_j^Tf_i+b_j)},
从几何上将是不鲁棒的, 所以本文加了一个正则化项:
Adversarial Defense by Restricting the Hidden Space of Deep Neural Networks
显然, 这个是希望fif_i和类别中心wyiw_{y_i}靠的近, 同时最大化类间距离.

进一步可以拓展到多层情况:
Adversarial Defense by Restricting the Hidden Space of Deep Neural Networks

相关文章: