Injecting Logical Constraints into Neural Networks via Straight-Through Estimators

07/10/2023
by   Zhun Yang, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/29/2017

A Semantic Loss Function for Deep Learning with Symbolic Knowledge

This paper develops a novel methodology for using symbolic knowledge in ...
research
06/10/2022

Refining neural network predictions using background knowledge

Recent work has shown logical background knowledge can be used in learni...
research
05/18/2018

Trusted Neural Networks for Safety-Constrained Autonomous Control

We propose Trusted Neural Network (TNN) models, which are deep neural ne...
research
05/23/2017

Logical Learning Through a Hybrid Neural Network with Auxiliary Inputs

The human reasoning process is seldom a one-way process from an input le...
research
05/31/2022

Knowledge Enhanced Neural Networks for relational domains

In the recent past, there has been a growing interest in Neural-Symbolic...
research
12/10/2020

xRAI: Explainable Representations through AI

We present xRAI an approach for extracting symbolic representations of t...
research
05/12/2023

Scalable Coupling of Deep Learning with Logical Reasoning

In the ongoing quest for hybridizing discrete reasoning with neural nets...

Please sign up or login with your details

Forgot password? Click here to reset