Lune

ICML2022Top-tier venue

Injecting Logical Constraints into Neural Networks via Straight-Through Estimators

Zhun Yang, Joohyung Lee, Chiyoun Park

Abstract

Injecting discrete logical constraints into neural network learning is one of the main challenges in neuro-symbolic AI. We find that a straight-through-estimator, a method introduced to train binary neural networks, could effectively be applied to incorporate logical constraints into neural network learning. More specifically, we design a systematic way to represent discrete logical constraints as a loss function; minimizing this loss using gradient descent via a straight-through-estimator updates the neural network's weights in the direction that the binarized outputs satisfy the logical constraints. The experimental results show that by leveraging GPUs and batch training, this method scales significantly better than existing neuro-symbolic methods that require heavy symbolic computation for computing gradients. Also, we demonstrate that our method applies to different types of neural networks, such as MLP, CNN, and GNN, making them learn with no or fewer labeled data by learning directly from known constraints.

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.

12 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

  • Grounding Neural Inference with Satisfiability Modulo Theories cites Differentiation of Blackbox Combinatorial Solvers
  • Efficient Rectification of Neuro-Symbolic Reasoning Inconsistencies by Abductive Reflection cites Knowledge-Enhanced Historical Document Segmentation and Recognition
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Efficient Rectification of Neuro-Symbolic Reasoning Inconsistencies by Abductive ReflectionWen-Chao Hu, Wang-Zhou Dai, Yuan Jiang, Zhi-Hua ZhouAAAI 2025 · 14 citations
  2. CuTS: Customizable Tabular Synthetic Data GenerationMark Vero, Mislav Balunovic, Martin T. VechevICML 2024 · 13 citations
  3. Analysis for Abductive Learning and Neural-Symbolic Reasoning ShortcutsXiaowen Yang, Wenda Wei, Jie-Jing Shao, Yufeng Li et al.ICML 2024 · 11 citations
  4. Grounding Neural Inference with Satisfiability Modulo TheoriesZifan Wang, Saranya Vijayakumar, Kaiji Lu, Vijay Ganesh et al.NeurIPS 2023 · 8 citations
  5. Knowledge-Enhanced Historical Document Segmentation and RecognitionEn-Hao Gao, Yu-Xuan Huang, Wen-Chao Hu, Xin-Hao Zhu et al.AAAI 2024 · 7 citations

Builds on3

  1. Differentiation of Blackbox Combinatorial SolversMarin Vlastelica Pogancic, Anselm Paulus, Vít Musil, Georg Martius et al.ICLR 2020 · 341 citations
  2. Complex Query Answering with Neural Link PredictorsErik Arakelyan, Daniel Daza, Pasquale Minervini, Michael CochezICLR 2021 · 29 citations
  3. Plug-in, Trainable Gate for Streamlining Arbitrary Neural NetworksJaedeok Kim, Chiyoun Park, Hyun-Joo Jung, Yoonsuck ChoeAAAI 2020 · 19 citations

Related papers

  1. Training Binary Neural Networks using the Bayesian Learning RuleXiangming Meng, Roman Bachmann, Mohammad Emtiyaz KhanICML 2020 · 47 citations
  2. KLay: Accelerating Arithmetic Circuits for Neurosymbolic AIJaron Maene, Vincent Derkinderen, Pedro Zuidberg Dos MartiresICLR 2025
  3. Neurosymbolic Reasoning and Learning with Restricted Boltzmann MachinesSon N. Tran, Artur S. d'Avila GarcezAAAI 2023 · 2 citations
  4. AdaSTE: An Adaptive Straight-Through Estimator to Train Binary Neural NetworksHuu Le, Rasmus Kjær Høier, Che-Tsung Lin, Christopher ZachCVPR 2022
  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