Answer Set Networks: Casting Answer Set Programming into Deep Learning

Arseny Skryagin, Daniel Ochs, Phillip Deibert, Simon Kohaut, Devendra Singh Dhami +1 more
12/19/2024
cs.AIcs.LGcs.SC

No official code found. Best implementation: ml-research/AnswerSetNetworks (7 stars, last commit 2025-07-22).

Abstract

Although Answer Set Programming (ASP) allows constraining neural-symbolic (NeSy) systems, its employment is hindered by the prohibitive costs of computing stable models and the CPU-bound nature of state-of-the-art solvers. To this end, we propose Answer Set Networks (ASN), a NeSy solver. Based on Graph Neural Networks (GNN), ASNs are a scalable approach to ASP-based Deep Probabilistic Logic Programming (DPPL). Specifically, we show how to translate ASPs into ASNs and demonstrate how ASNs can efficiently solve the encoded problem by leveraging GPU's batching and parallelization capabilities. Our experimental evaluations demonstrate that ASNs outperform state-of-the-art CPU-bound NeSy systems on multiple tasks. Simultaneously, we make the following two contributions based on the strengths of ASNs. Namely, we are the first to show the finetuning of Large Language Models (LLM) with DPPLs, employing ASNs to guide the training with logic. Further, we show the "constitutional navigation" of drones, i.e., encoding public aviation laws in an ASN for routing Unmanned Aerial Vehicles in uncertain environments.

View on arXivView PDF

Code Implementations(1)

72Shell, PythonDec 18, 20241 years ago

Similar Papers

Cite this paper

@article{skryagin2024answer,
  title  = {Answer Set Networks: Casting Answer Set Programming into Deep Learning},
  author = {Arseny Skryagin and Daniel Ochs and Phillip Deibert and Simon Kohaut and Devendra Singh Dhami and Kristian Kersting},
  year   = {2024},
  eprint = {2412.14814},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.14814v1}
}

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

Discussion