Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro...

19
Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld

Transcript of Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro...

Page 1: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Relational Markov Models and their Application to Adaptive Web

Navigation

Corin Anderson, Pedro Domingos, Daniel Weld

Page 2: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Review: Hidden Markov Models

• Sequence of States

• Transition distribution to next state dependant on evidence variable and current state only (in first-order case)

Page 3: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

DBNs: A Step Up

• Multiple nodes at each state in the sequence

• “Object-oriented” view

Page 4: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Complaint 1: Too General!

• Absolute restriction imposed on structure of state

• Could individual state structure be exploited?

• Adopt “Polymorphic” view

Page 5: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Complaint 2: Not General Enough!

• Accurate probability estimation difficult with sparse data

• P(Mac_instock|mainpage) = 0• P(apple|mainpage) = 0.375 Ipod_instock.html 1

Ipod_backorder.html 1

Mac_instock.html 0

Mac_backorder.html 1

Dell_instock.html 2

Dell_backorder.html 0

Compaq_instock.html 2

Compaq_backorder.html 1

Web log for pages linked frommain_page.html

Page 6: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Solution: RMM

• Represent sets of states as a relation (predicate) with instantiations of the relation defining specific states

• E.g. – product_page(mac, in_stock) main_page()

• Transitions can now occur from sets to sets and sets to states

Page 7: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Ta-Da!

Page 8: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Going further . . .

• Using predicates defines a basic hierarchy over the state space

• Why not impose further structure within each predicate argument?

• Tree leaves correspond to unique arguements

Page 9: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Again, Ta-Da!

Page 10: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Sets of sets

• Define the set of abstractions of a given state q = R( . . .) to be a set of states such that each argument to R in the abstraction is an ancestor to the corresponding argument in q.

• More Formally (scientists love fancy math):

}1,),()(

|),...,({ 1

kiddleavesDnodesd

QddR

iii

k

R – The relation, Q – set of all possible instantiations of Rd – possible arguments, D – the tree of a particular type of argument, delta – the arguments to the predicate for the given state q.

Page 11: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Learning with Abstractions

• Transitions between a state and an abstraction:

• In practice, we can just count instances in the data.

ji q jiq i aqPa ,, )|(

Where a is a transition matrix, q is a ground state (individual state),and alpha and beta are abstracted arguments.

Page 12: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Defining a mixture model

• Estimating the transition probability between ground states qs and qd:

• Note that choosing lambda properly is crucial

)( )(

,,, )|(s dqA qA

dds qPaa

Where lambda is a mixing coefficient based on alpha and beta in the range [0,1] such that the sum of all lambdas is 1.

Page 13: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Choosing Lambda:

• There is a bias-variance tradeoff– Possibly high variance at lowest abstraction level

– High bias at highest abstraction level

• A good choice will have two properities:– Gets higher as abstraction depth increases

– Gets lower as available training data decreases

)()(

,,

RankRank

k

n

Where n = possible transitions from alpha to beta in the data,k is a design parameter to penalize lack of data, and rank(a) is

k

kddepth1

)(1 where each d is an argument to the relation defining a.

Page 14: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Probability Estimation Tree

• With deep hierarchies and lots of arguments, considering every possible abstraction may not be feasible

• Learn a decision tree over possible abstractions

• To the left is the tree for the page Product_page(mac, in_stock)

Page 15: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Empirical Evaluation

• How well do the various flavors of RMM (RMM-uniform, RMM-Rank, RMM-PET) compare to traditional MMs?

• Analyzed several web logs in various domains.

• Tried to predict transition probabilities between pages using varied amounts of training data.

Page 16: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Results 1: KDDCup 2000

Page 17: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Results 2: CSE 142

Page 18: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Related Work: The Cube

• Exploiting structure within RMM states (DPRM)

Page 19: Relational Markov Models and their Application to Adaptive Web Navigation Corin Anderson, Pedro Domingos, Daniel Weld.

Fin.