Natlog: Embedding Logic Programming into the Python Deep-Learning Ecosystem

Paul Tarau
8/30/2023
cs.AIcs.PL

No confident code implementation found for this paper.

Abstract

Driven by expressiveness commonalities of Python and our Python-based embedded logic-based language Natlog, we design high-level interaction patterns between equivalent language constructs and data types on the two sides. By directly connecting generators and backtracking, nested tuples and terms, coroutines and first-class logic engines, reflection and meta-interpretation, we enable logic-based language constructs to access the full power of the Python ecosystem.

Show full abstract

We show the effectiveness of our design via Natlog apps working as orchestrators for JAX and Pytorch pipelines and as DCG-driven GPT3 and DALL.E prompt generators. Keyphrases: embedding of logic programming in the Python ecosystem, high-level inter-paradigm data exchanges, coroutining with logic engines, logic-based neuro-symbolic computing, logic grammars as prompt-generators for Large Language Models, logic-based neural network configuration and training.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tarau2023natlog,
  title  = {Natlog: Embedding Logic Programming into the Python Deep-Learning Ecosystem},
  author = {Paul Tarau},
  year   = {2023},
  eprint = {2308.15890},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.15890v1}
}

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/2308.15890.svg)](https://codeofpaper.com/paper/2308.15890)

Discussion