1 / 49

Adbuctive Markov Logic for Plan Recognition

Adbuctive Markov Logic for Plan Recognition. Parag Singla & Raymond J. Mooney Dept. of Computer Science University of Texas, Austin. Motivation [ Blaylock & Allen 2005] . Road Blocked!. Motivation [ Blaylock & Allen 2005] . Road Blocked!. Heavy Snow; Hazardous Driving.

rowdy
Download Presentation

Adbuctive Markov Logic for Plan Recognition

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Adbuctive Markov Logic for Plan Recognition ParagSingla & Raymond J. Mooney Dept. of Computer Science University of Texas, Austin

  2. Motivation [ Blaylock & Allen 2005] Road Blocked!

  3. Motivation [ Blaylock & Allen 2005] Road Blocked! Heavy Snow; Hazardous Driving

  4. Motivation [ Blaylock & Allen 2005] Road Blocked! Heavy Snow; Hazardous Driving Accident; Crew is Clearing the Wreck

  5. Abduction • Given: • Background knowledge • A set of observations • To Find: • Best set of explanations given the background knowledge and the observations

  6. Previous Approaches • Purely logic based approaches [Pople 1973] • Perform backward “logical” reasoning • Can not handle uncertainty • Purely probabilistic approaches [Pearl 1988] • Can not handle structured representations • Recent Approaches • Bayesian Abductive Logic Programs (BALP) [Raghavan & Mooney, 2010]

  7. An Important Problem • A variety of applications • Plan Recognition • Intent Recognition • Medical Diagnosis • Fault Diagnosis • More.. • Plan Recognition • Given planning knowledge and a set of low-level actions, identify the top level plan

  8. Outline • Motivation • Background • Markov Logic for Abduction • Experiments • Conclusion & Future Work

  9. Markov Logic [Richardson & Domingos 06] • A logical KB is a set of hard constraintson the set of possible worlds • Let’s make them soft constraints:When a world violates a formula,It becomes less probable, not impossible • Give each formula a weight(Higher weight  Stronger constraint)

  10. Definition • A Markov Logic Network (MLN) is a set of pairs (F, w) where • F is a formula in first-order logic • w is a real number

  11. Definition • A Markov Logic Network (MLN) is a set of pairs (F, w) where • F is a formula in first-order logic • w is a real number heavy_snow(loc)  drive_hazard(loc)  block_road(loc) accident(loc)  clear_wreck(crew, loc)  block_road(loc)

  12. Definition • A Markov Logic Network (MLN) is a set of pairs (F, w) where • F is a formula in first-order logic • w is a real number 1.5 heavy_snow(loc)  drive_hazard(loc)  block_road(loc) 2.0 accident(loc)  clear_wreck(crew, loc)  block_road(loc)

  13. Outline • Motivation • Background • Markov Logic for Abduction • Experiments • Conclusion & Future Work

  14. Abduction using Markov logic • Express the theory in Markov logic • Sound combination of first-order logic rules • Use existing machinery for learning and inference • Problem • Markov logic is deductive in nature • Does not support adbuction as is!

  15. Abduction using Markov logic • Given heavy_snow(loc)  drive_hazard(loc)  block_road(loc) accident(loc)  clear_wreck(crew, loc)  block_road(loc) Observation: block_road(plaza)

  16. Abduction using Markov logic • Given heavy_snow(loc)  drive_hazard(loc)  block_road(loc) accident(loc)  clear_wreck(crew, loc)  block_road(loc) Observation: block_road(plaza) • Rules are true independent of antecedents • Need to go from effect to cause • Idea of hidden cause • Reverse implication over hidden causes

  17. Introducing Hidden Cause heavy_snow(loc)  drive_hazard(loc)  block_road(loc) rb_C1(loc) Hidden Cause heavy_snow(loc)  drive_hazard(loc)  rb_C1(loc)

  18. Introducing Hidden Cause heavy_snow(loc)  drive_hazard(loc)  block_road(loc) rb_C1(loc) Hidden Cause heavy_snow(loc)  drive_hazard(loc)  rb_C1(loc) rb_C1(loc)  block_road(loc)

  19. Introducing Hidden Cause heavy_snow(loc)  drive_hazard(loc)  block_road(loc) Hidden Cause rb_C1(loc) heavy_snow(loc)  drive_hazard(loc)  rb_C1(loc) rb_C1(loc)  block_road(loc) accident(loc)  clear_wreck(crew, loc)  block_road(loc) rb_C2(loc, crew) accident(loc)  clear_wreck(crew, loc)  rb_C2(crew, loc) rb_C2(crew, loc)  block_road(loc)

  20. Introducing Reverse Implication Explanation 1:heavy_snow(loc)  clear_wreck(loc)  rb_C1(loc) Explanation 2: accident(loc)  clear_wreck(crew, loc)  rb_C2(crew, loc) Multiple causes combined via reverse implication block_road(loc)  rb_C1(loc) v ( crew rb_C2(crew, loc))

  21. Introducing Reverse Implication Explanation 1:heavy_snow(loc)  clear_wreck(loc)  rb_C1(loc) Explanation 2: accident(loc)  clear_wreck(crew, loc)  rb_C2(crew, loc) Multiple causes combined via reverse implication Existential quantification block_road(loc)  rb_C1(loc) v ( crew rb_C2(crew, loc))

  22. Low-Prior on Hidden Causes Explanation 1:heavy_snow(loc)  clear_wreck(loc)  rb_C1(loc) Explanation 2: accident(loc)  clear_wreck(crew, loc)  rb_C2(crew, loc) Existential quantification Multiple causes combined via reverse implication block_road(loc)  rb_C1(loc) v ( crew rb_C2(crew, loc)) -w1 rb_C1(loc) -w2 rb_C2(loc, crew)

  23. Avoiding the Blow-up accident (Plaza) heavy_snow (Plaza) drive_hazard (Plaza) clear_wreck (Tcrew, Plaza) rb_C1 (Plaza) rb_C2 (Tcrew, Plaza) Hidden Cause Model Max clique size = 3 block_road (Tcrew, Plaza)

  24. Avoiding the Blow-up accident (Plaza) heavy_snow (Plaza) drive_hazard (Plaza) clear_wreck (Tcrew, Plaza) rb_C1 (Plaza) rb_C2 (Tcrew, Plaza) Hidden Cause Model Max clique size = 3 block_road (Tcrew, Plaza) drive_hazard (Plaza) accident (Plaza) Pair-wise Constraints [Kate & Mooney 2009] Max clique size = 5 clear_wreck (Tcrew, Plaza) heavy_snow (Plaza) block_road (Tcrew, Plaza)

  25. Constructing Abductive MLN Given n explanations for Q:

  26. Constructing Abductive MLN Given n explanations for Q: Introduce a hidden cause Ci for each explanation.

  27. Constructing Abductive MLN Given n explanations for Q: Introduce a hidden cause Ci for each explanation. Introduce the following sets of rules:

  28. Constructing Abductive MLN Given n explanations for Q: Introduce a hidden cause Ci for each explanation. Introduce the following sets of rules: Equivalence between clause body and hidden cause. soft clause

  29. Constructing Abductive MLN Given n explanations for Q: Introduce a hidden cause Ci for each explanation. Introduce the following sets of rules: Equivalence between clause body and hidden cause. soft clause Implicating the effect. hard clause

  30. Constructing Abductive MLN Given n explanations for Q: Introduce a hidden cause Ci for each explanation. Introduce the following sets of rules: Equivalence between clause body and hidden cause. soft clause Implicating the effect. hard clause Reverse Implication. hard clause

  31. Constructing Abductive MLN Given n explanations for Q: Introduce a hidden cause Ci for each explanation. Introduce the following sets of rules: Equivalence between clause body and hidden cause. soft clause Implicating the effect. hard clause Reverse Implication. hard clause Low Prior on hidden causes. soft clause

  32. Adbuctive Model Construction • Grounding out the full network may be costly • Many irrelevant nodes/clauses are created • Complicates learning/inference • Can focus the grounding • Knowledge Based Model Construction (KBMC) • (Logical) backward chaining to get proof trees • Stickel [1988] • Use only the nodes appearing in the proof trees

  33. Abductive Model Construction Observation: block_road(Plaza)

  34. Abductive Model Construction Observation: block_road(Plaza) block_road (Plaza)

  35. Abductive Model Construction Observation: block_road(Plaza) heavy_snow (Plaza) drive_hazard (Plaza) block_road (Plaza)

  36. Abductive Model Construction Observation: block_road(Plaza) heavy_snow (Plaza) drive_hazard (Plaza) block_road (Plaza) Constants: Mall heavy_snow (Mall) drive_hazard (Mall) block_road (Mall)

  37. Abductive Model Construction Observation: block_road(Plaza) heavy_snow (Plaza) drive_hazard (Plaza) block_road (Plaza) Constants: Mall, City_Square heavy_snow (Mall) drive_hazard (Mall) heavy_snow (City_Square) drive_hazard (City_Square) block_road (Mall) block_road (City_Square)

  38. Abductive Model Construction Observation: block_road(Plaza) heavy_snow (Plaza) drive_hazard (Plaza) block_road (Plaza) Constants: …, Mall, City_Square, ... heavy_snow (Mall) drive_hazard (Mall) heavy_snow (City_Square) drive_hazard (City_Square) block_road (Mall) block_road (City_Square)

  39. Abductive Model Construction Observation: block_road(Plaza) heavy_snow (Plaza) drive_hazard (Plaza) Not a part of abductive proof trees! block_road (Plaza) Constants: …, Mall, City_Square, ... heavy_snow (Mall) drive_hazard (Mall) heavy_snow (City_Square) drive_hazard (City_Square) block_road (Mall) block_road (City_Square)

  40. Outline • Motivation • Background • Markov Logic for Abduction • Experiments • Conclusion & Future Work

  41. Story Understanding • Recognizing plans from narrative text [Charniak and Goldman 1991; Ng and Mooney 92] • 25 training examples, 25 test examples • KB originally constructed for the ACCEL system [Ng and Mooney 92]

  42. Monroe and Linux [Blaylock and Allen 2005] • Monroe – generated using hierarchical planner • High level plan in emergency response domain • 10 plans, 1000 examples [10 fold cross validation] • KB derived using planning knowledge • Linux – users operating in linux environment • High level linux command to execute • 19 plans, 457 examples [4 fold cross validation] • Hand coded KB • MC-SAT for inference, Voted Perceptron for learning

  43. Models Compared

  44. Results (Monroe & Linux) Percentage Accuracy for Schema Matching

  45. Results (Modified Monroe) Percentage Accuracy for Partial Predictions. Varying Observability

  46. Timing Results (Modified Monroe) Average Inference Time in Seconds

  47. Outline • Motivation • Background • Markov Logic for Abduction • Experiments • Conclusion & Future Work

  48. Conclusion • Plan Recognition – an abductive reasoning problem • A comprehensive solution based on Markov logic theory • Key contributions • Reverse implications through hidden causes • Abductive model construction • Beats other approaches on plan recognition datasets

  49. Future Work • Experimenting with other domains/tasks • Online learning in presence of partial observability • Learning abductive rules from data

More Related