a short introduction to probabilistic soft logic
play

A Short Introduction to Probabilistic Soft Logic Angelika Kimmig, - PowerPoint PPT Presentation

A Short Introduction to Probabilistic Soft Logic Angelika Kimmig, Stephen H. Bach, Matthias Broecheler, Bert Huang and Lise Getoor NIPS Workshop on Probabilistic Programming 2012 http://psl.umiacs.umd.edu 1 Probabilistic Soft Logic (PSL)


  1. A Short Introduction to Probabilistic Soft Logic Angelika Kimmig, Stephen H. Bach, Matthias Broecheler, Bert Huang and Lise Getoor NIPS Workshop on Probabilistic Programming 2012 http://psl.umiacs.umd.edu 1

  2. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] 2

  3. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] Declarative language to specify graphical models 2

  4. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] Declarative language to specify graphical models • Logical atoms with soft truth values in [0,1] 2

  5. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] Declarative language to specify graphical models • Logical atoms with soft truth values in [0,1] • Dependencies as weighted first order rules 2

  6. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] Declarative language to specify graphical models • Logical atoms with soft truth values in [0,1] • Dependencies as weighted first order rules • Support for similarity functions and aggregation 2

  7. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] Declarative language to specify graphical models • Logical atoms with soft truth values in [0,1] • Dependencies as weighted first order rules • Support for similarity functions and aggregation • Linear (in)equality constraints 2

  8. Probabilistic Soft Logic (PSL) [Broecheler et al, UAI 10] Declarative language to specify graphical models • Logical atoms with soft truth values in [0,1] • Dependencies as weighted first order rules • Support for similarity functions and aggregation • Linear (in)equality constraints new approach NIPS 12 Efficient MPE inference: continuous convex optimization 2

  9. Applications • Collective classification • Ontology alignment • Entity resolution • Link prediction • Trust in social networks • Social group modeling • Personalized medicine • ... 3

  10. Ontology Alignment Organization provides work for interacts buys Service & Products Customers Employees develops sells to helps Developer Sales Person Staff Software Hardware IT Services Company works for develop buys interacts with Products & Services Customer Employee sells helps Technician Sales Accountant Software Dev Hardware Consulting 1 4

  11. Ontology Alignment Organization provides work for similar interacts buys Service & Products Customers Employees names develops sells to helps Developer Sales Person Staff Software Hardware IT Services Company works for develop buys interacts with Products & Services Customer Employee sells helps Technician Sales Accountant Software Dev Hardware Consulting 1 4

  12. Ontology Alignment similar ranges Organization provides work for similar interacts buys Service & Products Customers Employees names develops sells to helps Developer Sales Person Staff Software Hardware IT Services Company works for develop buys interacts with Products & Services Customer Employee sells helps Technician Sales Accountant Software Dev Hardware Consulting 1 4

  13. Ontology Alignment similar ranges Organization provides work for similar interacts buys Service & Products Customers Employees names develops sells to helps Developer Sales Person Staff Software Hardware IT Services Company works for develop buys interacts with Products & Services Customer Employee sells helps Technician Sales Accountant Software Dev Hardware Consulting 1 similar subconcepts 4

  14. Trust Modeling    0.2 0.5 carla emma dan 0.8 0.9 0.5 0.8    0.7 0.4 ann 0.9 fred bob 5 5

  15. Trust Modeling    0.2 0.5 carla emma dan 0.8 0.9 0.5 0.8    0.7 0.4 ann 0.9 fred bob trusts(X,Y) ∧ trusts(Y,Z) → trusts(X,Z) 5 5

  16. Trust Modeling    0.2 0.5 carla emma dan 0.8 0.9 0.5 0.8    0.7 ✔ 0.4 ann 0.9 fred bob trusts(X,Y) ∧ trusts(Y,Z) → trusts(X,Z) 5 5

  17. Trust Modeling    0.2 0.5 carla emma dan ✗ 0.8 0.9 0.5 0.8    0.7 0.4 ann 0.9 fred bob trusts(X,Y) ∧ trusts(Y,Z) → trusts(X,Z) 5 5

  18. Voter Opinion Modeling    friend spouse carla emma dan colleague friend spouse friend    friend colleague ann spouse fred bob 5 6

  19. Voter Opinion Modeling    friend spouse carla emma dan colleague friend spouse friend    friend colleague ann spouse fred bob 5 6

  20. Voter Opinion Modeling ?    friend spouse carla emma dan colleague friend spouse friend    ? friend colleague ann ? spouse fred bob 5 6

  21. PSL Program   ? friend  spouse friend(carla,emma)=0.9 c e friend  d  colleague friend friend(bob,dan)=0.4 spouse  friend spouse(ann,bob)=1.0 ? colleague spouse prefers(ann, )=0.8 ? a f ... b 7

  22. PSL Program   ? friend  spouse friend(carla,emma)=0.9 c e friend  d  colleague friend friend(bob,dan)=0.4 spouse  friend spouse(ann,bob)=1.0 ? colleague spouse prefers(ann, )=0.8 ? a f ... b 0.3: lives(A,S) ∧ majority(S,P) → prefers(A,P) 0.8: spouse(B,A) ∧ prefers(B,P) → prefers(A,P) 0.1: similarAge(B,A) ∧ prefers(B,P) → prefers(A,P) 0.4: prefers(A,P) → prefersAvg({A.friend},P) partial-functional: prefers 7

  23. Constraints   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b partial-functional: prefers 8

  24. Constraints   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b partial-functional: prefers prefers(A, )+prefers(A, ) ≤ 1.0 8

  25. Local Rules   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b 0.3: lives(A,S) ∧ majority(S,P) → prefers(A,P) 9

  26. Propagation Rules   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b 0.8: spouse(B,A) ∧ prefers(B,P) → prefers(A,P) 10

  27. Similarity Rules   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b 0.1: similarAge(B,A) ∧ prefers(B,P) → prefers(A,P) Similarity function with range [0,1] 11

  28. Sets   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b 0.4: prefers(A,P) → prefersAvg({A.friend},P) 12

  29. Sets   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b all X such that friend(A,X) 0.4: prefers(A,P) → prefersAvg({A.friend},P) 12

  30. Sets   ? friend  spouse c e friend  d  colleague friend spouse  friend ? colleague spouse ? a f b all X such that friend(A,X) 0.4: prefers(A,P) → prefersAvg({A.friend},P) truth value ≔ average truth value of prefers(X,P) 12

  31. PSL Program • Ground atoms = random variables • Soft truth value assignments • Assignment satisfying more rules more likely • Constraints to rule out unwanted assignments 13

  32. Probabilistic Model 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) 14

  33. Probabilistic Model 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) Interpretation 14

  34. Probabilistic Model 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) Interpretation Set of rule groundings 14

  35. Probabilistic Model 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) Rule’s weight Interpretation Set of rule groundings 14

  36. Probabilistic Model Ground rule’s distance from satisfaction given I 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) Rule’s weight Interpretation Set of rule groundings 14

  37. Probabilistic Model Ground rule’s distance from satisfaction given I ∈ {1,2} 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) Rule’s weight Interpretation Set of rule groundings 14

  38. Probabilistic Model Ground rule’s distance from satisfaction given I ∈ {1,2} 0 1 X X f ( I ) = 1 w r ( d g ( I )) k Z exp @ − A r ∈ P g ∈ G ( r ) Rule’s weight Interpretation Set of rule groundings Normalization constant 0 1 Z X X w r ( d g ( J )) k Z = exp @ − A J ∈ I r ∈ P g ∈ G ( r ) 14

  39. Distance from Satisfaction d r ( I ) = max { 0 , I ( body ) − I ( head ) } 15

  40. ⇔ Distance from Satisfaction d r ( I ) = max { 0 , I ( body ) − I ( head ) } body → head satisfied truth value of body ≤ truth value of head 15

  41. ⇔ Distance from Satisfaction d r ( I ) = max { 0 , I ( body ) − I ( head ) } body → head satisfied truth value of body ≤ truth value of head I ( v 1 ∧ v 2 ) = max { 0 , I ( v 1 ) + I ( v 2 ) − 1 } Lukasiewicz I ( v 1 ∨ v 2 ) = min { I ( v 1 ) + I ( v 2 ) , 1 } t-norm I ( ¬ l 1 ) = 1 − I ( v 1 ) 15

  42. Distance from Satisfaction similarAge(bob,ann) ∧ prefers(bob, ) → prefers(ann, ) 0.8 0.5 0.5 16

Recommend


More recommend