Scalable Neural-Probabilistic Answer Set Programming

Arseny Skryagin, Daniel Ochs, Devendra Singh Dhami, Kristian Kersting · DOI

Introduction

Neuro-Symbolic AI seeks to unify the perceptual strengths of deep learning with the rigorous reasoning capabilities of symbolic logic. While frameworks like DeepProbLog and NeurASP have demonstrated the potential of this integration, they often struggle with two critical challenges: limited query flexibility—primarily restricted to conditional probabilities—and a scalability bottleneck caused by the exponential growth of "possible worlds" in complex reasoning tasks.

This paper introduces SLASH, a novel Deep Probabilistic Programming Language (DPPL) designed to overcome these hurdles. SLASH integrates Neural-Probabilistic Predicates (NPPs) with Answer Set Programming (ASP) to enable efficient joint probability estimation and scalable logical reasoning.

The SLASH Framework: Neural-Probabilistic Predicates

The core innovation of SLASH lies in its use of Neural-Probabilistic Predicates (NPPs). Unlike standard neural predicates that output simple class probabilities, NPPs can incorporate Probabilistic Circuits (PCs). This allows for tractable joint probability inference, enabling the system to reason about missing data or perform inverse queries, such as predicting features from a class label.

The VQA task pipeline in SLASH, illustrating the integration of neural perception (NPPs) with symbolic knowledge graphs via ASP.

Furthermore, SLASH introduces a flexible $+/-$ notation for queries. This allows users to explicitly define which variables are inputs and which are outputs, facilitating a wider range of probabilistic questions than previous frameworks. For example, a query can ask for the probability of a class given features or perform the inverse operation seamlessly.

Scalable Reasoning with SAME

To address the combinatorial explosion inherent in symbolic reasoning, the authors developed SAME (Solution thAt MatchEs the data). This dynamic pruning technique identifies stochastically insignificant outcomes during the training process and removes them from the logic program's search space.

As training progresses, the model learns to focus exclusively on the most likely solutions. This "winner-takes-all" approach significantly reduces the computational overhead of exploring possible worlds. The authors demonstrate that SAME converges to the correct logical solution, effectively "ignoring the noise" of unlikely combinations without sacrificing accuracy.

Experimental Evaluation

SLASH was evaluated across several benchmarks, including MNIST Addition, ShapeWorld4, and the large-scale Visual Question Answering on Real-world images (VQAR) dataset, which contains over 4 million programmatic queries.

Key Results

  • Efficiency and Speed: In the MNIST T3 task (adding four digits), SLASH with SAME achieved a 30x speedup per epoch compared to the standard version. It successfully converged on tasks where other state-of-the-art DPPLs, such as Scallop or NeurASP, either failed or required significantly more time.
  • VQAR Performance: SLASH demonstrated superior data efficiency on the VQAR dataset, achieving higher recall with fewer training samples than competing methods.
  • Object-Centric Learning: On set prediction tasks like ShapeWorld4, SLASH improved the average precision of baseline models (e.g., Slot Attention) by up to 10%, highlighting its ability to refine neural perception through logical constraints.
The end-to-end process in SLASH: translating natural language questions into programmatic queries to derive answers from visual data.

Conclusion and Future Work

SLASH represents a significant step forward in making neuro-symbolic reasoning scalable and flexible. By combining the tractable inference of Probabilistic Circuits with the pruning power of SAME, it handles complex, real-world visual reasoning tasks that were previously computationally prohibitive.

Future research will focus on addressing the "grounding bottleneck" for extremely large logic programs through "grounding on demand" techniques. Additionally, the authors aim to more tightly integrate Weighted Model Counting (WMC) into the solving process and develop automated modules for translating natural language directly into SLASH's programmatic queries.

Summary updated

BibTeX
@article{skryagin2023scalable,
  author = {Arseny Skryagin and Daniel Ochs and Devendra Singh Dhami and Kristian Kersting},
  title = {{Scalable Neural-Probabilistic Answer Set Programming}},
  journal = {J. Artif. Intell. Res.},
  year = {2023},
  doi = {10.1613/jair.1.15027},
}
Figure