Semantic Probabilistic Layers for Neuro-Symbolic Learning

Kareem Ahmed, Stefano Teso, Kai-Wei Chang, Guy Van den Broeck, Antonio Vergari
6/1/2022
cs.LGcs.AI

Official code: KareemYousrii/SPL (33 stars, Python, last commit 2023-12-04).

Abstract

We design a predictive layer for structured-output prediction (SOP) that can be plugged into any neural network guaranteeing its predictions are consistent with a set of predefined symbolic constraints. Our Semantic Probabilistic Layer (SPL) can model intricate correlations, and hard constraints, over a structured output space all while being amenable to end-to-end learning via maximum likelihood.

Show full abstract

SPLs combine exact probabilistic inference with logical reasoning in a clean and modular way, learning complex distributions and restricting their support to solutions of the constraint. As such, they can faithfully, and efficiently, model complex SOP tasks beyond the reach of alternative neuro-symbolic approaches. We empirically demonstrate that SPLs outperform these competitors in terms of accuracy on challenging SOP tasks including hierarchical multi-label classification, pathfinding and preference learning, while retaining perfect constraint satisfaction.

View on arXivView PDF

Code Implementations(1)

KareemYousrii/SPLOfficial100%

This repository holds the code for the NeurIPS 2022 paper, Semantic Probabilistic Layers

337Python, Jupyter NotebookNov 22, 20222 years ago

Similar Papers

Cite this paper

@article{ahmed2022semantic,
  title  = {Semantic Probabilistic Layers for Neuro-Symbolic Learning},
  author = {Kareem Ahmed and Stefano Teso and Kai-Wei Chang and Guy Van den Broeck and Antonio Vergari},
  year   = {2022},
  eprint = {2206.00426},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.00426}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.00426.svg)](https://codeofpaper.com/paper/2206.00426)

Discussion