Query languages for neural networks

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Grohe, Martin, Standke, Christoph, Steegmans, Juno, Bussche, Jan Van den
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913475214704640
author Grohe, Martin
Standke, Christoph
Steegmans, Juno
Bussche, Jan Van den
author_facet Grohe, Martin
Standke, Christoph
Steegmans, Juno
Bussche, Jan Van den
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_10362
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Query languages for neural networks
Grohe, Martin
Standke, Christoph
Steegmans, Juno
Bussche, Jan Van den
Artificial Intelligence
Databases
Logic in Computer Science
H.2.3; I.2.6
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.
title Query languages for neural networks
topic Artificial Intelligence
Databases
Logic in Computer Science
H.2.3; I.2.6
url https://arxiv.org/abs/2408.10362