Extracting Formulae in Many-Valued Logic from Deep Neural Networks
Yani Zhang, Helmut Bölcskei
TL;DR
The paper establishes a rigorous link between deep ReLU networks and many‑valued MV logic via McNaughton functions, proving a two‑way correspondence between integer‑weighted ReLU networks and MV terms. It then provides a constructive algorithm to extract MV formulae from trained networks, and extends the approach to rational and real weights (Rational Łukasiewicz logic and RMV logic) with suitable adaptations. A key finding is that deep architectures yield substantially shorter MV terms than shallow or noncompositional methods, especially for multi‑dimensional McNaughton functions, illustrating a formal advantage of depth in encoding logical structure. Practically, this framework enables interpretable logical descriptions of data representations learned by deep nets and broadens the bridge between neural computation and formal logic.
Abstract
We propose a new perspective on deep ReLU networks, namely as circuit counterparts of Lukasiewicz infinite-valued logic -- a many-valued (MV) generalization of Boolean logic. An algorithm for extracting formulae in MV logic from deep ReLU networks is presented. As the algorithm applies to networks with general, in particular also real-valued, weights, it can be used to extract logical formulae from deep ReLU networks trained on data.
