betaFeedback

WorksMathematics

Confessions of a Masked MDP

Abstract

In reinforcement learning, one presumes the action set to be known ahead of time, and, thus, one must know if any state-action pairs are not permissible ahead of computations. In some applications, determining this action mask is the main computational bottleneck. Isolating this problem to highlight its core properties, we study how to combine the search for an optimal policy with the learning of the mask itself, under a linear MDP model in which each attempted action reveals the exact value of a linear score determining its validity. In this framework, we first construct an algorithm based on deterministic optimistic optimization and show that it is minimax optimal, which we show is also computationally efficient. However, it is sub-optimal on non-degenerate instances, as we show. We propose an alternative, which is also computationally efficient, which plans its exploration strategy. This algorithm admits a formal interpretation as an analogue of information-directed-sampling for deterministic feedback, which may be of independent interest. Finally, we study an application of this framework to transfer learning, where the invalid action set changes over time.

Introduction

Reinforcement learning, the interactive learning of control systems and games ([35, 33]), and in particular its formalisation using Markov Decision Processes (MDPs) ([29]), has been an undeniably successful field of research in the last thirty years. Applications span far and wide, from datacenter cooling ([14]), to autonomous driving ([31]), through advertising ([12]) and conversational AI training ([21]). In the MDP formalisation, the set of available actions is typically assumed to be independent of the state of the system. In the classical theory ([10]), this assumption is a convenience and varying actions can be accommodated at the cost of some burdensome notation (see, e.g., Puterman, [29]).

In computation, however, ever since RL methods have shifted to GPU-accelerated computation (Mnih et al., 2015), varying actions have become nefarious spoilers. Indeed, GPU-acceleration of, e.g., Value Iteration, relies on the ability to broadcast operations over the entire state-action space. The solution, early adopted by practitioners, is to use a boolean invalid action mask to zero-out the rewards (and/or transitions) corresponding to invalid actions. Hadamard multiplication by the mask preserves the tensor structure, and is accelerated. Remarkably, there has been some theoretical work showing that masking preserves the convergence of Policy Gradient ([17]).

This state of affairs is acceptable in many applications. However, in some cases, computing the mask is itself the computational bottleneck. For instance, in civil engineering applications, each action corresponds to a refinement of the current design (state), and determining whether it satisfies the project’s design constraints may require extensive simulations. Precomputing all possible designs in order to check their feasibility for a building is, quite evidently, a prohibitively expensive approach to architecture.

When pre-computation of the mask is impossible, the current approach is to penalise invalid actions through reward shaping Ng et al. [25], which is a form of Lagrangian relaxation. However, when it comes to learning, this approach is fundamentally flawed: it treats the deterministic signal of permissibility and the stochastic reward signal homogeneously, a dilution which explains the terrible performance of these as learning methods.

One would expect the literature on constrained MDPs to have addressed this problem somehow. Yet, both classical [2] and more recent [1, 3] work focuses on expected costs, with the aim of controlling violations. In our setting, due to determinism of signals, there is no reason to repeat a known violation. The closest work to ours is, thus, that of Wei et al. [37], whose instantaneous hard constraints are in the same spirit, but whose regret bounds are dominated by the minimax analysis and stochasticity of the rewards in the interior of the constraints, which prevents the identification of optimal exploration strategies.

At the end of the day, we are left to face an MDP with masked actions, a masked MDP, if you will, with the problem of how to efficiently explore it to identify the mask. Motivated by the computational cost of the mask itself, we focus on 0-noise feedback, analogous to membership-query and realizable-classification settings [22] (Angluin 1988). We will show, with Theorem 2.3, that this is sufficient to achieve optimal regret if one must also learn the MDP dynamics and/or rewards. While the mask confesses its values freely, the problem of reaching the information efficiently through the MDP dynamics remains.

In the remainder of this section, we detail the setting explicitly, and formally introduce the problem of mask learning. Thereafter, in § 2, we establish a minimax-optimal algorithm based on Optimism in the Face of Uncertainty (OFU), and argue that this is not a good benchmark for this problem. In § 3, we thus study finer, instance-dependent bounds, and introduce an algorithm which improves the exploration of OFU on non-degenerate instances, and connect it to the information-directed sampling (IDS) algorithm of Russo and Van Roy [30], also identifying an auxiliary MDP formulation, à la Hao and Lattimore [15]. Finally, in § 4, we discuss an example application to transfer learning of masks in MDPs, motivated by an industrial application.

Setting

As a basis, let M:=(S,A,P,r,H)\mathcal{M} := (\mathcal{S}, \mathcal{A}, P, r, H) be a finite-horizon MDP, with state space S\mathcal{S}, action space A\mathcal{A}, transition kernel P:S×A×S→[0,1]P : \mathcal{S} \times\mathcal{A} \times\mathcal{S} \to[0,1], with ∑s′∈SP(s,a,s′)=1\sum_{s' \in\mathcal{S}} P(s,a,s') = 1, reward r:S×A→[0,1]r : \mathcal{S} \times\mathcal{A} \to[0,1], and horizon H∈NH \in\mathbb{N}.

We will adopt the formalism of linear MDPs (without loss of generality as it subsumes tabular MDPs). Thus, we assume that there exists a known feature map ϕ:S×A→Rd\phi: \mathcal{S} \times\mathcal{A} \to\mathbb{R}^d, d∈Nd \in\mathbb{N}, such that, for all (s,a)∈S×A(s,a) \in\mathcal{S} \times\mathcal{A},

r(s,a)=ϕ(s,a)⊤θrr(s,a) = \phi(s,a)^\top\theta_r

for some parameter θr∈Rd\theta_r \in\mathbb{R}^d. Moreover, we assume that the transition kernel is linear in the features, i.e. there is parameter-valued function θP:S→Rd\theta_P : \mathcal{S} \to\mathbb{R}^d over S\mathcal{S} such that

P(s,a,s′)=ϕ(s,a)⊤θP(s′)P(s,a,s') = \phi(s,a)^\top\theta_P(s')

for all (s,a,s′)∈S×A×S(s,a,s') \in\mathcal{S} \times\mathcal{A} \times\mathcal{S}.

From M\mathcal{M}, we can define a family of masked MDPs, indexed by the masks m∈2S×Am \in2^{\mathcal{S} \times\mathcal{A}}, viewed either as function from S×A→{0,1}\mathcal{S} \times\mathcal{A} \to\{0,1\} or a {0,1}\{0,1\}-valued matrix in RS×A\mathbb{R}^{\mathcal{S} \times\mathcal{A}}. The masked MDP Mm:=(S,A,P,r,H,m)\mathcal{M}_m := (\mathcal{S}, \mathcal{A}, P,r,H,m) is defined on the augmented state space S∪{s†}\mathcal{S} \cup\{s_\dagger\}, where s†s_\dagger denotes an absorbing cemetery state. Its reward function is given for (s,a)∈S×A(s,a) \in\mathcal{S} \times\mathcal{A} by

rm(s,a)=m(s,a)r(s,a),r_m(s,a) = m(s,a)r(s,a),

with rm(s†):=0r_m(s_\dagger) := 0. For (s,a,s′)∈S×A×S(s,a,s') \in\mathcal{S} \times\mathcal{A} \times\mathcal{S}, the transition kernel of Mm\mathcal{M}_m is defined by

Pm(s,a,s′)=m(s,a)P(s,a,s′),P_m(s,a,s') = m(s,a)P(s,a,s'),

with the remaining probability mass assigned to the cemetery state:

Pm(s,a,s†):=1−∑s′∈Sm(s,a)P(s,a,s′).P_m(s,a,s_\dagger) := 1 - \sum_{s' \in\mathcal{S}} m(s,a)P(s,a,s').

Finally, since s†s_\dagger is absorbing, Pm(s†,⋅,s†)=1P_m(s_\dagger,\cdot,s_\dagger) = 1.

Note that a masked linear MDP remains a linear MDP, up to increasing the dimensions by 1. Indeed the new feature map ϕ~:S∪{s†}×A→Rd+1\widetilde{\phi} : \mathcal{S} \cup\{s_\dagger\} \times\mathcal{A} \to\mathbb{R}^{d+1} is defined as ϕ~(s,a)=(m(s,a)ϕ(s,a),1−m(s,a))∈Rd+1\widetilde{\phi}(s,a) = (m(s,a)\phi(s,a),1-m(s,a)) \in\mathbb{R}^{d+1}. Thus, in order to ease exposition and maintain consistent algebraic tools, we will also represent the mask linearly using the embedding ϕ\phi, i.e. we assume that there is u∗∈Rdu_* \in\mathbb{R}^d such that

m(s,a)=sgn⁡(ϕ(s,a)⊤u∗)m(s,a) = \operatorname{sgn}(\phi(s,a)^\top u_*)

for all (s,a)∈S×A(s,a) \in\mathcal{S} \times\mathcal{A}.

When clear from context, we drop subscripts of mm.

In a (masked) MDP, given any h∈[H]h \in[H] and π:[H]×S→A\pi: [H] \times\mathcal{S} \to\mathcal{A}, let (St,hs,π)h=tH(S_{t,h}^{s,\pi})_{h=t}^H be the Markov chain induced by π∈ΠM\pi\in\Pi_M (Markov policies) and PP starting from Stt,s,π=sS_t^{t,s,\pi} = s. It is well known that there is a cumulated-reward-maximising policy of this form, and we can solve the control problem by limiting ourselves to maximising, over π∈ΠM\pi\in\Pi_M, the value functions JπJ_\pi defined for (t,s)∈[H]×S(t,s) \in[H] \times\mathcal{S} by

Jπ(t,s):=E[∑h=tHr(Sht,s,π,πh(Sht,s,π))].J_\pi(t,s) := \mathbb{E}\left[\sum_{h=t}^{H} r\left(S_h^{t,s,\pi},\pi_h(S_h^{t,s,\pi})\right)\right].

Moreover, we will denote the value function

V:(t,s)∈[H]×S↦V(t,s):=sup⁡πJπ(t,s),V : (t,s) \in[H] \times\mathcal{S} \mapsto V(t,s) := \sup_\pi J_\pi(t,s),

where the supremum is taken over all Markov time-dependent policies π\pi. When necessary to clarify a mask on the MDP, we will add superscripts to JJ, VV, or SS to indicate the mask, e.g. JmJ^{m}, VmV^{m}, and Sm,πS^{m,\pi}. When considering an initial distribution ϱ\varrho over states, we will use the shorthand V(h,ϱ):=∫V(h,s)ϱ(ds)V(h,\varrho):=\int V(h,s)\varrho(\mathrm{d}s) and likewise for JJ.

Minimax mask learning

On the masked MDP, we can consider three main learning problems: the mask, the dynamics, and the combination of both. In this section, we draw a general picture of the mask learning problem with broad strokes, focusing on minimax-optimality.

Learning problems on masked MDPs

Clearly, if the mask is known but the dynamics must be learnt, the problem is statistically indistinguishable from a classical RL problem [19]. By comparison, we will focus on the other two problems where the mask is unknown, due to the absence of its pre-computation, and an agent observes only sequences of state-action-reward-mask quadruples. Meanwhile, the learning problem of the dynamics is naturally formulated as an episodic online RL problem [19], wherein visiting a state-action pair (s,a)(s,a) reveals a noisy signal of the reward and a sampled transition from P(s,a,⋅)P(s,a,\cdot). Notice that, due to the presence of a cemetery state, one must consider an episodic setting, rather than a non-episodic one.

Let u⋆u^\star denote the unknown true parameter of the mask’s linear form. Letting A\mathcal{A} be a learning algorithm which produces a sequence of action trajectories {(Ak,h)h=1H}k∈N\{(A_{k,h})_{h=1}^{H}\}_{k\in\mathbb{N}} by playing policies (πk)k∈N(\pi_k)_{k\in\mathbb{N}}, we measure its performance by its cumulative pseudo-regret, which, after K∈NK\in\mathbb{N} episodes, is defined as

RK(A):=∑k=1Ksup⁡πJπ(1,ϱ)−Jπk(1,ϱ).\mathcal{R}_{K}(\mathcal{A}):=\sum_{k=1}^{K}\sup_{\pi}J_{\pi}(1,\varrho)-J_{\pi_k}(1,\varrho).

We continue, in Section 2.2, by the construction of a minimax-optimal optimistic algorithm. Then, in Section 2.3, we show that any such algorithm is a sufficient building block for learning transitions and rewards if necessary. This will complete the picture of these three learning problems.

Minimax Regret bounds

Naturally, one would begin a study of learning masks in a masked MDP by studying minimax-optimal regret. However, as Theorem 2.1 will show, this paradigm is a poor benchmark for understanding the moving pieces of the problem. Indeed, due to the linear embedding, the number of mistakes that can be made by any reasonable1 algorithm is determined by the feature map in a tight manner.

In order to keep track of available information about the mask, we will use a version space (as in, e.g., Angluin, 1988) which contains all system hypotheses consistent with observed values of the mask. Let D⊂S×A\mathcal{D}\subset\mathcal{S}\times\mathcal{A} be a collection of state-action pairs (si,ai)(s_i,a_i), i∈[n]i\in[n], and define y∈Rny\in\mathbb{R}^{n} by yi:=⟨ϕ(si,ai)∣u⋆⟩y_i:=\langle\phi(s_i,a_i)|u^\star\rangle. The version space compatible with D\mathcal{D} is

V(D)=C0∩{u∈Rd:ΦDu=y}\mathcal{V}(\mathcal{D})=\mathcal{C}_0\cap\{u\in\mathbb{R}^{d}:\Phi_{\mathcal{D}}u=y\}

wherein ΦD=(ϕ(si,ai)T)i=1n\Phi_{\mathcal{D}}=(\phi(s_i,a_i)^{\mathsf{T}})_{i=1}^{n}, and C0⊂Rd\mathcal{C}_0\subset\mathbb{R}^{d} is a priori feasible set, say the unit ball. More broadly, we call V⊂Rd\mathcal{V}\subset\mathbb{R}^{d} a version space if there is a set D⊂S×A\mathcal{D}\subset\mathcal{S}\times\mathcal{A} such that V=V(D)\mathcal{V}=\mathcal{V}(\mathcal{D}).

Whenever the learner plays (s,a)∈S×A(s,a)\in\mathcal{S}\times\mathcal{A}, it observes the exact score yi=⟨ϕ(s,a)∣u⋆⟩y_i=\langle\phi(s,a)|u^\star\rangle (whether the action is valid or not), and thus m(s,a)m(s,a), as well as the reward and next state of Mm\mathcal{M}_m (the next state being s†s_{\dagger} if the action is invalid). This noiseless feedback model is an extension of the deterministic bandit problems [24].

Given a version space V\mathcal{V}, the linear structure of the mask partitions the state-action space into three sets: the certified valid pairs,

D+(V):={(s,a)∈S×A:inf⁡u∈V⟨ϕ(s,a)∣u⟩>0},\mathcal{D}^{+}(\mathcal{V}):=\{(s,a)\in\mathcal{S}\times\mathcal{A}:\inf_{u\in\mathcal{V}}\langle\phi(s,a)|u\rangle>0\},

the certified invalid pairs,

D−(V):={(s,a)∈S×A:sup⁡u∈V⟨ϕ(s,a)∣u⟩<0},\mathcal{D}^{-}(\mathcal{V}):=\{(s,a)\in\mathcal{S}\times\mathcal{A}:\sup_{u\in\mathcal{V}}\langle\phi(s,a)|u\rangle<0\},

and the remaining uncertified pairs,

U(V):=(S×A)∖(D+(V)∪D−(V)).\mathcal{U}(\mathcal{V}):=(\mathcal{S}\times\mathcal{A})\setminus\left(\mathcal{D}^{+}(\mathcal{V})\cup\mathcal{D}^{-}(\mathcal{V})\right).

In other words, a pair (s,a)(s,a) is uncertified whenever the range of θ∈V↦⟨ϕ(s,a),θ⟩\theta\in\mathcal{V}\mapsto\langle\phi(s,a),\theta\rangle includes zero.

As the learner plays, it generates a non-decreasing sequence of sets (Dt)t≥1(\mathcal{D}_t)_{t\geq1} by interacting with the environment, whose parameter u⋆u^\star lies in the intersection of the non-increasing sequence (Vt)t≥1(\mathcal{V}_t)_{t\geq1}, where Vt:=V(Dt)\mathcal{V}_t:=\mathcal{V}(\mathcal{D}_t).

Given D\mathcal{D}, V(D)\mathcal{V}(\mathcal{D}) is defined by linear equalities (up to intersection with C0\mathcal{C}_0), so that sampling a new pair (s,a)(s,a) cannot affect the version space unless ϕ(s,a)\phi(s,a) is linearly independent of D\mathcal{D}. This implies that the number of mistakes made by a reasonable algorithm (that never plays in D−(Vt)\mathcal{D}^{-}(\mathcal{V}_t)) is at most

dim⁡ϕ(U(V0))≤d≤∣S∣∣A∣.\dim\phi(\mathcal{U}(\mathcal{V}_0))\leq d\leq|\mathcal{S}||\mathcal{A}|.

Figure 1. Visualisation of V\mathcal{V} and (D+,D−,U)(\mathcal{D}^{+},\mathcal{D}^{-},\mathcal{U}).

This quantity will be the central focus of our exploration analysis, however, it should be noted features linearly dependent on ϕ(Vt)\phi(\mathcal{V}_t) can still identify the validity of other pairs (for instance ϕz4\phi_{z_4} and ϕz5\phi_{z_5} in Section 2.2), which we will use to improve exploration.

Theorem 2.1. Let C0=B2(0,1)\mathcal{C}_0 = \mathcal{B}_2(0,1) be the Euclidean ball. For every d≥2d \ge2 and every H≥1H \ge1, there is a masked MDP with dim⁡ϕ(U(C0))=d\dim\phi(\mathcal{U}(\mathcal{C}_0)) = d on which any algorithm satisfies

sup⁡u⋆∈C0Eu⋆[R(T)]≥H4min⁡{T,d−1}.\sup_{u^\star\in\mathcal{C}_0} \mathbb{E}_{u^\star}[R(T)] \ge\frac{H}{4}\min\{T,d-1\}.

Proof. Consider the masked MDP in Figure 2. We take the trivial feature map, so that d=2∣A∣d = 2|\mathcal{A}|. Under the best possible mask, all actions in s1s_1 go to s2s_2 with reward 11. Under the real mask, only one of the actions is valid in s1s_1. Any algorithm has no choice but to take actions at random in s1s_1 until s2s_2 is reached, which incurs regret HH each time. The bound follows from expected number of trials, see Appendix § 10.§ 4. □\square

Figure 2. The MDP in the proof of Theorem 2.1.

In an unmasked MDP, optimistic algorithms offer a simple-to-analyse class of minimax-optimal algorithms ([6, 18, 7]). We now introduce their analogue in the masked setting, which we call version-space optimism (VSO). Since the mask is observed noiselessly, VSO is more closely related to the work of Munos [24] than to these standard RL algorithms. It maintains all mask models still compatible with the observations and acts according to the most optimistic one, thereby exploiting only constraints that have already been ruled out by the data. Note that this algorithm is computationally feasible, since the space of masks to search is at most dd-dimensional and the MDPs are linear. It is also possible to implement it using Extended Value Iteration ([18]), see Appendix § 12.

Proposition 2.2. Let C0=B2(0,1)\mathcal{C}_0 = \mathcal{B}_2(0,1) be the Euclidean ball. For any (H,T,ϕ)(H,T,\phi), the version-space optimism algorithm (Algorithm 1) satisfies

sup⁡u⋆∈C0Eu⋆[R(T)]≤min⁡{T,dim⁡ϕ(U(C0))}H.\sup_{u^\star\in\mathcal{C}_0}\mathbb{E}_{u^\star}[R(T)] \le\min\{T,\dim\phi(\mathcal{U}(\mathcal{C}_0))\}H.

Proof. By optimism over the version space, either episodes are free (πt\pi_t coincides with the optimal policy of the true mask) or they land on an element of U(Vt)\mathcal{U}(\mathcal{V}_t), which resolves a direction of U(C0)\mathcal{U}(\mathcal{C}_0). Since there are at most dim⁡ϕ(U(C0))\dim\phi(\mathcal{U}(\mathcal{C}_0)) directions to resolve, the claim follows. □\square

Theorem 2.1 and Proposition 2.2 together show that the minimax regret rate for the problem is no different from the rate one would get if one could query each state-action pair directly. In this sense, it is of very limited interest and, the heart of the problem lies in understanding how to leverage the dynamics of the MDP to query the version space at minimal regret.

Separation theorem

Theorem 2.3 will now argue that mask learning can be separated from the problem of learning the dynamics and rewards of the underlying linear MDP, which motivates our choice to study the mask learning problem in isolation. Suppose we have an optimistic learning algorithm A\mathcal{A} for linear MDPs that is capable of achieving, over TT episodes, a high-probability regret bound Blin(T,H,δ)B_{\mathrm{lin}}(T,H,\delta) on an MDP with horizon HH. We denote the trajectory of A\mathcal{A} in episode tt by (ShA,t,AhA,t)h=1H(S_h^{\mathcal{A},t},A_h^{\mathcal{A},t})_{h=1}^{H} and denote by (BhA,t)h=1H(B_h^{\mathcal{A},t})_{h=1}^{H} corresponding step regret upper bounds (see, e.g., Azar et al. [7]).

Theorem 2.3. Consider a reasonable algorithm that is jointly optimistic in the mask and the linear MDP.

Let ptp_t be the probability, conditional on the information available before episode tt, that an action is attempted that is invalid under the true mask. If the analysis of A\mathcal{A} holds under the joint interaction2, with

P(∑t=1Tβt≤Blin(T,H,δ/2))≥1−δ/2.\mathbb{P}\left(\sum_{t=1}^{T}\beta_t \le B_{\mathrm{lin}}(T,H,\delta/2)\right) \ge1-\delta/2.

Then

R(T)≤Blin(T,H,δ/2)+H(min⁡{T,r0}+T2log⁡2δ).\mathcal{R}(T) \le B_{\mathrm{lin}}(T,H,\delta/2) +H\left(\min\{T,r_0\}+\sqrt{\frac{T}{2}\log\frac{2}{\delta}}\right).

with probability at least 1−δ1-\delta, wherein r0:=dim⁡ϕ(U(C0))r_0 := \dim\phi(\mathcal{U}(\mathcal{C}_0)). A high-probability bonus bound for the learner on an unmasked MDP alone does not imply the joint-interaction assumption above.

We defer the proof to Appendix B.5. Let us sketch it briefly. On episodes with no exploration we use the existing bounds of A\mathcal{A}, trajectorially. On exploratory episodes, we use the usual regret decomposition

Δt≤βt+Hpt,βt:=E[∑h<τt∨HBhA,t∣Ft].\Delta_t \le\beta_t + Hp_t,\qquad\beta_t := \mathbb{E}\left[\left.\sum_{h<\tau_t\vee H}B_h^{\mathcal{A},t}\right|\mathcal{F}_t\right].

where Δt\Delta_t is episode tt’s conditional pseudo-regret and τt\tau_t is its first invalid-action time.

We bound the resulting accumulation of exploration using a martingale argument between samples and ptp_t, then show decrease of the dimensionality potential

ΨC0(V):=dim⁡ϕ(U(C0))−dim⁡(ϕ(U(C0))∩U+(V)),\Psi_{\mathcal{C}_0}(\mathcal{V}) := \dim\phi(\mathcal{U}(\mathcal{C}_0))-\dim\left(\phi(\mathcal{U}(\mathcal{C}_0))\cap U^{+}(\mathcal{V})\right),

where U+(V):={x∈Rd: ∀(u1,u2)∈V2,u1⊤x=u2⊤x}U^{+}(\mathcal{V}) := \{x\in\mathbb{R}^{d}:\ \forall(u_1,u_2)\in\mathcal{V}^{2},u_1^{\top}x=u_2^{\top}x\} is the subspace whose value is known on V\mathcal{V}.

As a consequence of Theorems 2.1 and 2.3, it would appear that the problem is trivially solved. Instead, it is more accurate to observe that minimax analysis is not the correct lens to analyse the problem, which, indeed, is not statistical. Rather, the core of the problem, and the next section, lies in how to adapt exploration to the interaction of the dynamics with the feature-space of each instance.

Planned exploration

To understand the shortcomings of VSO on non-pathological instances, let us introduce one which is intuitively cheap to explore, but where optimistic algorithms fail. This instance (see Figure 3) is an extension of Figure 2. Of the ∣A∣|\mathcal{A}| actions, only one, say a⋆a_\star leads to s2s_2, as before. But now, instead of all other actions being invalid (masked), some proportion δ∈(0,1)\delta\in(0,1) of them leads (with 0 reward) to a chain3 (si′)i=2H(s'_i)_{i=2}^{H} of states which transition to each other with reward 1. In the final state of the chain, sH′s'_H, a⋆a_\star yields reward 1, and all other actions 0, and we take any feature map satisfying

Figure 3. The second example MDP.

ϕ(s1,ai)=ϕ(sH′,vi),\phi(s_1,a_i)=\phi(s'_H,v_i),

for all i∈[d]i\in[d], d=O(∣A∣)d=O(|\mathcal{A}|). Thus, the rewards obtainable are: 0, if the first action is invalid, H−2H-2 if one takes a≠a⋆a\ne a_\star at the end of the chain, H−1H-1 if one takes a⋆a_\star instead, and finally HH if one takes a⋆a_\star from the start.

On this instance, any algorithm must still begin by sampling doors at random. However, VSO believes that all untried actions lead to s2s_2 directly, so they have value HH while the chain always has value H−1H-1 at most. Thus, VSO never takes the chain, incurring a regret of order O(H(d−1)(1−δ)/2)\mathcal{O}(H(d-1)(1-\delta)/2) as before. Since a chain can be found (on average) in O((1−δ)H)\mathcal{O}((1-\delta)H) tries, and then any further exploration costs at most O(δK)\mathcal{O}(\delta K), hence it is possible to move from a multiplicative dependence in (H,d)(H,d) to an additive one.

This type of exploration problem is fundamental in control problems, and has been documented in the literature of MDPs (see, for instance, the forthcoming work of Boon et al. (2026)). In order to address it, we introduce a planning-based algorithm which can be readily interpreted as an analogue of the information-directed sampling (IDS) algorithm of Russo and Van Roy [30] (see also Hao and Lattimore [15]). Let us first introduce the algorithm, and then we will compare it to both VSO and IDS.

In order to determine which are the best exploratory paths through the masked MDP, let us start by specifying a generic version space V\mathcal{V}, and consider a set of target state-action pairs U(V)⊆J\mathcal{U}(\mathcal{V})\subseteq\mathcal{J}. Given any (non-stationary, randomised) policy π\pi, let τπ\tau_\pi be the first time that the trajectory (Shπ,πh(Shπ))h=1H(S_h^\pi,\pi_h(S_h^\pi))_{h=1}^H generated by π\pi reaches a state-action pair in T\mathcal{T}.

Consider the family of auxiliary MDPs (Mλ)λ≥0(\mathcal{M}_\lambda)_{\lambda\ge0} with the same dynamics and rewards as the original MDP, except that actions are limited to T∪U+(V)\mathcal{T}\cup\mathcal{U}^+(\mathcal{V}) except that episodes terminate early if T\mathcal{T} is reached, yielding a fixed reward of λ\lambda. The value functional of this MDP is readily seen to be

JV,πλ,T:(π,t,s)↦E[∑h=t(τπ−1)∧Hr(Shπ,πh(Shπ))+λ1{τπ≤H}∣Stπ=s].(1)J_{\mathcal{V},\pi}^{\lambda,\mathcal{T}}:(\pi,t,s)\mapsto\mathbb{E}\left[\sum_{h=t}^{(\tau_\pi-1)\wedge H}r(S_h^\pi,\pi_h(S_h^\pi))+\lambda\mathbf{1}\{\tau_\pi\le H\}\mid S_t^\pi=s\right]. \tag*{(1)}

Via this auxiliary MDP, it is straightforward to obtain a dynamic programming representation of JV,πλ,TJ_{\mathcal{V},\pi}^{\lambda,\mathcal{T}}, or, in fact, of the associated value function VVλ,T(h,s):=sup⁡πJV,πλ,T(h,s)V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h,s):=\sup_\pi J_{\mathcal{V},\pi}^{\lambda,\mathcal{T}}(h,s), which is given by Proposition 3.1.

Proposition 3.1. The optimal value functions VVλ,TV_{\mathcal{V}}^{\lambda,\mathcal{T}} satisfy the following family, indexed by λ≥0\lambda\ge0 and U(V)⊆T\mathcal{U}(\mathcal{V})\subseteq\mathcal{T}, of dynamic programming equations

VVλ,T(h,s)=λ1{∃a:(s,a)∈T}∨max⁡a∈U+(Vt){r(s,a)+∫VVλ,T(h+1,s′)P(ds′∣s,a)}(2)V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h,s)=\lambda\mathbf{1}_{\{\exists a:(s,a)\in\mathcal{T}\}}\vee\max_{a\in\mathcal{U}^+(\mathcal{V}_t)}\left\{r(s,a)+\int V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h+1,s')P(\mathrm{d}s'|s,a)\right\} \tag*{(2)}

with terminal conditions VVλ,T(H+1,⋅)≡0V_{\mathcal{V}}^{\lambda,\mathcal{T}}(H+1,\cdot)\equiv0. Moreover, a pointwise maximiser of the right-hand side of (2) (understood as taking a∈Ta\in\mathcal{T} if the λ\lambda-term is dominant) is an optimal policy for the auxiliary MDP Mλ\mathcal{M}_\lambda.

The dynamic programming (Bellman) equation (2) might appear highly irregular, and it is indeed uncommon in reinforcement learning. It is the standard form for a mixed control and stopping (a.k.a. free-boundary) problem, a well-studied class of stochastic control problems in the mathematical finance literature see, e.g., Pham [28]. Compare also pure stopping problems with a dynamic programming equation, such as prophet problems (Hill and Kertz [16]).

In any case, for finite-dimensional MDPs, resolution of this equation is numerically straightforward, and we can thus use this solution to compute an optimal policy which explores through the shaped reward of (1), which targets at each step Tt:=U(Vt)\mathcal{T}_t:=\mathcal{U}(\mathcal{V}_t). 4

Regret analysis of Algorithm 2, see Proposition 3.2, bounds the regret of λ\lambda-planning in terms of the clearing price for a version space V\mathcal{V} and a target T\mathcal{T}, that is

λ˙V(T):=min⁡{λ≥0:VVλ,T(1,ϱ)≥max⁡m∈VVm(1,ϱ)}.\dot{\lambda}_{\mathcal{V}}(\mathcal{T}):=\min\left\{\lambda\ge0:V_{\mathcal{V}}^{\lambda,\mathcal{T}}(1,\varrho)\ge\max_{m\in\mathcal{V}}V^m(1,\varrho)\right\}.
Algorithm 2λ\lambda-planning
1:Input: initial version space V1:=C0\mathcal{V}_1:=\mathcal{C}_0, initial law ϱ\varrho.
2:for t=1,2,…t=1,2,\ldots do
3:λ˙t=λ˙Vt(U(Vt))\dot{\lambda}_t=\dot{\lambda}_{\mathcal{V}_t}(\mathcal{U}(\mathcal{V}_t))
4:Compute πt∈arg⁡max⁡πJVt,πλ˙t,U(Vt)(ϱ)\pi_t\in\arg\max_\pi J_{\mathcal{V}_t,\pi}^{\dot{\lambda}_t,\mathcal{U}(\mathcal{V}_t)}(\varrho).
5:Play πt\pi_t for the episode, collect (Zh)h∈[H]:=(Shπt,πt,h(Shπt))h=1H(Z_h)_{h\in[H]}:=(S_h^{\pi_t},\pi_{t,h}(S_h^{\pi_t}))_{h=1}^H.
6:Update Dt←Dt−1∪{(Zh)h=1H}D_t\leftarrow D_{t-1}\cup\{(Z_h)_{h=1}^H\}, and Vt+1←V(Dt)\mathcal{V}_{t+1}\leftarrow\mathcal{V}(D_t).
7:end for

Table 2.

(recall that ϱ\varrho is the initial state distribution).

Proposition 3.2. For any u∈C0u\in\mathcal{C}_0, and any T≥1T\ge1, the λ\lambda-planning algorithm (Algorithm 2) satisfies

Eu[R(T)]≤Eu[∑t=1Tλ˙t(Ψt−Ψt+1)]\mathbb{E}_u[R(T)]\le\mathbb{E}_u\left[\sum_{t=1}^{T}\dot{\lambda}_t(\Psi_t-\Psi_{t+1})\right]

wherein Ψt:=ΨC0(Vt)\Psi_t:=\Psi_{\mathcal{C}_0}(\mathcal{V}_t).

We defer the proof to Section B.3 for brevity. The high-level argument mirrors the proof of Proposition 2.2, and no regret except that we can keep track of the regret of exploration episodes through λ˙\dot{\lambda} rather than upper-bounding by HH e.g. when λ=0\lambda=0 we have VV0,T(1,ϱ)=sup⁡m∈VVm(1,ϱ)V_{\mathcal{V}}^{0,\mathcal{T}}(1,\varrho)=\sup_{m\in\mathcal{V}}V^m(1,\varrho) despite exploration.

Now, let us turn to the interpretation of Algorithm 2 as a form of Information-Directed Sampling (IDS). Let us recall the initial set-up of IDS in stochastic bandits and reinforcement learning. Given a filtration Ft\mathcal{F}_t of information available before episode tt, and an unknown parameter uu with a given prior, IDS rests on the computation of the mutual information between the history of observations in episodes up to tt, Ht\mathcal{H}_t, and a target unknown variable χ\chi (for us, u∗u^*). Accounting explicitly for the policy π\pi that generates the observations, we define

Itπ(χ,H):=DKL(Ptπ((χ,H)∈⋅)∥Ptπ(χ∈⋅)⊗Ptπ(H∈⋅)).\mathcal{I}_t^\pi(\chi,\mathcal{H}):=\mathrm{D}_{\mathrm{KL}}\left(\mathbb{P}_t^\pi((\chi,\mathcal{H})\in\cdot)\middle\|\mathbb{P}_t^\pi(\chi\in\cdot)\otimes\mathbb{P}_t^\pi(\mathcal{H}\in\cdot)\right).

Here, Ptπ\mathbb{P}_t^\pi denotes the probability measure induced by policy π\pi and initial distribution ϱ\varrho, conditional on the observed history Ht−1\mathcal{H}_{t-1}. The random variable H\mathcal{H} is any history-valued variable whose restriction up to episode t−1t-1 coincides with the observed history. IDS plays the policy

πt∈arg⁡min⁡πE[(Vu∗(1,ϱ)−Vπu∗(1,ϱ))2∣Ht−1]Itπ(u∗,H)\pi_t\in\arg\min_\pi\frac{\mathbb{E}[(V^{u^*}(1,\varrho)-V_\pi^{u^*}(1,\varrho))^2\mid\mathcal{H}_{t-1}]}{\mathcal{I}_t^\pi(u^*,\mathcal{H})}

which minimises a (quasi-)regret-to-information ratio.

In MDPs, Hao and Lattimore (2022) introduced an alternate formulation, where the policy is chosen acaccording to the penalised objective

πt∈argmaxπE[Jπ∗(1,ϱ)∣Ht−1]+λItπ(u∗,H),(3)\pi_t \in\mathop{\rm argmax}_{\pi} \mathbb{E}\left[J^{\pi^*}(1,\varrho)\mid\mathcal{H}_{t-1}\right] + \lambda\mathcal{I}^{\pi}_t(u^*,\mathcal{H}), \tag*{(3)}

which can be recast as an auxiliary MDP with a suitably shaped reward; see Proposition 4.8 therein.

In this formulation, the structural correspondence between (3) and (1) is immediately apparent. In our case, due to the absence of noise in the dynamics (uncertainty is only in the mask), information theory tools and Bayesian methods wither away and leave behind the likelihood of hitting a masked parameter, for which the best proxy is the entry probability into T\mathcal{T}. With this interpretation in mind, we can rewrite λ˚V(T)\mathring{\lambda}_{\mathcal{V}}(\mathcal{T}) in terms of a ratio, using Lemma 3.3.

Lemma 3.3. For any V⊆C0\mathcal{V} \subseteq\mathcal{C}_0 and W(V)⊆T\mathcal{W}(\mathcal{V}) \subseteq\mathcal{T} such as VV,T(1,ϱ)<sup⁡m∈VVm(1,ϱ)V^{\mathcal{V},\mathcal{T}}(1,\varrho) < \sup_{m \in\mathcal{V}} V^m(1,\varrho) the clearing price satisfies

λ˚V(T)=inf⁡πsup⁡m∈VVm(1,ϱ)−E[∑h=1τπ−1r(Shπ,πh(Shπ))]PV(τπ<H).(4)\mathring{\lambda}_{\mathcal{V}}(\mathcal{T}) = \inf_{\pi} \frac{\sup_{m \in\mathcal{V}} V^m(1,\varrho) - \mathbb{E}\left[\sum_{h=1}^{\tau_\pi-1} r(S_h^\pi,\pi_h(S_h^\pi))\right]}{\mathbb{P}_{\mathcal{V}}(\tau_\pi< H)}. \tag*{(4)}

Let us briefly show that the ratio introduced in Lemma 3.3 serves as a computable proxy for the “regret-to-information” ratio underlying IDS. The numerator in (4) is an upper bound on the regret of π\pi, since

Vν∗(1,ϱ)≤sup⁡m∈VVm(1,ϱ)V^{\nu^*}(1,\varrho) \leq\sup_{m \in\mathcal{V}} V^m(1,\varrho)

and

E[∑h=1τπr(Shπ,πh(Shπ))]≤E[∑h=1Hr(Shπ,πh(Shπ))],\mathbb{E}\left[\sum_{h=1}^{\tau_\pi} r(S_h^\pi,\pi_h(S_h^\pi))\right] \leq\mathbb{E}\left[\sum_{h=1}^{H} r(S_h^\pi,\pi_h(S_h^\pi))\right],

which can be computed under Vt\mathcal{V}_t. Similarly, the denominator is a computable lower bound on the expected number of resolved dimensions, since τπ≤H\tau_\pi\leq H and, a.s., 1{τπ≤H}≤ΨC0(Vt)−ΨC0(Vt+1)\mathbf{1}\{\tau_\pi\leq H\} \leq\Psi_{\mathcal{C}_0}(\mathcal{V}_t) - \Psi_{\mathcal{C}_0}(\mathcal{V}_{t+1}). This quantity is used at analysis time in Proposition 3.2.

Application to Transfer Learning

In RL, beyond single tasks, the literature has increasingly aimed to improve computational efficiency by learning multiple instances at once or sequentially. The former has generally been studied in zero-shot RL Touati et al. [36], while the latter falls under transfer learning. Given a learnt source and unlearnt target task, transfer aims to leverage shared structures to improve learning, see Pan and Yang [26] for a broad survey. In RL, the common method is to pre-train representations of environments on large datasets, and then fine-tune them on small-data target tasks Yosinski et al. [38]. There have been a number of proposed representations: learnt policies Fernández and Veloso [13], value functions Taylor and Stone [34], latent state features Parisotto et al. [27], successor features Barreto et al. [8, 9], samples Lazaric et al. [20], or models of the environment Sun et al. [32]. In all cases, the difficulty lies not only in transferring the correct information, but also in how to spread learning cost between source and target.

Applied to masked MDPs, we seek to transfer information about two masks for the same linear MDP. The medium of transfer we propose is to choose the set C0\mathcal{C}_0 of VSO and λ\lambda-planning from information obtained about a prior mask in three experimental frameworks. Throughout, the base MDP always has 10 states, 5 actions (one of which aborts the MDP independently of the mask), ϱ=δs1\varrho= \delta_{s_1}, and horizon 10. The transfer procedure is repeated for 1000 random MDPs and masks, all figures report averaging on these samples. At each random trial, independently for each pair (s,a)(s,a), we draw three coordinates of ϕ(s,a)\phi(s,a) uniformly, and draw values for them according to a Dirichlet⁡(1,1,1)\operatorname{Dirichlet}(1,1,1) distribution, setting the rest to 0. The function ϕ:S→Rd\phi:S \to\mathbb{R}^d is 0 everywhere except at two uniformly random states, with respective weights ww and 1−w1-w, for w∼Unif⁡[0,1]w \sim\operatorname{Unif}[0,1]. Meanwhile, the reward parameter θr\theta_r is drawn uniformly in [0,1]d[0,1]^d and the source mask is drawn uniformly at random on the unit disk in the hyperplane orthogonal to the vector of ones.5 We take this disk as C0\mathcal{C}_0 in what follows. Our three experiments differ in the sampling process of the target mask with respect to the source u(1)u^{(1)} which is sampled uniformly in C0\mathcal{C}_0. All transfer version spaces will be intersected with C0\mathcal{C}_0 to bring the parameter back into the hyperplane. Let ⊕\oplus denote the Minkowski sum: A⊕B={a+b:a∈A,b∈B}A \oplus B = \{a+b : a \in A, b \in B\}.

Single-step transfer

In our first setting, the source mask u(1)u^{(1)} is assumed to be known, and the target mask u(2)u^{(2)} to lie within distance ρ\rho of it. We therefore initialize the target algorithm from the restricted version space

C0t:=C0∩{u:∥u−u(1)∥2≤ρ}.\mathcal{C}_0^t := \mathcal{C}_0 \cap\{u : \lVert u-u^{(1)}\rVert_2 \leq\rho\}.

To assess the benefit of this prior information, we compare each algorithm initialized from C0t\mathcal{C}_0^t with the same algorithm run on the same target task from the full version space C0\mathcal{C}_0.

Figure 4. Single-step transfer. Left: expected regret against the number of episodes, d=16d = 16, ρ=0.13\rho= 0.13. Right: total regret against d≤40d \le40, with ρ=0.5/d−1\rho= 0.5/\sqrt{d-1}. Solid: started from C0tC_0^t; dashed: no transfer, started from C0C_0.

Without transfer (dashed lines), the two algorithms are close, λ\lambda-planning performing slightly better as dd grows. With transfer, both perform much better, and λ\lambda-planning is ahead of VSO at every dimension but the smallest, showing the (on average) lower regret of λ\lambda-planning. Moreover, Figure 5 shows that transfer reduces regret and strengthens the advantage of λ\lambda-planning when the transferred version space is tight (small ρ\rho). This is consistent with λ\lambda-planning exploiting certified actions to acquire information at lower regret. As ρ\rho increases, fewer actions are certified initially and this advantage fades.

Figure 5. Single-step transfer: total regret against the transfer radius ρ\rho, d=16d = 16, log-log axes. Solid: started from C0tC_0^t; dashed: no transfer, started from C0C_0.

Multiple-step transfer

Building on the previous setting, we consider a sequence of K+1K+1 tasks with mask parameters {u(k)}k=0K\{u^{(k)}\}_{k=0}^{K}, sampled from a uniform source u(0)∈C0u^{(0)} \in C_0 then sequentially uniformly in the ball B(u(k−1),ρ)B(u^{(k-1)}, \rho). We repeat the transfer along the chain by taking the version spaces are as follows: Task 1 starts from C0∩B(u(0),ρ)C_0 \cap B(u^{(0)}, \rho), and task k+1k+1 from (Vk⊕B(0,ρ))∩C0(\mathcal{V}_k \oplus B(0,\rho)) \cap C_0, where Vk\mathcal{V}_k is the version space transferred from task kk. This yields a sequential transfer scheme with a set-valued warm start, in the spirit of procedures that leverage information from a previous optimization problem to facilitate the next one [5]. Each task is thus solved within a region informed by the preceding task, rather than from the full parameter space.

Figure 6 shows that λ\lambda-planning retains its edge over time. Its lead per task stacks across tasks, so that the gap accumulates along the chain (left), and it widens with the dimension (right). The compounding aspect of this procedure shows that λ\lambda-planning can turn a slight advantage in learning in each transfer task into substantial gains in sequential transfer settings.

Figure 6. Multiple-step transfer, K=5K = 5 tasks of 10 episodes. Left: regret accumulated over the chain, d=16d = 16; dashed vertical lines mark the task switches. Right: total regret over the KK tasks against dd.

We present further experiments on partial-learning of transferable information in Appendix C.

Conclusion

In this work, we study masked MDPs with unknown action validity and exact linear score feedback. Our separation result gives conditions under which mask-learning costs enter additively when rewards and transitions are also unknown. Version-space optimism achieves minimax-optimal regret, however, minimax optimality can conceal substantial differences in the cost of acquiring information.

To exploit these differences, we introduced λ\lambda-planning, which plans exploration through an auxiliary planning problem. Its clearing price yields an instance-dependent regret bound and connects the method to information-directed sampling for deterministic feedback. Transfer experiments illustrate how version spaces preserve useful information across changing masks and how planned exploration can produce gains that accumulate across tasks.

AI use statement

In this work, we used generative AI tools for several tasks: review or verification of content, and generation of code or proof drafts from formal arguments. We have not used generative AI tools for theoretical or conceptual development, mathematical claims or proofs (beyond formalisation and edition), while method implementation, translation, dataset cleaning or reformatting, qualitative analysis, and interpretation of results are not applicable to this work. Additionally, we used generative AI tools for literature discovery, editing text, creating figures and code. All AI-assisted work was checked line by line by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.

Acknowledgements

The work of Hélène Halconruy was supported by the French National Research Agency (ANR) under grant ANR-24-CE40-3341 (project DECATTLON) and benefited from Hi! PARIS and State funding managed by the ANR under the France 2030 program (reference ANR-23-IACL-0005).

Appendix

The appendix is organised as follows. Section A collects the notation used throughout the paper. Section B first introduces the quantities used to track the information gathered on the mask parameter, then provides the proofs of our results: Section B.1 establishes the dynamic programming representation for the auxiliary MDP problem (Proposition 3.1), Section B.2 derives the clearing-price characterisation (Lemma 3.3), Section B.3 proves the regret bound of λ\lambda-planning (Proposition 3.2), Section B.4 proves the lower bound for mask learning (Theorem 2.1), and Section B.5 proves the separation result (Theorem 2.3). Section C experiments with transfer from a partially learnt source task. Finally, Section D presents action optimism, an alternative to version-space optimism, and links it to extended value iteration.

Notations

Table 1 lists the notation of the paper, grouped by topic. A subscript tt denotes the value of a quantity at episode tt.

Algorithm 1Version-space optimism (VSO)
1:Input: initial version space V1:=C0\mathcal{V}_1 := \mathcal{C}_0, initial law ϱ\varrho.
2:for t=1,2,…t = 1,2,\ldots do
3:Set πt∈arg⁡max⁡π∈ΠMmax⁡m∈VtJmπ(1,ϱ)\pi_t \in\arg\max_{\pi\in\Pi^{M}}\max_{m \in\mathcal{V}_t} J_m^{\pi}(1,\varrho).
4:Play πt\pi_t for the episode, collect (Zh)h∈[H]:=(Shπt,πt,h(Shπt))h=1H(Z_h)_{h\in[H]} := (S_h^{\pi_t},\pi_{t,h}(S_h^{\pi_t}))_{h=1}^{H}.
5:Dt←Dt−1∪{(Zh)h=1H}\mathcal{D}_t \leftarrow\mathcal{D}_{t-1}\cup\{(Z_h)_{h=1}^{H}\}, and Vt+1←V(Dt)\mathcal{V}_{t+1}\leftarrow\mathcal{V}(\mathcal{D}_t).
6:end for

Table 1.

SymbolMeaning
MDP and masks
M=(S,A,P,r,H)\mathcal{M}=(\mathcal{S},\mathcal{A},P,r,H)finite-horizon MDP
h∈[H],[n]h\in[H], [n]step; {1,…,n}\{1,\ldots,n\}
ϱ,s1\varrho, s_1initial law; initial state
ϕ(s,a)∈Rd,d\phi(s,a)\in\mathbb{R}^{d}, dfeature map; dimension
θr∈Rd,θP:S→Rd\theta_r\in\mathbb{R}^{d}, \theta_P:\mathcal{S}\to\mathbb{R}^{d}reward and transition parameters
m∈2S×Am\in2^{\mathcal{S}\times\mathcal{A}}mask
Mm,rm,Pm\mathcal{M}_m,r_m,P_mmasked MDP, reward, transitions
s†s_{\dagger}cemetery state
ϕ~\widetilde{\phi}masked feature map
u⋆u^\star (also θm\theta_m)true mask parameter
uumask parameter
Policies, values and regret
π=(πh)h∈[H],ΠM\pi=(\pi_h)_{h\in[H]},\Pi^{\mathcal{M}}policy; Markov policies
Sh,ZhS_h,Z_hstate at step hh; pair played at step hh
Jπ,VJ_\pi,Vvalue of π\pi; optimal value
t,k;T,Kt,k; T,Kepisode; number of episodes
RK(A),R(T)\mathcal{R}_K(\mathcal{A}), R(T)cumulative pseudo-regret
Eu,Pu\mathbb{E}_u,\mathbb{P}_uexpectation, probability under uu
Ft\mathcal{F}_tinformation before episode tt
Version spaces
C0C_0prior set of mask parameters
B2(0,1),B(c,r)B_2(0,1), B(c,r)unit ball; ball of centre cc, radius rr
D,Dt\mathcal{D},\mathcal{D}_tobserved pairs
ΦD,y\Phi_{\mathcal{D}},yfeatures of D\mathcal{D}; revealed values
V(D),Vt\mathcal{V}(\mathcal{D}),\mathcal{V}_tversion space
z,ϕzz,\phi_zpair; its feature
D+(V),D−(V)\mathcal{D}^{+}(\mathcal{V}),\mathcal{D}^{-}(\mathcal{V})certified valid, certified invalid pairs
U(V)\mathcal{U}(\mathcal{V})uncertified pairs
ϕ(A),dim⁡ϕ(U(V))\phi(\mathcal{A}),\dim\phi(\mathcal{U}(\mathcal{V}))features of A\mathcal{A}; dimension of their span
U+(V)\mathcal{U}^{+}(\mathcal{V})directions known on V\mathcal{V}
ΨC0(V),Ψt\Psi_{C_0}(\mathcal{V}),\Psi_tpotential
I(V)\mathcal{I}(\mathcal{V})informative pairs
Γt\Gamma_tdim⁡ϕ(U(Vt))\dim\phi(\mathcal{U}(\mathcal{V}_t))
Algorithms
T\mathcal{T}target set
τπ\tau_{\pi}first time T\mathcal{T} is reached
Mλ\mathcal{M}_{\lambda}auxiliary MDP
Vλπ,T,VλTV_{\lambda}^{\pi,\mathcal{T}},V_{\lambda}^{\mathcal{T}}value of π\pi; optimal value in Mλ\mathcal{M}_{\lambda}
λV(T),λt\lambda_{\mathcal{V}}(\mathcal{T}),\lambda_tclearing price

Table 1 (PDF p. 11). Notations used in the paper.

SymbolMeaning
A\mathcal{A}, Blin(T,H,δ)B_{\mathrm{lin}}(T,H,\delta), BhA,tB_h^{\mathcal{A},t}linear-MDP learner; its regret bound; step bounds
Ht\mathcal{H}_t, Itπ(χ,H)\mathcal{I}_t^{\pi}(\chi,H)history; mutual information
Transfer experiments
ρ\rhotransfer radius
C0t\mathcal{C}_0^ttransfer prior
u(k)u^{(k)}, KK, TsT_schain of masks; number of tasks; episodes per task
A⊕B\mathcal{A} \oplus BMinkowski sum

Table 1 (continued).

Proofs

Let us first introduce the quantities used to track information about the mask parameter. The subspace

U+(V):={θ∈Rd:u↦θ⊤u is constant on V},\mathcal{U}^{+}(\mathcal{V}) := \left\{ \theta\in\mathbb{R}^{d} : u \mapsto\theta^{\top}u \text{ is constant on } \mathcal{V} \right\},

contains the directions whose scalar values are completely determined by the current version space. The potential

ΨC0(V):=dim⁡(ϕ(U(C0)))−dim⁡(ϕ(U(C0))∩U+(V)).\Psi_{\mathcal{C}_0}(\mathcal{V}) := \dim\left(\phi\left(\mathcal{U}(\mathcal{C}_0)\right)\right) - \dim\left(\phi\left(\mathcal{U}(\mathcal{C}_0)\right) \cap\mathcal{U}^{+}(\mathcal{V})\right).

counts the remaining unknown directions (when in V\mathcal{V}) in the span of the initially uncertified (in C0\mathcal{C}_0) features, while

I(V):={z:ϕz∈U+(V)+ϕ(U(V)), ϕz∉U+(V)}⊇U(V).\mathcal{I}(\mathcal{V}) := \left\{ z : \phi_z \in\mathcal{U}^{+}(\mathcal{V}) + \phi(\mathcal{U}(\mathcal{V})),\ \phi_z \notin\mathcal{U}^{+}(\mathcal{V}) \right\} \supseteq\mathcal{U}(\mathcal{V}).

identifies exactly the pairs that resolve at least one such direction. This construction allows us to relate visits to I(V)\mathcal{I}(\mathcal{V}) to decreases in ΨC0(V)\Psi_{\mathcal{C}_0}(\mathcal{V}).

These quantities distinguish knowledge of an action’s validity from knowledge of its underlying scalar value: an already certified action may still provide useful scalar information, such as certifying further actions for example if ϕz3⊤u⋆>∥ϕz3−ϕz4∥\phi_{z_3}^{\top}u^\star> \lVert\phi_{z_3} - \phi_{z_4} \rVert in Figure 2.2.

Throughout, Vt\mathcal{V}_t is the knowledge state entering episode tt, Ψt:=ΨC0(Vt)\Psi_t := \Psi_{\mathcal{C}_0}(\mathcal{V}_t), and u⋆∈C0u^\star\in\mathcal{C}_0 the truth.

Proof of Proposition 3.1

The auxiliary MDP is the planning tool underlying λ\lambda-planning. Proposition 3.1 provides the dynamic programming representation needed to compute its optimal policy for a fixed exploration reward.

Proposition 3.1. The optimal value functions VVλ,TV_{\mathcal{V}}^{\lambda,\mathcal{T}} satisfy the following family, indexed by λ≥0\lambda\ge0 and U(V)⊆T\mathcal{U}(\mathcal{V}) \subseteq\mathcal{T}, of dynamic programming equations

VVλ,T(h,s)=λ1{∃a:(s,a)∈T}∨max⁡a∈D+(Vt){r(s,a)+∫VVλ,T(h+1,s′)P(ds′∣s,a)}(5)V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h,s) = \lambda1_{\{\exists a:(s,a)\in\mathcal{T}\}} \vee\max_{a\in\mathcal{D}^{+}(\mathcal{V}_t)} \left\{ r(s,a) + \int V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h+1,s')P(\mathrm{d}s' \mid s,a) \right\} \tag*{(5)}

with terminal conditions VVλ,T(H+1,⋅)≡0V_{\mathcal{V}}^{\lambda,\mathcal{T}}(H+1,\cdot)\equiv0. Moreover, a pointwise maximiser of the right-hand side of (2) (understood as taking a∈Ta \in\mathcal{T} if the λ\lambda-term is dominant) is an optimal policy for the auxiliary MDP Mλ\mathcal{M}_{\lambda}.

Proposition

Proof of Proposition 3.1. The following recursion in

VVλ,T(h,s)=λ1{∃a:(s,a)∈T}∨max⁡a∈D+(Vt){r(s,a)+∫VVλ,T(h+1,s′)P(ds′∣s,a)},V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h,s) = \lambda1_{\{\exists a:(s,a)\in\mathcal{T}\}} \vee\max_{a\in\mathcal{D}^{+}(\mathcal{V}_t)} \left\{ r(s,a) + \int V_{\mathcal{V}}^{\lambda,\mathcal{T}}(h+1,s')P(\mathrm{d}s' \mid s,a) \right\},

is exactly the value-iteration scheme for a finite-horizon MDP with known dynamics, in which each state retains its certified actions, together with their rewards and transitions, with the possibility of absorption into the terminal state with reward λ\lambda whenever an action of T\mathcal{T} is present. A policy of this auxiliary MDP has a stopping time τπ\tau_\pi at which it takes its first action absorbing action, with τπ=∞\tau_\pi= \infty if no contact is made. Its expected cumulative reward is the reward collected before τπ\tau_\pi, plus λ\lambda on the event τπ≤H\tau_\pi\le H, namely

JVλ,T(π,t,s)=E[∑h=t(τπ−1)∧Hr(Shπ,πh(Shπ))+λ1{τπ≤H}∣Stπ=s].J_{\mathcal{V}}^{\lambda,\mathcal{T}}(\pi,t,s)=\mathbb{E}\left[\sum_{h=t}^{(\tau_\pi-1)\wedge H}r(S_h^\pi,\pi_h(S_h^\pi))+\lambda\mathbf{1}\{\tau_\pi\le H\}\mid S_t^\pi=s\right].

Proof of Lemma 3.3

Here we prove the view of the clearing price that is the basis for the comparison with information-directed sampling.

Lemma

Lemma 3.3. For any V⊆C0\mathcal{V}\subseteq\mathcal{C}_0 and U(V)⊆T\mathcal{U}(\mathcal{V})\subseteq\mathcal{T} such as V0V(1,ϱ)<sup⁡m∈VVm(1,ϱ)V_0^{\mathcal{V}}(1,\varrho)<\sup_{m\in\mathcal{V}}V^m(1,\varrho) the clearing price satisfies

λ˙V(T)=inf⁡πsup⁡m∈VVm(1,ϱ)−E[∑h=1τπ−1r(Shπ,πh(Shπ))]PV(τπ<H).(6)\dot{\lambda}_{\mathcal{V}}(\mathcal{T})=\inf_{\pi}\frac{\sup_{m\in\mathcal{V}}V^m(1,\varrho)-\mathbb{E}\left[\sum_{h=1}^{\tau_\pi-1}r(S_h^\pi,\pi_h(S_h^\pi))\right]}{\mathbb{P}_{\mathcal{V}}(\tau_\pi<H)}. \tag*{(6)}

Proof of Lemma 3.3. Let T\mathcal{T} be a set state-action pairs containing U(V)\mathcal{U}(\mathcal{V}), denote the function f:λ↦VVλ,T(1,ϱ)f:\lambda\mapsto V_{\mathcal{V}}^{\lambda,\mathcal{T}}(1,\varrho). For a policy π\pi, note its stopping time be τπ\tau_\pi at which it takes its first action in T\mathcal{T}. Noting

L=inf⁡πsup⁡m∈VVm(1,ϱ)−E[∑h=1τπ−1r(Shπ,πh(Shπ))]PV(τπ≤H)L=\inf_{\pi}\frac{\sup_{m\in\mathcal{V}}V^m(1,\varrho)-\mathbb{E}\left[\sum_{h=1}^{\tau_\pi-1}r(S_h^\pi,\pi_h(S_h^\pi))\right]}{\mathbb{P}_{\mathcal{V}}(\tau_\pi\le H)}

Let us show that

{λ≥0:f(λ)≥sup⁡m∈VVm(1,ϱ)}=[L,∞),\{\lambda\ge0:f(\lambda)\ge\sup_{m\in\mathcal{V}}V^m(1,\varrho)\}=[L,\infty),

Taking the minimum over λ\lambda will close the argument. By Proposition 3.1, ff is a supremum over policys π\pi of the affine functions

gπ:λ↦λP(τπ≤H)+E[∑h=1τπ−1r(Shπ,πh(Shπ))],g_\pi:\lambda\mapsto\lambda\mathbb{P}(\tau_\pi\le H)+\mathbb{E}\left[\sum_{h=1}^{\tau_\pi-1}r(S_h^\pi,\pi_h(S_h^\pi))\right],

whose slopes P(τπ≤H)\mathbb{P}(\tau_\pi\le H) are probabilities, hence lie in [0,1][0,1]. Thus, for all λ,λ′≥0\lambda,\lambda'\ge0 and every route π\pi,

gπ(λ)≤gπ(λ′)+∣λ−λ′∣≤f(λ′)+∣λ−λ′∣.g_\pi(\lambda)\le g_\pi(\lambda')+|\lambda-\lambda'|\le f(\lambda')+|\lambda-\lambda'|.

Taking the supremum over routes gives f(λ)≤f(λ′)+∣λ−λ′∣f(\lambda)\le f(\lambda')+|\lambda-\lambda'|, where f(λ′)≤H+λ′<∞f(\lambda')\le H+\lambda'<\infty. Exchanging λ\lambda and λ′\lambda' yields ∣f(λ)−f(λ′)∣≤∣λ−λ′∣|f(\lambda)-f(\lambda')|\le|\lambda-\lambda'|, so ff is 1-Lipschitz, and in particular continuous. This will be used later.

Suppose f(λ)≥sup⁡m∈VVm(1,ϱ)f(\lambda)\ge\sup_{m\in\mathcal{V}}V^m(1,\varrho). By the finite-horizon dynamic-programming recursion, the supremum is attained by some policy πλ\pi^\lambda such that

f(λ)=gπλ(λ).f(\lambda)=g_{\pi^\lambda}(\lambda).

Thus

λP(τπλ≤H)≥sup⁡m∈VVm(1,ϱ)−E[∑h=1τπλ−1r(Shπλ,πhλ(Shπλ))]≥sup⁡m∈VVm(1,ϱ)−f(0)>0\lambda\mathbb{P}(\tau_{\pi^\lambda}\le H)\ge\sup_{m\in\mathcal{V}}V^m(1,\varrho)-\mathbb{E}\left[\sum_{h=1}^{\tau_{\pi^\lambda}-1}r(S_h^{\pi^\lambda},\pi_h^\lambda(S_h^{\pi^\lambda}))\right]\ge\sup_{m\in\mathcal{V}}V^m(1,\varrho)-f(0)>0

where the last inequality is in the lemmas assumptions. This shows P(τπλ≤H)>0\mathbb{P}(\tau_{\pi^\lambda}\le H)>0, thus

sup⁡m∈VVm(1,ϱ)−E[∑h=1τπλ−1r(Shπλ,πhλ(Shπλ))]P(τπλ≤H)≤λ.\frac{\sup_{m\in\mathcal{V}}V^m(1,\varrho)-\mathbb{E}\left[\sum_{h=1}^{\tau_{\pi^\lambda}-1}r(S_h^{\pi^\lambda},\pi_h^\lambda(S_h^{\pi^\lambda}))\right]}{\mathbb{P}(\tau_{\pi^\lambda}\le H)}\le\lambda.

Taking the infimum over both sides gives us λ≥L\lambda\ge L.

Conversely, let λ>L\lambda>L. The infimum definition of LL implies that there exists some route π\pi such as

sup⁡m∈VVm(1,ϱ)−E[∑h=1τπ−1r(Shπ,πh(Shπ))]PV(τπ<H)<λ.\frac{\sup_{m\in\mathcal{V}}V^m(1,\varrho)-\mathbb{E}\left[\sum_{h=1}^{\tau_\pi-1}r(S_h^\pi,\pi_h(S_h^\pi))\right]}{\mathbb{P}_{\mathcal{V}}(\tau_\pi<H)}<\lambda.

Rearranging and taking the supremum gives us f(λ)>sup⁡m∈VVm(1,ϱ)f(\lambda)>\sup_{m\in\mathcal{V}}V^m(1,\varrho). By continuity of ff, we also have f(L)≥sup⁡m∈VVm(1,ϱ)f(L)\ge\sup_{m\in\mathcal{V}}V^m(1,\varrho) which gives us the same large inequality the edge case of λ=L\lambda=L.

Proof of Proposition 3.2

We prove the main performance guarantee for λ\lambda-planning.

Proposition

Proposition 3.2. For any u∈C0u \in\mathcal{C}_0, and any T≥1T \ge1, the λ\lambda-planning algorithm (Algorithm 2) satisfies

Eu[R(T)]≤Eu[∑t=1Tλ˙t(Ψt−Ψt+1)]\mathbb{E}_u[R(T)] \le\mathbb{E}_u\left[\sum_{t=1}^{T} \dot{\lambda}_t(\Psi_t-\Psi_{t+1})\right]

wherein Ψt:=ΨC0(Vt)\Psi_t := \Psi_{\mathcal{C}_0}(\mathcal{V}_t).

Proof of Proposition 3.2. Fix u∈C0u \in\mathcal{C}_0, and let Ft\mathcal{F}_t denote the information available before episode tt, including the choice of πt\pi_t. Set

λ˙t=λ^I(Vt)andΨt=ΨC0(Vt),\dot{\lambda}_t=\hat{\lambda}_{\mathcal{I}(\mathcal{V}_t)} \quad\text{and}\quad \Psi_t=\Psi_{\mathcal{C}_0}(\mathcal{V}_t),

where

ΨC0(V):=dim⁡ϕ(U(C0))−dim⁡(ϕ(U(C0))∩U+(V)).\Psi_{\mathcal{C}_0}(\mathcal{V}) := \dim\phi(\mathcal{U}(\mathcal{C}_0))-\dim\bigl(\phi(\mathcal{U}(\mathcal{C}_0))\cap U^+(\mathcal{V})\bigr).

and

Let τπt\tau_{\pi_t} be the first time that πt\pi_t reaches I(Vt)\mathcal{I}(\mathcal{V}_t), with τπt=∞\tau_{\pi_t}=\infty if no such pair is reached during the episode. The reach probability is

Pu(τπt≤H∣Ft)\mathbb{P}_u(\tau_{\pi_t}\le H\mid\mathcal{F}_t). The fact that we condition on Ft\mathcal{F}_t is because we are no longer considering any U(V)⊆T\mathcal{U}(\mathcal{V})\subseteq\mathcal{T} but the random variable I(Vt)\mathcal{I}(\mathcal{V}_t).

By definition of πt\pi_t we have

JV,πtλ^t,T(h,s)≥sup⁡m∈VVm(1,ϱ)≥Vu(1,ϱ)J_{\mathcal{V},\pi_t}^{\hat{\lambda}_t,\mathcal{T}}(h,s)\ge\sup_{m\in\mathcal{V}}V^m(1,\varrho)\ge V^u(1,\varrho)

In the proof of Lemma 3.3 we show that πt\pi_t is such that λ^Vt(I(Vt))\hat{\lambda}_{\mathcal{V}_t}(\mathcal{I}(\mathcal{V}_t)):

JV,πtλ^t,T(h,s)=λ˙tPu(τπt≤H∣Ft)+Eu[∑k=1τπt−1r(Shπt,πh(Shπt))|Ft]≤λ˙tPu(τπt≤H∣Ft)+Jπtu(1,ϱ)\begin{aligned} J_{\mathcal{V},\pi_t}^{\hat{\lambda}_t,\mathcal{T}}(h,s) = \dot{\lambda}_t\mathbb{P}_u(\tau_{\pi_t}\le H\mid\mathcal{F}_t) + \mathbb{E}_u\left[ \sum_{k=1}^{\tau_{\pi_t}-1} r(S_h^{\pi_t},\pi_h(S_h^{\pi_t})) \middle|\mathcal{F}_t \right] \\ &\le \dot{\lambda}_t\mathbb{P}_u(\tau_{\pi_t}\le H\mid\mathcal{F}_t) + J_{\pi_t}^u(1,\varrho) \end{aligned}

thus

Vu(1,ϱ)−Jπtu(1,ϱ)≤λ˙tPu(τπt≤H∣Ft).(7)V^u(1,\varrho)-J_{\pi_t}^u(1,\varrho) \le \dot{\lambda}_t\mathbb{P}_u(\tau_{\pi_t}\le H\mid\mathcal{F}_t). \tag*{(7)}

As in the previous proof, consider the case where we are on a non zero-regret episodes, so its right-hand side is nonnegative.

It remains to relate the probability in (5) to the increment in Ψt\Psi_t and taking the expectation will yield the result. Since Vt+1⊆Vt\mathcal{V}_{t+1}\subseteq\mathcal{V}_t,

U+(Vt)⊆U+(Vt+1),U^+(\mathcal{V}_t)\subseteq U^+(\mathcal{V}_{t+1}),

so Ψt+1≤Ψt\Psi_{t+1}\le\Psi_t on every sample path.

Recall

I(V):={z:ϕz∈U+(V)+span⁡ϕ(U(V)), ϕz∉U+(V)}⊇U(V).\mathcal{I}(\mathcal{V}):= \left\{ z:\phi_z\in U^+(\mathcal{V})+\operatorname{span}\phi(\mathcal{U}(\mathcal{V})),\ \phi_z\notin U^+(\mathcal{V}) \right\} \supseteq\mathcal{U}(\mathcal{V}).

On the event {τπt≤H}\{\tau_{\pi_t}\le H\}, let zz denote the first pair reached in I(Vt)\mathcal{I}(\mathcal{V}_t). Thus we can write

ϕz=w+v,w∈U+(Vt),\phi_z=w+v,\qquad w\in U^+(\mathcal{V}_t),
v∈span⁡ϕ(U(Vt)),v∉U+(Vt).v\in\operatorname{span}\phi(\mathcal{U}(\mathcal{V}_t)),\qquad v\notin U^+(\mathcal{V}_t).

Because Vt⊆C0\mathcal{V}_t\subseteq\mathcal{C}_0 we have U(Vt)⊆U(C0)\mathcal{U}(\mathcal{V}_t)\subseteq\mathcal{U}(\mathcal{C}_0), so v∈span⁡(ϕ(U(C0)))v\in\operatorname{span}(\phi(\mathcal{U}(\mathcal{C}_0))). Playing zz reveals ϕz⊤u\phi_z^\top u, hence ϕz∈U+(Vt+1)\phi_z\in U^+(\mathcal{V}_{t+1}). Since ww also belongs to this subspace,

v=ϕz−w∈span⁡ϕ(U(C0))∩U+(Vt+1),v=\phi_z-w\in\operatorname{span}\phi(\mathcal{U}(\mathcal{C}_0))\cap U^+(\mathcal{V}_{t+1}),

whereas v∉span⁡ϕ(U(C0))∩U+(Vt)v \notin\operatorname{span}\phi(\mathcal{U}(C_0)) \cap\mathcal{U}^{+}(\mathcal{V}_t). Recall

ΨC0(V):=dim⁡ϕ(U(C0))−dim⁡(ϕ(U(C0))∩U+(V)).\Psi_{C_0}(\mathcal{V}) := \dim\phi(\mathcal{U}(C_0)) - \dim\bigl(\phi(\mathcal{U}(C_0)) \cap\mathcal{U}^{+}(\mathcal{V})\bigr).

The intersection in ΨC0\Psi_{C_0} therefore gains at least one dimension. This proves

1{τπt≤H}≤Ψt−Ψt+1.(8)\mathbf{1}\{\tau_{\pi_t} \le H\} \le\Psi_t - \Psi_{t+1}. \tag*{(8)}

Taking conditional expectations in (6) and substituting into (5), we obtain

Vu(1,ϱ)−Jπtu(1,ϱ)≤Eu[λ˙t(Ψt−Ψt+1)∣Ft].V^u(1,\varrho) - J^u_{\pi_t}(1,\varrho) \le\mathbb{E}_u\left[\left.\dot{\lambda}_t(\Psi_t-\Psi_{t+1})\right|\mathcal{F}_t\right].

where we used that λ˙t\dot{\lambda}_t is nonnegative and Ft\mathcal{F}_t-measurable. Finally, summing over episodes and applying the tower property gives

Eu[R(T)]=∑t=1TEu[Vu(1,ϱ)−Jπtu(1,ϱ)]≤Eu[∑t=1Tλ˙t(Ψt−Ψt+1)].\mathbb{E}_u[R(T)] = \sum_{t=1}^{T}\mathbb{E}_u\left[V^u(1,\varrho)-J^u_{\pi_t}(1,\varrho)\right] \le\mathbb{E}_u\left[\sum_{t=1}^{T}\dot{\lambda}_t(\Psi_t-\Psi_{t+1})\right].

Hence the result.

Remark

Remark B.1. Proposition 3.1 and Lemma 3.3 are proved for arbitrary target sets, the agent being allowed to stop at any pair of U(Vt)⊆T\mathcal{U}(\mathcal{V}_t) \subseteq\mathcal{T}, the same proof gives the same bound for any Ft\mathcal{F}_t-measurable targets U(Vt)⊆Tt⊆I(Vt)\mathcal{U}(\mathcal{V}_t) \subseteq\mathcal{T}_t \subseteq I(\mathcal{V}_t), with prices λ˙Vt(Tt)\dot{\lambda}_{\mathcal{V}_t}(\mathcal{T}_t). These prices are non-increasing in Tt\mathcal{T}_t, so Tt=I(Vt)\mathcal{T}_t=I(\mathcal{V}_t) yields the smallest ones.

Proof of Theorem 2.1

Here we provide explicit construction of the MDP offering the lower bound on the regret of any learning algorithm.

Theorem

Theorem 2.1. Let C0=B2(0,1)\mathcal{C}_0=\mathcal{B}_2(0,1) be the Euclidean ball. For every d≥2d \ge2 and every H≥1H \ge1, there is a masked MDP with dim⁡ϕ(U(C0))=d\dim\phi(\mathcal{U}(\mathcal{C}_0))=d on which any algorithm satisfies

sup⁡u⋆∈C0Eu⋆[R(T)]≥H4min⁡{T,d−1}.\sup_{u^\star\in\mathcal{C}_0}\mathbb{E}_{u^\star}[R(T)] \ge\frac{H}{4}\min\{T,d-1\}.

Proof of Theorem 2.1. Let N:=d−1≥2N:=d-1\ge2, take the initial distribution ρ=δs1\rho=\delta_{s_1}, and consider the masked MDP of Figure 2: A={a1,…,aN}\mathcal{A}=\{a_1,\ldots,a_N\}; from s1s_1, every action leads deterministically to s2s_2 with reward 1, and in s2s_2 every action loops deterministically on s2s_2 with reward 1.

Take

ϕ(s1,aj)=ej,ϕ(s2,aj)=ed,j∈[N].\phi(s_1,a_j)=e_j,\qquad\phi(s_2,a_j)=e_d,\qquad j\in[N].

This is a linear MDP: for instance, one may take

θr=∑i=1dei,θP(s2)=∑i=1dei,θP(s)=0for s≠s2.\theta_r=\sum_{i=1}^{d}e_i,\qquad\theta_P(s_2)=\sum_{i=1}^{d}e_i,\qquad\theta_P(s)=0\quad\text{for }s\ne s_2.

Then

r(s,a)=ϕ(s,a)⊤θr=1r(s,a)=\phi(s,a)^\top\theta_r=1

on both s1s_1 and s2s_2, while

P(s,a,s2)=ϕ(s,a)⊤θP(s2)=1.P(s,a,s_2)=\phi(s,a)^\top\theta_P(s_2)=1.

Moreover, every pair is uncertified under C0C_0, and

span⁡(ϕ(U(C0)))=span⁡(e1,…,ed),\operatorname{span}(\phi(\mathcal{U}(C_0))) = \operatorname{span}(e_1,\ldots,e_d),

so dim⁡ϕ(U(C0))=d\dim\phi(\mathcal{U}(C_0)) = d.

For J∈[N]J \in[N], let

u(J):=1d(eJ−∑j∈[N]∖{J}ej+ed)∈C0,u^{(J)} := \frac{1}{\sqrt{d}}\left(e_J-\sum_{j\in[N]\setminus\{J\}}e_j+e_d\right)\in C_0,

under which aJa_J is the only valid action in s1s_1, while every action is valid in s2s_2. Draw JJ uniformly in [N][N]. Every episode in which an invalid action is played in s1s_1 incurs regret HH, since the optimal value is HH whereas the episode then moves to the cemetery state and collects no reward.

Playing aja_j with j≠Jj\ne J reveals the score −1/d-1/\sqrt{d}, independently of the value of JJ, and rewards and transitions are deterministic and known. Conditional on the internal randomisation of the algorithm, let (k1,k2,…)(k_1,k_2,\ldots) denote the sequence of actions selected in s1s_1 along the counterfactual history in which every action tried so far is invalid. Since the feedback following any such failure is always the same, this sequence is independent of JJ.

If J∉{k1,…,kt}J\notin\{k_1,\ldots,k_t\}, then the realised history coincides with this all-failures history through episode tt, and episode tt incurs regret HH. Since JJ is uniform on [N][N] and ∣{k1,…,kt}∣≤t|\{k_1,\ldots,k_t\}|\le t,

P(J∉{k1,…,kt})≥N−tN.\mathbb{P}(J\notin\{k_1,\ldots,k_t\})\ge\frac{N-t}{N}.

Therefore,

E[R(T)]≥H∑t=1min⁡{T,N}N−tN=Hm(2N−m−1)2N≥Hm(N−1)2N≥Hm4,\begin{aligned} \mathbb{E}[R(T)]\ge H\sum_{t=1}^{\min\{T,N\}}\frac{N-t}{N} \\ &=H\frac{m(2N-m-1)}{2N} \\ &\ge H\frac{m(N-1)}{2N} \\ &\ge\frac{Hm}{4}, \end{aligned}

where m:=min⁡{T,N}≤Nm:=\min\{T,N\}\le N and N≥2N\ge2.

Since the supremum over u⋆∈C0u^\star\in C_0 dominates the average over JJ, this gives

sup⁡u⋆∈C0Eu⋆[R(T)]≥H4min⁡{T,d−1}.\sup_{u^\star\in C_0}\mathbb{E}_{u^\star}[R(T)]\ge\frac{H}{4}\min\{T,d-1\}.

The second inequality follows from

min⁡{T,d−1}≥12min⁡{T,d},d≥2.\min\{T,d-1\}\ge\frac{1}{2}\min\{T,d\},\qquad d\ge2.

Proof of Theorem 2.3

Here we prove that that mask learning can be separated from the problem of learning the the underlying MDP, motivating our choice to study the mask learning problem in isolation.

Theorem

Theorem 2.3. Consider a reasonable algorithm that is jointly optimistic in the mask and the linear MDP. Let ptp_t be the probability, conditional on the information available before episode tt, that an action is attempted that is invalid under the true mask. If the analysis of A\mathcal{A} holds under the joint interaction6, with

P(∑t=1Tβt≤Blin(T,H,δ/2))≥1−δ/2.(9)\mathbb{P}\left(\sum_{t=1}^{T}\beta_t\le B_{\mathrm{lin}}(T,H,\delta/2)\right)\ge1-\delta/2. \tag*{(9)}

Then

R(T)≤Blin(T,H,δ/2)+H(min⁡{T,r0}+T2log⁡2δ)\mathcal{R}(T) \le B_{\mathrm{lin}}(T,H,\delta/2) + H\left(\min\{T,r_0\} + \sqrt{\frac{T}{2}\log\frac{2}{\delta}}\right)

with probability at least 1−δ1-\delta, wherein r0:=dim⁡ϕ(W(C0))r_0 := \dim\phi(\mathcal{W}(\mathcal{C}_0)). A high-probability bonus bound for the learner on an unmasked MDP alone does not imply the joint-interaction assumption above.

Proof of Theorem 2.3. Let

Ψt:=ΨC0(Vt).\Psi_t := \Psi_{\mathcal{C}_0}(\mathcal{V}_t).

Let XtX_t be the indicator of the event that an invalid action is attempted in episode tt. If Xt=1X_t=1, the attempted action is truly invalid, so its exact observed mask score is strictly negative. Its feature was initially uncertified: it could not have been initially certified valid, and the algorithm does not select certified-invalid pairs. Moreover, its feature is not in U+(Vt)U^+(\mathcal{V}_t), since otherwise its score would already be known to be negative and the pair would be certified invalid. The feature therefore lies in the span of the initially undecided features but adds a new known direction when its scalar score is observed. Thus Ψt−Ψt+1≥1\Psi_t-\Psi_{t+1}\ge1 whenever Xt=1X_t=1. The potential is nonincreasing and starts at r0r_0, which gives, pathwise,

∑t=1TXt≤min⁡{T,r0}.\sum_{t=1}^{T} X_t \le\min\{T,r_0\}.

The sequence Xt−ptX_t-p_t is a martingale-difference sequence with increments of range length one. By the one-sided Azuma–Hoeffding inequality, with probability at least 1−δ/21-\delta/2,

∑t=1Tpt≤∑t=1TXt+T2log⁡2δ≤min⁡{T,r0}+T2log⁡2δ.\sum_{t=1}^{T}p_t \le\sum_{t=1}^{T}X_t+\sqrt{\frac{T}{2}\log\frac{2}{\delta}} \le\min\{T,r_0\}+\sqrt{\frac{T}{2}\log\frac{2}{\delta}}.

Intersect this event with the assumed bonus event, also of probability at least 1−δ/21-\delta/2. On the intersection, sum the episode-wise decomposition Δt≤βt+Hpt\Delta_t\le\beta_t+Hp_t over tt to obtain the claimed bound. A union bound gives probability at least 1−δ1-\delta.

Partially learnt source

In this Section we consider a single-transfer setting in which the source task u(1)u^{(1)} is only partially learnt before transfer. Starting from C0\mathcal{C}_0, the source algorithm is stopped once ll of the d−1d-1 mask directions have been identified. The resulting version space V0\mathcal{V}_0 is then transferred to the target, drawn uniformly in C0∩B(u(1),ρ)\mathcal{C}_0\cap B(u^{(1)},\rho) whose version space becomes (V0⊕B(0,ρ))∩C0(\mathcal{V}_0\oplus B(0,\rho))\cap\mathcal{C}_0. This partial transfer preserves the information already learnt on the source even though the entire source mask is not learnt, making it less restrictive than transferring the source solution entirely. As in the single-step setting, we compare this initialization with the same algorithm run on the same target from the full version space C0\mathcal{C}_0.

Figure 7 shows that useful transfer does not require a fully learnt source: additional identified directions progressively reduce target regret for both algorithms. Their similar performance for most values of ll indicates that much of the improvement comes from the transferred information itself. A slight advantage for λ\lambda-planning appears when all source directions have been identified, presumably arising from the large a proportion of certified actions that it can use to plan.

Figure 7. Partially learnt source: total regret against the number ll of source directions learnt before transfer, d=16d = 16. Solid: started from (V0⊕B(0,ρ))∩C0(\mathcal{V}_0 \oplus B(0,\rho)) \cap\mathcal{C}_0; dashed: no transfer, started from C0\mathcal{C}_0.

Action optimism - Extended Value Iteration

Version-space optimism requires finding a single consistent mask under which the optimal value is maximal. Although planning for a fixed mask is straightforward, searching over compatible masks can be costly. This motivates a relaxation that applies optimism locally, in the spirit of extended value iteration: retain an action whenever some parameter in the current version space makes it valid. Once these action sets are constructed, the policy is obtained by a single backward value-iteration pass. This relaxation avoids a separate planning problem for each compatible mask.

The policy played is the optimal policy πV=VI(M(A^V))\pi_{\mathcal{V}} = VI(\mathcal{M}(\widehat{\mathcal{A}}_{\mathcal{V}})) of the MDP with the following optimistic action set:

A^V(s):=⋃u∈VAu(s)={a:∃u∈V,⟨ϕ(s,a),u⟩≥0}\widehat{\mathcal{A}}_{\mathcal{V}}(s) := \bigcup_{u \in\mathcal{V}} \mathcal{A}_u(s) = \{a : \exists u \in\mathcal{V}, \langle\phi(s,a),u\rangle\ge0\}

Note that there is no reason why one mask structurally admits them all, as different actions may be justified by different parameters, so the algorithm may plan with a model that does not exist in the version space. The relaxation is also strictly looser, noting V^1,V(ϱ)=VπV,M(A^V)(ϱ)\widehat{V}_{1,\mathcal{V}}(\varrho) = V^{\pi_{\mathcal{V}},\mathcal{M}(\widehat{\mathcal{A}}_{\mathcal{V}})}(\varrho) we have

sup⁡m∈VVm(1,ϱ)≤V^1,V(ϱ)\sup_{m \in\mathcal{V}} V^m(1,\varrho) \le\widehat{V}_{1,\mathcal{V}}(\varrho)

References

  1. [1]Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimization. In Proceedings of the 34th International Conference on Machine Learning, pages 22–32. PMLR, 2017.arxiv.org/abs/1705.10528
  2. [2]Eitan Altman. Constrained Markov Decision Processes. Chapman and Hall/CRC, 1999.
  3. [3]Sanae Amani, Christos Thrampoulidis, and Lin Yang. Safe Reinforcement Learning with Linear Function Approximation. In Proceedings of the 38th International Conference on Machine Learning, pages 243–253. PMLR, July 2021.arxiv.org/abs/2106.06239
  4. [5]Jordan Ash and Ryan P Adams. On warm-starting neural network training. Advances in neural information processing systems, 33:3884–3894, 2020.arxiv.org/abs/1910.08475
  5. [6]Peter Auer and Ronald Ortner. Logarithmic online regret bounds for undiscounted reinforcement learning. Advances in neural information processing systems, 19, 2006.
  6. [7]Mohammad Gheshlaghi Azar, Ian Osband, and Rémi Munos. Minimax regret bounds for reinforcement learning. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, pages 263–272. PMLR, 06–11 Aug 2017.arxiv.org/abs/1703.05449
  7. [8]André Barreto, Will Dabney, Rémi Munos, Jonathan J Hunt, Tom Schaul, Hado Van Hasselt, and David Silver. Successor features for transfer in reinforcement learning. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1606.05312
  8. [9]Andre Barreto, Diana Borsa, John Quan, Tom Schaul, David Silver, Matteo Hessel, Daniel Mankowitz, Augustin Zidek, and Remi Munos. Transfer in deep reinforcement learning using successor features and generalised policy improvement. In International conference on machine learning, pages 501–510. PMLR, 2018.arxiv.org/abs/1901.10964
  9. [10]Richard Bellman. Dynamic Programming. Princeton University Press, 1957.pubmed.ncbi.nlm.nih.gov/17730601
  10. [12]Qing Cai et al. Deep reinforcement learning for sponsored search real-time bidding. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2017.
  11. [13]Fernando Fernández and Manuela Veloso. Probabilistic policy reuse in a reinforcement learning agent. In Proceedings of the fifth international joint conference on Autonomous agents and multiagent systems, pages 720–727, 2006.DOI
  12. [14]Jian-Jia Gao et al. Machine learning applications for data center optimization. Google Technical Report, 2014.
  13. [15]Botao Hao and Tor Lattimore. Regret bounds for information-directed reinforcement learning. In Advances in Neural Information Processing Systems, volume 35, 2022.arxiv.org/abs/2206.04640
  14. [16]Theodore P Hill and Robert P Kertz. A survey of prophet inequalities in optimal stopping theory. Contemporary Mathematics, 125(1):191, 1992.DOI
  15. [17]Shengyi Huang and Santiago Ontañon. A closer look at invalid action masking in policy gradient algorithms. arXiv preprint arXiv:2006.14171, 2020.DOI
  16. [18]Thomas Jaksch, Ronald Ortner, and Peter Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(51):1563–1600, 2010.
  17. [19]Chi Jin, Zhuoran Yang, Zhaoran Wang, and Michael I. Jordan. Provably efficient reinforcement learning with linear function approximation. In Conference on Learning Theory, pages 2137–2143, 2020.arxiv.org/abs/1907.05388
  18. [20]Alessandro Lazaric, Marcello Restelli, and Andrea Bonarini. Transfer of samples in batch reinforce- ment learning. In Proceedings of the 25th international conference on Machine learning, pages 544–551, 2008.
  19. [21]Jiwei Li et al. Deep reinforcement learning for dialogue generation. arXiv preprint arXiv:1606.01541, 2016.arxiv.org/abs/1606.01541
  20. [22]Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine Learning, 2(4):285–318, 1988.
  21. [24]Rémi Munos. Optimistic optimization of a deterministic function without the knowledge of its smoothness. Advances in Neural Information Processing Systems, 24, 2011.
  22. [25]Andrew Y Ng, Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In Proceedings of the Sixteenth International Conference on Machine Learning, pages 278–287, 1999.
  23. [26]Sinno Jialin Pan and Qiang Yang. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 22(10):1345–1359, 2009.DOI
  24. [27]Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. arXiv preprint arXiv:1511.06342, 2015.arxiv.org/abs/1511.06342
  25. [28]Huyền Pham. Continuous-time Stochastic Control and Optimization with Financial Applications, volume 61 of Stochastic Modelling and Applied Probability. Springer, Berlin, 2009.DOI
  26. [29]Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley, 1994.
  27. [30]Daniel Russo and Benjamin Van Roy. Learning to optimize via information-directed sampling. In Advances in Neural Information Processing Systems, volume 27, 2014.arxiv.org/abs/1403.5556
  28. [31]Shai Shalev-Shwartz, Shaked Shammah, and Amnon Shashua. Safe, multi-agent, reinforcement learning for autonomous driving. In arXiv preprint arXiv:1610.03295, 2016.
  29. [32]Yuewen Sun, Kun Zhang, and Changyin Sun. Model-based transfer reinforcement learning based on graphical model representations. IEEE Transactions on Neural Networks and Learning Systems, 34(2):1035–1048, 2021.DOI
  30. [33]Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2 edition, 2018.
  31. [34]Matthew E Taylor and Peter Stone. Cross-domain transfer for reinforcement learning. In Proceedings of the 24th international conference on Machine learning, pages 879–886, 2007.DOI
  32. [35]Gerald Tesauro. Temporal difference learning and TD-Gammon. Communications of the ACM, 38(3):58–68, 1995.DOI
  33. [36]Ahmed Touati, Jérémy Rapin, and Yann Ollivier. Does zero-shot reinforcement learning exist? arXiv preprint arXiv:2209.14935, 2022.arxiv.org/abs/2209.14935
  34. [37]Honghao Wei, Xin Liu, and Lei Ying. Safe Reinforcement Learning with Instantaneous Constraints: The Role of Aggressive Exploration, December 2023. arXiv:2312.14470.arxiv.org/abs/2312.14470
  35. [38]Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? Advances in neural information processing systems, 27, 2014.arxiv.org/abs/1411.1792

Paper details

vlnc:W_udwwdqw9
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents