arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.04662cs.LGcs.PL

学习最小化神经规范

Learning Minimal Neural Specifications

McGill University(麦吉尔大学);University of Toronto(多伦多大学)

Chuqin Geng, Zhaoyue Wang, Haolin Ye, Xujie Si

AI总结:

本文针对神经激活模式规范中神经元冗余的问题,提出保守、统计和乐观三种最小 NAP 规范学习方法,以更少神经元显著扩大可验证边界并揭示鲁棒性相关神经元。

摘要:

形式化验证的质量仅取决于系统规范的质量,神经网络验证同样如此。现有规范遵循“数据即规范”的范式,即将参考数据点周围的局部邻域视为正确或鲁棒的。尽管这些规范为评估模型鲁棒性提供了公平的试验平台,但它们对于验证任何未见过的测试数据点而言过于受限,而这是一项具有重大现实意义的挑战性任务。近期工作通过“神经表示即规范”这一新范式展现出巨大前景,该范式使用神经激活模式(NAPs)来实现此目的。然而,它计算的是最精细的 NAP,其中包含许多冗余神经元。本文研究如下问题:给定一个神经网络,找到一个足以形式化验证其鲁棒性属性的最小(通用)NAP 规范。寻找最小 NAP 规范不仅能够扩展可验证边界,还能揭示哪一组神经元对模型鲁棒性作出贡献。为解决该问题,我们提出三种方法:保守方法、统计方法和乐观方法。每种方法在最小性和计算速度方面都具有不同优势与权衡,因此适用于具有不同优先级的场景。值得注意的是,乐观方法能够在不依赖验证工具的情况下,探究神经元与大型视觉神经网络鲁棒性之间的潜在因果联系,而现有方法难以将这一任务扩展到此类规模。我们的实验表明,与先前工作得到的规范相比,最小 NAP 规范使用的神经元少得多,同时将可验证边界扩展了数个数量级。

英文摘要:

Formal verification is only as good as the specification of a system, which is also true for neural network verification. Existing specifications follow the paradigm of data as specification, where the local neighborhood around a reference data point is considered correct or robust. While these specifications provide a fair testbed for assessing model robustness, they are too restrictive for verifying any unseen test data points, a challenging task with significant real-world implications. Recent work shows great promise through a new paradigm, neural representation as specification, which uses neural activation patterns (NAPs) for this purpose. However, it computes the most refined NAPs, which include many redundant neurons. In this paper, we study the following problem: Given a neural network, find a minimal (general) NAP specification that is sufficient for formal verification of its robustness properties. Finding the minimal NAP specification not only expands verifiable bounds but also provides insights into which set of neurons contributes to the model's robustness. To address this problem, we propose three approaches: conservative, statistical, and optimistic. Each of these methods offers distinct strengths and trade-offs in terms of minimality and computational speed, making them suitable for scenarios with different priorities. Notably, the optimistic approach can probe potential causal links between neurons and the robustness of large vision neural networks without relying on verification tools, a task existing methods struggle to scale. Our experiments show that minimal NAP specifications use far fewer neurons than those from previous work while expanding verifiable boundaries by several orders of magnitude.

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

↑