Lune

AAAI2022Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

22 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning Shortcuts cites Neuro-Symbolic Continual Learning: Knowledge, Reasoning Shortcuts and Concept Rehearsal
  • Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning Shortcuts cites Semantic Probabilistic Layers for Neuro-Symbolic Learning
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Neuro-Symbolic Continual Learning: Knowledge, Reasoning Shortcuts and Concept Rehearsal cites Semantic Probabilistic Layers for Neuro-Symbolic Learning
  • How Realistic Is Your Synthetic Data? Constraining Deep Generative Models for Tabular Data cites Semantic Probabilistic Layers for Neuro-Symbolic Learning
  • A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraints cites Semantic Probabilistic Layers for Neuro-Symbolic Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers22

  1. Semantic Probabilistic Layers for Neuro-Symbolic LearningKareem Ahmed, Stefano Teso, Kai-Wei Chang, Guy Van den Broeck et al.NeurIPS 2022 · 133 citations
  2. Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning ShortcutsEmanuele Marconato, Stefano Teso, Antonio Vergari, Andrea PasseriniNeurIPS 2023 · 83 citations
  3. Neuro-Symbolic Continual Learning: Knowledge, Reasoning Shortcuts and Concept RehearsalEmanuele Marconato, Gianpaolo Bontempo, Elisa Ficarra, Simone Calderara et al.ICML 2023 · 34 citations
  4. 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
  5. A Pseudo-Semantic Loss for Autoregressive Models with Logical ConstraintsKareem Ahmed, Kai-Wei Chang, Guy Van den BroeckNeurIPS 2023 · 26 citations

Builds on2

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. 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

  1. Learning with Logical Constraints but without Shortcut SatisfactionZenan Li, Zehua Liu, Yuan Yao, Jingwei Xu et al.ICLR 2023
  2. Learning Constraints for Structured Prediction Using Rectifier NetworksXingyuan Pan, Maitrey Mehta, Vivek SrikumarACL 2020 · 6 citations
  3. 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
  4. Incorporating Interpretable Output Constraints in Bayesian Neural NetworksWanqian Yang, Lars Lorch, Moritz A. Graule, Himabindu Lakkaraju et al.NeurIPS 2020 · 17 citations
  5. DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization LayersShraman Pal, Can LiICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines