基于Boosting的线性阈值函数BDD构建及其在神经网络验证中的应用
Boosting-based Construction of BDDs for Linear Threshold Functions and Its Application to Verification of Neural Networks
AI总结:
针对神经网络验证中线性阈值函数转BDD的变量排序难、转化效率低的问题,提出基于新型boosting算法的转换方法,无需搜索变量排序,间隔大时BDD规模更小,还给出神经网络布尔表达式组合方法。
摘要:
理解神经网络的特性十分重要,但由于其结构和行为复杂,这一任务难度较高。已有部分研究提出将神经网络转化为等价的布尔表达式,并运用验证技术分析目标特性。该方法颇具前景,因为针对电路及其他布尔表达式的丰富验证技术成果可直接复用,其瓶颈在于转化过程的时间复杂度。具体而言,转化分为两步:(i)将网络中的每个神经元,即一个线性阈值函数,转换为二元决策图(Binary Decision Diagram, BDD);(ii)再将这些BDD组合为布尔电路等最终形式。对于含$n$个变量的线性阈值函数,现有方法需$O(n2^{\frac{n}{2}})$的时间,构建出符合某一变量排序、规模为$O(2^{\frac{n}{2}})$的有序BDD,但要在$n!$种候选排序中选出能生成小规模BDD的变量排序,并非易事。\n我们提出一种基于机器学习领域boosting方法的线性阈值函数BDD特定形式转换方法。该方法的时间复杂度为$O(2^n \text{poly}(1/ρ))$,输出的BDD规模为$O(\frac{n^2}{ρ^4}\frac{1}{ρ})$,其中$ρ$是某个一致线性阈值函数的间隔。本方法无需搜索优质变量排序,且当线性阈值函数的间隔较大时,生成的表达式规模更小。更具体地说,本方法基于我们提出的新型boosting算法,该算法本身也具有独立研究价值。我们还提出了将这些BDD组合为表征神经网络的最终布尔表达式的方法。
英文摘要:
Understanding the characteristics of neural networks is important but difficult due to their complex structures and behaviors. Some previous work proposes to transform neural networks into equivalent Boolean expressions and apply verification techniques for characteristics of interest. This approach is promising since rich results of verification techniques for circuits and other Boolean expressions can be readily applied. The bottleneck is the time complexity of the transformation. More precisely, (i) each neuron of the network, i.e., a linear threshold function, is converted to a Binary Decision Diagram (BDD), and (ii) they are further combined into some final form, such as Boolean circuits. For a linear threshold function with $n$ variables, an existing method takes $O(n2^{\frac{n}{2}})$ time to construct an ordered BDD of size $O(2^{\frac{n}{2}})$ consistent with some variable ordering. However, it is non-trivial to choose a variable ordering producing a small BDD among $n!$ candidates. We propose a method to convert a linear threshold function to a specific form of a BDD based on the boosting approach in the machine learning literature. Our method takes $O(2^n \text{poly}(1/ρ))$ time and outputs BDD of size $O(\frac{n^2}{ρ^4}\ln{\frac{1}ρ})$, where $ρ$ is the margin of some consistent linear threshold function. Our method does not need to search for good variable orderings and produces a smaller expression when the margin of the linear threshold function is large. More precisely, our method is based on our new boosting algorithm, which is of independent interest. We also propose a method to combine them into the final Boolean expression representing the neural network.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。