arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.04347cs.AIcs.LGcs.NE
收藏

通过直通估计器将逻辑约束注入神经网络

Injecting Logical Constraints into Neural Networks via Straight-Through Estimators

Arizona State University(亚利桑那州立大学);Samsung Research, Samsung Electronics Co.(三星电子株式会社三星研究院)

Zhun Yang, Joohyung Lee, Chiyoun Park

AI总结:

本文提出利用直通估计器将离散逻辑约束表示为损失函数并注入神经网络训练,在GPU和批训练下显著提升可扩展性,适用于MLP、CNN和GNN,可减少对标注数据的依赖。

摘要:

将离散逻辑约束注入神经网络学习是神经符号人工智能面临的主要挑战之一。我们发现,一种最初用于训练二值神经网络的直通估计器方法,可以有效地应用于将逻辑约束纳入神经网络学习。更具体地说,我们设计了一种系统化的方法,将离散逻辑约束表示为损失函数;通过直通估计器使用梯度下降最小化该损失,使神经网络的权重朝着二值化输出满足逻辑约束的方向更新。实验结果表明,通过利用GPU和批训练,该方法在可扩展性上显著优于现有需要大量符号计算来求梯度的神经符号方法。此外,我们证明该方法适用于不同类型的神经网络,如MLP、CNN和GNN,使它们能够通过直接从已知约束中学习,在无标注数据或较少标注数据的情况下进行学习。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑