Answer Set Networks: Casting Answer Set Programming into Deep Learning
Arseny Skryagin, Daniel Ochs, Phillip Deibert, Simon Kohaut, Devendra Singh Dhami, Kristian Kersting
TL;DR
Answer Set Networks (ASN) address the throughput bottleneck of ASP-based NeSy systems by casting ASP-Core-2 programs into Reasoning Graphs and solving with GPU-accelerated graph neural networks. The neural compilation, choice definitization, and message-passing enable parallel search for stable models and integration with neural predicates, yielding substantial speedups on DPPL tasks. The paper also demonstrates abductive LLM fine-tuning to mitigate the reversal curse and shows strong performance in large-scale UAV routing and MNIST-Addition tasks, illustrating practical impact for scalable NeSy AI. Overall, ASN provides a scalable bridge between symbolic logic and sub-symbolic learning, enabling new applications and efficient guidance of LLMs by logical constraints.
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.
