Declarative Merging of and Reasoning about Decision Diagrams Thomas - - PowerPoint PPT Presentation

declarative merging of and reasoning about decision
SMART_READER_LITE
LIVE PREVIEW

Declarative Merging of and Reasoning about Decision Diagrams Thomas - - PowerPoint PPT Presentation

Declarative Merging of and Reasoning about Decision Diagrams Thomas Eiter Thomas Krennwallner Christoph Redl { eiter,tkren,redl } @kr.tuwien.ac.at September 12, 2011 Eiter T., Krennwallner T., Redl C. (TU Vienna) Dec. Merging of and Reasoning


slide-1
SLIDE 1

Declarative Merging of and Reasoning about Decision Diagrams

Thomas Eiter Thomas Krennwallner Christoph Redl

{eiter,tkren,redl}@kr.tuwien.ac.at

September 12, 2011

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 1 / 26

slide-2
SLIDE 2

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 2 / 26

slide-3
SLIDE 3

Motivation

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 3 / 26

slide-4
SLIDE 4

Motivation

Motivation

Decision Diagrams

Important means for decision making Intuitively understandable Not only for knowledge engineers

Examples

Severity ratings (e.g. TNM system) Diagnosis of personality disorders DNA classification

feature1>12,50 feature1>12,50 feature1>12,50 feature1>12,50 feature8<0,06 feature8<0,06 feature8<0,06 feature8<0,06 feature8<0,06 feature8<0,06 feature8<0,06 feature8<0,06 feature20>1,42 feature20>1,42 feature20>1,42 feature20>1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature3>7,50 feature3>7,50 feature3>7,50 feature3>7,50 feature3>7,50 feature3>7,50 feature3>7,50 feature3>7,50 feature20>1,42 feature20>1,42 feature20>1,42 feature20>1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20<1,42 feature20>1,42 feature20>1,42 feature20>1,42 feature20>1,42 coding non- coding non- coding coding non- coding coding coding coding coding non- coding non- coding non- coding

A T G C A G G C C T A G C C G C C T A G A T G G

v=(f1, ..., f20)

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 4 / 26

slide-5
SLIDE 5

Motivation

Multiple Diagrams

Reasons

Different opinions Randomized machine-learning algorithms Statistical impreciseness Question: How to combine them?

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 5 / 26

slide-6
SLIDE 6

Motivation

Multiple Diagram Integration

The DDM System

Integration process declaratively described Ingredients:

1

input decision diagrams

2

merging algorithms (predefined or user-defined)

Focus:

process formalization experimenting with different (combinations of) merging algorithms declarative reasoning for controlling the merging process

We do not focus:

concrete merging strategies accuracy improvement

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 6 / 26

slide-7
SLIDE 7

Preliminaries: MELD

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 7 / 26

slide-8
SLIDE 8

Preliminaries: MELD

MELD

Task

Collection of knowledge bases: KB = KB1, . . . , KBn Associated collections of belief sets: BS(KB1), . . . , BS(KBn) ∈ BΣ Goal: Integrate them into a single set of belief sets

Method: Merging Operators

  • n,m :
  • 2BΣn

collections of belief sets

× A1 × . . . × Am

  • perator arguments

→ 2BΣ

Example

Operator definition:

  • 2,0

∪ (B1, B2) = {B1 ∪ B2 | B1 ∈ B1, B2 ∈ B2, ∄A : {A, ¬A} ⊆ (B1 ∪ B2)} ,

Application: B1 = {{a, b, c}, {¬a, c}}, B2 = {{¬a, d}, {c, d}}

  • 2,0

∪ (B1, B2) = {{a, b, c, d}, {¬a, c, d}}

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 8 / 26

slide-9
SLIDE 9

Preliminaries: MELD

MELD

Merging Plan

Hierarchical arrangement of merging operators

Example

  • \
  • ¬

BS(KB1) BS(KB2) BS(KB3)

BS(KB4) BS(KB5)

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 9 / 26

slide-10
SLIDE 10

Preliminaries: MELD

MELD

Merging Tasks

User provides

belief bases with associated collections of belief sets merging plan

  • ptional: user-defined merging operators

MELD: automated evaluation

Advantages

Reuse of operators Quick restructuring of merging plan

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 10 / 26

slide-11
SLIDE 11

Merging of Decision Diagrams

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 11 / 26

slide-12
SLIDE 12

Merging of Decision Diagrams

Decision Diagrams

Definition (Decision Diagram)

A decision diagram over D and C is a labelled rooted directed acyclic graph D = V, E, ℓC, ℓE V . . . nonempty set of nodes with unique root node rD ∈ V E ⊆ V × V . . . set of directed edges ℓC : V → C . . . partial function assigning a class to all leafs ℓE : E → Q . . . assign queries Q(z) : D → {true, false} to edges

Query language: O1 ◦ O2 with operands O1, O2 and ◦ ∈ {<, ≤, =, =, ≥, >} or “else”

Example

D = {1, 2, 3, 4, 5} C = {c1, c2}

rD v1 v2 c1 v3 c2 v4 z < 3 else z < 2 else z < 4 else

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 12 / 26

slide-13
SLIDE 13

Merging of Decision Diagrams

Decision Diagrams

Definition (Decision Diagram)

A decision diagram over D and C is a labelled rooted directed acyclic graph D = V, E, ℓC, ℓE V . . . nonempty set of nodes with unique root node rD ∈ V E ⊆ V × V . . . set of directed edges ℓC : V → C . . . partial function assigning a class to all leafs ℓE : E → Q . . . assign queries Q(z) : D → {true, false} to edges

Query language: O1 ◦ O2 with operands O1, O2 and ◦ ∈ {<, ≤, =, =, ≥, >} or “else”

Example

D = {1, 2, 3, 4, 5} C = {c1, c2} Classify: 4

rD v1 v2 c1 v3 c2 v4 z < 3 else z < 2 else z < 4 else

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 12 / 26

slide-14
SLIDE 14

Merging of Decision Diagrams

Decision Diagrams

Definition (Decision Diagram)

A decision diagram over D and C is a labelled rooted directed acyclic graph D = V, E, ℓC, ℓE V . . . nonempty set of nodes with unique root node rD ∈ V E ⊆ V × V . . . set of directed edges ℓC : V → C . . . partial function assigning a class to all leafs ℓE : E → Q . . . assign queries Q(z) : D → {true, false} to edges

Query language: O1 ◦ O2 with operands O1, O2 and ◦ ∈ {<, ≤, =, =, ≥, >} or “else”

Example

D = {1, 2, 3, 4, 5} C = {c1, c2} Classify: 4

rD v1 v2 c1 v3 c2 v4 z < 3 else z < 2 else z < 4 else

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 12 / 26

slide-15
SLIDE 15

Merging of Decision Diagrams

Decision Diagrams

Definition (Decision Diagram)

A decision diagram over D and C is a labelled rooted directed acyclic graph D = V, E, ℓC, ℓE V . . . nonempty set of nodes with unique root node rD ∈ V E ⊆ V × V . . . set of directed edges ℓC : V → C . . . partial function assigning a class to all leafs ℓE : E → Q . . . assign queries Q(z) : D → {true, false} to edges

Query language: O1 ◦ O2 with operands O1, O2 and ◦ ∈ {<, ≤, =, =, ≥, >} or “else”

Example

D = {1, 2, 3, 4, 5} C = {c1, c2} Classify: 4 ⇒ c2

c2 rD v1 v2 c1 v3 c2 v4 z < 3 else z < 2 else z < 4 else

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 12 / 26

slide-16
SLIDE 16

Merging of Decision Diagrams

Decision Diagrams

Definition (Decision Diagram)

A decision diagram over D and C is a labelled rooted directed acyclic graph D = V, E, ℓC, ℓE V . . . nonempty set of nodes with unique root node rD ∈ V E ⊆ V × V . . . set of directed edges ℓC : V → C . . . partial function assigning a class to all leafs ℓE : E → Q . . . assign queries Q(z) : D → {true, false} to edges

Query language: O1 ◦ O2 with operands O1, O2 and ◦ ∈ {<, ≤, =, =, ≥, >} or “else”

Example

D = {1, 2, 3, 4, 5} C = {c1, c2} Classify: 4 ⇒ c2

c2 rD v1 v2 c1 v3 c2 v4 z < 3 else z < 2 else z < 4 else Note: D may consist of composed objects, e.g. Q(z) = z.TSH > 4.5mU/l

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 12 / 26

slide-17
SLIDE 17

Merging of Decision Diagrams

Decision Diagram Merging

Instantiation of MELD

How to use MELD for decision diagram merging?

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 13 / 26

slide-18
SLIDE 18

Merging of Decision Diagrams

Decision Diagram Merging

Instantiation of MELD

How to use MELD for decision diagram merging?

1

Encode decision diagrams as belief sets

2

Merging by special operators

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 13 / 26

slide-19
SLIDE 19

Merging of Decision Diagrams

Decision Diagram Merging

Instantiation of MELD

How to use MELD for decision diagram merging?

1

Encode decision diagrams as belief sets

2

Merging by special operators

  • 1. Encoding

Define nodes root(n), inner(n), leaf(n, l) Arcs between nodes, labelled with conditions cond(n1, n2, o1, c, o2), else(n1, n2)

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 13 / 26

slide-20
SLIDE 20

Merging of Decision Diagrams

  • 1. Encoding of Decision Diagrams

Example

Decision Diagram D: rD v1 v2 c1 v3 c2 v4 z < 3 else z < 2 else z < 4 else E(D) = { root(rD); inner(rD); inner(v1); inner(v2); leaf(v3, c1); leaf(v4, c2); cond(rD, v1, z, <, 3); else(rD, v2); cond(v1, v3, z, <, 2); else(v1, v4); cond(v2, v3, z, <, 4); else(v2, v4)}

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 14 / 26

slide-21
SLIDE 21

Merging of Decision Diagrams

  • 2. Merging of Decision Diagrams

Merging

Belief sets = encoded diagrams

  • X
  • Y
  • W

BS(KB1) BS(KB2) BS(KB3)

  • Z

BS(KB4) BS(KB5)

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 15 / 26

slide-22
SLIDE 22

Merging of Decision Diagrams

  • 2. Merging of Decision Diagrams

Merging

Belief sets = encoded diagrams

  • X
  • Y
  • W

E(D1) E(D2) E(D3)

  • Z

E(D4) E(D5)

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 15 / 26

slide-23
SLIDE 23

Merging of Decision Diagrams

  • 2. Merging of Decision Diagrams

Merging

Belief sets = encoded diagrams

  • X
  • Y
  • W

E(D1) E(D2) E(D3)

  • Z

E(D4) E(D5) Special merging operators ◦W, ◦X, ◦Y, ◦Z required!

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 15 / 26

slide-24
SLIDE 24

Merging of Decision Diagrams

  • 2. Merging of Decision Diagrams

Some Examples of Predefined Operators

User Preferences Give some class label preference over another D1 c1 c2 X > 3 X ≤ 3 D2 c1 c2 Y > 2 Y ≤ 2

  • pref (D1, D2, c2 > c1)

c1 c2 ? ?

X > 3 X ≤ 3 Y > 2 Y ≤ 2 Y > 2 Y ≤ 2

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 16 / 26

slide-25
SLIDE 25

Merging of Decision Diagrams

  • 2. Merging of Decision Diagrams

Some Examples of Predefined Operators

User Preferences Give some class label preference over another D1 c1 c2 X > 3 X ≤ 3 D2 c1 c2 Y > 2 Y ≤ 2

  • pref (D1, D2, c2 > c1)

c1 c2 c2 c2

X > 3 X ≤ 3 Y > 2 Y ≤ 2 Y > 2 Y ≤ 2

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 16 / 26

slide-26
SLIDE 26

Merging of Decision Diagrams

  • 2. Merging of Decision Diagrams

Some Examples of Predefined Operators

User Preferences Give some class label preference over another Majority Voting Majority of input diagrams decides upon an element’s class Simplification Decrease redundancy MORGAN merging strategy see later . . . Note: Operators may produce multiple results! Example: Majority voting for classes with equal number of votes

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 16 / 26

slide-27
SLIDE 27

Reasoning about Decision Diagrams

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 17 / 26

slide-28
SLIDE 28

Reasoning about Decision Diagrams

Reasoning about Decision Diagrams

Goal

Compute diagram properties e.g. height, variable occurrences, redundancy Properties may control the merging process by filtering

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 18 / 26

slide-29
SLIDE 29

Reasoning about Decision Diagrams

Reasoning about Decision Diagrams

Goal

Compute diagram properties e.g. height, variable occurrences, redundancy Properties may control the merging process by filtering

Realization

Special unary operator

  • asp(∆, P),

∆ . . . set of decision diagrams P . . . ASP program P′ := P ∪

D∈∆

ˆ E(D) Extended Encoding ˆ E: Multiple diagrams within one set of facts: leaf(L, C) ⇒ leaf in(I, L, C) Evaluate P′ under ASP semantics

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 18 / 26

slide-30
SLIDE 30

Reasoning about Decision Diagrams

Reasoning about Decision Diagrams

Example: Node Count Minimization

  • asp(·, Pmin)
  • simp(·)
  • maj(·)
  • maj(·)

D1 D2

  • asp(·, Pmin)
  • simp(·)
  • maj(·)

D3 D4

Pmin = {cnt(I, C)←LC = #count{L : leaf in(I, L, C)}, IC = #count{N : innerin(I, N)}, rootin(I, R), C = LC + IC c(I)←rootin(I, R), not ¬c(I) ¬c(I) ∨ ¬c(J)←rootin(I, R), rootin(J, S), I = J leaf(L, C)←c(I), leaf in(I, L, C) . . . else(N1, N2)←c(I), elsein(I, N1, N2) ⊥←M = #min{NC : cnt(I, NC)}, c(I), cnt(I, C), C > M}

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 19 / 26

slide-31
SLIDE 31

Application: DNA Classification

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 20 / 26

slide-32
SLIDE 32

Application: DNA Classification

DNA Classification

Motivation

Given: Sequence over {A, C, G, T} Question: Is it coding or junk DNA?

Usual Approach

Training

1 Annotated training set 2 Compute statistical features 3 Machine-learning algorithms

Classification

1 Compute the same features 2 Apply decision diagram

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 21 / 26

slide-33
SLIDE 33

Application: DNA Classification

DNA Classification

Advanced Approach [Salzberg et al., 1998]

Train multiple diagrams varying training sets, algorithms, features, etc. Merge them afterwards

Benefits

Parallelization Increase accuracy (cf. genetic algorithms) Smaller training set suffices Hardcoded implementation: MORGAN system

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 22 / 26

slide-34
SLIDE 34

Application: DNA Classification

DNA Classification

MORGAN’s strategy in MELD

MORGAN’s strategy plugged into MELD as merging operator ◦M Benefits identified in [5] confirmed

MORGAN vs. MELD-based system

Not hardcoded but modular Clear separation: merging operation / other system components reuse / exchange of the merging operator Experiment with different merging strategies Produce multiple diagrams and reason about them

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 23 / 26

slide-35
SLIDE 35

Conclusion

Outline

1

Motivation

2

Preliminaries: MELD

3

Merging of Decision Diagrams

4

Reasoning about Decision Diagrams

5

Application: DNA Classification

6

Conclusion

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 24 / 26

slide-36
SLIDE 36

Conclusion

Conclusion

Summary

MELD: Integration of multiple collections of belief sets Instantiation for decision diagram merging:

1

Encoding of decision diagrams as belief sets

2

Special merging operators for decision diagrams

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 25 / 26

slide-37
SLIDE 37

Conclusion

Conclusion

Summary

MELD: Integration of multiple collections of belief sets Instantiation for decision diagram merging:

1

Encoding of decision diagrams as belief sets

2

Special merging operators for decision diagrams

Advantages

Reuse of operators Evaluate different operators empirically Automatic recomputation of result Release user from routine tasks

Download

URL: http://www.kr.tuwien.ac.at/research/dlvhex/ddm.html

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 25 / 26

slide-38
SLIDE 38

Conclusion

References

Dov M. Gabbay, Odinaldo Rodrigues, Gabriella Pigozzi Connections between Belief Revision, Belief Merging and Social Choice In: Journal of Logic and Computation 19(3) (2009) Konieczny, S., P´ erez, R.P .: On the logic of merging. In: KR’98. (1998) 488–498 Redl, C.: Merging of Biomedical Decision Diagrams Master’s thesis, Vienna University of Technology (October 2010) http://www.ub.tuwien.ac.at/dipl/2010/AC07808795.pdf Eiter, T., Ianni, G., Schindlauer, R., Tompits, H.: dlvhex: A system for integrating multiple semantics in an answer-set programming framework. In: WLP’06. (2006) 206–210 Salzberg, S., Delcher, A.L., Fasman, K.H., Henderson, J.: A decision tree system for finding genes in DNA. Journal of Computational Biology 5(4) (1998) 667–680

Eiter T., Krennwallner T., Redl C. (TU Vienna)

  • Dec. Merging of and Reasoning about Decision Diagrams

September 12, 2011 26 / 26