Brief Tutorial on Probabilistic Databases

Size: px
Start display at page:

Download "Brief Tutorial on Probabilistic Databases"

Transcription

1 Brief Tutorial on Probabilistic Databases Dan Suciu University of Washington Simons 206

2 About This Talk Probabilistic databases Tuple-independent Query evaluation Statistical relational models Representation, learning, inference in FO Reasoning/learning = lifted inference Sources: Book 20 [S.,Olteanu,Re,Koch] Upcoming F&T survey [van Den Broek,S] Simons 206 2

3 Background: Relational databases Smoker Friend X Y X Z Database D = Alice 2009 Alice 200 Bob 2009 Carol 200 Alice Alice Bob Carol Bob Carol Carol Bob Query: Q(z) = x (Smoker(x, 2009 ) Friend(x,z)) Q(D) = Z Bob Carol Constraint: Q = x (Smoker(x, 200 ) Friend(x, Bob )) Q(D) = true

4 Probabilistic Database Probabilistic database D: x y P Possible worlds semantics: p p 2 p 3 (-p )p 2 p 3 x y x a b xy a a b2 a b2 a2 b2 a2 b2 a2 y x y b x a b b2 a2 a b2 a b p a b2 p 2 a2 b2 p 3 Σ world P D (world) = P D (Q) = Σ world = Q P D (world) y x b2 a y x b a (-p )(-p 2 )(-p 3 ) y x y b2

5 Outline Model Counting Small Dichotomy Theorem Dichotomy Theorem Query Compilation Conclusions, Open Problems Simons 206 5

6 Model Counting Given propositional Boolean formula F, compute the number of models #F Example: F = (X X2) (X2 X3) (X3 X) #F = 4 [Valiant 79] #P-hard, even for 2CNF X X2 X3 F

7 Probability of a Formula Each variable X has a probability p(x); P(F) = probability that F=true, when each X is set to true independently Example: F = (X X2) (X2 X3) (X3 X) P(F) = (-p)*p2*p3 + p*(-p2)*p3 + p*p2*(-p3) + p*p2*p3 If p(x) = ½ for all X, then P(F) = #F / 2 n X X2 X3 F

8 Algorithms for Model Counting [Gomes, Sabharwal, Selman 2009] Based on full search DPLL: Shannon expansion. #F = #F[X=0] + #F[X=] Caching. Store #F, look it up later Components. If Vars(F) Vars(F2) = : #(F F2) = #F * #F2 Simons 206 8

9 Relational Representation (/2) Fix an FO sentence Q and a domain Δ Ground atom à Boolean variable Definition The lineage F Q,Δ is: F Q,Δ = Q if Q = ground atom F Q Q2,Δ = F Q,Δ F Q2,Δ same for, à, F x.q,δ = a Δ F Q[a/x],Δ F x.q,δ = a Δ F Q[a/x],Δ Q = x (Student(x) Person(x)) F Q,[n] = (Student() Person()) (Student(n) Person(n))

10 Relational Representation (2/2) For a database D, denote F Q,D = F Q,domain(D) where all tuples not in D are set to false F Q,Δ or F Q,D is called the lineage or the provenance or the grounding of Q

11 Weighted FO Model Counting Probabilities of ground atoms in D = probabilities of Boolean variables p(x) Fix Q. Given D, compute P(F Q,D ) x y P a b p a b2 p 2 a2 b2 p 3 Simple fact: P D (Q) = P(F Q,D ) Simons 206

12 This Talk Fix a query Q: What is the complexity of P D (Q) in the size of D? What is the best runtime of a DPLL-based algorithm on F Q,D in the size of D? Simons 206 2

13 Discussion: Correlations [Domingos&Richardson 06] MLN = popular FO framework for Machine Learning tasks Lise Getoor s talk today Smoker(x) Friends(x,y) àsmoker(y), weight = 2.3 Theorem [Jha,S ] One can construct effectively D s.t. P MLN, Δ (Q) = P D (Q Γ) = P D (Q Γ) / P D (Γ)

14 Outline Model Counting Small Dichotomy Theorem Dichotomy Theorem Query Compilation Conclusions, Open Problems Simons 206 4

15 Background: Query Plans Q(z) = R(z,x), S(x,y),T(y,u), u=23 Query plan = expressions over the input relation Operators = selection, projection, join, union, difference Π z x σ u=23 y R(z,x) S(x,y) T(y,u)

16 Boolean query An Example Q() = R(x), S(x,y) = x y(r(x) S(x,y)) P D (Q) = - {- p*[ -(-q)*(-q2) ]} * {- p2*[ -(-q3)*(-q4)*(-q5) ] } One can compute P D (Q) in PTIME in the size of the database D R x a a2 a3 P p p2 p3 S x y P a b q a b2 q2 a2 b3 q3 a2 b4 q4 a2 b5 q5

17 Extensional Plans Modify each operator to compute output probabilities, assuming independent events Simons 206 7

18 Q() = R(x), S(x,y) P(Q) = [-p *(-(-q )*(-q 2 ))] *[- p 2 *(-(-q 3 )*(-q 4 )*(-q 5 ))] -(-p q )(-p q 2 )(-p 2 q 3 )(-p 2 q 4 )(-p 2 q 5 ) -{-p [-(-q )(-q 2 )]}* {-p 2 [-(-q 4 )(-q 5 ) (-q 6 )]} p q p q 2 Π Φ Wrong Π Φ Right p 2 q 3 p 2 q 4 p 2 q 5 x y P -(-q )(-q 2 ) -(-q 4 )(-q 5 ) (-q 6 ) a b q x P a b 2 q 2 Π x a p a 2 p 2 a 3 p 3 R(x) S(x,y) a 2 b 3 q 3 a 2 b 4 q 4 a 2 b 5 q 5 R(x) S(x,y) 8

19 Safe Queries Definition A plan for Q is safe if it computes the probabilities correctly. Q is safe if it has a safe plan. In AI, computing Q using a safe plan is called lifted inference Safe query = Liftable query If Q is safe then P D (Q) is in PTIME

20 Unsafe Queries R X P x p x2 p2 S X Y x y x y2 x2 y2 H 0 () = R(x), S(x,y), T(y) T Y y y2 P q q2 R P P S Wrong T Theorem. [Dalvi&S.2004] P D (H 0 ) is #P-hard However:. This plan computes an upper bound [VLDB 5] 2. Use samples on T [VLDB 6] Wolfgang Gatterbauer s talk today

21 Hierarchical Queries Fix Q; at(x) = set of atoms (=literals) containing the variable x Definition Q is hierarchical if forall variables x, y: at(x) at(y) or at(x) at(y) or at(x) at(y) = Hierarchical Q() = R(x,y), S(x,z) Non-hierarchical H 0 () = R(x), S(x,y), T(y) y R x S z x R S y T 2

22 The Small Dichotomy Theorem Non-repeating Conjunctive Query = = Conjunctive Query without self-joins = Simple conjunctive query [Dalvi&S.04] Theorem Let Q be a non-repeating CQ If Q is hierarchical, then P D (Q) is in PTIME. If Q is not hierarchical then P D (Q) is #P-hard. By duality, the same holds for a non-repeating clause

23 Summary so Far Complexity of P D (Q) PTIME Non-repeating CQ Non-repeating clause Hierarchical #P - hard Non-hierarchical Simons

24 Outline Model Counting Small Dichotomy Theorem Dichotomy Theorem Query Compilation Conclusions, Open Problems Simons

25 The Rules for Lifted Inference Preprocess Q (omitted from this talk; see book), then apply these rules (some have preconditions) P( Q) = P(Q) negation P(Q Q2) = P(Q)P(Q2) P(Q Q2) = ( P(Q))( P(Q2)) P( z Q) = Π a Domain ( P(Q[a/z]) P( z Q) = Π a Domain P(Q[a/z] Independent join / union Independent project P(Q Q2) = P(Q) + P(Q2) - P(Q Q2) P(Q Q2) = P(Q) + P(Q2) - P(Q Q2) Inclusion/ exclusion

26 FO un = Unate FO An FO sentence is unate if: Negations occur only on atoms Every relational symbol R either occurs only positively, or only negatively FO un = FO restricted to unate sentences Simons

27 Dichotomy Theorem [Dalvi&S 2] Theorem For any Q in * FO un (or * FO un ) If rules succeed, then P D (Q) in PTIME in D If rules fail, then P D (Q) is #P hard in D Note: Unions of Conjunctive queries (UCQ) is essentially * FO un

28 Example: Liftable Query Q J () = S(x,y ), R(y ), S(x 2,y 2 ), T(y 2 ) = [S(x,y ),R(y )] [S(x 2,y 2 ),T(y 2 )] Q Q 2 P(Q J ) = P(Q ) + P(Q 2 ) - P(Q Q 2 ) PTIME PTIME (have (have seen seen before) already) Q Q 2 = y [S(x,y),R(y) S(x 2,y)),T(y)] y = y = y2 P(Q Q 2 ) = = Π b Domain ( P[S(x,b),R(b) S(x 2,b)),T(b)]) = Π b Domain ( P[S(x,b)] * P[R(b) T(b)]) = etc Runtime = O(n 2 ). Simons

29 Example: Liftable Query Q J = x y x 2 y 2 (S(x,y ) R(y ) S(x 2,y 2 ) T(y 2 )) = [ x y S(x,y ) R(y )] [ x 2 y 2 S(x 2,y 2 ) T(y 2 )] Q Q 2 P(Q J ) = P(Q ) + P(Q 2 ) - P(Q Q 2 ) PTIME PTIME (have (have seen seen before) already) y = y = y2 Q Q 2 = y [( x S(x,y) R(y)) ( x 2 S(x 2,y)) T(y)] = y [ x S(x,y) (R(y) T(y))] P(Q Q 2 ) = Π b Domain P[ x.s(x,b) (R(b) T(b))] = etc Runtime = O(n 2 ). Simons

30 Unliftable Queries H k H 0 = R(x) S(x,y) T(y) Will drop to reduce clutter H = [R(x 0 ) S(x 0,y 0 )] [S(x,y ) T(y )] H 2 = [R(x 0 ) S (x 0,y 0 )] [S (x,y ) S 2 (x,y )] [S 2 (x 2,y 2 ) T(y 2 )] H 3 = [R(x 0 ) S (x 0,y 0 )] [S (x,y ) S 2 (x,y )] [S 2 (x 2,y 2 ) S 3 (x 2,y 2 )] [S 3 (x 3,y 3 ) T(y 3 )]... Every H k, k is hierarchical Theorem. [Dalvi&S 2] Every query H k is #P-hard Simons

31 A Closer Look at H k If we drop any one clause à in PTIME H 3 = [R(x 0 ) S (x 0,y 0 )] [S (x,y ) S 2 (x,y )] [S 2 (x 2,y 2 ) S 3 (x 2,y 2 )] [S 3 (x 3,y 3 ) T(y 3 )] Independent join

32 Summary so Far Complexity of P D (Q) Non-repeating CQ Non-repeating clauses * FO un * FO un PTIME Hierarchical Rules succeed #P - hard Non-hierarchical Rules fail Simons

33 Outline Model Counting Small Dichotomy Theorem Dichotomy Theorem Query Compilation Conclusions, Open Problems Simons

34 Lifted v.s. Grounded Inference To compute P D (Q): compute the lineage F Q,D use DPLL-based algorithm for P(F Q,D ) For which queries Q can this be in PTIME? [Huang&Darwiche 2005] The trace of a DPLL-based algorithm is decision-dnnf DL

35 Decision-DNNF Def [Darwiche] A Decision-DNNF is a rooted DAG where: Internal nodes are decision or Sink nodes are 0 or Children of have disjoint sets of variables Every root-to-sink path reads each variable at most once 0 X Y 0 0 U 0 Z

36 Notations H k0 = x y R(x) S (x,y) H k = x y S (x,y) S 2 (x,y) H k2 = x y S 2 (x,y) S 3 (x,y) H kk = x y S k (x,y) T(y) f(z 0, Z,, Z k ) = a Boolean function Q = f(h k0, H k,, H kk ) Example: f = Z 0 Z Z k then f(h k0, H k,, H kk ) = H k 36

37 Easy/Hard Queries [Beame 4] Theorem Let Q = f(h k0, H k,, H kk ) where f(z 0, Z,, Z k ) is a monotone Boolean function. Any Decision-DNNF for F Q,[n] has size 2 Ω( n). P D (Q) is in PTIME iff μ Q (0, ) = 0 μ = Möbius function of the implicates lattice of Q Consequence: Any DPLL-based algorithm takes time 2 Ω( n), even if the query is in PTIME! 37

38 Cancellations Q W = (H 30 H 32 ) (H 30 H 33 ) (H 3 H 33 ) H 30 = x y R(x) S (x,y) H 3 = x y S (x,y) S 2 (x,y) H 32 = x y S 2 (x,y) S 3 (x,y) H 33 = x y S 3 (x,y) T(y) P(Q W ) = P(H 30 H 32 ) + P(H 30 H 33 ) + P(H 3 H 33 ) + P(H 30 H 32 H 33 ) P(H 30 H 3 H 33 ) P(H 30 H 3 H 32 H 33 ) + P(H 30 H 3 H 32 H 33 ) = H 3 (hard!) Also = H 3 P(Q W ) is in PTIME

39 The CNF Lattice Q W = (H 30 H 32 ) (H 30 H 33 ) (H 3 H 33 ) Definition. The DNF lattice of Q = Q Q 2 is: Elements are prime implicants Order is implication H 30 H 32 H 30 H 33 H 3 H 33 H 30 H 32 H 33 H 30 H 3 H 33 H 30 H 3 H 32 H 33 Nodes in PTIME, Nodes #P hard.

40 The Möbius Function Def. The Möbius function: μ(, ) = μ(u, ) = - Σ u < v μ(v, ) Möbius Inversion Formula: P(Q) = - Σ Qi < μ(qi, ) P(Qi) Simons

41 The Möbius Function Def. The Möbius function: μ(, ) = μ(u, ) = - Σ u < v μ(v, ) Möbius Inversion Formula: P(Q) = - Σ Qi < μ(qi, ) P(Qi) Simons 206 4

42 The Möbius Function Def. The Möbius function: μ(, ) = μ(u, ) = - Σ u < v μ(v, ) Möbius Inversion Formula: P(Q) = - Σ Qi < μ(qi, ) P(Qi) Simons

43 The Möbius Function Def. The Möbius function: μ(, ) = μ(u, ) = - Σ u < v μ(v, ) Möbius Inversion Formula: P(Q) = - Σ Qi < μ(qi, ) P(Qi) Simons

44 The Möbius Function Def. The Möbius function: μ(, ) = μ(u, ) = - Σ u < v μ(v, ) Möbius Inversion Formula: P(Q) = - Σ Qi < μ(qi, ) P(Qi) Simons

45 Def. The Möbius function: The Möbius Function μ(, ) = μ(u, ) = - Σ u < v μ(v, ) Möbius Inversion Formula: P(Q) = - Σ Qi < μ(qi, ) P(Qi) Simons

46 Summary nr CQ nr clause * FO un f(h k0,,h kk ) * FO un PTIME Hierarchical Rules succeed μ(0,) = 0 #P - hard DPLL Non-hierarchical Rules fail μ(0,) 0 2 Ω( n) Simons

47 Möbius Über Alles Non-hierarchical H 0 * FO un or * FO un ( UCQ) #P-hard hierarchical H H 2 PTIME Q W Q 9 H 3 Poly-size FBDD, dec-dnnf Poly-size OBDD,SDD = = inversion-free Q J Q V Read Once Q U Open

48 Outline Model Counting Small Dichotomy Theorem Dichotomy Theorem Query Compilation Conclusions, Open Problems Simons

49 Summary Query evaluation on probabilistic databases = weighted model counting Each query Q defines a different WMC problem Dichotomy: depending on Q, WMC is in PTIME or #P-hard Using a DPLL-based algorithm on the grounded Q is suboptimal Simons

50 Discussion: Extensions Open problems: extend the dichotomy theorem to: Mixed probabilistic/deterministic relations Functional dependencies Interpreted predicates: <, Open problem: complexity of MAP Simons

51 Discussion: Symmetric Relations A relation R is symmetric if all ground tuples have the same probability [van den Broeck 4] For every Q in FO 2, P(Q) is in PTIME on symmetric databases. [Beame 5] Hardness results. In general the complexity is open Simons 206 5

52 Discussion: Negation [Fink&Olteanu 4] Restrict FO to non-repeating exrpessions Theorem Hierarchical expressions are in PTIME, non-hierarchical are #P-hard. [Gribkoff,S.,v.d.Broeck 4] * FO or * FO Need resolution compute some queries with negation Open problem: completeness/dichotomy? Dan Olteanu s talk next Simons

53 Simons

54 Thank You! Simons

55 BACKUP Simons

56 Weighted Model Counting Each variable X has a weight w(x); Weight of a model = X=true w(x) WMC(F) = sum of weights of models of F Example: F = (X X2) (X2 X3) (X3 X) WMC(F) = w2*w3 + w*w3 + w*w2 + w*w2*w3 Set w(x) = : then WMC(F) = #F X X2 X3 F

57 Probability of a Formula Each variable X has a probability p(x); P(F) = probability that F=true, when each X is set to true independently Example: F = (X X2) (X2 X3) (X3 X) P(F) = (-p)*p2*p3 + p*(-p2)*p3 + p*p2*(-p3) + p*p2*p3 Set w(x) = p(x)/(-p(x)) Then P(F) = WMC(F) / Z, where Z = Π X (+w(x)) X X2 X3 F

58 Discussion: Dichotomy for #SAT [Creignou&Hemann 96] consider model counting #F where the formula F is given by generalized clauses Dichotomy Theorem: #F is in PTIME when all clauses are affine, #P-hard otherwise Not helpful in our context: If Q is a UCQ, then the clauses of F Q,D are of the form X Y Z and are not affine; But P(F Q,D ) is not always #P-hard, because Q restricts the struture of the clauses Simons

59 Warm-up: Weights Replace probabilities with weights: R: x y w S: y w a b w b v a2 b w 2 b2 v 2 P D (world) = Weight(world)/Z Z = Σ world Weight(world ) a3 b2 w 3 b3 v 3 Weight of a possible world: R: x y y Weight( ) = w w 2 v 2 a b b2 a2 b S: Z = (+v ) (+v 2 ) (+v 3 ) (+w ) (+w 2 ) (+w 3 )

60 Markov Logic Networks Replace probabilities with weights: R: S: x y w y w Add soft constraints: R(x,y) S(y) w 4 a b w a2 b w 2 a3 b2 w 3 b v b2 v 2 b3 v 3

61 Markov Logic Networks Replace probabilities with weights: R: S: x y w y w Add soft constraints: R(x,y) S(y) w 4 a b w a2 b w 2 a3 b2 w 3 b v b2 v 2 b3 v 3 Weight of a possible world: R: S: x y y Weight( ) = w w 3 v w 4 w 4 w 4 w 4 w 4 a b b a3 b2

62 Markov Logic Networks Replace probabilities with weights: Add soft constraints: R: S: R(x,y) S(y) w 4 x y w y w a b w b v P MLN (world) = Weight(world)/Z a2 b w 2 a3 b2 w 3 b2 v 2 b3 v 3 Z = Σ world Weight(world ) Weight of a possible world: R: S: x y y Weight( ) = w w 3 v w 4 w 4 w 4 w 4 w 4 a b b a3 b2

63 Markov Logic Networks Replace probabilities with weights: Add soft constraints: R: S: R(x,y) S(y) w 4 x y w y w a b w b v P MLN (world) = Weight(world)/Z a2 b w 2 a3 b2 w 3 b2 v 2 Z = Σ b3 v world Weight(world ) 3 Z = (+v) (+v2) (+v3) Weight of a possible world: R: x y y Weight( ) = w w 3 v w 4 w 4 w 4 w 4 w 4 a b b a3 b2 S: (+w ) (+w 2 ) (+w 3 ) Z is #P-hard to compute

64 Discussion Weights v.s. probabilities Soft constraints with probabilities may be inconsistent Soft constraints with weights ( 0, ) always consistent Weight values have no semantics! Learned from training data Inconsistent: S(x): p=0.5 S(x) R(x): p=0.9 Consistent: S(x): w=5 S(x) R(x): w=9 Simons

65 MLN s to Tuple-Independent PDB Replace probabilities with weights: Soft constraint: R: S: R(x,y) S(y) w 4 x y w y w Replace with hard constraint: a b w a2 b w 2 a3 b2 w 3 b v b2 v 2 b3 v 3

66 MLN s to Tuple-Independent PDB Replace probabilities with weights: R: x y w a b w a2 b w 2 a3 b2 w 3 S: y w b v b2 v 2 b3 v 3 Soft constraint: R(x,y) S(y) w 4 Replace with hard constraint: Γ x y A(x,y) (R(x,y) S(y)) New relation A: x y w a b w 4 a b2 w 4 a b3 w 4 a b w 4

67 MLN s to Tuple-Independent PDB Replace probabilities with weights: R: x y w a b w a2 b w 2 a3 b2 w 3 R: x S: y w b v b2 v 2 b3 v 3 Soft constraint: a b b a b Weight( ) = w w 3 v w 4 w 4 w 4 w 4 w 4 a3 y b2 S: y A: x a a2 a2 a3 y b2 b b2 b R(x,y) S(y) w 4 Replace with hard constraint: Γ x y A(x,y) (R(x,y) S(y)) New relation A: x y w a b w 4 a b2 w 4 a b3 w 4 a b w 4

68 MLN s to Tuple-Independent PDB Replace probabilities with weights: R: x y w a b w a2 b w 2 a3 b2 w 3 R: x y S: y w b v b2 v 2 b3 v 3 Soft constraint: a b b a b Weight( ) = w w 3 v w 4 w 4 w 4 w 4 w 4 a3 b2 S: y A: x a y b2 a2 b Theorem: P MLN (Q) = a2 Pb2 D (Q Γ) a3 b R(x,y) S(y) w 4 Replace with hard constraint: Γ x y A(x,y) (R(x,y) S(y)) New relation A: x y w a b w 4 a b2 w 4 a b3 w 4 a b w 4

69 Replace with Improved Translation A clause remains a clause! New weight is w 4 - Probability may be < 0!!! That s OK Theorem: P MLN (Q) = P D (Q Γ) Soft constraint: R(x,y) S(y) w 4 Replace with hard constraint: Γ x y A(x,y) (R(x,y) S(x)) New relation A: x y w a b w 4 - a b2 w 4 - a b3 w 4 - a b w 4 -

70 [VLDB 206] SlimShot = SafePlans + Sample Accuracy = f(number of Samples) Lower is better SlimShot VLDB 206 SlimShot needs N 200 for Accuracy=0%

71 SlimShot Dataset: Smokers Runtime SlimShot Runtime = f(n), where N=0000 Runtime = f(precision)

72 Dataset: Smokers Dataset: Drinkers Scalability SlimShot

73 Duality The dual of a query Q is the formula obtained by the following transformations: / à / / à / Q and its dual have the same complexity Query: H 0 () = R(x), S(x,y), T(y) Dual query: H 0 = x y (R(x) S(x,y) T(y)) x y (R(x) S(x,y) T(y)) Simons

74 S.R Example: Liftable Clause Q = x y S(x,y) R(y) = y ( x S(x,y) R(y)) P(Q) = Π b Domain P( x S(x,b) R(b)) Indep. P(Q) = Π b Domain [ P( x S(x,b)) ( P(R(b)))] Indep. or: P(X Y) = = P( X Y) = P(X) (-P(Y)) P(Q) = Π b Domain [ ( Π a Domain (-P(S(a,b)))) ( P(R(b)))] Runtime = O(n 2 ). Lookup Lookup the the probabilities probabilitiesin in D Indep. Simons

Outline. Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC

Outline. Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC Outline Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC Part 5: Completeness of Lifted Inference Part 6: Query Compilation Part 7:

More information

Outline. Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC

Outline. Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC Outline Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC Part 5: Completeness of Lifted Inference Part 6: Query Compilation Part 7:

More information

First-Order Knowledge Compilation for Probabilistic Reasoning

First-Order Knowledge Compilation for Probabilistic Reasoning First-Order Knowledge Compilation for Probabilistic Reasoning Guy Van den Broeck based on joint work with Adnan Darwiche, Dan Suciu, and many others MOTIVATION 1 A Simple Reasoning Problem...? Probability

More information

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation Dichotomy for Non-Repeating Queries with Negation Queries with Negation in in Probabilistic Databases Robert Dan Olteanu Fink and Dan Olteanu Joint work with Robert Fink Uncertainty in Computation Simons

More information

Lifted Probabilistic Inference in Relational Models

Lifted Probabilistic Inference in Relational Models Lifted Probabilistic Inference in Relational Models Guy Van den Broeck Dan Suciu KU Leuven U. of Washington Tutorial UAI 2014 1 About the Tutorial Slides available online. Bibliography is at the end. Your

More information

Towards Deterministic Decomposable Circuits for Safe Queries

Towards Deterministic Decomposable Circuits for Safe Queries Towards Deterministic Decomposable Circuits for Safe Queries Mikaël Monet 1 and Dan Olteanu 2 1 LTCI, Télécom ParisTech, Université Paris-Saclay, France, Inria Paris; Paris, France mikael.monet@telecom-paristech.fr

More information

Knowledge Compilation Meets Database Theory : Compiling Queries to Decision Diagrams

Knowledge Compilation Meets Database Theory : Compiling Queries to Decision Diagrams Knowledge Compilation Meets Database Theory : Compiling Queries to Decision Diagrams Abhay Jha Computer Science and Engineering University of Washington, WA, USA abhaykj@cs.washington.edu Dan Suciu Computer

More information

Lifted Probabilistic Inference: A Guide for the Database Researcher

Lifted Probabilistic Inference: A Guide for the Database Researcher Lifted Probabilistic Inference: A Guide for the Database Researcher Eric Gribkoff University of Washington eagribko@cs.uw.edu Dan Suciu University of Washington suciu@cs.uw.edu Guy Van den Broeck UCLA,

More information

Computing Query Probability with Incidence Algebras Technical Report UW-CSE University of Washington

Computing Query Probability with Incidence Algebras Technical Report UW-CSE University of Washington Computing Query Probability with Incidence Algebras Technical Report UW-CSE-10-03-02 University of Washington Nilesh Dalvi, Karl Schnaitter and Dan Suciu Revised: August 24, 2010 Abstract We describe an

More information

Model Counting of Query Expressions: Limitations of Propositional Methods

Model Counting of Query Expressions: Limitations of Propositional Methods Model Counting of Query Expressions: Limitations of Propositional Methods Paul Beame University of Washington beame@cs.washington.edu Jerry Li MIT jerryzli@csail.mit.edu Dan Suciu University of Washington

More information

Outline. Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC

Outline. Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC Outline Part 1: Motivation Part 2: Probabilistic Databases Part 3: Weighted Model Counting Part 4: Lifted Inference for WFOMC Part 5: Completeness of Lifted Inference Part 6: Quer Compilation Part 7: Smmetric

More information

Probabilistic Theorem Proving. Vibhav Gogate (Joint work with Pedro Domingos)

Probabilistic Theorem Proving. Vibhav Gogate (Joint work with Pedro Domingos) Probabilistic Theorem Proving Vibhav Gogate (Joint work with Pedro Domingos) Progress to Date First-order variable elimination [Poole, 2003; de Salvo Braz, 2007; etc.] Lifted belief propagation [Singla

More information

arxiv: v1 [cs.ai] 21 Sep 2014

arxiv: v1 [cs.ai] 21 Sep 2014 Oblivious Bounds on the Probability of Boolean Functions WOLFGANG GATTERBAUER, Carnegie Mellon University DAN SUCIU, University of Washington arxiv:409.6052v [cs.ai] 2 Sep 204 This paper develops upper

More information

Scalable Uncertainty Management

Scalable Uncertainty Management Scalable Uncertainty Management 05 Query Evaluation in Probabilistic Databases Rainer Gemulla Jun 1, 2012 Overview In this lecture Primer: relational calculus Understand complexity of query evaluation

More information

Lower Bounds for Exact Model Counting and Applications in Probabilistic Databases

Lower Bounds for Exact Model Counting and Applications in Probabilistic Databases Lower Bounds for Exact Model Counting and Applications in Probabilistic Databases Paul Beame Jerry Li Sudeepa Roy Dan Suciu Computer Science and Engineering University of Washington Seattle, WA 98195 {beame,

More information

Computing Query Probability with Incidence Algebras

Computing Query Probability with Incidence Algebras Computing Query Probability with Incidence Algebras Nilesh Dalvi Yahoo Research Santa Clara, CA, USA ndalvi@yahoo-inc.com Karl Schnaitter UC Santa Cruz Santa Cruz, CA, USA karlsch@soe.ucsc.edu Dan Suciu

More information

Queries and Materialized Views on Probabilistic Databases

Queries and Materialized Views on Probabilistic Databases Queries and Materialized Views on Probabilistic Databases Nilesh Dalvi Christopher Ré Dan Suciu September 11, 2008 Abstract We review in this paper some recent yet fundamental results on evaluating queries

More information

Lifted Inference: Exact Search Based Algorithms

Lifted Inference: Exact Search Based Algorithms Lifted Inference: Exact Search Based Algorithms Vibhav Gogate The University of Texas at Dallas Overview Background and Notation Probabilistic Knowledge Bases Exact Inference in Propositional Models First-order

More information

Symmetric Weighted First-Order Model Counting

Symmetric Weighted First-Order Model Counting Symmetric Weighted First-Order Model Counting ABSTRACT Paul Beame University of Washington beame@cs.washington.edu Eric Gribkoff University of Washington eagribko@cs.washington.edu The FO Model Counting

More information

On First-Order Knowledge Compilation. Guy Van den Broeck

On First-Order Knowledge Compilation. Guy Van den Broeck On First-Order Knowledge Compilation Guy Van den Broeck Beyond NP Workshop Feb 12, 2016 Overview 1. Why first-order model counting? 2. Why first-order model counters? 3. What first-order circuit languages?

More information

Open-World Probabilistic Databases. Guy Van den Broeck

Open-World Probabilistic Databases. Guy Van den Broeck Open-World Probabilistic Databases Guy Van den Broeck GCAI Oct 21, 2017 Overview 1. Why probabilistic databases? 2. How probabilistic query evaluation? 3. Why open world? 4. How open-world query evaluation?

More information

Query Evaluation on Probabilistic Databases. CSE 544: Wednesday, May 24, 2006

Query Evaluation on Probabilistic Databases. CSE 544: Wednesday, May 24, 2006 Query Evaluation on Probabilistic Databases CSE 544: Wednesday, May 24, 2006 Problem Setting Queries: Tables: Review A(x,y) :- Review(x,y), Movie(x,z), z > 1991 name rating p Movie Monkey Love good.5 title

More information

A Relaxed Tseitin Transformation for Weighted Model Counting

A Relaxed Tseitin Transformation for Weighted Model Counting A Relaxed Tseitin Transformation for Weighted Model Counting Wannes Meert, Jonas Vlasselaer Computer Science Department KU Leuven, Belgium Guy Van den Broeck Computer Science Department University of California,

More information

Tractable Lineages on Treelike Instances: Limits and Extensions

Tractable Lineages on Treelike Instances: Limits and Extensions Tractable Lineages on Treelike Instances: Limits and Extensions Antoine Amarilli 1, Pierre Bourhis 2, Pierre enellart 1,3 June 29th, 2016 1 Télécom ParisTech 2 CNR CRItAL 3 National University of ingapore

More information

SlimShot: Probabilistic Inference for Web-Scale Knowledge Bases

SlimShot: Probabilistic Inference for Web-Scale Knowledge Bases SlimShot: Probabilistic Inference for Web-Scale Knowledge Bases Eric Gribkoff University of Washington eagribko@cs.washington.edu Dan Suciu University of Washington suciu@cs.washington.edu ABSTRACT Increasingly

More information

Algebraic Model Counting

Algebraic Model Counting Algebraic Model Counting Angelika Kimmig a,, Guy Van den Broeck b, Luc De Raedt a a Department of Computer Science, KU Leuven, Celestijnenlaan 200a box 2402, 3001 Heverlee, Belgium. b UCLA Computer Science

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

KU Leuven Department of Computer Science

KU Leuven Department of Computer Science Implementation and Performance of Probabilistic Inference Pipelines: Data and Results Dimitar Shterionov Gerda Janssens Report CW 679, March 2015 KU Leuven Department of Computer Science Celestijnenlaan

More information

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE COMP 60332 Two hours Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Automated Reasoning and Verification Date: Wednesday 30th

More information

A Toolbox of Query Evaluation Techniques for Probabilistic Databases

A Toolbox of Query Evaluation Techniques for Probabilistic Databases 2nd Workshop on Management and mining Of UNcertain Data (MOUND) Long Beach, March 1st, 2010 A Toolbox of Query Evaluation Techniques for Probabilistic Databases Dan Olteanu, Oxford University Computing

More information

GAV-sound with conjunctive queries

GAV-sound with conjunctive queries GAV-sound with conjunctive queries Source and global schema as before: source R 1 (A, B),R 2 (B,C) Global schema: T 1 (A, C), T 2 (B,C) GAV mappings become sound: T 1 {x, y, z R 1 (x,y) R 2 (y,z)} T 2

More information

StarAI Full, 6+1 pages Short, 2 page position paper or abstract

StarAI Full, 6+1 pages Short, 2 page position paper or abstract StarAI 2015 Fifth International Workshop on Statistical Relational AI At the 31st Conference on Uncertainty in Artificial Intelligence (UAI) (right after ICML) In Amsterdam, The Netherlands, on July 16.

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Inference and Learning in Probabilistic Logic Programs using Weighted Boolean Formulas

Inference and Learning in Probabilistic Logic Programs using Weighted Boolean Formulas Under consideration for publication in Theory and Practice of Logic Programming 1 Inference and Learning in Probabilistic Logic Programs using Weighted Boolean Formulas DAAN FIERENS, GUY VAN DEN BROECK,

More information

Query answering using views

Query answering using views Query answering using views General setting: database relations R 1,...,R n. Several views V 1,...,V k are defined as results of queries over the R i s. We have a query Q over R 1,...,R n. Question: Can

More information

On the Role of Canonicity in Bottom-up Knowledge Compilation

On the Role of Canonicity in Bottom-up Knowledge Compilation On the Role of Canonicity in Bottom-up Knowledge Compilation Guy Van den Broeck and Adnan Darwiche Computer Science Department University of California, Los Angeles {guyvdb,darwiche}@cs.ucla.edu Abstract

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

Inference in Probabilistic Logic Programs using Weighted CNF s

Inference in Probabilistic Logic Programs using Weighted CNF s Inference in Probabilistic Logic Programs using Weighted CNF s Daan Fierens, Guy Van den Broeck, Ingo Thon, Bernd Gutmann, Luc De Raedt Department of Computer Science Katholieke Universiteit Leuven Celestijnenlaan

More information

Parallel-Correctness and Transferability for Conjunctive Queries

Parallel-Correctness and Transferability for Conjunctive Queries Parallel-Correctness and Transferability for Conjunctive Queries Tom J. Ameloot1 Gaetano Geck2 Bas Ketsman1 Frank Neven1 Thomas Schwentick2 1 Hasselt University 2 Dortmund University Big Data Too large

More information

The Veracity of Big Data

The Veracity of Big Data The Veracity of Big Data Pierre Senellart École normale supérieure 13 October 2016, Big Data & Market Insights 23 April 2013, Dow Jones (cnn.com) 23 April 2013, Dow Jones (cnn.com) 23 April 2013, Dow Jones

More information

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit: Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and

More information

Propositional and First Order Reasoning

Propositional and First Order Reasoning Propositional and First Order Reasoning Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p p Clause: disjunction of literals q \/ p \/ r given by

More information

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

Topics in Probabilistic and Statistical Databases. Lecture 9: Histograms and Sampling. Dan Suciu University of Washington

Topics in Probabilistic and Statistical Databases. Lecture 9: Histograms and Sampling. Dan Suciu University of Washington Topics in Probabilistic and Statistical Databases Lecture 9: Histograms and Sampling Dan Suciu University of Washington 1 References Fast Algorithms For Hierarchical Range Histogram Construction, Guha,

More information

Discrete Mathematics Fall 2018 Midterm Exam Prof. Callahan. Section: NetID: Multiple Choice Question (30 questions in total, 4 points each)

Discrete Mathematics Fall 2018 Midterm Exam Prof. Callahan. Section: NetID: Multiple Choice Question (30 questions in total, 4 points each) Discrete Mathematics Fall 2018 Midterm Exam Prof. Callahan Section: NetID: Name: Multiple Choice Question (30 questions in total, 4 points each) 1 Consider the following propositions: f: The student got

More information

Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae

Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae 1/15 Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae Sylvie Coste-Marquis Daniel Le Berre Florian Letombe Pierre Marquis CRIL, CNRS FRE 2499 Lens, Université d Artois,

More information

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

173 Logic and Prolog 2013 With Answers and FFQ

173 Logic and Prolog 2013 With Answers and FFQ 173 Logic and Prolog 2013 With Answers and FFQ Please write your name on the bluebook. You may have two sides of handwritten notes. There are 75 points (minutes) total. Stay cool and please write neatly.

More information

Basing Decisions on Sentences in Decision Diagrams

Basing Decisions on Sentences in Decision Diagrams Proceedings of the Twenty-Sixth AAAI Conference on Artificial Intelligence Basing Decisions on Sentences in Decision Diagrams Yexiang Xue Department of Computer Science Cornell University yexiang@cs.cornell.edu

More information

Uncertainty and Bayesian Networks

Uncertainty and Bayesian Networks Uncertainty and Bayesian Networks Tutorial 3 Tutorial 3 1 Outline Uncertainty Probability Syntax and Semantics for Uncertainty Inference Independence and Bayes Rule Syntax and Semantics for Bayesian Networks

More information

Compiling Knowledge into Decomposable Negation Normal Form

Compiling Knowledge into Decomposable Negation Normal Form Compiling Knowledge into Decomposable Negation Normal Form Adnan Darwiche Cognitive Systems Laboratory Department of Computer Science University of California Los Angeles, CA 90024 darwiche@cs. ucla. edu

More information

Logic and machine learning review. CS 540 Yingyu Liang

Logic and machine learning review. CS 540 Yingyu Liang Logic and machine learning review CS 540 Yingyu Liang Propositional logic Logic If the rules of the world are presented formally, then a decision maker can use logical reasoning to make rational decisions.

More information

Katholieke Universiteit Leuven Department of Computer Science

Katholieke Universiteit Leuven Department of Computer Science Inference in Probabilistic Logic Programs using Weighted CNF s Daan Fierens Guy Van den Broeck Ingo Thon Bernd Gutmann Luc De Raedt Report CW 607, June 2011 Katholieke Universiteit Leuven Department of

More information

Predicate Logic: Introduction and Translations

Predicate Logic: Introduction and Translations Predicate Logic: Introduction and Translations Alice Gao Lecture 10 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefler, and P. Van Beek 1/29 Outline Predicate

More information

Database design and implementation CMPSCI 645

Database design and implementation CMPSCI 645 Database design and implementation CMPSCI 645 Lectures 20: Probabilistic Databases *based on a tutorial by Dan Suciu Have we seen uncertainty in DB yet? } NULL values Age Height Weight 20 NULL 200 NULL

More information

Solutions to Sample Problems for Midterm

Solutions to Sample Problems for Midterm Solutions to Sample Problems for Midterm Problem 1. The dual of a proposition is defined for which contains only,,. It is For a compound proposition that only uses,, as operators, we obtained the dual

More information

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

A Unit Resolution Approach to Knowledge Compilation. 2. Preliminaries

A Unit Resolution Approach to Knowledge Compilation. 2. Preliminaries A Unit Resolution Approach to Knowledge Compilation Arindama Singh and Manoj K Raut Department of Mathematics Indian Institute of Technology Chennai-600036, India Abstract : Knowledge compilation deals

More information

Probabilistic Databases

Probabilistic Databases Probabilistic Databases Dan Olteanu (Oxford) London, November 2017 The National Archives Probabilistic Databases For the purpose of this introductory talk: Probabilistic data = Relational data + Probabilities

More information

1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology

More information

Sum-Product Networks: A New Deep Architecture

Sum-Product Networks: A New Deep Architecture Sum-Product Networks: A New Deep Architecture Pedro Domingos Dept. Computer Science & Eng. University of Washington Joint work with Hoifung Poon 1 Graphical Models: Challenges Bayesian Network Markov Network

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

First-Order Probabilistic Reasoning: Successes and Challenges. Guy Van den Broeck

First-Order Probabilistic Reasoning: Successes and Challenges. Guy Van den Broeck First-Order Probabilistic Reasoning: Successes and Challenges Guy Van den Broeck IJCAI Early Career Spotlight Jul 14, 2016 Overview 1. Why first-order probabilistic models? 2. Why first-order probabilistic

More information

Midterm: CS 6375 Spring 2015 Solutions

Midterm: CS 6375 Spring 2015 Solutions Midterm: CS 6375 Spring 2015 Solutions The exam is closed book. You are allowed a one-page cheat sheet. Answer the questions in the spaces provided on the question sheets. If you run out of room for an

More information

ECE473 Lecture 15: Propositional Logic

ECE473 Lecture 15: Propositional Logic ECE473 Lecture 15: Propositional Logic Jeffrey Mark Siskind School of Electrical and Computer Engineering Spring 2018 Siskind (Purdue ECE) ECE473 Lecture 15: Propositional Logic Spring 2018 1 / 23 What

More information

CSE 544: Principles of Database Systems

CSE 544: Principles of Database Systems CSE 544: Principles of Database Systems Conjunctive Queries (and beyond) CSE544 - Spring, 2013 1 Outline Conjunctive queries Query containment and equivalence Query minimization Undecidability for relational

More information

Top-k Query Processing in Probabilistic Databases with Non-Materialized Views. Maximilian Dylla Iris Miliaraki Martin Theobald

Top-k Query Processing in Probabilistic Databases with Non-Materialized Views. Maximilian Dylla Iris Miliaraki Martin Theobald Top-k Query Processing in Probabilistic Databases with Non-Materialized Views Maximilian Dylla Iris Miliaraki Martin Theobald MPI I 2012 5-002 June 2012 Authors Addresses Maximilian Dylla Max-Planck-Institut

More information

Tracing Data Errors Using View-Conditioned Causality

Tracing Data Errors Using View-Conditioned Causality Tracing Data Errors Using View-Conditioned Causality Alexandra Meliou * with Wolfgang Gatterbauer *, Suman Nath, and Dan Suciu * * University of Washington, Microsoft Research University of Washington

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

arxiv: v2 [cs.ai] 29 Jul 2014

arxiv: v2 [cs.ai] 29 Jul 2014 Understanding the Complexity of Lifted Inference and Asymmetric Weighted Model Counting arxiv:1405.3250v2 [cs.ai] 29 Jul 2014 Eric Gribkoff University of Washington eagribko@cs.uw.edu Abstract In this

More information

arxiv: v3 [cs.ai] 6 Jan 2017

arxiv: v3 [cs.ai] 6 Jan 2017 The Complexity of Bayesian Networks Specified by Propositional and Relational Languages arxiv:161201120v3 [csai] 6 Jan 2017 Fabio G Cozman Escola Politécnica Universidade de São Paulo December 5, 2016

More information

arxiv: v2 [cs.ai] 5 Mar 2014

arxiv: v2 [cs.ai] 5 Mar 2014 Skolemization for Weighted First-Order Model Counting Guy Van den Broeck Computer Science Department University of California, Los Angeles guyvdb@cs.ucla.edu Wannes Meert Computer Science Department KU

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson Propositional Logic 1 / 33 Propositional

More information

On Unit-Refutation Complete Formulae with Existentially Quantified Variables

On Unit-Refutation Complete Formulae with Existentially Quantified Variables On Unit-Refutation Complete Formulae with Existentially Quantified Variables Lucas Bordeaux 1 Mikoláš Janota 2 Joao Marques-Silva 3 Pierre Marquis 4 1 Microsoft Research, Cambridge 2 INESC-ID, Lisboa 3

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Symmetry Breaking for Relational Weighted Model Finding

Symmetry Breaking for Relational Weighted Model Finding Symmetry Breaking for Relational Weighted Model Finding Tim Kopp Parag Singla Henry Kautz WL4AI July 27, 2015 Outline Weighted logics. Symmetry-breaking in SAT. Symmetry-breaking for weighted logics. Weighted

More information

Artificial Intelligence Chapter 7: Logical Agents

Artificial Intelligence Chapter 7: Logical Agents Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents

More information

Knowledge Compilation in the Modal Logic S5

Knowledge Compilation in the Modal Logic S5 Knowledge Compilation in the Modal Logic S5 Meghyn Bienvenu Universität Bremen Bremen, Germany meghyn@informatik.uni-bremen.de Hélène Fargier IRIT-CNRS, Université Paul Sabatier, Toulouse, France fargier@irit.fr

More information

Section A (not in the text) Which of the following are statements? Explain. 3. The President of the United States in 2089 will be a woman.

Section A (not in the text) Which of the following are statements? Explain. 3. The President of the United States in 2089 will be a woman. Math 299 Homework Assignment, Chapter 2 Section 2.1 2.A (not in the text) Which of the following are statements? Explain. 1. Let x be a positive integer. Then x is rational. 2. Mathematics is fun. 3. The

More information

Relational Learning. CS 760: Machine Learning Spring 2018 Mark Craven and David Page.

Relational Learning. CS 760: Machine Learning Spring 2018 Mark Craven and David Page. Relational Learning CS 760: Machine Learning Spring 2018 Mark Craven and David Page www.biostat.wisc.edu/~craven/cs760 1 Goals for the lecture you should understand the following concepts relational learning

More information

Proof Methods for Propositional Logic

Proof Methods for Propositional Logic Proof Methods for Propositional Logic Logical equivalence Two sentences are logically equivalent iff they are true in the same models: α ß iff α β and β α Russell and Norvig Chapter 7 CS440 Fall 2015 1

More information

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom. Knowledge representation Introduction Knowledge is the progression that starts with data which s limited utility. Data when processed become information, information when interpreted or evaluated becomes

More information

Duality in Knowledge Compilation Techniques

Duality in Knowledge Compilation Techniques Duality in Knowledge Compilation Techniques Neil V. Murray 1 and Erik Rosenthal 2 1 Department of Computer Science, State University of New York, Albany, NY 12222, USA, nvm@cs.albany.edu 2 Department of

More information

Lecture 24 Nov. 20, 2014

Lecture 24 Nov. 20, 2014 CS 224: Advanced Algorithms Fall 2014 Prof. Jelani Nelson Lecture 24 Nov. 20, 2014 Scribe: Xiaoyu He Overview Today we will move to a new topic: another way to deal with NP-hard problems. We have already

More information

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness

More information

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim INF5390 Kunstig intelligens Logical Agents Roar Fjellheim Outline Knowledge-based agents The Wumpus world Knowledge representation Logical reasoning Propositional logic Wumpus agent Summary AIMA Chapter

More information

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics

More information

The following number (percentage) of students scored in the following ranges:

The following number (percentage) of students scored in the following ranges: The following number (percentage) of students scored in the following ranges: 100: 6 (18%) 95-99: 11 (33%) 90-94: 5 (15%) [22 (67%) scored 90 or better] 85-89: 3 (9%) 80-84: 3 (9%) [28 (85%) scored 80

More information

A Knowledge Compilation Map

A Knowledge Compilation Map Journal of Artificial Intelligence Research 17 (2002) 229-264 Submitted 12/01; published 9/02 A Knowledge Compilation Map Adnan Darwiche Computer Science Department University of California, Los Angeles

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information