Weight learning in a probabilistic extension of answer set programs

Joohyung Lee, Yi Wang

TL;DR

This paper introduces weight learning for LPMLN, a probabilistic extension of Answer Set Programming (ASP). By adapting Markov Logic's learning techniques and leveraging ASP solvers, they enable automatic parameter estimation for complex knowledge-rich domains, bridging the gap between deterministic ASP and probabilistic reasoning.

What Problem Does This Paper Address?

Answer Set Programming (ASP) is powerful for knowledge representation and reasoning, particularly in deterministic domains like action planning and reachability analysis. However, real-world scenarios often involve uncertainty. While probabilistic extensions of logic programming exist, integrating them with the robust inference capabilities of ASP has been a challenge. Specifically, manually assigning weights to probabilistic rules in LPMLN is difficult for complex systems. This paper addresses the problem of automatically learning these weights from data, enabling LPMLN to handle probabilistic reasoning in domains where ASP has traditionally excelled but was limited to deterministic cases.

Methods

The core contribution is the development of weight learning algorithms for LPMLN, primarily adapting techniques from Markov Logic. The authors propose a Maximum Likelihood Estimation (MLE) approach, aiming to find rule weights that maximize the probability of observed data.

Key techniques include:

  • MC-ASP: An adaptation of the MC-SAT algorithm for Markov Logic, but utilizing ASP solvers instead of SAT solvers for sampling. This algorithm is based on the penalty-based formulation of LPMLN.
  • Gradient Ascent: A standard optimization technique used to iteratively update weights to maximize the log-likelihood of the data.
  • Translation to ASP: LPMLN programs are translated into ASP programs, allowing existing ASP solvers to be used for inference and sampling.
  • Handling Noisy Data and Incomplete Interpretations: Extensions are proposed to handle training data that may not be perfect stable models or may not fully specify all atoms.
  • Reductions to MLN and ProbLog: For specific classes of LPMLN programs (tight and k-coherent, respectively), the learning problem is shown to be reducible to existing learning problems in Markov Logic Networks (MLNs) and ProbLog, allowing the use of their respective learning tools.

Datasets

The paper does not introduce new benchmark datasets. Instead, it demonstrates its learning algorithms on example domains that are representative of the problems LPMLN is designed to address. These include:

  • A virus transmission example.
  • A communication network reachability problem.
  • A robot domain involving actions and their potential failures.

These examples are encoded as LPMLN programs and used with synthetic training data derived from the problem descriptions.

Key Insights and Ideas

  • Bridging ASP and Probabilistic Learning: The paper successfully demonstrates how to combine the expressive power of ASP with probabilistic learning techniques, opening up new possibilities for knowledge-rich probabilistic reasoning.
  • Leveraging ASP Solvers for Probabilistic Inference: By translating LPMLN to ASP, the authors effectively utilize mature ASP solvers for complex probabilistic inference tasks like sampling, which is crucial for learning.
  • MC-ASP's Effectiveness: The MC-ASP algorithm, by adapting MC-SAT to ASP, provides a viable method for sampling probabilistic stable models, a key component for gradient-based learning.
  • LPMLN's Expressiveness: The paper highlights LPMLN's ability to model complex probabilistic scenarios, including abductive reasoning about actions and probabilistic graphs, often outperforming or offering a more natural fit than traditional MLNs.
  • Reducibility to Existing Frameworks: Showing that learning for certain LPMLN programs can be reduced to MLN and ProbLog learning validates the approach and allows leveraging existing tools.

Key Results

The paper presents a framework and algorithms for weight learning in LPMLN. While specific quantitative results are presented through experimental examples, the focus is on demonstrating the feasibility and effectiveness of the approach.

  • Successful Learning in Example Domains: The prototype implementation (LPMLN-LEARN) successfully learned weights for the virus transmission, communication network, and robot action domains.
  • Demonstrated Probabilistic Reasoning: The learned weights allowed for probabilistic diagnosis in action domains and estimation of failure rates in communication networks, providing intuitive results.
  • Performance Comparison (Qualitative): In the communication network example, LPMLN-LEARN showed better scalability than PROBLOG for denser graphs, suggesting advantages in certain scenarios.
  • Learned Probabilities: The learned weights were shown to correspond to meaningful probabilities, such as failure rates of network stations or probabilities of action abnormalities. For instance, in the robot example, learned weights yielded probabilities for "enter_failed" (0.253), "drop_book" (0.257), and "pickup_failed" (0.483).

Limitations and Future Work

  • Computational Bottleneck: The authors acknowledge that the current implementation's performance is significantly impacted by the uniform sampler for answer sets (XORRO), which is a bottleneck.
  • Sampler Efficiency: The sampler is not optimized for iterative calls required by MCMC, suggesting room for improvement.
  • Future Work:
    • Improving the efficiency of the sampler, potentially through constrained sampling techniques.
  • Exploring more advanced weight learning techniques from MLN literature.
  • Investigating automatic structure learning for LPMLN programs.
  • Further research into the application of LPMLN learning in more complex knowledge-rich domains.

Summary updated

BibTeX
@misc{lee2018weight,
  author = {Joohyung Lee and Yi Wang},
  title = {{Weight learning in a probabilistic extension of answer set programs}},
  year = {2018},
  eprint = {1808.04527},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.04527},
}
Figure