arXiv:2508.15454cs.LGcs.LO2025-08

通过批量验证提升神经网络抗攻击能力分析效率

Mini-Batch Robustness Verification of Deep Neural Networks

  • 将相似的输入区域打包成小批次,统一验证以减少计算量
  • 在MNIST和CIFAR-10上平均提速2.3倍,最高达4.1倍
  • 适合需要高效评估大量样本鲁棒性的安全关键系统

神经网络图像分类器广泛应用于诸多安全敏感场景,但易受对抗攻击影响。现有局部鲁棒性验证方法针对ε球内的输入进行分析,但普遍存在分析时间长或精度损失严重的问题,难以应对大规模输入。本文提出一种新思路:组内局部鲁棒性验证。核心思想是利用某些ε球间网络计算的相似性,降低整体分析时间。我们提出BaVerLy,一个声名完备的验证器,通过动态构建并联合验证ε球的小批次来加速分析。BaVerLy自适应识别有效的小批量大小,将具有相似网络行为的ε球组成批次,并统一验证。若批次通过验证,则其中所有ε球均被证明为鲁棒;否则,其中至少一个ε球可能不鲁棒,用于引导细化。同时,利用已有的分析结果加速该ε球及其他同批次ε球的分析。我们在全连接与卷积网络上对MNIST和CIFAR-10进行了评估。结果表明,相比逐个验证,BaVerLy平均提速2.3倍,最高达4.1倍,总分析时间从24小时缩短至6小时。

原文摘要 · Abstract (English)

Neural network image classifiers are ubiquitous in many safety-critical applications. However, they are susceptible to adversarial attacks. To understand their robustness to attacks, many local robustness verifiers have been proposed to analyze $ε$-balls of inputs. Yet, existing verifiers introduce a long analysis time or lose too much precision, making them less effective for a large set of inputs. In this work, we propose a new approach to local robustness: group local robustness verification. The key idea is to leverage the similarity of the network computations of certain $ε$-balls to reduce the overall analysis time. We propose BaVerLy, a sound and complete verifier that boosts the local robustness verification of a set of $ε$-balls by dynamically constructing and verifying mini-batches. BaVerLy adaptively identifies successful mini-batch sizes, accordingly constructs mini-batches of $ε$-balls that have similar network computations, and verifies them jointly. If a mini-batch is verified, all its $ε$-balls are proven robust. Otherwise, one $ε$-ball is suspected as not being robust, guiding the refinement. BaVerLy leverages the analysis results to expedite the analysis of that $ε$-ball as well as the analysis of the mini-batch with the other $ε$-balls. We evaluate BaVerLy on fully connected and convolutional networks for MNIST and CIFAR-10. Results show that BaVerLy scales the common one by one verification by 2.3x on average and up to 4.1x, in which case it reduces the total analysis time from 24 hours to 6 hours.

鲁棒性验证对抗攻击批量处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。