Query languages for neural networks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 13 of its 37 references that are in the map. First posted on arXiv 19 Aug 2024.
Builds on
13 of 37 references.
References · 13
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2013Intriguing properties of neural networkscited by 5,114
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2021Benchmarking and Survey of Explanation Methods for Black Box Modelscited by 136
- 2021Introduction to Neural Network Verificationcited by 63
- 2022Logic-Based Explainability in Machine Learningcited by 47
- 2021Foundations of Symbolic Languages for Model Interpretabilitycited by 26
- 2021A unified logical framework for explanations in classifier systemscited by 15
- 2023When to Trust AI: Advances and Challenges for Certification of Neural Networkscited by 6
- 2020Learning Concepts Described by Weight Aggregation Logiccited by 4
- 2019Aggregate Queries on Sparse Databasescited by 3
1 more
- 2017Juggling Functions Inside a Databasecited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Recursive querying of neural networks via weighted structurescited by 2
- 2026Query Languages for Machine-Learning Modelscited by 0
- 2026Query Languages for Machine-Learning Models14 Jan 2026
- 2026Recursive querying of neural networks via weighted structures6 Jan 2026