Abstract
The Credal semantics is a probabilistic extension of the answer set semantics designed for programs that may be non-stratified. Unlike traditional distribution semantics, it assigns a set of acceptable probability distributions to atoms, characterized by lower and upper bounds. However, exact probabilistic inference under Credal semantics is computationally intractable. This paper introduces PASOCS (Parallel Approximate SOlver for the Credal Semantics), the first sampling-based solver for this domain. PASOCS supports both exact and approximate inference using Naive sampling, Metropolis-Hastings, and Gibbs Markov Chain Monte-Carlo methods. Our evaluation demonstrates that PASOCS is competitive with existing systems on stratified programs and provides a robust solution for unstratified programs where traditional semantics struggle.
Introduction: The Need for Credal Semantics
Most Probabilistic Logic Programming (PLP) systems, such as ProbLog or PRISM, rely on "distribution semantics." This approach assumes a single, well-defined probability distribution over all possible outcomes. While effective for many applications, it fails to account for incomplete knowledge or non-deterministic choices—scenarios where the available information is insufficient to assign a specific point probability.
In Answer Set Programming (ASP), these "don't know" scenarios result in multiple valid models (answer sets). Credal Semantics addresses this by assigning a set of probability distributions to a program. Instead of a single value, it provides a range: for example, stating the probability of an event is between 0.6 and 0.9. While mathematically sound, performing exact inference under Credal Semantics is exponentially difficult, creating a need for practical approximate tools.
The PASOCS Solver
PASOCS bridges the gap between high-level probabilistic logic and the high-performance capabilities of modern ASP solvers. The system is built on several key pillars:
- Sampling Engine: To bypass the exponential cost of exhaustive state-space searches, PASOCS utilizes three sampling techniques: Naive sampling, Metropolis-Hastings (MH) MCMC, and Gibbs MCMC.
- Parallelization: Recognizing that each sample requires an ASP solver call (an NP-hard task), PASOCS distributes the workload across multiple CPU cores. It leverages Clingo, a state-of-the-art ASP solver, to find answer sets for each sampled "total choice."
- Bounding and Uncertainty: The solver implements the Cozman and Mauá algorithm to derive lower and upper probability bounds. It also tracks the uncertainty of its own estimates using a Bernoulli distribution, allowing for early stopping once a user-defined confidence threshold is reached.
Experimental Evaluation
The authors evaluated PASOCS using synthetic pathfinding tasks on graphs of varying complexity (6 to 24 edges):
- Stratified Task (Sanity Check): A standard graph where edges exist with specific probabilities. In these programs, Credal Semantics collapses into standard distribution semantics (where the lower bound equals the upper bound), allowing for direct comparison with established solvers.
- Unstratified Task: A complex version involving an "unknown agent" deciding node inclusion. This introduces non-determinism that cannot be quantified with a single probability, highlighting the specific utility of Credal Semantics.
Key Results and Insights
Efficiency and Scalability
Exact inference times for Credal semantics grow rapidly with problem size. As shown in the performance data, exact inference for a 24-edge graph can take over two hours. PASOCS's sampling approach, however, remains linear relative to the number of samples, making it viable for larger, more complex problems.
In approximate inference benchmarks (100,000 samples on a 20-edge graph), PASOCS performed comparably to Diff-SAT, with both taking approximately one minute. In contrast, the LPMLN solver required over five hours to reach a comparable result, demonstrating the efficiency of the PASOCS architecture.
Accuracy and "Honest" Uncertainty
On stratified programs, PASOCS matched the results of Problog and Cplint, confirming its reliability. For unstratified programs, the results showed that PASOCS’s bounds effectively "bracket" the point probabilities produced by systems like LPMLN or Diff-SAT. This suggests that while other systems force a single answer by making internal assumptions, PASOCS provides a more honest representation of the underlying epistemic uncertainty.
Conclusion and Future Work
PASOCS represents a significant step forward in making Credal Semantics practical for real-world probabilistic reasoning. While the current implementation shows that lower bound estimates are more sensitive to sampling variance than upper bounds, the system's parallel nature offers a clear path for scaling. Future work will focus on implementing MAP (Most Probable Explanation) tasks under Credal Semantics and extending the solver to High-Performance Computing (HPC) environments using MPI to scale across massive computing clusters.
Summary updated