MultiplexNet: Towards Fully Satisfied Logical Constraints in Neural Networks
Nick Hoernle, Rafael-Michael Karampatsis, Vaishak Belle, Kobi Gal
Abstract
We propose a novel way to incorporate expert knowledge into the training of deep neural networks. Many approaches encode domain constraints directly into the network architecture, requiring non-trivial or domain-specific engineering. In contrast, our approach, called MultiplexNet, represents domain knowledge as a quantifier-free logical formula in disjunctive normal form (DNF) which is easy to encode and to elicit from human experts. It introduces a latent Categorical variable that learns to choose which constraint term optimizes the error function of the network and it compiles the constraints directly into the output of existing learning algorithms. We demonstrate the efficacy of this approach empirically on several classical deep learning tasks, such as density estimation and classification in both supervised and unsupervised settings where prior knowledge about the domains was expressed as logical constraints. Our results show that the MultiplexNet approach learned to approximate unknown distributions well, often requiring fewer data samples than the alternative approaches. In some cases, MultiplexNet finds better solutions than the baselines; or solutions that could not be achieved with the alternative approaches. Our contribution is in encoding domain knowledge in a way that facilitates inference. We specifically focus on quantifier-free logical formulae that are specified over the output domain of a network. We show that this approach is both efficient and general; and critically, our approach guarantees 100% constraint satisfaction in a network's output.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext aca8922a-2049-4eac-ad07-b42fda0c8821Cited by top-tier papers22
- Semantic Probabilistic Layers for Neuro-Symbolic LearningKareem Ahmed, Stefano Teso, Kai-Wei Chang, Guy Van den Broeck et al.NeurIPS 2022 · 133 citations
- Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning ShortcutsEmanuele Marconato, Stefano Teso, Antonio Vergari, Andrea PasseriniNeurIPS 2023 · 83 citations
- Neuro-Symbolic Continual Learning: Knowledge, Reasoning Shortcuts and Concept RehearsalEmanuele Marconato, Gianpaolo Bontempo, Elisa Ficarra, Simone Calderara et al.ICML 2023 · 34 citations
- How Realistic Is Your Synthetic Data? Constraining Deep Generative Models for Tabular DataMihaela C. Stoian, Salijona Dyrmishi, Maxime Cordy, Thomas Lukasiewicz et al.ICLR 2024 · 33 citations
- A Pseudo-Semantic Loss for Autoregressive Models with Logical ConstraintsKareem Ahmed, Kai-Wei Chang, Guy Van den BroeckNeurIPS 2023 · 26 citations
Builds on2
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
Related papers
- Learning with Logical Constraints but without Shortcut SatisfactionZenan Li, Zehua Liu, Yuan Yao, Jingwei Xu et al.ICLR 2023
- Learning Constraints for Structured Prediction Using Rectifier NetworksXingyuan Pan, Maitrey Mehta, Vivek SrikumarACL 2020 · 6 citations
- FSP-Laplace: Function-Space Priors for the Laplace Approximation in Bayesian Deep LearningTristan Cinquin, Marvin Pförtner, Vincent Fortuin, Philipp Hennig et al.NeurIPS 2024 · 15 citations
- Incorporating Interpretable Output Constraints in Bayesian Neural NetworksWanqian Yang, Lars Lorch, Moritz A. Graule, Himabindu Lakkaraju et al.NeurIPS 2020 · 17 citations
- DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization LayersShraman Pal, Can LiICML 2026
