Coder Social home page Coder Social logo

hemile / a-nesi Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 195.43 MB

A Scalable Approximate Method for Probabilistic Neurosymbolic Inference

Home Page: https://arxiv.org/abs/2212.12393

License: Apache License 2.0

Python 99.84% Shell 0.16%
deep-learning neurosymbolic pytorch

a-nesi's Introduction

A-NeSI: Approximate Neurosymbolic Inference

We introduce Approximate Neurosymbolic Inference (A-NeSI) a new framework for Probabilistic Neurosymbolic Learning that uses neural networks for scalable approximate inference. A-NeSI

  1. performs approximate inference in polynomial time without relaxing the semantics of probabilistic logics;
  2. is trained using synthetic data generated by the background knowledge;
  3. can generate symbolic explanations of predictions; and
  4. can guarantee the satisfaction of logical constraints at test time.

For more information, consult the papers listed below.

Requirements

A-NeSI has the following requirements:

Run the following:

  1. Install the dependencies inside a new virtual environment: bash setup_dependencies.sh

  2. Activate the virtual environment: conda activate NRM

  3. Install the A-NeSI module: pip install -e .

Experiments

The experiments are presented in the papers are available in the anesi/experiments directory. The experiments are organized with Weights&Biases. To reproduce the experiments from the paper, run

cd anesi/experiments
wandb sweep repeat/test_predict_only.yaml
wandb agent <sweep_id>

Note that you will need to update the entity and project parameters of wandb in the sweep files.

Paper

A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inference (Arxiv)

@misc{https://doi.org/10.48550/arxiv.2212.12393,
  doi = {10.48550/ARXIV.2212.12393},
  url = {https://arxiv.org/abs/2212.12393},
  author = {van Krieken, Emile and Thanapalasingam, Thiviyan and Tomczak, Jakub M. and van Harmelen, Frank and Teije, Annette ten},
  keywords = {Machine Learning (cs.LG), Artificial Intelligence (cs.AI), Logic in Computer Science (cs.LO), Machine Learning (stat.ML), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inference},
  publisher = {arXiv},
  year = {2022},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

a-nesi's People

Contributors

hemile avatar rmanhaeve avatar thiviyant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.