ProbLog Technology for Inference in a Probabilistic First Order Logic

Similar documents
Linear Tabling Strategies and Optimization Techniques

Many-Valued Logics. A Mathematical and Computational Introduction. Luis M. Augusto

Mixed-Strategies for Linear Tabling in Prolog

Minimizing Justified Envy in School Choice: The Design of NewApril Orleans 13, 2018 One App1 Atila / 40

Coalitional Game Theory

SIMPLE LINEAR REGRESSION OF CPS DATA

Comparison Sorts. EECS 2011 Prof. J. Elder - 1 -

Meta Programming (8A) Young W. Lim 3/10/14

The Provision of Public Goods Under Alternative. Electoral Incentives

Logic-based Argumentation Systems: An overview

A Formal Architecture for the 3APL Agent Programming Language

Programming in Logic: Prolog

A New Proposal on Special Majority Voting 1 Christian List

The Effectiveness of Receipt-Based Attacks on ThreeBallot

From Argument Games to Persuasion Dialogues

Coalitional Game Theory for Communication Networks: A Tutorial

A Calculus for End-to-end Statistical Service Guarantees

CHAPTER 16 INCONSISTENT KNOWLEDGE AS A NATURAL PHENOMENON:

A New Method of the Single Transferable Vote and its Axiomatic Justification

A procedure to compute a probabilistic bound for the maximum tardiness using stochastic simulation

"Efficient and Durable Decision Rules with Incomplete Information", by Bengt Holmström and Roger B. Myerson

1. STUDENTS WILL BE ABLE TO IDENTIFY AND DEFINE THE 2 MAIN PARTS OF THE AMERICAN FREE MARKET SYSTEM

VOTING ON INCOME REDISTRIBUTION: HOW A LITTLE BIT OF ALTRUISM CREATES TRANSITIVITY DONALD WITTMAN ECONOMICS DEPARTMENT UNIVERSITY OF CALIFORNIA

Candidate Citizen Models

Appendix to Non-Parametric Unfolding of Binary Choice Data Keith T. Poole Graduate School of Industrial Administration Carnegie-Mellon University

Notes for Session 7 Basic Voting Theory and Arrow s Theorem

Name Phylogeny. A Generative Model of String Variation. Nicholas Andrews, Jason Eisner and Mark Dredze

CSC304 Lecture 16. Voting 3: Axiomatic, Statistical, and Utilitarian Approaches to Voting. CSC304 - Nisarg Shah 1

Can a Condorcet Rule Have a Low Coalitional Manipulability?

A Mathematical View on Voting and Power

WUENIC A Case Study in Rule-based Knowledge Representation and Reasoning

Strategic Voting and Strategic Candidacy

Mathematics and Social Choice Theory. Topic 4 Voting methods with more than 2 alternatives. 4.1 Social choice procedures

The Australian Society for Operations Research

The Integer Arithmetic of Legislative Dynamics

Development of a Background Knowledge-Base about Transportation and Smuggling

ALEX4.2 A program for the simulation and the evaluation of electoral systems

Nominal Techniques in Isabelle/HOL

Chapter. Sampling Distributions Pearson Prentice Hall. All rights reserved

Tie Breaking in STV. 1 Introduction. 3 The special case of ties with the Meek algorithm. 2 Ties in practice

Argumentation Schemes for Reasoning about Factors with Dimensions

Local differential privacy

Refinement in Requirements Specification and Analysis: a Case Study

Extensional Equality in Intensional Type Theory

Hoboken Public Schools. Algebra II Honors Curriculum

Chapter. Estimating the Value of a Parameter Using Confidence Intervals Pearson Prentice Hall. All rights reserved

S. ll. To amend title 44, United States Code, to protect open, machine-readable databases. IN THE SENATE OF THE UNITED STATES

4.1 Efficient Electoral Competition

Response to the Evaluation Panel s Critique of Poverty Mapping

Political Economics II Spring Lectures 4-5 Part II Partisan Politics and Political Agency. Torsten Persson, IIES

PROJECTION OF NET MIGRATION USING A GRAVITY MODEL 1. Laboratory of Populations 2

Vulnerability Assessment and Targeting of Syrian Refugees in Lebanon

UC-BERKELEY. Center on Institutions and Governance Working Paper No. 22. Interval Properties of Ideal Point Estimators

Supporting Information Political Quid Pro Quo Agreements: An Experimental Study

Homework 4 solutions

Statistical Evidence and the Problem of Robust Litigation

Backoff DOP: Parameter Estimation by Backoff

A representation theorem for minmax regret policies

Verification. Lecture 3. Bernd Finkbeiner

Collective Decisions, Error and Trust in Wireless Networks

Constraint satisfaction problems. Lirong Xia

Designing Weighted Voting Games to Proportionality

Effective affirmative action in school choice

Two-Way Equational Tree Automata for AC-like Theories: Decidability and Closure Properties

Title: Adverserial Search AIMA: Chapter 5 (Sections 5.1, 5.2 and 5.3)

ECONS 491 STRATEGY AND GAME THEORY 1 SIGNALING IN THE LABOR MARKET

Notes on how to read the chart:

Response to the Report Evaluation of Edison/Mitofsky Election System

Composition and Division. Philosophy and Logic Unit 3, Section 3.3

Game theoretical techniques have recently

arxiv: v1 [cs.gt] 11 Jul 2018

Maximin equilibrium. Mehmet ISMAIL. March, This version: June, 2014

Tilburg University. Can a brain drain be good for growth? Mountford, A.W. Publication date: Link to publication

Strategic Voting and Strategic Candidacy

Poverty Reduction and Economic Growth: The Asian Experience Peter Warr

Argumentation Schemes for Statutory Interpretation: A Logical Analysis

One Important Issue on TRQ Expansion Harry de Gorter Cornell University

Fuzzy Mathematical Approach for Selecting Candidate For Election by a Political Party

Legislative Drafting for Democratic Social Change A Manual for Drafters

The Effect of Ballot Order: Evidence from the Spanish Senate

Incumbents, Challengers and Electoral Risk

THREATS TO SUE AND COST DIVISIBILITY UNDER ASYMMETRIC INFORMATION. Alon Klement. Discussion Paper No /2000

SIERRA LEONE 2012 ELECTIONS PROJECT PRE-ANALYSIS PLAN: POLLING CENTERCONSTITUENCY LEVEL INTERVENTIONS

Enriqueta Aragones Harvard University and Universitat Pompeu Fabra Andrew Postlewaite University of Pennsylvania. March 9, 2000

Event Based Sequential Program Development: Application to Constructing a Pointer Program

Use and abuse of voter migration models in an election year. Dr. Peter Moser Statistical Office of the Canton of Zurich

CS 5523 Operating Systems: Synchronization in Distributed Systems

Software Agents Behaviour.

Application of Fuzzy Logic in Environmental Engineering for Determination of Air Quality Index

Distributed Interval Voting with Node Failures of Various Types

An Integrated Tag Recommendation Algorithm Towards Weibo User Profiling

A Retrospective Study of State Aid Control in the German Broadband Market

Isomorphism and Argumentation

Modeling Voting Machines

14.770: Introduction to Political Economy Lectures 8 and 9: Political Agency

Approval Voting Theory with Multiple Levels of Approval

EU Centre-RSIS Summer Programme

Introduction to the Theory of Voting

solutions:, and it cannot be the case that a supersolution is always greater than or equal to a subsolution.

3 Electoral Competition

Transcription:

From to ProbLog ProbLog Technology for Inference in a Probabilistic First Order Logic Luc De Raedt Katholieke Universiteit Leuven (Belgium) joint work with Maurice Bruynooghe, Theofrastos Mantadelis, Angelika Kimmig, Bernd Gutmann, Gerda Janssens, and Joost Vennekens ECAI 2010

Motivation ProbLog From to ProbLog Probabilistic logic programming formalisms such as PHA & ICL (Poole), PRISM (Sato), ProbLog (De Raedt et al.) extend Prolog with probabilistic facts, clauses are deterministic (hard) restricted to Prolog, no full first order theories inference based on SLD-resolution (theorem proving) Markov Logic (Domingos et al.) extends Markov networks with first order logic, clauses are soft constraints inference based on maxsat a.o. Can we combine these ideas? soft constraints / probabilistic clauses theorem proving

From to ProbLog 1 ProbLog 2 3 From to ProbLog 4 5

Outline ProbLog From to ProbLog 1 ProbLog 2 3 From to ProbLog 4 5

ProbLog From to ProbLog An example likes(x) : red(x). likes(x) : round(x). 0.8 :: round(x). 0.3 :: red(x).

ProbLog From to ProbLog An example likes(x) : red(x). likes(x) : round(x). 0.8 :: round(x). 0.3 :: red(x). Four possible worlds for constant a 0.8 0.3 : {round(a), red(a), likes(a)} 0.2 0.3 : {red(a), likes(a)} 0.8 0.7 : {round(a), likes(a)} 0.2 0.7 : {} Total choice / Belief sets

ProbLog From to ProbLog An example likes(x) : red(x). likes(x) : round(x). 0.8 :: round(x). 0.3 :: red(x). Computation Prob likes(a)) = Prob(round(a) red(a)) = Prob round(a) + Prob( round(a) red(a)) = 0.8 + (1 0.8) 0.3

From to ProbLog ProbLog Technology Collect proofs Proofs not necessarily disjoint create BDD to cope with disjoint sum problem compute/approximate probability ProbLog integrated in YAP Prolog, download from http://dtai.cs.kuleuven.be/problog/

From to ProbLog ProbLog Concepts Facts with probabilities Belief set: a subset of the facts Has a probability Semantics: Least Herbrand model Inference: probability of a ground atom in a randomly selected belief set

Outline ProbLog From to ProbLog 1 ProbLog 2 3 From to ProbLog 4 5

From to ProbLog From ProbLog to What If? FO formulas instead of definite clauses? Problems SLD proof procedure is not complete belief set can be inconsistent

Example ProbLog From to ProbLog male(floris) : 0.4 female(floris) : 0.6

Example ProbLog From to ProbLog male(floris) : 0.4 female(floris) : 0.6 x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2

Example ProbLog From to ProbLog male(floris) : 0.4 female(floris) : 0.6 x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2 x : male(x) female(x) false no choice, probability is 1

From to ProbLog Example cont. A belief set female(floris) : 0.6 x : cs(x) male(x) : 0.8 x : male(x) female(x) false probability 0.6*0.8=0.48 We can infer cs(floris) This is not ProbLog

From to ProbLog Example cont. male(floris) : 0.4 female(floris) : 0.6 x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2 x : male(x) female(x) false cs(floris)

From to ProbLog Example cont. male(floris) : 0.4 female(floris) : 0.6 x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2 x : male(x) female(x) false cs(floris) Inconsistent belief set with probability 0.48 Compute probability of inconsistent belief sets Redistribute probability mass over consistent belief sets.

Outline ProbLog From to ProbLog 1 ProbLog 2 3 From to ProbLog 4 5

From to ProbLog How to implement? How to do inference? # belief sets is exponential in # of choices between ground formulas No way to enumerate them all Which technology? Can we preserve ProbLog Technology? How to collect the proofs? Can we preserve Prolog technology for that?

From to ProbLog How to implement? How to do inference? # belief sets is exponential in # of choices between ground formulas No way to enumerate them all Which technology? Can we preserve ProbLog Technology? How to collect the proofs? Can we preserve Prolog technology for that? Yes we can

From to ProbLog How to implement? How to do inference? # belief sets is exponential in # of choices between ground formulas No way to enumerate them all Which technology? Can we preserve ProbLog Technology? How to collect the proofs? Can we preserve Prolog technology for that? Yes we can Stickel s Prolog Technology Theorem Prover

From to ProbLog Translation to ProbLog male(floris) : 0.4 female(floris) : 0.6

From to ProbLog Translation to ProbLog male(floris) : 0.4 female(floris) : 0.6 0.4::pf fl(floris).% probabilistic fact

From to ProbLog Translation to ProbLog male(floris) : 0.4 female(floris) : 0.6 0.4::pf fl(floris).% probabilistic fact male(floris):-pf fl(floris). female(floris):-not(pf fl(floris)).% negation

From to ProbLog Translation to ProbLog x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2

From to ProbLog Translation to ProbLog x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2 0.8::pf cs(x). % probabilistic fact

From to ProbLog Translation to ProbLog x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2 0.8::pf cs(x). % probabilistic fact male(x):-cs(x), pf cs(x). not cs(x):-not male(x), pf cs(x). % contrapositive

From to ProbLog Translation to ProbLog x : cs(x) male(x) : 0.8 cs(x) female(x) : 0.2 0.8::pf cs(x). % probabilistic fact male(x):-cs(x), pf cs(x). not cs(x):-not male(x), pf cs(x). % contrapositive female(x):-cs(x), not(pf cs(x)). not cs(x):-not female(x), not(pf cs(x)).

From to ProbLog Translation to ProbLog x : male(x) female(x) false cs(floris)

From to ProbLog Translation to ProbLog x : male(x) female(x) false cs(floris) not female(x):-male(x). not male(x):-female(x).

From to ProbLog Translation to ProbLog x : male(x) female(x) false cs(floris) not female(x):-male(x). not male(x):-female(x). cs(floris).

From to ProbLog SLD is incomplete and depth first Stickel: ancestor resolution makes it complete While proving inconsistency for p(t) A subgoal not p(t) is inconsistent with p(t) Hence can be dropped. And similar for not p(t) and p(t) Stickel: iterative deepening avoids infinite branches Solution Modify the SLD engine Not so different from tabling Complicates tabling!

From to ProbLog Some Formulas Total choice: Making a decision for every probabilistic fact Corresponds to selection of a belief set normalized probability of a total choice prob(s) s: a total choice Cons: total choices that result in consistent belief set InCons: total choices that result in inconsistent belief set prob(s) = prob(s)/ s Cons prob(s) for s Cons = prob(s)/1 s InCons prob(s) prob(s) = 0 otherwise Constraint on probability distribution

From to ProbLog Minimal probability of a query Probability distribution is not unique pf (a) : 0.7. p(a) : pf (a). The empty total choice (pf(a) is false) has probability 0.3 Allows for two models: and {p(a)} Hence the probability of a query Q has a minimum and a maximum. Maximum probability of Q is minimum probability of Q Theorem: Minimal probability of a query min µ ˆM µ(q) = s =Q prob(s) where s = Q means that Q can be proven in s

From to ProbLog Proving inconsistency by running?- false. A naive way false:-male(x), not male(x). false:-female(x), not female(x). false:-cs(x), not cs(x). A lot of redundant proofs Starting from negative clauses false:-male(x), female(x). Starting from positive clauses false:-not male(floris), pf fl(floris). false:-not female(floris), not(pf fl(floris)). false:-not cs(floris).

From to ProbLog Answering queries Proofs are partial choices The formula/bdd φ represents all total choices that extend those partial choices This includes inconsistent total choices With ψ the formula/bdd for the query false, φ ψ corresponds to the proofs made up from consistent total choices.

Outline ProbLog From to ProbLog 1 ProbLog 2 3 From to ProbLog 4 5

From to ProbLog Friends of friends x, y, z, pf 1(x, y, z) (Fr(x, y) Fr(y, z) Fr(y, z)) x, pf 2(x) (Smokes(x) Cancer(x)) x, y, pf 3(x, y) (Fr(x, y) (Smokes(x) Smokes(y))) Experiments with growing domain size and depth bound

From to ProbLog Friends of friends 3500 3000 Proof Collection (ms) 2500 2000 1500 1000 500 0 10 20 30 40 50 60 70 80 90 100 Domain Size

From to ProbLog Entity resolution An MLN application Parag Singla and Pedro Domingos, Entity resolution with Markov Logic, in ICDM 2006, pp. 572 582. A database author(paper, author) title(paper, title) venue(paper, venue)

From to ProbLog Entity resolution An MLN application Parag Singla and Pedro Domingos, Entity resolution with Markov Logic, in ICDM 2006, pp. 572 582. A database author(paper, author) title(paper, title) venue(paper, venue) haswordauthor(author, word) haswordtitle(title, word) haswordvenue(venue, word) 1295 bibliographic entries involving roughly 90 authors, 400 venues, 200 titles and 2700 words

From to ProbLog Closed World Assumption on the Database negation as finite failure (calls have to be ground!) not author(b,a):-not(author(b,a)). not title(b,t):-not(title(b,t)). not venue(b,v):-not(venue(b,v)). not haswordauthor(a,w):-not(haswordauthor(a,w)). not haswordtitle(t,w):-not(haswordtitle(t,w)). not haswordvenue(v,w):-not(haswordvenue(v,w)).

Clauses like ProbLog From to ProbLog Publications can be the same because they share authors Authors can be the same because they share publications Authors can be the same because their names share words Titles can be the same because their names share words Venues can be the same because their names share words

From to ProbLog Entity Resolution 2500000 2000000 Proof Collection (ms) 1500000 1000000 500000 0 1 2 3 4 5 Depth Bound

Outline ProbLog From to ProbLog 1 ProbLog 2 3 From to ProbLog 4 5

ProbLog From to ProbLog Elegant formalism. Real probabilities. Can express Nilssons s logic: F : p F : 1 p Theorem proving for probabilistic logic # proofs typically exponential in depth of search Entitity resolution application beyond current ProbLog implementation (normalisation requires to run?-false.) Avoid redundancy and inconsistency in theory Would be interesting to develop a sampling approach