重新设计神经网络:即使面对强对抗攻击也不再自信地出错
摘要
该论文借鉴生物视觉皮层中简单细胞与复杂细胞交替的层级结构,用能够更好学习选择性表示和容忍性表示的新组件构建了浅层神经网络(少于十对层)。这类网络在图像分类上准确且稳健,对未知类别样本或纯噪声图像不会给出高置信度预测,对抗样本也只引发低置信度预测,从而可以被识别。不过模型仍不能正确分类对抗样本,但在保持泛化竞争力的同时,其行为比标准深度神经网络更接近人类。
查看原始标题和摘要
Redesigning Neural Networks to Not be Confidently Wrong even to Strong Adversarial Attacks
Early deep learning models attempted to simulate visual perception using a neural hierarchy that alternated between two types of layer: one modelled on cortical simple cells (that was designed to increase selectivity), and one modelled on cortical complex cells (that aimed to increase tolerance). We show that such a neural network (NN) architecture, when implemented with novel components that are better able to learn selective and tolerant representations, is capable of accurate and robust image classification and improved alignment between the behaviour of the model and the perceptual abilities of humans. Firstly, the proposed models are shallow, fewer than ten layer-pairs, which is more consistent with the rapid feedforward object categorisation performed by the biological visual system. Secondly, they are far less prone to producing classification predictions with high confidence for samples from unknown classes or for image consisting of pure noise, and hence, like humans are not easily fooled into perceiving objects that are not present in the image. Thirdly, for the proposed NNs adversarial samples cause predictions with low confidence, enabling them to be accurately identifi
核心要点
- 架构源自视觉皮层:选择性(简单细胞)与容忍性(复杂细胞)层交替出现,网络较浅,少于 10 对层,更接近生物视觉的快速前馈物体识别。
- 对未知类别样本和纯噪声图像,模型很少给出高置信度预测,因此不像标准 DNN 那样容易在图像中没有目标时“看到”目标。
- 面对对抗样本时,模型输出低置信度而非高置信度错误答案,使对抗样本可被识别;但它仍无法正确分类对抗样本。
- 在保持对训练类别新样本泛化性能的同时提升了对抗样本与未知样本的稳健性,在多项评测指标和基准任务上可与当前最优 DNN 竞争。
为什么值得后端工程师关注
对后端工程师而言,这提示推理服务的可靠性不仅取决于准确率,还取决于置信度是否校准:低置信度可作为拒绝预测、触发人工复核或告警的信号,用于识别分布外输入和对抗样本。若框架支持自定义层或前端预处理,这类浅层结构在部署与推理成本上也可能更友好;但论文尚未解决对抗样本的正确分类问题,生产环境仍需配合输入校验与防御措施。