Skip to main content
QUICK REVIEW

[Paper Review] Computing LPMLN Using ASP and MLN Solvers

Joohyung Lee, Samidh Talsania|arXiv (Cornell University)|Jul 19, 2017
Logic, Reasoning, and KnowledgeComputer Science10 citations
TL;DR

This paper presents two novel systems, LPMLN2ASP and LPMLN2MLN, that enable probabilistic inference in LPMLN— a hybrid logic programming language combining answer set programming and Markov Logic—by translating LPMLN programs into formats compatible with ASP and MLN solvers. The key contribution is efficient computation of most probable stable models and exact or approximate probabilistic queries using existing solvers, with LPMLN2ASP outperforming PROBLOG2 on MAP inference and LPMLN2MLN enabling scalable MLN-style inference.

ABSTRACT

LPMLN is a recent addition to probabilistic logic programming languages. Its main idea is to overcome the rigid nature of the stable model semantics by assigning a weight to each rule in a way similar to Markov Logic is defined. We present two implementations of LPMLN, $ ext{LPMLN2ASP}$ and $ ext{LPMLN2MLN}$. System $ ext{LPMLN2ASP}$ translates LPMLN programs into the input language of answer set solver $ ext{CLINGO}$, and using weak constraints and stable model enumeration, it can compute most probable stable models as well as exact conditional and marginal probabilities. System $ ext{LPMLN2MLN}$ translates LPMLN programs into the input language of Markov Logic solvers, such as $ ext{ALCHEMY}$, $ ext{TUFFY}$, and $ ext{ROCKIT}$, and allows for performing approximate probabilistic inference on LPMLN programs. We also demonstrate the usefulness of the LPMLN systems for computing other languages, such as ProbLog and Pearl's Causal Models, that are shown to be translatable into LPMLN. (Under consideration for acceptance in TPLP)

Motivation & Objective

  • To develop efficient methods for computing probabilistic inference in LPMLN, a hybrid logic programming language combining ASP and Markov Logic.
  • To address the challenge of computing most probable stable models and exact conditional/marginal probabilities in LPMLN.
  • To enable the reuse of existing ASP and MLN solvers—such as CLINGO, ALCHEMY, TUFFY, and ROCKIT—for LPMLN inference through systematic translation techniques.
  • To demonstrate the applicability of the systems to other formalisms like ProbLog and Pearl’s causal models by showing their reducibility to LPMLN.

Proposed method

  • LPMLN2ASP translates ground LPMLN programs into ASP programs with weak constraints, where model penalties correspond to LPMLN weights, enabling computation of most probable stable models via CLINGO’s optimization engine.
  • The system uses a penalty-based translation from LPMLN to ASP, ensuring that optimal stable models of the ASP program correspond to most probable models of the original LPMLN program.
  • LPMLN2MLN translates 'tight' LPMLN programs into Markov Logic Networks using completion formulas, with auxiliary atoms to prevent CNF blow-up during ALCHEMY grounding.
  • The system supports approximate inference via ALCHEMY, TUFFY, and ROCKIT by adapting the input format to each solver’s syntax and capabilities.
  • For non-ground LPMLN programs, the method ensures correct mapping of model penalties to probabilities through careful grounding and constraint encoding.
  • Both systems support advanced ASP features like aggregates and conditional literals, enhancing expressiveness and usability.

Experimental results

Research questions

  • RQ1Can LPMLN programs be efficiently computed using existing ASP and MLN solvers through systematic translation?
  • RQ2How can the most probable stable models of an LPMLN program be computed using weak constraints in ASP solvers like CLINGO?
  • RQ3What are the performance characteristics of LPMLN2ASP and LPMLN2MLN compared to native solvers like PROBLOG2 and ALCHEMY on real-world inference tasks?
  • RQ4To what extent can LPMLN serve as a unifying framework for probabilistic logic languages such as ProbLog and Pearl’s causal models?
  • RQ5How do the proposed systems scale on large, real-world knowledge bases such as the Biomine network and social influence models?

Key findings

  • LPMLN2ASP outperforms PROBLOG2 on MAP inference for large graphs, completing in under 1000 seconds for networks with up to 3435 nodes, while PROBLOG2 times out on graphs with over 1677 nodes.
  • For the Biomine network, LPMLN2ASP completes MAP inference in 958.882 seconds for a 3435-node graph, whereas PROBLOG2 times out on graphs with more than 1677 nodes.
  • On the social influence model, LPMLN2ASP computes MAP estimates in under 3 seconds for up to 700 people, outperforming ALCHEMY and matching or exceeding TUFFY and ROCKIT in scalability.
  • LPMLN2MLN enables scalable inference on MLN encodings, with ROCKIT showing the best performance among MLN solvers, and LPMLN2ASP matching or surpassing it for medium-sized instances.
  • LPMLN2ASP is the fastest system for MAP inference on the social influence model up to 600 people, while ALCHEMY times out beyond 200 people due to grounding bottlenecks.
  • The systems successfully compute probabilistic queries for ProbLog and Pearl’s causal models by leveraging their reducibility to LPMLN, demonstrating the framework’s generality and reusability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.