On LLM-generated Logic Programs and their Inference Execution Methods

Paul Tarau
2/13/2025
cs.AI

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) trained on petabytes of data are highly compressed repositories of a significant proportion of the knowledge accumulated and distilled so far. In this paper we study techniques to elicit this knowledge in the form of several classes of logic programs, including propositional Horn clauses, Dual Horn clauses, relational triplets and Definite Clause Grammars. Exposing this knowledge as logic programs enables sound reasoning methods that can verify alignment of LLM outputs to their intended uses and extend their inference capabilities. We study new execution methods for the generated programs, including soft-unification of abducible facts against LLM-generated content stored in a vector database as well as GPU-based acceleration of minimal model computation that supports inference with large LLM-generated programs.

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{tarau2025llmgenerated,
  title  = {On LLM-generated Logic Programs and their Inference Execution Methods},
  author = {Paul Tarau},
  year   = {2025},
  eprint = {2502.09209},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.09209v1}
}

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

Discussion