SandHouse
Pages and contents

Partial Homomorphisms

Ravindran Thesis (2004)

https://all.cs.umass.edu/pubs/2004/ravindran_thesis04.pdf

Definitions

Sufficient Statistic: Informally, one can define a good abstraction to be a function of the observable features of a task such that it is a β€œsufficient statistic.”

Partition: A partition B of X is a set of disjoint subsets or blocks biβŠ†X:⋃ibi=X.

Reward Respecting Partition: A partition B of β„³ is reward respecting if for

(s1,a1)≑b(s2,a2)⟹R(s1,a1)=R(s2,a2) βˆ€(s1,a2),(s2,a2)∈Ψ

MDP Homomorphism: An MDP homomorphism h from an MDP β„³=⟨S,A,Ξ¨,P,R⟩ to an MDP β„³β€²=⟨Sβ€²,Aβ€²,Ξ¨β€²,Pβ€²,Rβ€²βŸ© is a surjection from Ξ¨ to Ξ¨β€², defined by a tuple of surjections (f,gs∣s∈S), with h((s,a))=(f(s),gs(a)), where f:Sβ†’Sβ€² and gs:Asβ†’Aβ€²f(s) for s∈S , such that for all s,t∈S , and a∈As :

Pβ€²(f(s),gs(a),f(t))=T(s,a,[t]Bh|S)
Rβ€²(f(s),gs(a))=R(s,a)

We call β„³β€² the homomorphic image of β„³ under h . We use the shorthand h(s,a) to denote h((s,a)) . The surjection f maps states of β„³ to states of β„³β€² , and since it is generally many-to-one, it generally induces nontrivial equivalence classes of states s of β„³ : [s]f . Each surjection gs recodes the actions admissible in state s of β„³ .

Partial Homomorphism: A partial homomorphism is a surjection from an MDP, or an SMDP, to a corresponding image, such that the homomorphism conditions hold only over subsets of the state-action space. A partial MDP homomorphism from β„³=⟨S,A,Ξ¨,P,R⟩ to β„³β€²=⟨Sβ€²,Aβ€²,Ξ¨β€²,Pβ€²,Rβ€²βŸ© , such that Ο„βˆˆSβ€² , α∈Aβ€² , (Ο„,Ξ±)βˆˆΞ¨β€² and Pβ€²(Ο„,Ξ±,Ο„)=1.0 , is a surjection from Ξ₯βŠ†Ξ¨ to Ξ¨β€² , defined by a tuple of surjections f,gs∣s∈S , with h(s,a)=(f(s),gs(a)) , where f:Sβ†’Sβ€² and gs:Ξ₯sβ†’Aβ€²f(s) for s∈S where Ξ₯s is non-empty and given by Ξ₯s=a∣(s,a)∈Ξ₯ such that for all s∈fβˆ’1(Sβ€²βˆ’Ο„) , sβ€²βˆˆS and a∈Ξ₯s :

Pβ€²(f(s),gs(a),f(sβ€²))=T(s,a,[sβ€²]Bh|S)
Rβ€²(f(s),gs(a))=R(s,a)

β„³β€² is called the partial homomorphic image of β„³ under h . Partial SMDP homomorphisms can be similarly defined with the conditions above extended to hold for joint...

Relativized Option: A relativized option of an SMDP β„³=(S,A,Ξ¨,P,R) is the tuple O=(h,β„³O,ℐ,Ξ²) where β„³O is the option SMDP, β„βŠ†S is the initiation set, Ξ²:SOβ†’[0,1] is the termination condition, and h=(f,{gs∣s∈S}) is a partial homomorphism from the SMDP (S,A,Ξ¨,P,RG) to β„³O with RG chosen to describe the sub-goal. The set SO is the image of the domain of the option under f plus an absorbing state Ο„, and Ξ¨O=h(Ξ¨). The option policy Ο€:Ξ¨Oβ†’[0,1] is obtained by solving β„³ by treating it as an episodic task as before. Depending on the sub-task, h can be defined only over a subset of Ξ¨, restricting the actions and options available in the option SMDP.

Hierarchical Policy: A hierarchical policy in β„³ with a hierarchical decomposition of {O0,β‹―,On} is specified by the tuple Ο€=(Ο€0,Ο€1,β‹―,Ο€n), i.e., a policy for each Oi. An optimal hierarchical policy, Ο€βˆ—, consists of the tuple of optimal policies in each of the component options, i.e., Ο€βˆ—=(Ο€0βˆ—,Ο€1βˆ—,β‹―,Ο€nβˆ—).

Deictic Option Schema: A deictic option schema of a factored SMDP β„³=⟨S,A,Ξ¨,P,R⟩ is the tuple ⟨K,π’Ÿ,O⟩ , where O=⟨h,β„³O,ℐ,β⟩ is a relativized option in β„³ , K is the number of deictic pointers available and π’Ÿ=π’Ÿ1,π’Ÿ2,β‹―,π’ŸK is the set of admissible configurations of the deictic pointers. For all i , π’ŸiβŠ†21,…,M is the collection of all possible subsets of indices of the features that pointer i can project onto the schema. M is the number of features used to describe S .

Types of Pointers

1. Independent pointers: For every Jiβˆˆπ’Ÿi , ρJi satisfy the homomorphism condition on transition probabilities given by equation 4.2. Then, the right assignment for pointer i is independent of the other pointers and there is one component of the weight vector corresponding to pointer i and the updates for this component depends only on the features indexed by some Ji .
2. Mutually dependent pointers: For each Jiβˆˆπ’Ÿi and Jjβˆˆπ’Ÿj , ρJi×ρJj satisfies equation 4.2. But ρJi and ρJj do not satisfy equation 4.2 for some Ji and Jj . Thus, they cannot be treated separately and the composite projections given by their cross-products has to be considered. There is one component of the weight vector that corresponds to this cross-product projection. The update for this component will depend on the features indexed by some Ji and Jj .
3. Dependent pointer: For each Jiβˆˆπ’Ÿi and Jjβˆˆπ’Ÿj , ρJi×ρJj satisfies equation 4.2, as does ρJi . But ρJj does not satisfy equation 4.2 for at least some value of Jj . This means pointer i is an independent pointer, while j is a dependent one. There is a separate component of the weight vector that corresponds to pointer j , but whose update depends on the features indexed by both Ji and Jj .

Types of State Action Equivalence

1. Optimal value equivalence is when two state action pairs are equivalent if their optimal action values are the same. (s1,a1)≑Qβˆ—(s2,a2)⟺Qβˆ—(s1,a1)=Qβˆ—(s2,a2).
2. Optimal policy equivalence is when state action pairs are considered equivalent if the probability of picking those actions in those states under some optimal policy are same (s1,a1)β‰‘Ο€βˆ—(s2,a2)βŸΊΟ€βˆ—(s1,a1)=Ο€βˆ—(s2,a2) for some Ο€βˆ—.
3. (Partial) Homomorphic equivalence is what the work explores. It argues that it is a more efficient method when you can exploit priors about the system to develop abstractions.

Bayesian Algorithm

Formally the problem may be stated as: Given a set of candidate transformations β„‹ and the option MDP β„³O=⟨SO,AO,Ξ¨O,PO,RO⟩ , how do we choose the right transformation to employ at each invocation of the option? We assume that β„³=⟨S,A,Ξ¨,P,R⟩ is the MDP describing the actual task, and that P and R are not known. Let ψ(s) be a function of the current state s that captures the features necessary to distinguish the particular context in which the option is invoked. In the example in Figure 5.2, the room number is sufficient, while in an object-based environment some property of the target object, say color, might suffice. Often in practice, ψ(s) is a simple function of s like a projection onto a subset of features, as in the rooms example. The features, ψ(s) , can be thought of as distinguishing various instances of the family of sub-problems represented by the relativized option. The problem of choosing the right transformation is formulated as a family of Bayesian parameter estimation problems, one for each possible value of ψ(s) .

There is one parameter, ΞΈ , that can take a finite number of values from β„‹ . Let p(h,ψ(s)) denote the prior probability that ΞΈ=h , i.e., the prior probability that h is the correct transformation to apply in the sub-problem represented by ψ(s) . The set of samples used for computing the posterior distribution is the sequence of transitions, (s1,a1,s2,a2,β‹―), observed when the option is executing. Note that the probability of observing a transition from si to si+1 under ai for any h , is independent of the other transitions in the sequence. Recursive Bayes learning is used to update the posterior probabilities incrementally.

Let pn(h,ψ(s)) be the posterior probability that h is the correct transformation to apply in the sub-problem represented by ψ(s) after n time steps from when the option was invoked. Initialize p0(h,ψ(s))=p(h,ψ(s)) for all h and ψ(s) . Let En=(sn,an,sn+1) be the transition observed after n time steps of option execution. The posteriors for all h=(f,{gs∣s∈S}) are updated as follows:

pn(h,ψ(s))=Pr(En∣h,ψ(s))pnβˆ’1(h,ψ(s))𝒩

where Pr(En∣h,ψ(s))=PO(f(sn),gsn(an),f(sn+1)) is the probability of observing the h \-projection of transition En in the option MDP and 𝒩=βˆ‘hβ€²βˆˆβ„‹PO(fβ€²(sn),gβ€²sn(a),fβ€²(sn+1))pnβˆ’1(hβ€²,ψ(s)) is a normalizing factor. When an option is executing, at time step n , h^=arg⁑maxh⁑pn(h,ψ(s)) is used to project the state to the option MDP and lift the action to the original MDP. After experiencing a transition, the posteriors of all the transformations in β„‹ are updated using the pn equation.

The term Pr(En∣h,ψ(s)) is a measure of how likely the transition En is in the option MDP assuming that the agent is in the sub-problem represented by ψ(s) and h is used to project the transition onto the option MDP. Accumulating this "likelihood" over a sufficiently long sequence of transitions gives the best possible measure of how correct a transformation is for a given sub-problem. 𝒩 is a normalizing factor that prevents the values of pn from decaying to very small numbers with large n . Without normalization, pn 's are likely to decay to zero since the probability of observing any long sequence of transitions is very low even under the correct transformations.