25
1 Intel Research 1 Intel Research 1 Partitioned Linear Programming Approximations for MDPs Branislav Kveton Intel Research Santa Clara, CA Milos Hauskrecht Department of Computer Science University of Pittsburgh

Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

1 Intel Research1 Intel Research1

Partitioned Linear Programming Approximations for MDPs

Branislav KvetonIntel Research

Santa Clara, CA

Milos HauskrechtDepartment of Computer Science

University of Pittsburgh

Page 2: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

2 Intel Research2

Overview

• Introduction

– Factored Markov decision processes

– Approximate linear programming

– Solving ALP formulations

• Partitioned linear programming approximations

– Formulation, theory, and insights

• Experiments

• Conclusions and future work

Page 3: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

3 Intel Research3

Overview

• Introduction

– Factored Markov decision processes

– Approximate linear programming

– Solving ALP formulations

• Partitioned linear programming approximations

– Formulation, theory, and insights

• Experiments

• Conclusions and future work

Page 4: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

4 Intel Research4

Factored Markov Decision Processes

• A factored Markov decision process (MDP) is a 4-tuple M = (X, A, P, R):

– X is a set of state variables

– A is a set of actions

– P is a transition functionrepresented by a dynamic Bayesian network (DBN)

– R is a reward model:

j

j aa ,R,R xx

A1

X1

A2

X2

A3

X3

X’1

X’2

X’3

R1

R2

t t+1Local reward functions

Page 5: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

5 Intel Research5

Linear Value Function Approximations

• The quality of a policy is measured by the infinite horizon discounted reward:

• The optimal value function V* is a fixed point of the Bellman equation:

• A compact representation of an MDP may not guarantee a compact form of the optimal value function V*

• Approximation of V* by a linear combination of basis functions [Bellman et al. 1963, Van Roy 1998]:

tt

t

t

π πγ xx ,RE0

xxx xx

VE,RmaxV ,| aPa

γa

i

iiw xxw fV Local feature functions

Page 6: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

6 Intel Research6

Approximate Linear Programming

• Optimization of the linear value function approximation can restated as an approximate linear program (ALP):

• The linear value function approximation combined with the structure of factored MDPs induces a structure in ALP:

Xxxx

ww

w

w

VTV:subject to

VEminimize ψ

Α,

0,R,F:subject to

minimize

a

aaw

αw

i j

jii

i

ii

Xx

xx

w

Constraint space of an ALP represented by a cost network

Page 7: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

7 Intel Research7

State-of-the-Art Methods for ALP

• Exact methods

– Rewrite constraint space compactly (Guestrin et al. 2001)

– Cutting plane method (Schuurmans & Patrascu 2002):

– Problem: Exponential in the treewidth of the dependency graph that represents the constraint space in ALP

• Approximate methods

– Monte Carlo constraint sampling (de Farias & Van Roy 2004)

– Markov Chain Monte Carlo (MCMC) constraint sampling (Kveton & Hauskrecht 2005)

– Problem: Stochastic nature and slow convergence in practice

i j

ji

t

ia

aaw ,R,Fmaxarg )(

,xx

x

Page 8: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

8 Intel Research8

Overview

• Introduction

– Factored Markov decision processes

– Approximate linear programming

– Solving ALP formulations

• Partitioned linear programming approximations

– Formulation, theory, and insights

• Experiments

• Conclusions and future work

Page 9: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

9 Intel Research9

Partitioned ALP Approximations

• Decompose the ALP constraint space (with a large treewidth) into a set of constraint subspaces (with small treewidths)

Constraint subspace #2Constraint subspace #1 Constraint subspace #3

Treewidth 2

Treewidth 1

Constraint space of an ALP represented

by a cost network

Page 10: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

10 Intel Research10

Partitioned ALP Approximations

• Partitioned ALP (PALP) formulation with K constraint spaces is given by a linear program:

Α,

,R

,F

:subject to

minimize

1

1

3,32,31,3

3,22,21,2

3,12,11,1

aa

a

ddd

ddd

ddd

αwi

ii

Xx0x

x

w

Constraint subspace #2Constraint subspace #1 Constraint subspace #3

Partitioning matrix DColumn vector Mw(x, a)T of instantiated cost network

terms

Page 11: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

11 Intel Research11

Partitioned ALP Approximations

• Partitioned ALP (PALP) formulation with K constraint spaces is given by a linear program:

• When the decomposition D is convex, a solution to the PALP formulation is feasible in the corresponding ALP formulation

• The PALP formulation is feasible if the set of basis functions includes a constant basis function f0(x) 1

Α,

,R

,F

:subject to

minimize

1

1

3,32,31,3

3,22,21,2

3,12,11,1

aa

a

ddd

ddd

ddd

αwi

ii

Xx0x

x

w

Partitioning matrix DColumn vector Mw(x, a)T of instantiated cost network

terms

Page 12: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

12 Intel Research12

Interpreting PALP Approximations

• PALP can be viewed as solving K MDPs with overlapping state and action spaces, and shared value functions:

MDP #2MDP #1 MDP #3

ww

Α,

,R

,F

:subject to

minimize

1

1

3,32,31,3

3,22,21,2

3,12,11,1

,3,2,1

aa

a

ddd

ddd

ddd

αwdαwdαwdi

iii

i

iii

i

iii

Xx0x

x

w

Page 13: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

13 Intel Research13

Partitioning Matrix D

• To achieve high quality and tractable approximations, the K constraint spaces should preserve critical dependencies in the MDP and have a small treewidth

• How to generate the best PALP approximation within a given complexity limit is an open question

• In the experimental section, we build a constraint space for every node in the ALP cost network and its neighbors

Constraint subspace #2Constraint subspace #1 Constraint subspace #3

Page 14: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

14 Intel Research14

Solving PALP Approximations

• PALP formulations can be solved by exact methods for solving ALP formulations

• In the experimental section, we use the cutting plane methodfor solving linear programs

Page 15: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

15 Intel Research15

Theoretical Analysis

• PALP value functions are upper bounds on the optimal value function V*

• PALP minimizes the L1-norm error between the optimal value function V* and our value function approximation

• The quality of PALP solutions can be bounded as follows:

• PALP generates a close approximation to the optimal value function V* if V* lies in the span of basis functions and the penalty δ for partitioning the ALP constraint space is small

γ

γψ

1VVmin

1

2VV

,1

~ w

w

w

The L1-norm error of the PALP value

function

The minimum max-norm error of the linear value function approximation

The hardness of making an ALP solution feasible in

the PALP formulation

Page 16: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

16 Intel Research16

Overview

• Introduction

– Factored Markov decision processes

– Approximate linear programming

– Solving ALP formulations

• Partitioned linear programming approximations

– Formulation, theory, and insights

• Experiments

• Conclusions and future work

Page 17: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

17 Intel Research17

Experiments

• Demonstrate the quality and scale-up potential of partitioned ALP approximations

• Comparison to exact and Monte Carlo ALP approximations on three topologies of the network administration problem

Ring-of-rings topology Grid topologyRing topology

Treewidth of the grid topology grows with the number of computers

Page 18: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

18 Intel Research18

• Evaluation by the quality of policies (relatively to the reward of ALP policies) and computation time

Experimental Results

6 12 18 24 30

0.7

0.8

0.9

1

Ring topology

Re

wa

rd r

ela

tive

to A

LP

po

licie

s

6 12 18 24 30

0.7

0.8

0.9

1

Ring-of-rings topology

2x2 4x4 6x6 8x8 10x10

0.7

0.8

0.9

1

Grid topology

6 12 18 24 300

10

20

30

Problem size n

Co

mp

uta

tio

n tim

e [s]

6 12 18 24 300

10

20

30

Problem size n

2x2 4x4 6x6 8x8 10x100

10

20

30

Problem size nxn

MC ALP

PALP

ALP

Page 19: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

19 Intel Research19

• The quality of PALP policies is almost as high as the quality of ALP policies

Experimental Results

6 12 18 24 30

0.7

0.8

0.9

1

Ring topology

Re

wa

rd r

ela

tive

to A

LP

po

licie

s

6 12 18 24 30

0.7

0.8

0.9

1

Ring-of-rings topology

2x2 4x4 6x6 8x8 10x10

0.7

0.8

0.9

1

Grid topology

6 12 18 24 300

10

20

30

Problem size n

Co

mp

uta

tio

n tim

e [s]

6 12 18 24 300

10

20

30

Problem size n

2x2 4x4 6x6 8x8 10x100

10

20

30

Problem size nxn

MC ALP

PALP

ALP

Page 20: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

20 Intel Research20

• Magnitudes of ALP and PALP weights are different but the weights exhibit similar trends

Experimental Results

0 10 20 30 40 505

6

7

8

Basis function index i

AL

P w

eig

hts

wi

0 10 20 30 40 500.8

1

1.2

1.4

PA

LP

we

igh

ts w

i

7x7 grid topology

Page 21: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

21 Intel Research21

• PALP policies can be computed significantly faster than ALP policies

Experimental Results

6 12 18 24 30

0.7

0.8

0.9

1

Ring topology

Re

wa

rd r

ela

tive

to A

LP

po

licie

s

6 12 18 24 30

0.7

0.8

0.9

1

Ring-of-rings topology

2x2 4x4 6x6 8x8 10x10

0.7

0.8

0.9

1

Grid topology

6 12 18 24 300

10

20

30

Problem size n

Co

mp

uta

tio

n tim

e [s]

6 12 18 24 300

10

20

30

Problem size n

2x2 4x4 6x6 8x8 10x100

10

20

30

Problem size nxn

MC ALP

PALP

ALP

Exponential speedup

Page 22: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

22 Intel Research22

• PALP policies are superior to ALP policies, which are obtained by Monte Carlo constraint sampling

Experimental Results

6 12 18 24 30

0.7

0.8

0.9

1

Ring topology

Re

wa

rd r

ela

tive

to A

LP

po

licie

s

6 12 18 24 30

0.7

0.8

0.9

1

Ring-of-rings topology

2x2 4x4 6x6 8x8 10x10

0.7

0.8

0.9

1

Grid topology

6 12 18 24 300

10

20

30

Problem size n

Co

mp

uta

tio

n tim

e [s]

6 12 18 24 300

10

20

30

Problem size n

2x2 4x4 6x6 8x8 10x100

10

20

30

Problem size nxn

MC ALP

PALP

ALP

Page 23: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

23 Intel Research23

• PALP policies are superior to ALP policies, which are obtained by Monte Carlo constraint sampling

Experimental Results

6 12 18 24 30

0.7

0.8

0.9

1

Ring topology

Re

wa

rd r

ela

tive

to A

LP

po

licie

s

6 12 18 24 30

0.7

0.8

0.9

1

Ring-of-rings topology

2x2 4x4 6x6 8x8 10x10

0.7

0.8

0.9

1

Grid topology

6 12 18 24 300

10

20

30

Problem size n

Co

mp

uta

tio

n tim

e [s]

6 12 18 24 300

10

20

30

Problem size n

2x2 4x4 6x6 8x8 10x100

10

20

30

Problem size nxn

MC ALP

PALP

ALP

Page 24: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

24 Intel Research24

Overview

• Introduction

– Factored Markov decision processes

– Approximate linear programming

– Solving ALP formulations

• Partitioned linear programming approximations

– Formulation, theory, and insights

• Experiments

• Conclusions and future work

Page 25: Partitioned Linear Programming Approximations for MDPs€¦ · –Solving ALP formulations •Partitioned linear programming approximations –Formulation, theory, and insights •Experiments

25 Intel Research25

Conclusions and Future Work

• Conclusions

– A novel approach to ALP that allows for satisfying ALP constraints without an exponential dependence on their treewidth

– Natural tradeoff between the quality and computation time of ALP solutions

– Bounds on the quality of learned policies

– Evaluation on a challenging synthetic problem

• Future work

– Learning of a good partitioning matrix D and the problem of exact inference in Bayesian networks with a large treewidth

– Evaluate PALP on a large-scale real-world planning problem