arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.10362cs.AIcs.DBcs.LO
收藏

神经网络查询语言

Query languages for neural networks

RWTH Aachen University(亚琛工业大学);UHasselt(哈塞尔特大学)

Martin Grohe, Christoph Standke, Juno Steegmans, Jan Van den Bussche

AI总结:

本文提出用声明式查询语言(基于一阶逻辑)解释神经网络,区分黑盒与白盒两种查询方式,证明白盒方法在自然条件下可包含黑盒方法,并针对前馈网络给出具体证明。

摘要:

我们为一种受数据库启发的、通过声明式语言查询神经网络模型以进行解释和理解的方法奠定了基础。为此,我们研究了基于一阶逻辑的不同查询语言,它们的主要区别在于对神经网络模型的访问方式。实数上的一阶逻辑自然产生了一种将网络视为黑盒的语言;只能查询由网络定义的输入-输出函数。这本质上是约束查询语言的方法。另一方面,通过将网络视为加权图,并用权重项上的求和扩展一阶逻辑,可以获得白盒语言。后一种方法本质上是SQL的一种抽象。总的来说,正如我们将展示的,这两种方法在表达能力上不可比较。然而,在自然情况下,白盒方法可以包含黑盒方法;这是我们的主要结果。我们具体证明了该结果适用于由具有固定数量隐藏层和分段线性激活函数的前馈神经网络定义的可定义实数函数的线性约束查询。

英文摘要:

We lay the foundations for a database-inspired approach to interpreting and understanding neural network models by querying them using declarative languages. Towards this end we study different query languages, based on first-order logic, that mainly differ in their access to the neural network model. First-order logic over the reals naturally yields a language which views the network as a black box; only the input--output function defined by the network can be queried. This is essentially the approach of constraint query languages. On the other hand, a white-box language can be obtained by viewing the network as a weighted graph, and extending first-order logic with summation over weight terms. The latter approach is essentially an abstraction of SQL. In general, the two approaches are incomparable in expressive power, as we will show. Under natural circumstances, however, the white-box approach can subsume the black-box approach; this is our main result. We prove the result concretely for linear constraint queries over real functions definable by feedforward neural networks with a fixed number of hidden layers and piecewise linear activation functions.

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

↑