Commit to the Bit: Reactive Reinforcement Learning Done Right


Abstract

Reinforcement learning algorithms are commonly analyzed (and designed) under the Markov assumption. This is unrealistic, as most environments encountered in practice are either partially observable, or require function approximation that restricts the agent to access non-Markovian state features. We consider the problem of learning an optimal reactive policy in a finite environment with deterministic observations (or equivalently, hard state aggregation). We introduce a new algorithm, Committed Q-learning, and prove almost-sure convergence to the optimal reactive policy under an intuitive assumption we call rewire-robustness. This assumption is strictly weaker than the \(q_\star\)-realizability condition used in prior work. Our algorithm is a variant of classical Q-learning in which the behavior policy commits to a single action upon entering a feature, and only resamples actions when the observed feature changes. A crucial part of our analysis is the introduction of quasi-Markov environments.

1 Introduction↩︎

The goal of reinforcement learning (RL; [1]) is to enable an agent to autonomously learn to act optimally in an unknown environment. Most RL algorithms are based on principles from dynamic programming, and often involve estimating a value function. The optimal value function \(v_\star\) represents the remaining sum of rewards in each state under the optimal policy. Given \(v_\star\), the optimal action in any state can be found by a single-step look-ahead. This fundamental principle enables RL algorithms to solve challenging control problems, from playing games [2][4] to robotics [5], [6]. All these environments, like most that are relevant in practice, are either very large, such that the value function can only be approximated, or are partially observable. In both cases, the agent has to act with incomplete information about the environment’s state, encoded in a state feature. Despite considerable progress, existing theory for this problem is still very limited [7], [8]. In this work, we focus on reinforcement learning in partially observable environments with deterministic observations. This setting is also known as hard state aggregation. While an optimal policy generally requires a memory of past observations [9], we restrict ourselves to the problem of learning a reactive policy, i.e., one that does not depend on past features. This policy maps features to distributions over actions that we call options [10], as deterministic policies may perform arbitrarily worse than stochastic policies [11].

Figure 1: The corridor environment with states x, rewards r, and optimal value function v_\star. An episode begins in state x = 0 and ends after the agent enters either of the square states. (a) The blue bubble defines a state aggregation that turns the MDP into a quasi-Markov environment (4). Here, the feature-value function can be clearly defined (1). (b) The green bubble defines a state aggregation that is not quasi-Markov, but rewire-robust (3). This property is sufficient for recovering the optimal reactive policy with Committed Q-learning (1).

Consider the corridor environment, shown in 1. The optimal policy is to go right at every state, yielding a total sum of rewards of \(0\), which is preferable to the immediate termination with \(-1\) on the left. Suppose that the agent cannot distinguish between the states in the blue bubble ([fig:corridor-a]), making this environment partially observable. While this seems a trivial environment, classical value-based RL algorithms such as Q-learning [12] will fail if applied directly. The reason for this is that these methods try to approximate the optimal value function. However, the states underlying the blue feature have completely different values, hence the value of this feature is ambiguous. Existing theoretical results for this problem [13], [14] thus require \(q_\star\)-realizability, which means that the optimal value function should be constant inside each feature. In this paper, we show that this assumption is stronger than necessary in many cases, and that a slightly augmented version of Q-learning converges to the optimal reactive policy under a strictly weaker assumption: rewire-robustness.

Our key insight is that, despite state aggregation, there exists a value for the blue feature in [fig:corridor-a] that enables dynamic programming to work: the value of the entrance state, in this case \(v_\star(1)\). With this value, a look-ahead from \(x = 0\) will prefer to enter the corridor, and a look-ahead from a corridor state will similarly prefer to go to the right. We call environments in which each feature has a unique entrance state (or a unique distribution over entrance states) quasi-Markov. Similar to the value function in a Markov decision process (MDP), the entrance values in quasi-Markov environments can be efficiently computed by dynamic programming. In particular, Q-learning converges to these values if the behavior policy only samples a new option when the observed feature changes. We call this augmented algorithm Committed Q-learning (2). The “commitment” to an option when entering a feature is not restrictive, since the goal of Q-learning is to find a reactive policy that deterministically maps features to options, and all such policies are naturally “committed.”

Many environments are not quasi-Markov. For example, consider the green bubble in [fig:corridor-b]. Here, there are two different entrance states (\(x = 1\) and \(x = k - 1\)) with two different values. However, this environment is rewire-robust: if we change the connections into the corridor (for example, by switching the two entrance states), the optimal reactive policy is unaffected. We prove that any rewire-robust environment can be well approximated by a quasi-Markov environment and show that Committed Q-learning converges almost surely to the optimal reactive policy in all rewire-robust environments. We further show that this condition is strictly weaker than \(q_\star\)-realizability, which, to the best of our knowledge, is assumed in all prior work on this topic. Our convergence analysis is based on the recent extension of the Borkar-Meyn theorem [15] to Markovian noise by [16].

2 Preliminaries↩︎

We consider the problem of reinforcement learning in a finite episodic partially observable Markov decision process (POMDP) with deterministic observations. The state space is of the form \(\mathcal{X}' = \mathcal{X} \cup \{x^\bot\}\), where \(\mathcal{X}\) is a finite set and \(x^\bot\) is an absorbing terminal state. An episode begins at time \(t = 0\) in a state \(x_0 \in \mathcal{X}\) selected randomly according to the initial state distribution \(p_0 \in \Delta_{\mathcal{X}}\), such that \(\mathbb{P}\{x_0 = x\} = p_0(x)\). At each time \(t\) before termination, the environment is in a state \(x_t \in \mathcal{X}\), and the agent selects an action \(u_t\) from the finite action space \(\mathcal{U}\). The environment then transitions to the next state \(x_{t+1} \in \mathcal{X}'\) with probability \[\mathbb{P}\{x_{t + 1} = x' \mid x_t = x, u_t = u\} = (T'_u)_{x', x}\text{,}\] where \(T_u' \in \Delta_{\mathcal{X}'}^{\mathcal{X}'}\) is the extended transition kernel under action \(u\).1 For nonterminal states \(x\) and \(x'\), this probability is given by \((T'_u)_{x', x} \doteq (T_u)_{x', x}\), where \(T_u \in [0, 1]^{\mathcal{X} \times \mathcal{X}}\) is the transition kernel of the environment. The termination probabilities are \((T'_u)_{x^\bot, x} \doteq 1 - \gamma_{x, u}\), where \(\gamma_{x, u} \doteq \sum_{x' \in \mathcal{X}}(T_u)_{x', x}\). Finally, the terminal state \(x^\bot\) is absorbing, and thus \((T'_u)_{x', x^\bot} = [x' = x^\bot]\), where \([\cdot]\) denotes the Iverson bracket.

A feature mapping (or observation function) \(\varphi: \mathcal{X}' \to \mathcal{Z}'\) maps states to a finite feature space \(\mathcal{Z}' = \mathcal{Z} \cup \{z^\bot\}\), where \(\varphi(x) = z^\bot\) if and only if \(x = x^\bot\). This mapping defines a partition of the state space as \(\mathcal{X} = \dot{\bigcup}_z \mathcal{X}_z\), where \(\mathcal{X}_z \doteq \{x \in \mathcal{X} \mid \varphi(x) = z\}\) for \(z \in \mathcal{Z}\). It is often convenient to write \(\varphi\) as a matrix \(\Phi \in \{0, 1\}^{\mathcal{Z} \times \mathcal{X}}\), where \(\Phi_{z, x} \doteq \varphi_z(x) \doteq [\varphi(x) = z]\). At time \(t\), the agent only observes the feature \(z_t \doteq \varphi(x_t)\), which makes this environment partially observable. Given a reward function \(r: \mathcal{Z}' \to \mathbb{R}\), with \(r(z^\bot) \doteq 0\) and a finite set of options \(\Omega \subset \Delta_{\mathcal{U}}\), we can define the value of a reactive policy \(\pi: \mathcal{Z} \to \Omega\) in a state \(x \in \mathcal{X}\) as the expected sum of rewards in an episode starting in \(x\): \[v_\pi(x) \doteq \mathbb{E}_\pi\biggl[\sum_{t=1}^H r(z_{t}) \bigm\vert x_0 = x\biggr]\text{,}\] where the notation \(\mathbb{E}_\pi\) (or \(\mathbb{P}_\pi\)) indicates that \(u_t \sim \pi(z_t)\), and where \(H\) is the (random) termination time. Our goal is to learn a policy \(\pi\) that maximizes \(J(\pi) \doteq p_0^\top v_\pi\).

2.0.0.1 Notation.

The following notation is used frequently throughout the article. The transition kernel under an option \(\omega \in \Omega\) is denoted as \(T_\omega \doteq \sum_{u \in \mathcal{U}} \omega(u) T_u\). Similarly, for \(x \in \mathcal{X}\) and \(\omega \in \Omega\), we write \(\gamma_{x, \omega} \doteq \sum_{x' \in \mathcal{X}}(T_\omega)_{x', x}\). Given a feature \(z \in \mathcal{Z}\), we define \(\Pi_z \doteq \operatorname{diag}{\varphi_z}\) and \(\Pi_z^\bot \doteq I - \Pi_z\). These are the projection matrices in \(\mathbb{R}^{\mathcal{X}}\) onto the subspace corresponding to states with feature \(z\) and onto the corresponding orthogonal subspace. Finally, an environment is denoted as \(\mathcal{E} = (\mathcal{M}, \varphi)\), where \(\mathcal{M} = (\{T_u\}, p_0, r)\) is the MDP underlying \(\mathcal{E}\).

3 Main results↩︎

Figure 2: Committed Q-learning

The Committed Q-learning algorithm is shown in 2. Apart from the use of more general options instead of actions, the only change from the classical non-committed Q-learning algorithm is the if-statement in [ln:if]. This change makes sure that a new option is only sampled if the observed feature changes. The algorithm iteratively updates a variable \(Q \in \mathbb{R}^{\mathcal{Z}' \times \Omega}\). We denote the state of this variable at the beginning of the \(t\)th iteration ([ln:loop]) as \(Q_t\). Our convergence result relies on the following assumptions.

Assumption 1. All policies are proper, meaning that all episodes will eventually terminate. Formally, given any policy \(\pi: \mathcal{Z} \to \Omega\) and any initial state \(x \in \mathcal{X}\), \[\mathbb{P}_\pi\{\exists t: x_t = x^\bot \mid x_0 = x\} = 1.\qedhere\]

This is a very common assumption in the analysis of episodic reinforcement learning and dynamic programming algorithms [17][19]. It ensures that the Bellman operator of the episodic MDP \(\mathcal{M}\) underlying the environment \(\mathcal{E}\) is a contraction, which is essential for our convergence result.

Assumption 2. The behavior policy \(\pi: \mathcal{Z} \to \Delta_\Omega\) satisfies \(\pi(\omega \mid z) > 0\) for all \(z \in \mathcal{Z}\) and \(\omega \in \Omega\).

This assumption is clearly necessary for exploration.

Assumption 3. The step sizes \((\alpha_t) \subset \mathbb{R}\) are of the form \(\alpha_t = \frac{\tau_1}{t + \tau_2}\) for some constants \(\tau_1, \tau_2 > 0\).

This is a common assumption in the analysis of stochastic approximation algorithms of the form we study in this paper [16], [20]. In fact, the result of [16] upon which our convergence analysis is based allows us to use a slightly more general form of step size, \(\alpha_t = \frac{\tau_1}{(t + \tau_2)^\beta}\) with \(\beta \in (0.5, 1]\), if we make the additional assumption that the Markov chain \((\xi_t)\) described in 5 is aperiodic.

[ass:proper,ass:explore,ass:alpha] suffice to establish almost-sure convergence of the sequence of iterates \((Q_t)\) in 2 to a point \(Q_\star\). However, additional assumptions are needed to guarantee optimality of the greedy policy with respect to \(Q_\star\). To see why, consider the environment shown in 6 (p. ). The optimal policy moves right in state \(\mathtt{a}\) and up in state \(\mathtt{b}\). A greedy policy selects the action based on the value \(v_\star\) of the next feature. Writing \(z \doteq \varphi(\mathtt{c}) = \varphi(\mathtt{d})\), we thus need that \(v_\star(z) < 0\) (to go up in \(\mathtt{b}\)) as well as that \(v_\star(z) > v_\star(\mathtt{b})\) (to go right in \(\mathtt{a}\)). However, since \(v_\star(\mathtt{b}) = 0\), this is a contradiction. Thus, no single value \(v_\star(z)\) is satisfactory. (The same argument works for Q-values as well.) To avoid situations like this, it is typically assumed that the optimal value function is realizable by the feature mapping \(\varphi\) (e.g., [13], [14]). The formal definition of \(q_\star\)-realizability is the following.2

Definition 1. An environment \(\mathcal{E} = (\mathcal{M}, \varphi)\) is called \(q_\star\)-realizable if there exists a function \(q: \mathcal{Z} \times \mathcal{U} \to \mathbb{R}\) such that \(q_\star(x, u) = q\bigl(\varphi(x), u\bigr)\) for all \(x \in \mathcal{X}\) and \(u \in \mathcal{U}\), where \(q_\star\) is the optimal action-value function in \(\mathcal{M}\).

Figure 3: (a) A simple environment in which the states \{\mathtt{c}, \mathtt{d}, \mathtt{e}\} are aggregated into a single feature. For each state, the immediate reward is shown. The optimal policy is reactive and selects the direct path from \mathtt{a} via \mathtt{b} to the goal. The total reward of this path is 0. This environment is not q_\star-realizable, since the aggregated states have different optimal values. (b) A rewiring of the environment (a) changes the way a feature is entered, while keeping the set \{\mathtt{c}, \mathtt{d}\} of possible entrance states fixed. Here, the environment is rewire-robust: the optimal policy in this rewiring is the same as in the original environment. (c) This rewiring of (a) is stochastic and quasi-Markov (see 4), since there is a unique entrance distribution. The \pi-rewiring introduced in 5 is of this type, where the probabilities are derived from the stationary distribution of the behavior policy \pi. (d) The solid lines represent a generalized rewiring of the environment (a): here, the set of entrance states \{\mathtt{d}, \mathtt{e}\} is not a subset of \{\mathtt{c}, \mathtt{d}\}. In this environment, the optimal policy differs (from \mathtt{a} via \mathtt{e} to the goal) and achieves a higher total reward. Thus, the environment (a) is not generalized rewire-robust. Furthermore, the environment (d) is not rewire-robust: while the best policy achieves a return of +1, the rewiring indicated by the dashed lines admits a maximum return of 0.

If \(\mathcal{E}\) is \(q_\star\)-realizable, then (non-committed) Q-learning converges to the optimal policy [14]. However, \(q_\star\)-realizability is a very strong assumption that excludes simple environments like the corridor ([fig:corridor-a]), for which we have already shown that an optimal greedy policy exists (see 1). In this work, we show that realizability is stronger than necessary, and that Committed Q-learning converges to the optimal reactive policy under the strictly weaker condition of rewire-robustness. We first state our main result, and then define rewire-robustness.

Theorem 1. Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 3 hold. Then, the iterates \((Q_t)\) of 2 converge almost surely to a solution \(Q_\star\), with corresponding greedy policy \(\hat{\pi}_\star(z) \doteq \mathop{\mathrm{arg\,max}}_{\omega \in \Omega}Q_\star(z, \omega)\), such that

Figure 4: image.

Furthermore, if the greedy policy \(\hat{\pi}_\star\) is unique, then (e) becomes an equivalence. All other implications are strict.

Proof. See 5. ◻

3.0.0.1 Rewire-robustness.

What is rewire-robustness? Consider the environment shown in [fig:rr-a]. There are two ways to enter into the aggregate feature: from state \(\mathtt{a}\) (leading to \(\mathtt{c}\)), and from state \(\mathtt{b}\) (leading to \(\mathtt{d}\)). A rewiring of an environment \(\mathcal{E}\) is a modified version of \(\mathcal{E}\) in which these ‘entrance dynamics’ are changed, but the transition kernel remains otherwise unperturbed. For example, the environment shown in [fig:rr-b] is a rewiring of [fig:rr-a]. A stochastic behavior policy \(\pi\) implicitly defines an ‘average entrance’ behavior for each feature. The \(\pi\)-rewiring of an environment replaces all entrances of a feature by this ‘average entrance.’ For example, if \(\pi\) has low probability of moving up in state \(\mathtt{a}\) but high probability of moving up in state \(\mathtt{b}\), then the \(\pi\)-rewiring of [fig:rr-a] might look like [fig:rr-c]. While the entrance distributions in a rewiring are restricted to be mixtures of the entrance distributions of the original environment, in a generalized rewiring, a feature may be entered in an arbitrary way. [fig:rr-d] shows a generalized rewiring of [fig:rr-a]. The formal definition of rewirings and rewire-robustness are as follows. (Quasi-Markov and \(\pi\)-rewire-robust environments will be defined in the following two sections.)

Definition 2 (Rewiring). An environment \(\bar{\mathcal{E}}\) with initial state distribution \(\bar p_0\) and transition kernel \(\{\bar T_u\}\) is a rewiring of an environment \(\mathcal{E}\) with initial state distribution \(p_0\) and transition kernel \(\{T_u\}\) if, for all \(u \in \mathcal{U}\) and \(z \in \mathcal{Z}\), (i) \(\Phi\bar p_0 = \Phi p_0\), (ii) \(\Phi \bar T_u = \Phi T_u\), (iii) \(\Pi_z \bar T_u \Pi_z = \Pi_z T_u \Pi_z\), and (iv) \(\bar\varsigma_z \subset \varsigma_z\), where the entrance space \(\varsigma_z\) is defined as \[\varsigma_z \doteq \sum_{u \in \mathcal{U}} \operatorname{range}(\Pi_z T_u \Pi_z^\bot) + \operatorname{span}\{\Pi_z p_0\}\text{,}\] and \(\bar\varsigma_z\) is defined analogously for \(\bar{\mathcal{E}}\). If conditions (i) – (iii) hold, then \(\bar{\mathcal{E}}\) is a generalized rewiring.

Definition 3 (Rewire-robustness). An environment \(\mathcal{E}\) is called (generalized) rewire-robust if any optimal policy of any (generalized) rewiring of \(\mathcal{E}\) is optimal in \(\mathcal{E}\).

The conditions (i) – (iv) of 2 constrain how much the environment \(\bar{\mathcal{E}}\) can differ from \(\mathcal{E}\). Condition (i) ensures that, while the initial state distributions may be different, the “initial feature distributions” must match: \[\bar p_0(z) = \sum_{x \in \mathcal{X}_{z}} \bar p_0(x) = (\Phi \bar p_0)_z \stackrel{\tikz\node[inner ysep=0pt] {\tiny(i)};}{=} (\Phi p_0)_z = p_0(z).\] Similarly, condition (ii) ensures that \(\bar p(z' \mid x, u) = p(z' \mid x, u)\). Condition (iii) demands that the intra-feature dynamics are unchanged: if \(\varphi(x') = \varphi(x) \doteq z\), then \[(\bar T_u)_{x', x} = (\Pi_z \bar T_u \Pi_z)_{x', x} \stackrel{\tikz\node[inner ysep=0pt] {\tiny(iii)};}{=} (\Pi_z T_u \Pi_z)_{x', x} = (T_u)_{x', x}.\] Finally, condition (iv) requires the feature entrance distributions of \(\bar{\mathcal{E}}\) to be derived from \(\mathcal{E}\). A feature \(z\) can be entered either at the beginning of an episode, in which case the unnormalized entrance distribution over \(\mathcal{X}_z\) is \(\Pi_z p_0\), or it can be entered from a state \(x\) outside of feature \(z\), in which case the unnormalized entrance distribution is \((\Pi_z T_u \Pi_z^\bot)_{:, x}\). Thus, the entrance space \(\varsigma_z\) is the linear span of all possible entrance distributions into feature \(z\).

3.0.0.2 Numerical example.

To motivate the relevance of 1, we illustrate the performance of Committed Q-learning in the corridor environment of [fig:corridor-a]. The results are shown in 5. While non-committed Q-learning fails to make progress even with very short corridors, Committed Q-learning quickly converges to the optimal policy. In this experiment, the behavior policy at time \(t\) is \(\epsilon_t\)-greedy with respect to the Q-table \(Q_t\) , where \(\epsilon_t = \frac{a_{\epsilon}}{t + b_{\epsilon}}\) such that \(\epsilon_0 = 0.1\) and \(\epsilon_{1000} = 0.01\). Similarly, the step size is \(\alpha_t = \frac{a_{\alpha}}{t + b_{\alpha}}\) such that \(\alpha_0 = 0.1\) and \(\alpha_{1000} = 0.01\). For the code, see https://github.com/onnoeberhard/q-commit.

Figure 5: Learning curves of Committed Q-learning and regular Q-learning in corridor environments ([fig:corridor-a]) of different lengths. The experiment is repeated with 1000 different random seeds, and we plot 95% bootstrap confidence intervals for the average optimality of the Q-table Q_t.

4 Quasi-Markov environments↩︎

We now formalize the intuition developed in 1 that the correct value to assign to a feature is the average value of the feature’s entrance states, and that this choice guarantees that the value is meaningful in a dynamic programming context. This observation is far from obvious. Indeed, in their original investigation of reactive policies under hard state aggregation, [11] propose that, given a policy \(\pi: \mathcal{Z} \to \Omega\), the feature-value function \(v: \mathcal{Z} \to \mathbb{R}\) should minimize the value error \[\overline{\operatorname{VE}}(v) \doteq \mathbb{E}_\mu\bigl[\bigl\{v(z_t) - \mathbb{E}_\pi[R_t \mid x_t]\bigr\}^2\bigr]\text{,}\] where \(\mu\) is the stationary distribution of the policy \(\pi\) in the environment \(\mathcal{E}\), and \(R_t\) is the sum of future rewards. The function \(v\) that minimizes the value error is the \(\mu\)-weighted average of the values \(v_\pi(x)\) of all states \(x\) in a feature, where \(v_\pi\) is the value function of the MDP \(\mathcal{M}\) underlying \(\mathcal{E}\). To see why this is not adequate, consider again the corridor environment from [fig:corridor-a], but suppose the reward of state \(x = -1\) is \(r(-1) = 2\), such that it is optimal to terminate immediately on the left. Under the always-right policy \(\pi\), the stationary distribution is uniform in the corridor, and the values of the corridor states are \(v_\pi(x) = x\). Thus, the corridor value \(v_c\) that minimizes the value error is \(\frac{1}{k}\sum_{x = 1}^k v_\pi(x) = \frac{k + 1}{2}\), which is greater than \(2\) if the corridor length \(k\) is greater than \(3\), making the greedy policy suboptimal. Another common objective is the Bellman error \[\overline{\operatorname{BE}}(v) \doteq \mathbb{E}_\mu\bigl[\bigl\{v(z_t) - \mathbb{E}_\pi[r(z_{t + 1}) + v(z_{t + 1}) \mid x_t]\bigr\}^2\bigr].\] Under the always-right policy in the corridor, the Bellman error is minimized by \(v_c = k\) (4), which makes the greedy policy suboptimal for \(k > 2\). Both the value error and the Bellman error include a conditioning on the states of \(\mathcal{M}\) in their definitions, which leads to problems with learnability in the partially observable setting. This was first shown by [1], who demonstrate that it is not possible to estimate \(\overline{\operatorname{VE}}\) or \(\overline{\operatorname{BE}}\) from interaction with an environment. We thus propose the alternative definitions of value risk \[\mathcal{R}_{\mathrm V}(v) \doteq \mathbb{E}_\mu\bigl[\bigl\{v(z_t) - \mathbb{E}_\mu[R_t \mid z_t]\bigr\}^2\bigr]\] and Bellman risk \[\mathcal{R}_{\mathrm B}(v) \doteq \mathbb{E}_\mu\bigl[\bigl\{v(z_t) - \mathbb{E}_\mu[r(z_{t + 1}) + v(z_{t + 1}) \mid z_t]\bigr\}^2\bigr].\] These objectives do not have the same issues as \(\overline{\operatorname{VE}}\) or \(\overline{\operatorname{BE}}\) with learnability, as we show in 11. Furthermore, returning to the corridor example, while minimizing the value risk is equivalent to minimizing the value error (6), minimizing the Bellman risk yields the desired solution. To see this, note that we can minimize the Bellman risk \(\mathcal{R}_{\mathrm B}\) by solving the Bellman equation \[v(z) = \mathbb{E}_\mu[r(z_{t + 1}) + v(z_{t + 1}) \mid z_t = z]\] for \(v \in \mathbb{R}^{\mathcal{Z}}\). Solving for the value \(v_c\) of the corridor state under the always-right policy, we get \[v_c = \frac{k - 1}{k} (-1 + v_c) + \frac{1}{k} (k + 0) \implies v_c = 1\text{,}\] which is exactly the value of the corridor entrance state. In the rest of this section we prove that minimizing the Bellman risk will always result in a value function that satisfies this property, as long as the environment is quasi-Markov.

Definition 4 (Quasi-Markov). An environment \(\bar{\mathcal{E}}\) with initial state distribution \(\bar p_0\) and transition kernel \(\{\bar T_u\}\) is called quasi-Markov if there exists an entrance matrix \(\Sigma \in \Delta_{\mathcal{X}}^{\mathcal{Z}}\) with columns \(\sigma_z\) satisfying \(\sigma_z = \Pi_z \sigma_z\) and \[\bar p_0 = \Sigma \Phi \bar p_0\quad\text{and}\quad \Pi_z\bar T_u\Pi_z^\bot = \Pi_z\Sigma \Phi \bar T_u\Pi_z^\bot\text{,}\] for all \(z \in \mathcal{Z}\) and \(u \in \mathcal{U}\). Equivalently, \(\bar{\mathcal{E}}\) is quasi-Markov, if the entrance space satisfies \(\dim \bar\varsigma_z \leq 1\) for all \(z \in \mathcal{Z}\).

Thus, if an environment is quasi-Markov, then the state \(x \in \mathcal{X}_{z}\) will be distributed according to \(\sigma_{z}\) whenever the feature \(z\) is entered from the outside, independent of what the previous state was: if \(z \doteq \varphi(x_{t}) \neq \varphi(x_{t-1})\), then \[\begin{gather} \mathbb{P}\{x_{t} = x \mid x_{t-1} = x_-, u_{t-1}=u\}\\ = (\Pi_{z}\Sigma \Phi \bar T_{u}\Pi_{z}^\bot)_{x,x_-} = (\Pi_{z} \Sigma \zeta)_{x} = \zeta_{z} \sigma_{z}(x)\text{,} \end{gather}\] with \(\zeta \doteq (\Phi \bar T_{u}\Pi_{z}^\bot)_{:,x_-}\). This means that the Markov property holds whenever the feature changes: if \(z_{t - 1} \neq z_t\), then \(x_t \perp x_{t - 1} \mid z_t\). This property is also related to semi-Markov environments [10], [22], where the state \(x\) is similarly not revealed at every step. The equivalence to an entrance space dimension \(\leq 1\) is proved formally in 6; the intuition is given in the discussion from 3. If an environment is quasi-Markov, we can define an associated aggregate MDP as follows.

Definition 5 (Aggregate MDP). Given a quasi-Markov environment \(\bar{\mathcal{E}}\) satisfying 1 with initial state distribution \(\bar p_0\), transition kernel \(\{\bar T_u\}\), and entrance matrix \(\Sigma\), the corresponding aggregate MDP \(\hat{\mathcal{M}}\) is an episodic MDP with state space \(\mathcal{Z}\), action space \(\Omega\), initial state distribution \(\hat{p}_0 \doteq \Phi \bar p_0\) and transition kernel \(\hat{T}_\omega \doteq \Phi \bar T_\omega \Psi_\omega\) for all \(\omega \in \Omega\). The disaggregation matrix \(\Psi_\omega \in \Delta_{\mathcal{X}}^{\mathcal{Z}}\) has the columns \[\psi_z^\omega \doteq \tilde{\psi}_z^\omega / \boldsymbol{1}^\top \tilde{\psi}_z^\omega\text{,}\quad\text{where}\quad \tilde{\psi}_z^\omega \doteq (I - \Pi_z \bar T_\omega)^{-1}\sigma_z.\qedhere\]

8 proves that the matrix inverse in the definition above is well-defined, as the spectral radius satisfies \(\rho(\Pi_z\bar T_\omega) < 1\). Note that the term ‘aggregate MDP’ is commonly used to describe systems of this type with general disaggregation matrices (e.g., [17, Sec. 6.5]). The ‘Bayesian’ disaggregation probabilities \(\{\psi_z^\omega\}\) that we define above correspond to the posterior distributions over states in a feature \(z\) under an option \(\omega\). To see this, note that when the feature \(z\) is entered, the initial distribution over states is \(\sigma_z\). After one transition under option \(\omega\), the probability mass on states in \(z\) is \(\Pi_z\bar T_\omega \sigma_z\). Continuing recursively like this, we see that the unnormalized stationary distribution comes from the Neumann series \[\sum_{\tau=0}^\infty (\Pi_z\bar T_\omega)^\tau \sigma_z = (I - \Pi_z \bar T_\omega)^{-1}\sigma_z = \tilde{\psi}_z^\omega\text{,}\] which converges as \(\rho(\Pi_z\bar T_\omega) < 1\) (e.g., [23] Theorem 4.11.2). In 5, we show that the transition kernel of \(\hat{\mathcal{M}}\) is closely related to our definition of the Bellman risk, as \((\hat{T}_\omega)_{z', z} = \mu(z' \mid z, \omega)\), where \(\mu\) is the stationary distribution of the behavior policy \(\pi\) in the quasi-Markov environment \(\bar{\mathcal{E}}\). Thus, the value function \(\hat{v}_\pi\) of the aggregate MDP is the minimum Bellman risk solution in \(\bar{\mathcal{E}}\). The following lemma shows that this solution will always satisfy the entrance value property described above.

Lemma 1 (Entrance Value). Let \(\bar{\mathcal{E}} = (\bar{\mathcal{M}}, \varphi)\) be a quasi-Markov environment satisfying 1 with entrance matrix \(\Sigma\) and let \(\hat{\mathcal{M}}\) be the corresponding aggregate MDP. If \(\pi: \mathcal{Z} \to \Omega\) is any policy, and \(\bar v_\pi\) and \(\hat{v}_\pi\) represent the value function of \(\pi\) in \(\bar{\mathcal{M}}\) and \(\hat{\mathcal{M}}\), respectively, then \[\hat{v}_\pi = \Sigma^\top \bar v_\pi.\]

Proof. The aggregate value function \(\hat{v}_\pi\) is the unique solution of the aggregate Bellman equation \[\label{eq:bellman} \hat{v}_\pi(z) = \bigl\{\hat{T}_{\pi(z)}^\top (r + \hat{v}_\pi)\bigr\}(z)\tag{1}\] for all \(z \in \mathcal{Z}\) (e.g., [17] Proposition 3.2.1). Our goal is thus to show that \(\Sigma^\top \bar v_\pi\) solves this equation. The function \(\bar v_\pi\) in turn is the unique solution of the Bellman equation in the MDP \(\bar{\mathcal{M}}\), \[\bar v_\pi(x) = \bigl\{\bar T_{(\pi \circ \varphi)(x)}^\top(\Phi^\top r + \bar v_\pi)\bigr\}(x)\] for all \(x \in \mathcal{X}\). From now on, let \(z \in \mathcal{Z}\) be fixed, and let \(\omega \doteq \pi(z)\). From the definition of \(\psi_z^\omega\), we have that \[\sigma_z \propto (I - \Pi_z \bar T_\omega)\psi_z^\omega.\] Since \(\sigma_z\) is normalized, it follows that \[\sigma_z = \frac{(I - \Pi_z \bar T_\omega)\psi_z^\omega}{\boldsymbol{1}^\top (I - \Pi_z \bar T_\omega)\psi_z^\omega} = \frac{(I - \Pi_z \bar T_\omega)\psi_z^\omega}{1 - \bar\gamma_{z, \omega}}\text{,}\] where \(\bar\gamma_{z, \omega} \doteq \varphi_z^\top \bar T_\omega \psi_z^\omega\). Projecting \(\bar v_\pi\) onto the subspace of \(\mathbb{R}^{\mathcal{X}}\) corresponding to the feature \(z\), we have \[\Pi_z \bar v_\pi = \Pi_z \bar T_\omega^\top \Phi^\top r + \Pi_z \bar T_\omega^\top (\Pi_z + \Pi_z^\bot) \bar v_\pi.\] Rearranging this equation, we get \[\Pi_z \bar v_\pi = (I - \Pi_z \bar T_\omega)^{-\top} \Pi_z \bar T_\omega^\top (\Phi^\top r + \Pi_z^\bot \bar v_\pi).\] This expression decomposes the value \(\bar v_\pi(x)\) of states \(x \in \mathcal{X}_z\) into a part that depends on the reward function, and a part that depends on the value of states outside of \(\mathcal{X}_z\). Combining this with the above expression for \(\sigma_z\), we have \[\sigma_z^\top \bar v_\pi = \sigma_z^\top \Pi_z \bar v_\pi = \frac{(\Phi^\top r + \Pi_z^\bot \bar v_\pi)^\top \bar T_\omega \psi_z^\omega}{1 - \bar\gamma_{z, \omega}}.\] We want to show that this expression solves 1 . Plugging \(\Sigma^\top \bar v_\pi\) into 1 and expanding, we get \[\begin{align} \!\!\!\!\bigl\{\hat{T}_\omega^\top (r + \Sigma^\top \bar v_\pi)\bigr\}(z)\\ \quad &= (\Phi \bar T_\omega \psi_z^\omega)^\top (r + \Sigma^\top \bar v_\pi)\\ &= (\bar T_\omega \psi_z^\omega)^\top \Phi^\top r + (\bar T_\omega \psi_z^\omega)^\top (\Pi_z + \Pi_z^\bot) \Phi^\top \Sigma^\top \bar v_\pi\\ &= (\Phi^\top r + \Pi_z^\bot \Phi^\top \Sigma^\top \bar v_\pi)^\top \bar T_\omega \psi_z^\omega + \bar\gamma_{z, \omega} \sigma_z^\top \bar v_\pi\\ &= (\Sigma^\top \bar v_\pi)(z) + \frac{\bar\gamma_{z, \omega}}{1 - \bar\gamma_{z, \omega}} (\Pi_z^\bot \bar T_\omega \psi_z^\omega)^\top(I - \Sigma\Phi)^\top \bar v_\pi.\end{align}\] It remains to show that the second term vanishes. From the quasi-Markov property, we get, for any \(z' \in \mathcal{Z}\) and \(\psi \in \mathbb{R}^{\mathcal{X}}\), \[\begin{align} \Pi_{z'} \bar T_\omega \Pi_{z'}^\bot \psi = \Pi_{z'} \Sigma \Phi \bar T_\omega \Pi_{z'}^\bot \psi = (\varphi_{z'}^\top \bar T_\omega \Pi_{z'}^\bot \psi) \sigma_{z'}. \end{align}\] This implies \[\Pi_z^\bot \bar T_\omega \psi_z^\omega = \sum_{z' \neq z} \Pi_{z'} \bar T_\omega \Pi_{z'}^\bot \psi_z^\omega = \sum_{z' \neq z} \underbrace{(\varphi_{z'}^\top \bar T_\omega \psi_z^\omega)}_{(\hat{T}_\omega)_{z', z}} \sigma_{z'}.\] Using the fact that \(\varphi_z^\top \sigma_{z'} = [z = z']\) for all \(z, z' \in \mathcal{Z}\), and thus \(\Sigma\Phi\sigma_{z'} = \sigma_{z'}\), we get \[(I - \Sigma\Phi)(\Pi_z^\bot \bar T_\omega \psi_z^\omega) = \sum_{z' \neq z} (\hat{T}_\omega)_{z', z} (I - \Sigma\Phi) \sigma_{z'} = 0.\] Thus, we have shown that \(\Sigma^\top \bar v_\pi\) is the unique solution of 1 , and hence that \(\hat{v}_\pi = \Sigma^\top \bar v_\pi\). ◻

The following result shows why the entrance value property is important: it implies that an optimal policy in \(\hat{\mathcal{M}}\) is an optimal reactive policy in \(\bar{\mathcal{E}}\).

Lemma 2. Let \(\bar{\mathcal{E}}\) be a quasi-Markov environment satisfying 1 with corresponding aggregate MDP \(\hat{\mathcal{M}}\), and let \(\pi: \mathcal{Z} \to \Omega\) be any policy. Then, \(\pi\) is optimal in \(\bar{\mathcal{E}}\) if and only if it is optimal in \(\hat{\mathcal{M}}\).

Proof. This is a straightforward corollary of the previous lemma. The policy \(\pi\) is optimal in \(\bar{\mathcal{E}}\) if \(\bar J(\pi) \geq \bar J(\pi')\) and optimal in \(\hat{\mathcal{M}}\) if \(\hat{J}(\pi) \geq \hat{J}(\pi')\) for all policies \(\pi': \mathcal{Z} \to \Omega\). From the Entrance Value Lemma (1) and the quasi-Markov property of \(\bar{\mathcal{E}}\), we get, for any policy \(\pi\) \[\hat{J}(\pi) \doteq \hat{p}_0^\top \hat{v}_\pi = (\Sigma \Phi \bar p_0)^\top \bar v_\pi = \bar p_0^\top \bar v_\pi \doteq \bar J(\pi)\text{,}\] which immediately yields the desired result. ◻

5 Proof of 1↩︎

In this section, we use the theory of quasi-Markov environments developed above to prove 1. We focus on the convergence of 2 and on the implication (e), which characterizes the optimality of the policy \(\hat{\pi}_\star\). The remainder of 1 is straightforward and is discussed at the end of this section. The idea behind the proof is that, on average, the updates in 2 are sampled from \(\mu(z' \mid z, \omega)\), where \(\mu\) is the stationary distribution induced by the behavior policy \(\pi\). This distribution can be interpreted as the transition kernel of an aggregate MDP \(\hat{\mathcal{M}}_\pi\) corresponding to a specific quasi-Markov environment \(\bar{\mathcal{E}}_\pi\). We first prove that 2 converges to the optimal action-value function in \(\hat{\mathcal{M}}_\pi\). Then, 2 allows us to establish that \(\hat{\pi}_\star\) is optimal in \(\bar{\mathcal{E}}_\pi\). Finally, we use rewire-robustness to conclude that \(\hat{\pi}_\star\) is optimal in \(\mathcal{E}\).

Given an environment \(\mathcal{E}\), a behavior policy \(\pi\), and a sequence of step sizes \((\alpha_t)\), we define the random variables \(x_t\), \(\omega_t\), and \(Q_t\), for all \(t \in \mathbb{N}_0\), as the states of the variables \(x\), \(\omega\), and \(Q\) at the beginning of the \(t\)th loop of 2 ([ln:loop]). We also define \(x_t'\) as the state of \(x\) immediately after [ln:step], and we write \(z_t \doteq \varphi(x_t)\) and \(z_t' \doteq \varphi(x_t')\). It can be verified by looking at 2 that the tuple \(\xi_t \doteq (x_t, \omega_t, x_t')\) is a Markov chain with transition kernel \[\begin{align} \mathbb{P}'\{\xi_t = (x, \omega, x') \mid \xi_{t - 1} = (x_-, \omega_-, x'_-)\}\\&= p(x \mid x'_-)\, p(\omega \mid x_-, \omega_-, x'_-, x)\, (T_\omega')_{x',x}\text{,}\end{align}\] where, writing \(z \doteq \varphi(x)\) (and similarly for \(z_-\) and \(z_-'\)), \[\begin{align} p(x \mid x'_-) &= \begin{cases} p_0(x) &\text{if } z'_- = z^\bot\\ [x = x'_-] &\text{otherwise, and} \end{cases}\\ p(\omega \mid x_-, \omega_-, x'_-, x) &= \begin{cases} \pi(\omega \mid z) &\text{if } z_-' \neq z_-\\ [\omega = \omega_-] &\text{otherwise.} \end{cases} \end{align}\]

Note that \(\mathbb{P}'\) is not the same as the transition kernel \(\mathbb{P}\) described in 2, in which a transition to \(x^\bot\) is absorbing, as [ln:restart] of 2 starts a new episode whenever the terminal state is reached. The Markov chain \((\xi_t)\) evolves in the set \(\Xi \subset \mathcal{X} \times \Omega \times \mathcal{X}'\) of reachable tuples \(\xi\). We first show that \((\xi_t)\) converges to a stationary distribution \(\mu \in \Delta_{\Xi}\).

Lemma 3. Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 hold. Then, the Markov chain \((\xi_t) \subset \Xi\) is irreducible and has a unique stationary distribution \(\mu \in \Delta_\Xi\) satisfying \[\mu(x, \omega, x') = \mu(x, \omega)(T_\omega')_{x',x}\] for all \((x, \omega, x') \in \Xi\). Furthermore, this distribution satisfies, for all \(z \in \mathcal{Z}\) and \(\omega \in \Omega\), \[\begin{align} \Pi_z\mu_\omega &= (1 - \gamma_\pi)\pi(\omega \mid z)\Pi_z p_0 + \Pi_z T_\omega \Pi_z \mu_\omega\\ &+ \pi(\omega \mid z)\sum_{\omega' \in \Omega}\Pi_z T_{\omega'}\Pi_z^\bot\mu_{\omega'}\text{,} \end{align}\] where \(\mu_\omega \in \mathbb{R}^{\mathcal{X}}\) is defined as \(\mu_\omega(x) \doteq \mu(x, \omega)\), and where \(\gamma_\pi \doteq \sum_{x \in \mathcal{X}, \omega \in \Omega} \mu(x, \omega) \gamma_{x, \omega}\).

Proof. See [proof:lem:mu]. ◻

Note that \(\mu(\xi) > 0\) for all \(\xi \in \Xi\). For convenience, we extend \(\mu\) to the space \(\Delta_{\mathcal{X} \times \Omega \times \mathcal{X}'}\) and define \(\mu(x, \omega, x') = 0\) for all \((x, \omega, x') \not\in \Xi\). In the following, we assume (without loss of generality) that all features are reachable under \(\pi\), and define \(\mu(z, \omega, z') \doteq \sum_{x \in \mathcal{X}_z}\sum_{x' \in \mathcal{X}_{z'}} \mu(x, \omega, x')\) for \(z, z' \in \mathcal{Z}\). We can now prove the convergence of 2 and characterize the solution \(Q_\star\). The partial observability in \(\mathcal{E}\) leads to correlated noise in the Q-learning updates of 2, which makes it difficult to apply standard stochastic approximation results that are typically used to analyze Q-learning. Our convergence result is instead based on the recent development by [16] which extends the Borkar-Meyn theorem to Markovian noise.

Lemma 4. Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 3 hold. Then, the iterates \(Q_t\) of 2 converge almost surely to a solution \(Q_\star\) satisfying \[\label{eq:q-commit} Q_\star(z, \omega) = \mathbb{E}_\mu\bigl[r(z') + \max_{\omega' \in \Omega}Q_\star(z', \omega')\mid z, \omega\bigr]\text{.}\tag{2}\]

Proof. See [proof:lem:ode]. ◻

Thus, \(Q_\star\) is the optimal action-value function in an MDP on \(\mathcal{Z}\) with transition dynamics \(\mu\). We now show that this MDP can be interpreted as an aggregate MDP.

Definition 6 (\(\pi\)-rewiring \(\bar{\mathcal{E}}_\pi\), \(\pi\)-MDP \(\hat{\mathcal{M}}_\pi\)). Let \(\mathcal{E}\) be an environment with initial state distribution \(p_0\) and transition kernel \(\{T_u\}\) and \(\pi\) a behavior policy such that 1 2 hold. Then, the \(\pi\)-rewiring of \(\mathcal{E}\) is the environment \(\bar{\mathcal{E}}_\pi\) with initial state distribution \(\bar p_0 \doteq \Sigma\Phi p_0\) and transition kernel \[(\bar T_u)_{x', x} \doteq \begin{cases} (T_u)_{x',x} &\text{if }\varphi(x') = \varphi(x)\\ (\Sigma\Phi T_u)_{x',x} &\text{otherwise}\\ \end{cases}\] for all \(u \in \mathcal{U}\) and \(x, x' \in \mathcal{X}\). The entrance matrix \(\Sigma \in \Delta_{\mathcal{X}}^{\mathcal{Z}}\) is defined by the columns \(\sigma_z \doteq \tilde{\sigma}_z / \boldsymbol{1}^\top \tilde{\sigma}_z\) with \[\tilde{\sigma}_z \doteq \sum_{\omega \in \Omega}\Pi_z T_\omega \Pi_z^\bot \mu_\omega + (1 - \gamma_{\pi})\Pi_z p_0.\] Furthermore, the \(\pi\)-MDP \(\hat{\mathcal{M}}_\pi\) associated with \(\mathcal{E}\) is defined as the aggregate MDP corresponding to \(\bar{\mathcal{E}}_\pi\).

Figure 6: (a) A non-rewire-robust environment \mathcal{E} = (\mathcal{M}, \varphi), where \varphi(\mathtt{c}) = \varphi(\mathtt{d}) \doteq z. No single value v_\star(z) defines an optimal greedy policy. (b) A behavior policy \pi is applied to the environment \mathcal{E}. (c) The \pi-rewiring \bar{\mathcal{E}}_\pi of the environment \mathcal{E} under the policy \pi is a quasi-Markov rewiring of \mathcal{E} in which the entrance distributions are derived from the stationary distribution \mu. (d) The \pi-MDP \hat{\mathcal{M}}_\pi is the aggregate MDP corresponding to \bar{\mathcal{E}}_\pi.

7 proves that \(\bar{\mathcal{E}}_\pi\) is a quasi-Markov rewiring of \(\mathcal{E}\) satisfying 1, such that \(\hat{\mathcal{M}}_\pi\) is well-defined. The entrance distribution \(\sigma_z\) is chosen to reflect the ‘average’ entrance distribution into \(z\) under the behavior policy \(\pi\). Consider again the environment shown in 6. Suppose the behavior policy \(\pi\) moves up with probability \(\delta\) and right with probability \(1 - \delta\) ([fig:nrr-b]). In this case, the green feature is entered at state \(\mathtt{c}\) with probability \(1 - \delta\) (from \(\mathtt{a}\)) and at state \(\mathtt d\) with probability \(\delta (1-\delta)\) (from \(\mathtt b\)). We thus see that the \(\pi\)-rewiring is given by [fig:nrr-c], where \(\eta \doteq 1 + \delta\) is the normalizing constant. Finally, the \(\pi\)-MDP is given by [fig:nrr-d], as the distribution over the states in the green feature of \(\bar{\mathcal{E}}_\pi\) is given by \(\psi(\mathtt c) = 1/\eta\) and \(\psi(\mathtt d) = \delta/\eta\). The following lemma provides the bridge between our convergence result (4) and the quasi-Markov theory developed in 4.

Lemma 5. Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 hold. Then, if \(\hat{\mathcal{M}}_\pi\) is the corresponding \(\pi\)-MDP with transition kernel \(\{\hat{T}_\omega\}\), \[\mu(z' \mid z, \omega) = (\hat{T}_\omega)_{z', z}\] for all \(z, z' \in \mathcal{Z}\), and all \(\omega \in \Omega\).

Proof. See [proof:lem:phat]. ◻

Thus, 2 is in fact the Bellman optimality equation of the \(\pi\)-MDP \(\hat{\mathcal{M}}_\pi\). This means that \(\hat{\pi}_\star\) is an optimal policy in \(\hat{\mathcal{M}}_\pi\), and, by 2, it is an optimal reactive policy in \(\bar{\mathcal{E}}_\pi\). To guarantee that \(\hat{\pi}_\star\) is also optimal in \(\mathcal{E}\), we need the following assumption.

Definition 7 (\(\pi\)-rewire-robustness). Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 hold. Then, \(\mathcal{E}\) is \(\pi\)-rewire-robust if any optimal reactive policy in \(\bar{\mathcal{E}}_\pi\) is also optimal in \(\mathcal{E}\).

Thus, we have proved (e) of 1. Note that if \(\hat{\pi}_\star\) is the unique minimizer of \(Q_\star\), then the inverse direction of (e) follows immediately, since \(\hat{\pi}_\star\) is the only optimal policy of \(\hat{\mathcal{M}}_\pi\) and, by 2, of \(\bar{\mathcal{E}}_\pi\). The implications (b) and (d) of 1 are trivial, since any rewiring is a generalized rewiring by definition, and we have shown that the \(\pi\)-rewiring is a rewiring (7). Implication (a) is proved in 7 and (c) is proved in 9. Furthermore (a) is strict, as the corridor environment ([fig:corridor-a]) is generalized rewire-robust, but not \(q_\star\)-realizable. Implications (b) and (c) are strict, as the environment shown in [fig:rr-a] is rewire-robust, but neither generalized rewire-robust, nor quasi-Markov. Finally, the strictness of (d) is proved in 10.

6 Related work↩︎

The concept of state aggregation goes back to the early days of dynamic programming [24] and has been a part of reinforcement learning since the field’s inception [25]. Soon after the initial convergence results for Q-learning based on stochastic approximation theory were established [18], [19], similar results were proved for reinforcement learning with state aggregation [11], [13], [26], [27]. More recently, the theory of state aggregation has been extended by several researchers [14], [28][30]. All these results either require \(q_\star\)-realizability to guarantee convergence to an optimal reactive policy, or they simply prove convergence of the algorithm without an interpretation of the solution. An assumption about the environment is likely necessary to enable an efficient algorithm, as [31] showed that the problem of finding a reactive optimal policy under state aggregation is NP-complete. To the best of our knowledge, the rewire-robustness that we propose is the weakest assumption under which convergence to the optimal reactive policy has been proved.

The aggregate MDP that we define in 4 is a classic tool for solving dynamic programming problems with state aggregation [17]. However, there is little discussion on how to choose the disaggregation probabilities \(\psi_z(x)\), since under \(q_\star\)-realizability, solving the aggregate MDP with any disaggregation matrix \(\Psi\) will yield the optimal value function. To the best of our knowledge, the work of [28] is the only study in which the disaggregation probabilities are chosen as in this paper, namely as the Bayesian posterior probabilities under the stationary distribution of \(\pi\). However, since [28] considers general environments, not quasi-Markov environments, the posterior probabilities \(\psi_z(x)\) depend on the policy \(\pi\) (and not just on the action inside feature \(z\) as for us). This makes it difficult to use this choice of disaggregation in practice, and indeed, while [28] studies the projected Bellman equation associated with this aggregate MDP, and shows that the Bayesian disaggregation matrix enables a better performance loss bound for value iteration, he does not propose a concrete algorithm for solving the projected Bellman equation. In fact, a few years later, [32] writes “It is not clear whether it is practically advantageous to select [\(\Psi\)] in the manner suggested by Van Roy.”

Figure 7: (a) The T-maze environment is a classic problem in partially observable RL. (b) The POMDP representation of the T-maze. The memory structure z_t \doteq (y_0, y_t) defines a rewire-robust state aggregation of the underlying MDP, shown with green bubbles. The dotted gray bubbles show what the state aggregation would look like without memory. This state aggregation is not rewire-robust, and a reactive policy is not sufficient.

The corridor environment (1) is an augmented version of the T-maze [33], which is a classic example in the literature on partially observable RL [34], [35]. The T-maze is shown in [fig:tmaze-a]. The agent receives an observation of either ‘up’ or ‘down’ when entering the maze from the left. It then enters a corridor before reaching a decision point ‘?’, where the optimal action (up or down) is determined by the initial observation. In this environment, a reactive policy is clearly not sufficient, and a memory of past observations is needed. The optimal memory is \(z_t = (y_0, y_t)\), which contains the first and current observations. In [fig:tmaze-b], the POMDP representation of this environment is shown, and it can be seen that this choice of memory is a state aggregation of the underlying MDP. Furthermore, this environment is clearly rewire-robust, for the same reason as the corridor environment. Thus, given this memory mechanism, Committed Q-learning will find the optimal policy mapping memory to actions.

7 Conclusion↩︎

We have introduced Committed Q-learning, an algorithm which provably converges to the optimal reactive policy in POMDPs with deterministic observations under an intuitive rewire-robustness condition, which is strictly weaker than the common \(q_\star\)-realizability assumption. Along the way, we have introduced the concepts of Bellman risk and quasi-Markov environments, which are natural extensions of prior work, and are crucial for our analysis of Committed Q-learning. In a quasi-Markov environment, the Markov property holds between the features, since the state \(x\) is always independent of all previous states before entering the feature, but not inside a feature. While Committed Q-learning shares many similarities with regular Q-learning on the surface, in 5 we showed that the former effectively operates on a higher level: the \(\pi\)-MDP, whose state space is the feature space. This is reminiscent of the junction tree algorithm for inference in graphical models (e.g., [36, Sec. 9.6]), where efficient message passing operations are performed between cliques, while a brute-force computation is performed inside each clique. In our case, the brute-force computation is the maximization step in [ln:delta] of 2. We assume the existence of a finite set of options (distributions over actions) to optimize over. However, it is not clear how large such a set normally needs to be, as [37] proved that such an optimization is, in general, NP-hard.

There are several open avenues for future research. First, while we consider stochastic options instead of deterministic actions, [11] also showed that nonstationary options are preferable to stationary options. It would thus be interesting to see whether our theory can be extended to temporally extended options [10]. This is a natural extension, since our algorithm already commits to a single option that is kept until a feature is exited. Optimizing over nonstationary options is an open-loop reinforcement learning problem [38]. Another interesting direction would be to extend our result to other types of RL problems than the episodic environments (stochastic shortest path problems) that we consider here. We expect that the analysis transfers with minor modification to discounted infinite-horizon problems, but it is less clear if it also extends to the average reward setting. Finally, while the rewire-robustness assumption is weaker than \(q_\star\)-realizability, it is less clear how to extend this theory to cases where the assumption approximately holds. In previous results on state aggregation [13], [28], [30], the performance degrades with the approximation error on \(q_\star\). It would be important to understand if there is a natural definition of ‘approximate’ rewire-robustness under which a similar line of analysis can be established.

Acknowledgments↩︎

We thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for their support. C. Vernade is funded by the Deutsch Forschungsgemeinschaft (DFG, German Research Foundation) under both the project 468806714 of the Emmy Noether Programme and under Germany’s Excellence Strategy – EXC number 2064/1 – Project number 390727645, and also gratefully acknowledges funding from the European Union (ERC grant ConSequentIAL, number 101165883). M.Muehlebach is funded by the DFG under the project 456587626 of the Emmy Noether Programme. Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.

Impact statement↩︎

This paper presents work whose goal is to advance the field of machine learning. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here.

Appendix

Contents↩︎

[1.5em]

8 Auxiliary results↩︎

Theorem 2 ([16]). Given an initial vector \(\theta_0 \in \mathbb{R}^d\) and a fixed sequence of step sizes \((\alpha_t) \subset \mathbb{R}\), consider the stochastic approximation recursion \[\label{eq:sa} \theta_{t + 1} = \theta_{t} + \alpha_t H(\theta_t, \xi_t)\text{,}\tag{3}\] where \((\xi_t) \subset \Xi\) is a sequence of random variables following a Markov chain in a finite state space \(\Xi\) and \(H: \mathbb{R}^d \times \Xi \to \mathbb{R}^d\) is measurable. Assume the following.

  1. The Markov chain \((\xi_t)\) is irreducible and thus has a unique stationary distribution \(\mu \in \Delta_\Xi\).

  2. The step sizes are of the form \(\alpha_t = \frac{\tau_1}{t + \tau_2}\) for some constants \(\tau_1, \tau_2 > 0\).

  3. There exist measurable functions \(H_\infty: \mathbb{R}^d \times \Xi \to \mathbb{R}^d\) and \(b: \Xi \to \mathbb{R}^d\) such that, for any \(\theta \in \mathbb{R}^d\), \(\xi \in \Xi\), and \(c \geq 1\), \[H(c\theta, \xi) - cH_\infty(\theta, \xi) = b(\xi).\]

  4. There exists a Lipschitz constant \(L \geq 0\) such that, for any \(\theta, \theta' \in \mathbb{R}^d\) and \(\xi \in \Xi\), \[\begin{align} \undefined{H(\theta, \xi) - H(\theta', \xi)} &\leq L\undefined{\theta - \theta'}\text{ and}\\ \undefined{H_\infty(\theta, \xi) - H_\infty(\theta', \xi)} &\leq L\undefined{\theta - \theta'}\text{,} \end{align}\] where \(\undefined{\cdot}\) denotes the maximum norm. Moreover, both \[h(\theta) \doteq \mathbb{E}_\mu H(\theta, \xi)\quad\text{and}\quad h_\infty(\theta) \doteq \mathbb{E}_\mu H_\infty(\theta, \xi)\] are well-defined and finite.

  5. Let \(h_c(\theta) \doteq h(c\theta)/c\) for all \(\theta \in \mathbb{R}^d\) and \(c \geq 1\). Then, \(h_c \to h_\infty\) uniformly on any compact subset of \(\mathbb{R}^d\) as \(c \to \infty\). The ordinary differential equation (ODE) \[\dot{\theta}(t) = h_\infty\bigl(\theta(t)\bigr)\] has \(0\) as its globally asymptotically stable equilibrium.

Then, if \(\theta_\star \in \mathbb{R}^d\) is the globally asymptotically stable equilibrium of the ODE \[\dot{\theta}(t) = h\bigl(\theta(t)\bigr)\text{,}\] the iterates \(\theta_t\) of 3 converge almost surely to \(\theta_\star\).

Proof. This is a special case of Corollary 8 of [16], which is an extension of the Borkar-Meyn theorem [15] to the case of Markovian noise. ◻

Theorem 3 ([39]). Let \(F\) be a max-norm nonexpansive operator on \(\mathbb{R}^d\) with a unique fixed point \(\theta_\star \in \mathbb{R}^d\). Then, \(\theta_\star\) is a globally asymptotically stable equilibrium point of the ODE \[\dot{\theta} = F\theta - \theta.\]

Proof. This is a special case of Theorem 3.1 of [39]. ◻

9 Technical lemmas↩︎

Lemma 6. An environment \(\mathcal{E}\) with initial state distribution \(p_0\) and transition kernel \(\{T_u\}\) is quasi-Markov if and only if the entrance space satisfies \(\dim \varsigma_z \leq 1\) for all \(z \in \mathcal{Z}\).

Proof. First, suppose that \(\mathcal{E}\) is quasi-Markov with entrance matrix \(\Sigma\). The entrance space \(\varsigma_z\) of feature \(z\) is defined as \[\begin{align} \varsigma_z &\doteq \sum_{u \in \mathcal{U}} \operatorname{range}(\Pi_z T_u \Pi_z^\bot) + \operatorname{span}\{\Pi_z p_0\}\\ &= \sum_{u \in \mathcal{U}} \operatorname{range}(\Pi_z\Sigma \Phi T_u\Pi_z^\bot) + \operatorname{span}\{\Pi_z\Sigma \Phi p_0\}\\ &\subset \operatorname{span}\{\sigma_z\}\text{,} \end{align}\] where we have used the quasi-Markov property. We thus have that \(\dim \varsigma_z \leq 1\). For the other direction, let \(z \in \mathcal{Z}\), and suppose that \(\dim \varsigma_z \leq 1\). If \(\dim\varsigma_z = 0\), then \(\Pi_z p_0 = 0\) and \(\Pi_z T_u \Pi_z^\bot = 0\) for all \(u \in \mathcal{U}\). In this case, we can define \(\sigma_z \doteq \frac{1}{|\mathcal{X}_z|}\varphi_z\). Otherwise, if \(\dim\varsigma_z = 1\), we can define \(\sigma_z\) as the unique vector \(\sigma_z \in \varsigma_z \cap \Delta_\mathcal{X}\). In this way, we can build the entrance matrix \(\Sigma\). We now verify that \(\mathcal{E}\) is quasi-Markov with this entrance matrix. Let \(z \in \mathcal{Z}\). First, suppose that \(\dim\varsigma_z = 0\). Then, \[\Pi_z \Sigma \Phi p_0 = \sigma_z \varphi_z^\top \Pi_z p_0 = 0 = \Pi_z p_0\] and, for any \(u \in \mathcal{U}\) and \(x \in \mathcal{X}\), \[\begin{gather} (\Pi_z\Sigma \Phi T_u\Pi_z^\bot)_{:, x} \\ = \sigma_z \varphi_z^\top (\Pi_z T_u \Pi_z^\bot)_{:, x} = 0 = (\Pi_z T_u \Pi_z^\bot)_{:,x}. \end{gather}\] Now, suppose that \(\dim\varsigma_z = 1\), and let \(\sigma_z \in \varsigma_z \cap \Delta_{\mathcal{X}}\) be the unique vector described above. We know that \(\Pi_z p_0 \in \varsigma_z\) and that \((\Pi_z T_u \Pi_z^\bot)_{:, x} \in \varsigma_z\), which, as \(\sigma_z\) is normalized, implies that \[\Pi_z p_0 = \sigma_z (\boldsymbol{1}^\top \Pi_z p_0) = (\varphi_z^\top p_0)\sigma_z = \Pi_z \Sigma \Phi p_0\text{,}\] and similarly, that \[\begin{align} (\Pi_z T_u \Pi_z^\bot)_{:, x} &= \sigma_z \boldsymbol{1}^\top (\Pi_z T_u \Pi_z^\bot)_{:, x}\\ &= \varphi_z^\top (T_u \Pi_z^\bot)_{:, x} \sigma_z\\ &= (\Pi_z \Sigma \Phi T_u \Pi_z^\bot)_{:, x}\text{,} \end{align}\] which concludes the proof. ◻

Lemma 7. The \(\pi\)-rewiring \(\bar{\mathcal{E}}_\pi\) of an environment \(\mathcal{E}\) is a quasi-Markov rewiring of \(\mathcal{E}\). Furthermore, \(\bar{\mathcal{E}}_\pi\) satisfies 1.

Proof. To show that \(\bar{\mathcal{E}}_\pi\) is a rewiring, we have to verify the properties (i) – (iv) of 2. Using the fact that \(\varphi_z^\top\sigma_{z'} = [z = z']\) for all \(z, z' \in \mathcal{Z}\), we get \[(\Phi \Sigma \Phi)_{z, x} = \varphi_z^\top \sum_{z' \in \mathcal{Z}}\sigma_{z'}\Phi_{z', x} = \Phi_{z, x}\] for all \(z \in \mathcal{Z}\) and \(x \in \mathcal{X}\). Thus, \(\Phi \bar p_0 = \Phi \Sigma \Phi p_0 = \Phi p_0\) and \(\Phi \bar T_u = \Phi T_u\), proving (i) and (ii). Condition (iii) is trivially fulfilled by definition of \(\bar T_u\). For condition (iv), we need to show that \(\bar\varsigma_z \subset \varsigma_z\). Let \(\sigma \in \bar\varsigma_z\). Then, \[\begin{align} \sigma &= \sum_{u \in \mathcal{U}}\sum_{x \in \mathcal{X}} a_{u, x}(\Pi_z \bar T_u \Pi_z^\bot)_{:, x} + a_0 \Pi_z \bar p_0\\ &= \sum_{u \in \mathcal{U}}\sum_{x \in \mathcal{X}} a_{u, x}(\Pi_z \Sigma\Phi T_u \Pi_z^\bot)_{:, x} + a_0 \Pi_z \Sigma\Phi p_0\\ &\propto \sigma_z \propto \sum_{\omega \in \Omega}\Pi_z T_\omega \Pi_z^\bot \mu_\omega + (1 - \gamma_{\pi})\Pi_z p_0 \subset \varsigma_z\text{,} \end{align}\] for some coefficients \(\{a_{x, u}\}\) and \(a_0\), from which we also get that \(\sigma \subset \varsigma_z\), proving (iv). That \(\bar{\mathcal{E}}_\pi\) is quasi-Markov follows immediately from the definition of \(\bar{\mathcal{E}}_\pi\) and the rewiring property: \[\bar p_0 = \Sigma\Phi p_0 = \Sigma\Phi \bar p_0\text{,}\\None\] \[\Pi_z \bar T_u \Pi_z^\bot = \Pi_z \Sigma\Phi T_u \Pi_z^\bot = \Pi_z \Sigma\Phi\bar T_u \Pi_z^\bot.\] It remains to be shown that \(\bar{\mathcal{E}}_\pi\) satisfies 1. First, note that a policy is proper, i.e., it eventually reaches the terminal state \(x^\bot\) with probability \(1\) regardless of the starting state \(x \in \mathcal{X}\), if and only if it has a positive probability of reaching \(x^\bot\) in \(|\mathcal{X}|\) steps regardless of the starting state \(x \in \mathcal{X}\) ([17], Section 3.1). Let \(\pi: \mathcal{Z} \to \Omega\) be any policy and let \(x \in \mathcal{X}\). By 1, \(\pi\) is proper in \(\mathcal{E}\), which implies that there exists a \(t \leq |\mathcal{X}|\) such that \[\mathbb{P}_\pi\{x_{t} = x^\bot \mid x_0 = x\} > 0.\] Thus, there exists a sequence of states \((\bar x_0, \bar x_1, \dots, \bar x_t)\) and actions \((\bar u_0, \bar u_1, \dots, \bar u_{t-1})\), with \(\bar x_0 = x\) and \(\bar x_t = x^\bot\), such that, for all \(\tau \in [t]\), \((T_{\bar u_\tau})_{\bar x_{\tau+1}, \bar x_\tau} > 0\) and \(\pi(\bar x_\tau)_{\bar u_\tau} > 0\). Denoting the probability measure of \(\bar{\mathcal{E}}_\pi\) as \(\bar{\mathbb{P}}\), we can show that \(\pi\) is proper in \(\bar{\mathcal{E}}_\pi\) by proving \[\bar{\mathbb{P}}_\pi\{x_{t} = x^\bot \mid x_0 = x\} > 0\text{,}\] as \(x\) is arbitrary. We have that \[\begin{align} \bar{\mathbb{P}}_\pi\{x_{t} = x^\bot \mid x_0 = x\}\\&\geq \bar{\mathbb{P}}_\pi\{\forall \tau \in [t]: x_{\tau} = \bar x_\tau, u_\tau = \bar u_\tau \mid x_0 = \bar x_0\}\\ &= \prod_{\tau = 0}^t \pi(\bar x_\tau)_{\bar u_\tau} (\bar T_{\bar u_\tau})_{\bar x_{\tau+1}, \bar x_\tau}.\end{align}\] We already know that the policy factors satisfy \(\pi(\bar x_\tau)_{\bar u_\tau} > 0\) for all \(\tau\). Furthermore, for all times \(\tau\) where \(\varphi(\bar x_{\tau + 1}) = \varphi(\bar x_\tau)\), we have that \((\bar T_{\bar u_\tau})_{\bar x_{\tau+1}, \bar x_\tau} = (T_{\bar u_\tau})_{\bar x_{\tau+1}, \bar x_\tau} > 0\), as the intra-feature dynamics are unchanged. For the case where \(z \doteq \varphi(\bar x_{\tau + 1}) \neq \varphi(\bar x_\tau)\), we have, with \(x \doteq \bar x_\tau\), \(u \doteq \bar u_\tau\), and \(x' \doteq \bar x_{\tau + 1}\), that \[(\bar T_{u})_{x', x} = (\Sigma \Phi T_u)_{x', x} = \sigma_z(x') \underbrace{\varphi_z^\top (T_u)_{:, x}}_{> 0}\text{,}\] where the second factor is positive since we know that a transition from \(x\) to \(x' \in \mathcal{X}_z\) is possible under \(T_u\). The first factor, \(\sigma_z(x')\) is positive if the unnormalized entrance probability \(\tilde{\sigma}_z(x')\) is positive. From the definition of \(\tilde{\sigma}_z\), we have that \[\tilde{\sigma}_z(x') \geq \pi(x)_u (T_{u})_{x, x_-} \mu\bigl(x, \pi(x)\bigr).\] In this expression, all three factors are positive if we assume that \(x\) is a reachable state. Note that, as in definition 6, we can make this assumption without loss of generality, since unreachable states cannot possibly influence the convergence of 2. Thus, we can conclude that \(\bar{\mathcal{E}}_\pi\) indeed satisfies 1. ◻

Proposition 4. Consider the corridor environment shown in [fig:corridor-a]. The Bellman error \(\overline{\operatorname{BE}}\) under the always-right policy \(\pi\) is minimized with a corrdior value of \(v_c = k\).

Proof. If \(\mu \in \Delta_{\mathcal{X}}\) is the stationary distribution of \(\pi\) in the corridor environment, the Bellman error is \[\overline{\operatorname{BE}}(v) = \sum_{x \in \mathcal{X}}\mu(x) \bigl\{(v \circ \varphi)(x) - \mathbb{E}_\pi[r(z_{+}) + v(z_{+}) \mid x]\bigr\}^2.\] Under the always-right policy, \(\mu(x) = \frac{1}{k + 1}\) for all states \(x \in \mathcal{X}\) (excluding the terminal states). Thus, denoting the value of the initial state by \(v_0\) and the value of the corridor feature by \(v_c\), \[\begin{gather} \overline{\operatorname{BE}}(v) = \frac{1}{k + 1} \{v_0 - (-1 + v_c)\}^2\\ + \frac{k - 1}{k + 1}\{v_c - (-1 + v_c)\}^2 + \frac{1}{k + 1}\{v_c - k\}^2. \end{gather}\] The first term is minimized if \(v_0 = v_c - 1\), the second term simplifies to \(\frac{k - 1}{k + 1}\) and is independent of \(v\), and the third term is minimized if \(v_c = k\). ◻

Lemma 8. Let \(\mathcal{E}\) be an environment satisfying 1 with transition kernel \(\{T_u\}\). Then, \(\rho(\Pi_z T_\omega) < 1\) for any \(z \in \mathcal{Z}\) and \(\omega \in \Omega\), where \(\rho\) is the spectral radius.

Proof. The elements of \(\Pi_z T_\omega\) are nonnegative and given by \[(\Pi_z T_\omega)_{x', x} = \varphi_z(x') (T_\omega)_{x', x}.\] for \(x, x' \in \mathcal{X}\). The sum of values in column \(x\) is thus \[\varphi_z^\top (T_\omega)_{:, x} \leq \boldsymbol{1}^\top (T_\omega)_{:, x} \leq 1.\] From this it follows that \[\sum_{x' \neq x} (\Pi_z T_\omega)_{x', x} \leq 1 - (\Pi_z T_\omega)_{x, x}.\] Thus, by the Gershgorin disk theorem (e.g., [40, p. 5.67]) we can conclude that all eigenvalues of \(\Pi_z T_\omega\) must be less than or equal to \(1\). Now suppose, for the sake of contradiction, that \(1\) is an eigenvalue of \(\Pi_z T_\omega\). Since we have shown that no eigenvalue can be larger, \(1\) is the Perron-Frobenius eigenvalue and thus there must be an eigenvector \(\tilde{\nu} \in \mathbb{R}^{\mathcal{X}}\) with nonnegative components (e.g., [41] Theorem 8.3.1). Thus, defining \(\nu \doteq \tilde{\nu}/\boldsymbol{1}^\top \tilde{\nu}\), \[(\Pi_z T_\omega)\nu = \nu.\] In other words, \(\nu\) is a stationary distribution of \(\Pi_z T_\omega\). However, no such distribution can exist, since we are assuming that all policies are proper (1), and thus a trajectory must eventually leave \(\mathcal{X}_z\). This contradiction forces us to conclude that \(\rho(\Pi_z T_\omega) < 1\). ◻

Lemma 9. Let \(\mathcal{E}\) be a quasi-Markov environment. Then, \(\mathcal{E}\) is rewire-robust.

Proof. Let \(\bar{\mathcal{E}}\) be any rewiring of \(\mathcal{E}\). We will show that \(\bar{\mathcal{E}} = \mathcal{E}\), which clearly implies rewire-robustness of \(\mathcal{E}\). Let \((p_0, \{T_u\})\) and \((\bar p_0, \{\bar T_u\})\) be the initial state distributions and transition kernels of \(\mathcal{E}\) and \(\bar{\mathcal{E}}\), respectively. Our goal is to show that \(\bar p_0 = p_0\) and \(\bar T_u = T_u\), for all \(u \in \mathcal{U}\). Let \(z \in \mathcal{Z}\), and consider first the case \(\Pi_z p_0 = \boldsymbol{0}\). We have, \[\Pi_z p_0 = \boldsymbol{0} \;\Leftrightarrow\; \varphi_z^\top p_0 = 0 \;\Leftrightarrow\; \varphi_z^\top \bar p_0 \;\Leftrightarrow\; \Pi_z \bar p_0 = \boldsymbol{0}\text{,}\] where we have used the rewiring property (i). On the other hand, if \(\Pi_z p_0 \neq \boldsymbol{0}\), which now implies that \(\Pi_z \bar p_0 \neq \boldsymbol{0}\), rewiring property (iv) shows that we must have \(\bar\varsigma_z = \varsigma_z = \operatorname{span}\{\sigma_z\}\). Thus, by normalization of \(\sigma_z\), \[\Pi_z \bar p_0 = (\varphi_z^\top \bar p_0) \sigma_z = (\varphi_z^\top p_0) \sigma_z = \Pi_z p_0\text{,}\] where we have used the rewiring property (i) and the quasi-Markov property of \(\mathcal{E}\). Applying this logic to all \(z \in \mathcal{Z}\) shows that \(\bar p_0 = p_0\). We apply a similar argument to the transition kernel. Let \(u \in \mathcal{U}\). Note that, to show that \(\bar T_u = T_u\), it suffices to show that \(\Pi_z \bar T_u \Pi_z = \Pi_z T_u \Pi_z\) and \(\Pi_z \bar T_u \Pi_z^\bot = \Pi_z T_u \Pi_z^\bot\) for all \(z \in \mathcal{Z}\). The first equality holds by rewiring property (iii). Let \(x \in \mathcal{X}\). Then, \[\begin{align} (\Pi_z T_u \Pi_z^\bot)_{:, x} = \boldsymbol{0} &\iff \varphi_z^\top (T_u\Pi_z^\bot)_{:, x} = 0\\ &\iff \varphi_z^\top (\bar T_u\Pi_z^\bot)_{:, x} = 0\\ &\iff (\Pi_z \bar T_u \Pi_z^\bot)_{:, x} = \boldsymbol{0}. \end{align}\] Otherwise, by the same argument as above, we have \(\bar\varsigma_z = \varsigma_z = \operatorname{span}\{\sigma_z\}\), and \[\begin{align} (\Pi_z \bar T_u \Pi_z^\bot)_{:, x} &= \varphi_z^\top (\bar T_u \Pi_z^\bot)_{:, x} \sigma_z\\ &= \varphi_z^\top (T_u \Pi_z^\bot)_{:, x}\sigma_z\\ &= (\Pi_z T_u \Pi_z^\top)_{:, x}\text{,} \end{align}\] where we have again used that \(\sigma_z \in \Delta_{\mathcal{X}}\), that \(\Phi \bar T_u = \Phi T_u\), and that \(\mathcal{E}\) is quasi-Markov. ◻

Lemma 10. There exists an environment \(\mathcal{E}\) and a behavior policy \(\pi\) satisfying 1 2 such that \(\mathcal{E}\) is \(\pi\)-rewire-robust, but not rewire-robust.

Proof.

Figure 8: An environment that is not rewire-robust, but that is \pi-rewire-robust under the behavior policy \pi. See 10 for details. (Here, \eta \doteq 1 + \delta.)

Consider the environment \(\mathcal{E}\) in 8, which is a variation of 6 with modified rewards. The optimal reactive policy in \(\mathcal{E}\) clearly moves right in both \(\mathtt a\) and \(\mathtt b\). [fig:prr-c] shows a rewiring \(\bar{\mathcal{E}}\) of \(\mathcal{E}\) in which it is optimal to move right in \(\mathtt b\), but up in \(\mathtt a\). Thus, the environment \(\mathcal{E}\) is not rewire-robust. Now, consider a behavior policy \(\pi\) that moves right with probability \(1 - \delta\) and up with probability \(1 - \delta\) ([fig:prr-b]). The corresponding \(\pi\)-rewiring is shown in [fig:prr-d] (cf.[fig:nrr-d]). In the states \(\mathtt a\) and \(\mathtt b\) of \(\bar{\mathcal{E}}_\pi\), moving right yields an expected return of \(2 / \eta\). In \(\mathtt b\), this is clearly preferable to moving up and terminating with a reward of \(-1\). In \(\mathtt a\), the alternative is moving up and having a maximum expected return of \(2 / \eta - 1\). Thus, in both \(\mathtt a\) and \(\mathtt b\), the optimal reactive policy moves right. Hence, \(\mathcal{E}\) is \(\pi\)-rewire-robust. (The value of \(\delta\) is irrelevant.) ◻

Lemma 11. Let \(f, g\) be two real-valued functions defined on a finite set. Then, \[|\max_x f(x) - \max_x g(x)| \leq \undefined{f - g}\text{,}\] where \(\undefined{\cdot}\) is the max-norm.

Proof. Let \(x_f\) be a maximizer of \(f\). Then, \(f(x_f) - g(x_f) \leq \undefined{f - g}\) and thus \[\begin{align} \max_x f(x) = f(x_f) &\leq g(x_f) + \undefined{f - g}\\ &\leq \max_x g(x) + \undefined{f - g}. \end{align}\] The reverse direction is analogous. ◻

10 Proofs↩︎

In this section we present all proofs that are omitted in the main text.

10.0.0.1 3.

Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 hold. Then, the Markov chain \((\xi_t) \subset \Xi\) is irreducible and has a unique stationary distribution \(\mu \in \Delta_\Xi\) satisfying \[\mu(x, \omega, x') = \mu(x, \omega)(T_\omega')_{x',x}\] for all \((x, \omega, x') \in \Xi\). Furthermore, this distribution satisfies, for all \(z \in \mathcal{Z}\) and \(\omega \in \Omega\), \[\begin{align} \Pi_z\mu_\omega &= (1 - \gamma_\pi)\pi(\omega \mid z)\Pi_z p_0 + \Pi_z T_\omega \Pi_z \mu_\omega\\ &+ \pi(\omega \mid z)\sum_{\omega' \in \Omega}\Pi_z T_{\omega'}\Pi_z^\bot\mu_{\omega'}\text{,} \end{align}\] where \(\mu_\omega \in \mathbb{R}^{\mathcal{X}}\) is defined as \(\mu_\omega(x) \doteq \mu(x, \omega)\), and where \(\gamma_\pi \doteq \sum_{x \in \mathcal{X}, \omega \in \Omega} \mu(x, \omega) \gamma_{x, \omega}\).

Proof. We first formally define the set \(\Xi\) as \[\begin{align} \Xi \doteq \{(x, \omega, x') \in \tilde{\mathcal{X}} \times \Omega \times \mathcal{X}' \mid (T'_\omega)_{x', x} > 0\}\text{,} \end{align}\] where \[\tilde{\mathcal{X}} \doteq \bigl\{x \in \mathcal{X} \mid \exists \pi: \mathbb{P}_\pi\{\exists t: x_t = x \mid x_0 \sim p_0\} > 0\bigr\}\] is the set of all reachable states. We also define \(\tilde{\mathcal{Z}} \doteq \varphi(\tilde{\mathcal{X}})\) as the set of all reachable features. Irreducibility means that for any \(\xi, \xi' \in \Xi\), there is a positive probability of reaching \(\xi\) from \(\xi'\) under the behavior policy \(\pi\). Formally, \[\begin{align} \mathbb{P}'_\pi\{\exists t: \xi_t = \xi \mid \xi_0 = \xi'\}\\&\geq \mathbb{P}'_\pi\{\exists t, t': x_t' = x^\bot, \xi_{t + t'} = \xi \mid \xi_0 = \xi'\}\\ &\geq \mathbb{P}_\pi\{\exists t: x_t' = x^\bot \mid \xi_0 = \xi'\}\, \mathbb{P}_\pi\{\exists t: \xi_{t} = \xi\}\text{,}\end{align}\] where the second inequality follows because we have replaced the restarting kernel \(\mathbb{P}_\pi'\) with the terminating kernel \(\mathbb{P}_\pi\). The first factor is \(1\) by 1. The second factor is, with \(\xi \doteq (x, \omega, x')\), \[\begin{align} \mathbb{P}_\pi\{\exists t: \xi_{t} = \xi \mid x_0 \sim p_0\}\\&= \mathbb{P}_\pi\{\exists t: x_t = x, \omega_t = \omega, x_t' = x' \mid x_0 \sim p_0\}\\ &\geq \mathbb{P}_\pi\{\exists t: x_t = x \mid x_0 \sim p_0\} \pi(\omega \mid z) (T'_\omega)_{x', x}\end{align}\] which is positive by 2 and by the definitions of \(\tilde{\mathcal{X}}\) and \(\Xi\). The existence of a unique stationary distribution \(\mu \in \Delta_\Xi\) follows directly from irreducibility (e.g., [42] Proposition 8.4.10). For convenience, we extend \(\mu\) to the space \(\Delta_{\mathcal{X} \times \Omega \times \mathcal{X}'}\) and define \(\mu(x, \omega, x') = 0\) for all \((x, \omega, x') \not\in \Xi\). We now show that \(\mu\) can be decomposed as described. Let \(\xi = (x, \omega, x') \in \Xi\). Then, \[\begin{align} \mu(x, \omega) (T_\omega')_{x', x}\\&= \sum_{\bar x' \in \mathcal{X}'} \mu(x, \omega, \bar x') (T_\omega')_{x', x}\\ &= \sum_{\bar x' \in \mathcal{X}'} \sum_{\xi_- \in \Xi} \mu(\xi_-) p(x, \omega \mid \xi_-) (T_\omega')_{\bar x', x} (T_\omega')_{x', x}\\ &= \sum_{\xi_- \in \Xi} \mu(\xi_-) p(x, \omega, x' \mid \xi_-) \underbrace{\sum_{\bar x' \in \mathcal{X}'} p(T_\omega')_{\bar x', x}}_{1}\\[-0.5\baselineskip] &= \mu(x, \omega, x').\end{align}\] We now show that \(\Pi_z\mu_\omega\) satisfies the desired equation. Let \(\xi = (x, \omega, x') \in \Xi\). Using the decomposition above and the fact that \(\mu\) is stationary, \[\begin{align} \mu(x, \omega) &= \mu(x, \omega, x')/(T_\omega')_{x', x}\\ &= \sum_{\xi_- \in \Xi} \mu(x_-, \omega_-) (T_{\omega_-}')_{x_-', x_-} p(x, \omega \mid \xi_-)\\ &= \sum_{\substack{x_- \in \mathcal{X}\\\omega_- \in \Omega}}\mu(x_-, \omega_-) \underbrace{\sum_{\mathclap{x_-' \in \mathcal{X}'}}\,p(x, \omega \mid \xi_-)(T_{\omega_-}')_{x_-', x_-}.}_{p(x, \omega \mid x_-, \omega_-)} \end{align}\] Thus, \(\mu(x, \omega)\) is stationary with respect to \(p(x, \omega \mid x_-, \omega_-)\). Plugging in the definition of the kernel \(p(\xi \mid \xi_-)\), we get \[\begin{align} \sum_{x_-' \in \mathcal{X}'}p(x, \omega \mid \xi_-)(T_{\omega_-}')_{x_-', x_-}\\&= \sum_{x_-' \in \mathcal{X}'}p(x\mid x'_-)p(\omega \mid \xi_-, x)(T_{\omega_-}')_{x_-', x_-}\\ &= \sum_{x_-' \in \mathcal{X}}[z_-' = z_-][x = x_-][\omega = \omega_-](T_{\omega_-}')_{x_-', x_-}\\ &\qquad+ \sum_{x_-' \in \mathcal{X}}[z_-' \neq z_-][x = x_-]\pi(\omega \mid z)(T_{\omega_-}')_{x_-', x_-}\\ &\qquad+ p_0(x)\pi(\omega \mid z)(T_{\omega_-}')_{x^\bot, x_-}\\[0.2\baselineskip] &= [z = z_-][\omega = \omega_-](T_{\omega_-})_{x, x_-}\\[0.1\baselineskip] &\qquad+ [z \neq z_-]\pi(\omega \mid z)(T_{\omega_-})_{x, x_-}\\[0.1\baselineskip] &\qquad+ (1 - \gamma_{x_-, \omega_-})\pi(\omega \mid z)p_0(x).\end{align}\] From this, we get \[\begin{align} \mu_\omega(x) &= \sum_{\substack{x_- \in \mathcal{X}\\\omega_- \in \Omega}} \mu_{\omega_-}(x_-) p(x, \omega \mid x_-, \omega_-)\\ &= \sum_{x_- \in \mathcal{X}}(T_\omega)_{x, x_-}[z_- = z]\mu_\omega(x_-)\\ &\qquad+ \pi(\omega \mid z)\sum_{\substack{x_- \in \mathcal{X}\\\omega_- \in \Omega}}(T_\omega)_{x, x_-}[z_- \neq z]\mu_{\omega_-}(x_-)\\ &\qquad+ (1 - \gamma_\pi)\pi(\omega\mid z)p_0(x). \end{align}\] The expression for \(\Pi_z \mu_\omega\) follows immediately from this by writing the sums as matrix products and the Iverson brackets as projections. ◻

10.0.0.2 4.

Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 3 hold. Then, the iterates \(Q_t\) of 2 converge almost surely to a solution \(Q_\star\) satisfying \[Q_\star(z, \omega) = \mathbb{E}_\mu\bigl[r(z') + \max_{\omega' \in \Omega}Q_\star(z', \omega')\mid z, \omega\bigr]\text{.}\]

Proof. Our convergence result is based on the general stochastic approximation convergence theorem by [16], specifically on a special case of their Corollary 8, which we have included as 2. We begin by casting 2 as a stochastic approximation procedure of the form required by 2, and then verify that all assumptions of this theorem hold in our case. The parameter vector that is updated in 2 is the Q-table, so in the notation of 2, \(\theta_t \doteq Q_t \in \mathbb{R}^{\mathcal{Z} \times \Omega}\). The update itself happens in [ln:q] of 2, which we can write as \[Q_{t + 1} = Q_{t} + \alpha_t \delta_{z_t, \omega_t} \Delta_t\text{,}\] where \(\delta_{z, \omega} \in \mathbb{R}^{\mathcal{Z} \times \Omega}\) is defined as \((\delta_{z, \omega})_{z', \omega'} \doteq [z = z'][\omega = \omega']\), and \[\Delta_t = r(z_t') + \max_{\omega \in \Omega}Q_t(z_t', \omega) - Q_t(z_t, \omega_t).\] If we let \(\xi_{t} \doteq (x_t, \omega_t, x_t')\) as described above, then this recreates the required form 3 with \[\begin{gather} H(Q, x, \omega, x') \doteq \delta_{\varphi(x), \omega}\bigl\{(r \circ \varphi)(x')\\ + \max_{\omega' \in \Omega}Q\bigl(\varphi(x'), \omega'\bigr) - Q\bigl(\varphi(x), \omega\bigr)\bigr\}. \end{gather}\] Assumption 1 of 2 demands that \((\xi_t)\) is irreducible with stationary distribution \(\mu \in \Delta_\Xi\), which is satisfied by 3, and Assumption 2 of 2 is satisfied by our 3. We thus continue to verify Assumption 3 of 2. Writing \(z \doteq \varphi(x)\) and \(z' \doteq \varphi(x')\), we define \[H_\infty(Q, \xi) \doteq \delta_{z, \omega}\bigl\{ \max_{\omega' \in \Omega}Q(z', \omega') - Q(z, \omega)\bigr\}\text{,}\] and \(b(\xi) \doteq \delta_{z, \omega} r(z')\). Let \(Q \in \mathbb{R}^{\mathcal{Z} \times \Omega}\), \(\xi \in \Xi\) and \(c \geq 1\) be arbitrary. Then, \[H(cQ, \xi) - cH_\infty(Q, \xi) = \delta_{z, \omega}r(z') = b(\xi)\text{,}\] as required. Moving on to Assumption 4 of 2, we have that, for any \(Q, Q' \in \mathbb{R}^{\mathcal{Z} \times \Omega}\) and \(\xi \in \Xi\), \[\begin{align} \undefined{H(Q, \xi) - H(Q', \xi)} = \undefined{H_\infty(Q, \xi) - H_\infty(Q', \xi)}\\&\begin{multlined} \leq |\max_{\omega' \in \Omega}Q(z', \omega') - \max_{\omega' \in \Omega}Q'(z', \omega')|\\ \qquad\qquad\qquad+ | Q(z, \omega) - Q'(z, \omega)| \end{multlined}\\ &\leq 2 \undefined{Q - Q'}\text{,}\end{align}\] where \(\undefined{\cdot}\) represents the max-norm, and where we have used 11. We have thus shown that the Lipschitz condition in Assumption 4 of 2 is satisfied with \(L = 2\). Furthermore, both \[h(Q) \doteq \mathop{\mathrm{\mathbb{E}}}_{\xi \sim \mu}\bigl[\delta_{z, \omega}\bigl\{r(z') + \max_{\omega' \in \Omega}Q(z', \omega') - Q(z, \omega)\bigr\}\bigr]\] and \[h_\infty(Q) \doteq \mathop{\mathrm{\mathbb{E}}}_{\xi \sim \mu}\bigl[\delta_{z, \omega}\bigl\{ \max_{\omega' \in \Omega}Q(z', \omega') - Q(z, \omega)\bigr\}\bigr]\] are finite for all \(Q \in \mathbb{R}^{\mathcal{Z} \times \Omega}\). We thus continue to Assumption 5 of 2. Let \(h_c(Q) \doteq h(cQ)/c\). We need to show that \(h_c \to h_\infty\) uniformly as \(c \to \infty\). We have \[\begin{align} \undefined{h_c - h_\infty} &= \frac{1}{c}\undefined{\mathop{\mathrm{\mathbb{E}}}_{\xi \sim \mu}\bigl[\delta_{z, \omega}r(z')\bigr]} \leq \mathop{\mathrm{\mathbb{E}}}_{\xi \sim \mu}\frac{|r(z')|}{c} \leq \frac{r_{\text{max}}}{c}\text{,} \end{align}\] where \(r_{\text{max}} \doteq \max_{z \in \mathcal{Z}} r(z)\). Thus, the convergence is indeed uniform, and we can consider the ordinary differential equation (ODE) \[\label{eq:ode-infty} \dot{Q} = h_\infty(Q).\tag{4}\] We need to show that \(0 \in \mathbb{R}^{\mathcal{Z} \times \Omega}\) is a globally asymptotically stable equilibrium point of this ODE. If this the case, 2 guarantees that that \(Q_t\) converges almost surely to the globally asymptotically stable equilibrium point \(Q_\star\) of \[\label{eq:ode} \dot{Q} = h(Q).\tag{5}\] We begin with 5 , since 4 is simply a special case in which the rewards are \(0\) everywhere. To analyze the stability of this ODE, we use a result by [39], which we have included as 3. For any \(Q \in \mathbb{R}^{\mathcal{Z} \times \Omega}\), \(z \in \mathcal{Z}\), and \(\omega \in \Omega\), we define the operator \(F\) as \[(FQ)(z, \omega) \doteq \mathbb{E}_\mu\bigl[r(z') + \max_{\omega' \in \Omega} Q(z', \omega')\mid z, \omega\bigr]\] We can then rewrite 5 as \[\begin{align} \dot{Q} &= \mathbb{E}_\mu\bigl[\delta_{z, \omega}(FQ - Q)(z, \omega)\bigr] = M \odot (FQ - Q)\text{,} \end{align}\] where \(M \in \mathbb{R}^{\mathcal{Z} \times \Omega}\) is defined by \(M_{z, \omega} \doteq \mu(z, \omega)\) and \(\odot\) denotes the Hadamard product. Thus, 5 is of the form \(\dot{Q} = F_\mu Q - Q\) that is required by 3. Here, \[F_\mu Q \doteq Q + M \odot (FQ - Q).\] To use 3, we now need to verify that \(F_\mu\) is max-norm nonexpansive, and that it has a unique fixed point. First note that \(F\) is an episodic Bellman operator in an MDP with state space \(\mathcal{Z}\), action space \(\Omega\), and transition dynamics \(\mu(z' \mid z, \omega)\). Thus, we know that \(F\) is a weighted max-norm contraction and hence has a unique fixed point \(Q_\star\) [17]. Furthermore, \(F\) is max-norm nonexpansive, as \[\begin{align} \undefined{FQ - FQ'}\\&= \bigl\lVert\,\mathbb{E}_\mu\bigl[\max_{\omega' \in \Omega} Q(z', \omega') - \max_{\omega' \in \Omega} Q'(z', \omega') \mid z, \omega \bigr]\bigr\rVert\\ &\leq \undefined{Q - Q'}\end{align}\] for any \(Q, Q' \in \mathbb{R}^{\mathcal{Z} \times \Omega}\), which follows from Jensen’s inequality and 11. Returning to \(F_\mu\), we find that this operator has the same unique fixed point as \(F\): \[\begin{align} F_\mu Q = Q \iff M \odot (FQ - Q) = 0 \iff Q = Q_\star\text{,} \end{align}\] where we have used that \(\mu(z, \omega) > 0\) for all \(z \in \tilde{\mathcal{Z}}\) and \(\omega \in \Omega\). Furthermore, \(F_\mu\) is max-norm nonexpansive. To see this, let \(Q, Q' \in \mathbb{R}^{\mathcal{Z} \times \Omega}\), and let \(\boldsymbol{1} \in \mathbb{R}^{\mathcal{Z} \times \Omega}\) be the all-ones matrix. Then, \[\begin{align} \!\!\undefined{F_\mu Q - F_\mu Q'}\\ \quad &= \undefined{(\boldsymbol{1} - M) \odot (Q - Q') + M \odot (FQ - FQ')}\\ &\begin{multlined} =\max_{z \in \mathcal{Z}}\max_{\omega \in \Omega}\, \lvert\{1 - \mu(z, \omega)\} (Q - Q')(z, \omega)\\[-0.3\baselineskip] \qquad\qquad\qquad+ \mu(z, \omega)(FQ - FQ')(z, \omega))\rvert \end{multlined}\\ &\begin{multlined} \leq\max_{z \in \mathcal{Z}}\max_{\omega \in \Omega}\, \{1 - \mu(z, \omega)\} \undefined{Q - Q'}\\[-0.3\baselineskip] \qquad\qquad\qquad+ \mu(z, \omega)\undefined{FQ - FQ'} \end{multlined}\\ &\leq \undefined{Q - Q'}\text{,}\end{align}\] where we have used that \(\mu(z, \omega) \in (0, 1)\) for all \(z \in \tilde{\mathcal{Z}}\) and \(\omega \in \Omega\) and that \(F\) is nonexpansive. Finally, using 3, we can conclude that the ODE 5 has a unique globally asymptotically stable equilibrium point \(Q_\star\) satisfying \(Q_\star = F Q_\star\). The only thing left to verify is that this fixed point is \(0 \in \mathbb{R}^{\mathcal{Z} \times \Omega}\) for the ODE 4 . In this case, the Bellman operator is, for \(z \in \tilde{\mathcal{Z}}\) and \(\omega \in \Omega\), \[(F_\infty Q)(z, \omega) \doteq \mathbb{E}_\mu\bigl[\max_{\omega' \in \Omega} Q(z', \omega')\mid z, \omega\bigr].\] It is easily seen that \(F_\infty 0 = 0\). As we have already shown that the fixed point is unique, we are done. 2 now guarantees that the iterates \(Q_t\) of 2 converge almost surely to \(Q_\star\) which satisfies 2 . ◻

10.0.0.3 5.

Let \(\mathcal{E}\) be an environment and \(\pi\) a behavior policy such that 1 2 hold. Then, if \(\hat{\mathcal{M}}_\pi\) is the corresponding \(\pi\)-MDP with transition kernel \(\{\hat{T}_\omega\}\), \[\mu(z' \mid z, \omega) = (\hat{T}_\omega)_{z', z}\] for all \(z, z' \in \mathcal{Z}\), and all \(\omega \in \Omega\).

Proof. Let \(z, z' \in \mathcal{Z}\) and \(\omega \in \Omega\). Then, by the definition of \(\mu(z, \omega, z')\), \[\begin{align} \mu(z' \mid z, \omega) &= \frac{\sum_{\substack{x \in \mathcal{X}_z, x' \in \mathcal{X}_{z'}}}\mu(x, \omega, x')}{\sum_{x \in \mathcal{X}_z}\mu(x, \omega)}\\ &= \frac{\sum_{x' \in \mathcal{X}}\varphi_{z'}(x')\sum_{x \in \mathcal{X}_z}(T_\omega)_{x', x}\mu_\omega(x)}{\sum_{x \in \mathcal{X}}\varphi_z(x)\mu_\omega(x)}\\ &= \varphi_{z'}^\top \bar T_\omega \frac{\Pi_z\mu_\omega}{\varphi_z^\top \mu_\omega}\text{,} \end{align}\] where we have used the rewiring property of \(\bar{\mathcal{E}}_\pi\) in the last step. The transition kernel of \(\hat{\mathcal{M}}_\pi\) is \((\hat{T}_\omega)_{z', z} = \varphi_{z'}^\top \bar T_\omega \psi_z^\omega.\) Thus, we need to prove that \(\psi_z^\omega = \Pi_z\mu_\omega/\varphi_z^\top\mu_\omega\) for all \(z \in \mathcal{Z}\) and \(\omega \in \Omega\). As \(\psi_z^\omega\) is normalized, it is enough to prove that \(\psi_z^\omega \propto \Pi_z\mu_\omega\). Using the fact that \(\Pi_z T_\omega \Pi_z = \Pi_z \bar T_\omega \Pi_z\), we have, from the definition of \(\tilde{\sigma}_z\) and 3, \[\pi(\omega\mid z)\tilde{\sigma}_z = (I - \Pi_z\bar T_\omega)\Pi_z\mu_\omega.\] The final result follows as \[\psi_z^\omega \propto (I - \Pi_z\bar T_\omega)^{-1}\tilde{\sigma}_z \propto \Pi_z \mu_\omega.\qedhere\] ◻

11 The Bellman risk is learnable↩︎

[1] show that the value error and Bellman error are not learnable, meaning that they cannot generally be estimated purely from observed quantities such as features and rewards. The proof constructs partially observable environments which cannot possibly be distinguished based on the observed features and rewards, but in which the value errors and Bellman errors do not coincide. While the value error at least has a unique minimizer, [1] show that the minimizer of the Bellman error can depend on these unobservable differences between environments. In this section, we show that this shortcoming does not apply to the value risk \(\mathcal{R}_\mathrm{V}\) or Bellman risk \(\mathcal{R}_\mathrm{B}\) defined in 4. The fundamental reason is that both \(\mathcal{R}_\mathrm{V}\) and \(\mathcal{R}_\mathrm{B}\) are defined purely based on observable quantities (rewards and features). In the following, we remove the assumption that \(\varphi\) is deterministic. We thus consider the general POMDP setting with stochastic observations \(z_t \sim \varphi(\cdot \mid x_t)\). Since these results are independent of the behavior policy, we simply let the environments be autonomous, meaning that there are fixed (latent) transition dynamics \(p(x_{t+1} \mid x_t)\). Following [1], we say that the data distributions of two autonomous environments coincide, if the distributions over feature sequences \(p(z_0, z_1, \dots)\) are the same. We assume that the reward is a deterministic function of the feature; this is without loss of generality, since the feature space could simply be extended to include the observed reward. In the following result, we assume that the state distributions of the autonomous environments converge to their stationary distributions.

Proposition 5. Let \(\{\mathcal{E}_i\}\) be a set of autonomous environments with stationary distributions \(\{\mu_i \in \Delta_{\mathcal{X}_i}\}\) satisfying \(\mathbb{P}_i\{x_t = x\} \to \mu_i(x)\) as \(t \to \infty\). If the data distributions of \(\{\mathcal{E}_i\}\) coincide, then \(\mathcal{R}_{\mathrm{B}}^{i}(v) = \mathcal{R}_{\mathrm{B}}^{j}(v)\) and \(\mathcal{R}_{\mathrm{V}}^{i}(v) = \mathcal{R}_{\mathrm{V}}^{j}(v)\), for any two environments \(i, j\) and any \(v \in \mathbb{R}^{\mathcal{Z}}\).

Proof. The value risk and Bellman risk are both defined in terms of expected values of the form \(\mathbb{E}_\mu[f(z_{t})]\), where \(\mu\) is the stationary distribution over the state: \[\mathbb{E}_{\mu_i}[f(z_t)] = \sum_{x \in \mathcal{X}_i} \mu_i(x) \sum_{z \in \mathcal{Z}} \varphi_i(z \mid x) f(z)\text{,}\] where we see that the expression is independent of \(t\). We prove the result by showing that \(\mathbb{E}_{\mu_i}[f(z_t)] = \mathbb{E}_{\mu_j}[f(z_t)]\) for all \(i\), \(j\), and \(f\). Consider the following related quantity: \[\begin{align} \mathbb{E}_i[f(z_t)] &= \sum_{z \in \mathcal{Z}} \mathbb{P}_i\{z_t = z\} f(z)\\ &= \sum_{x \in \mathcal{X}} \mathbb{P}_i\{x_t = x\} \sum_{z \in \mathcal{Z}} \varphi_i(z \mid x) f(z). \end{align}\] As the data distributions of \(\{\mathcal{E}_i\}\) coincide, we clearly have \(\mathbb{E}_i[f(z_t)] = \mathbb{E}_j[f(z_t)]\) for any \(t\). Thus, this equality must also hold in the limit as \(t \to \infty\). From our assumption that \(\mathbb{P}_i\{x_t = x\} \to \mu_i(x)\) as \(t \to \infty\), we have \[\begin{align} \mathbb{E}_{\mu_i}[f(z_t)] &= \lim_{t \to \infty} \mathbb{E}_{i}[f(z_t)]\\ &= \lim_{t \to \infty} \mathbb{E}_{j}[f(z_t)] = \mathbb{E}_{\mu_j}[f(z_t)]\text{,} \end{align}\] which concludes the proof. ◻

Note that the above conclusion does not extend to the Value error \(\overline{\operatorname{VE}}\) and Bellman error \(\overline{\operatorname{BE}}\), as these are defined as expected values of the form \(\mathbb{E}_\mu[f(x_t)]\). The proof above also establishes that the value risk \(\mathcal{R}_\mathrm{V}\) and the Bellman risk \(\mathcal{R}_\mathrm{B}\) are “learnable” if the state distribution converges to the stationary distribution. An asymptotically unbiased estimate can be obtained by a simple estimator of the form \[\hat{\mathcal{R}}_t \doteq \frac{1}{t} \sum_{\tau = 1}^t f(z_\tau)\text{,}\] where \(f\) is chosen as above to reflect either \(\mathcal{R}_\mathrm{V}\) or \(\mathcal{R}_\mathrm{B}\). This estimator is furthermore simple to implement in a recursive fashion. The following result shows that the value error and the value risk are closely related.

Proposition 6. The value risk has the same minimizer as the value error.

Proof. We first introduce the return error, \[\mathcal{R}(v) = \mathbb{E}_\mu\bigl[\{v(z_t) - R_t\}^2\bigr].\] It is a well-known property of mean squared risk measures like this that the minimizer of the risk is the regression function, in this case \(v(z) = \mathbb{E}_\mu[R_t \mid z_t = z]\). Looking at the definition of the value risk, it is obvious that this quantity also minimizes the value risk. That the value error and the return error are minimized by the same function has already been shown by [1]. ◻

12 On \(q_\star\)-realizability↩︎

We first show that our definition of \(q_\star\)-realizability (1) is the appropriate definition of linear \(q_\star\)-realizability for the case of hard state aggregation and stochastic shortest path problems that we consider. Note that in this case, the optimal action-value function is stationary: \(q^\star_{h_1} = q^\star_{h_2}\), for any \(h_1\) and \(h_2\). Furthermore, the feature mapping \(\varphi\) is a hard state aggregation. We can write this in the notation of [21] by defining the mapping \(\tilde{\varphi}: \mathcal{X} \times \mathcal{U} \to \mathbb{R}^d\), where \(d = |\mathcal{Z} \times \mathcal{U}|\), and \(\tilde{\varphi}(x, u)\) is the one-hot vector in \(\mathbb{R}^d\) corresponding to the tuple \((\varphi(x), u)\). Then, the function \(q: \mathcal{Z} \times \mathcal{U} \to \mathbb{R}\) in 1 is equivalent to the vector \(\theta^\star\) defined in Assumption 1 of [21], since \(\langle\tilde{\varphi}(x, u), \theta^\star\rangle = (\theta^\star)_{\varphi(x), u} = q(\varphi(x), u)\).

Proposition 7. Let \(\mathcal{E}\) be a \(q_\star\)-realizable environment. Then, \(\mathcal{E}\) is generalized rewire-robust.

Proof. Let \(q_\star: \mathcal{X} \times \mathcal{U} \to \mathbb{R}\) be the optimal action-value function in \(\mathcal{M}\), the MDP underlying \(\mathcal{E}\). As \(\mathcal{E}\) is \(q_\star\)-realizable, there exists a function \(q: \mathcal{Z} \times \mathcal{U} \to \mathbb{R}\) such that \[q_\star(x, u) = q\bigl(\varphi(x), u\bigr)\] for all \(x \in \mathcal{X}\) and \(u \in \mathcal{U}\). Let \(\bar{\mathcal{E}}\) be any generalized rewiring of \(\mathcal{E}\), and let \(x \in \mathcal{X}\) and \(u \in \mathcal{U}\) be arbitrary. Then, by Bellman optimality of \(q\) in \(\mathcal{M}\), \[\begin{align} q(\varphi(x), u)\\ \qquad &= \sum_{x' \in \mathcal{X}} (T_u)_{x', x}\bigl\{(r\circ\varphi)(x') + \max_{u' \in \mathcal{U}}q\bigl(\varphi(x'), u'\bigr)\bigr\}\\ &= \sum_{z' \in \mathcal{Z}} (\varphi_{z'}^\top T_u)(x) \bigl\{r(z') + \max_{u' \in \mathcal{U}}q(z', u')\bigr\}\\ &= \sum_{z' \in \mathcal{Z}} (\varphi_{z'}^\top \bar T_u)(x) \bigl\{r(z') + \max_{u' \in \mathcal{U}}q(z', u')\bigr\}\\ &= \sum_{x' \in \mathcal{X}} (\bar T_u)_{x', x}\bigl\{(r\circ\varphi)(x') + \max_{u' \in \mathcal{U}}q\bigl(\varphi(x'), u'\bigr)\bigr\}\text{,}\end{align}\] where we have used the rewiring property \(\Phi T_u = \Phi \bar T_u\). Thus, \(q\) also represents the optimal action-value function in \(\bar{\mathcal{M}}\). It follows that an optimal policy in \(\bar{\mathcal{E}}\) is greedy with respect to \(q\), just like in \(\mathcal{E}\). Thus, \(\mathcal{E}\) is generalized rewire-robust. ◻

References↩︎

[1]
R. S. Sutton and A. G. Barto, Reinforcement learning: An introduction, 2nd ed. MIT Press, 2018.
[2]
V. Mnih et al., “Human-level control through deep reinforcement learning,” Nature, vol. 518, no. 7540, pp. 529–533, 2015, [Online]. Available: https://doi.org/10.1038/nature14236.
[3]
D. Silver et al., “Mastering the game of Go with deep neural networks and tree search,” Nature, vol. 529, no. 7587, pp. 484–489, 2016, [Online]. Available: https://doi.org/10.1038/nature16961.
[4]
O. Vinyals et al., “Grandmaster level in StarCraft II using multi-agent reinforcement learning,” Nature, vol. 575, no. 7782, pp. 350–354, 2019, [Online]. Available: https://doi.org/10.1038/s41586-019-1724-z.
[5]
OpenAI et al., “Learning dexterous in-hand manipulation,” The International Journal of Robotics Research, vol. 39, no. 1, pp. 3–20, 2020, [Online]. Available: https://doi.org/10.1177/0278364919887447.
[6]
P. Dürr et al., “Outplaying elite table tennis players with an autonomous robot,” Nature, vol. 652, no. 8111, pp. 886–891, 2026, [Online]. Available: https://doi.org/10.1038/s41586-026-10338-5.
[7]
D. P. Bertsekas and J. N. Tsitsiklis, Neuro-dynamic programming. Athena Scientific, 1996.
[8]
A. Agarwal, N. Jiang, S. M. Kakade, and W. Sun, Reinforcement learning: Theory and algorithms. 2022.
[9]
L. P. Kaelbling, M. L. Littman, and A. R. Cassandra, “Planning and acting in partially observable stochastic domains,” Artificial Intelligence, vol. 101, no. 1, pp. 99–134, 1998, [Online]. Available: https://doi.org/10.1016/S0004-3702(98)00023-X.
[10]
R. S. Sutton, D. Precup, and S. Singh, “Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning,” Artificial Intelligence, vol. 112, no. 1, pp. 181–211, 1999, [Online]. Available: https://doi.org/10.1016/S0004-3702(99)00052-1.
[11]
S. P. Singh, T. Jaakkola, and M. I. Jordan, “Learning without state-estimation in partially observable Markovian decision processes,” in Proceedings of the eleventh international conference on machine learning, 1994, pp. 284–292, [Online]. Available: https://doi.org/10.1016/B978-1-55860-335-6.50042-8.
[12]
C. J. C. H. Watkins and P. Dayan, “Q-learning,” Machine Learning, vol. 8, no. 3, pp. 279–292, 1992, [Online]. Available: https://doi.org/10.1007/BF00992698.
[13]
J. N. Tsitsiklis and B. Van Roy, “Feature-based methods for large scale dynamic programming,” Machine Learning, vol. 22, no. 1, pp. 59–94, 1996, [Online]. Available: https://doi.org/10.1007/BF00114724.
[14]
S. J. Majeed and M. Hutter, “On Q-learning convergence for non-Markov decision processes,” in Proceedings of the 27th international joint conference on artificial intelligence, 2018, pp. 2546–2552, [Online]. Available: https://doi.org/10.24963/ijcai.2018/353.
[15]
V. S. Borkar and S. P. Meyn, “The O.D.E. Method for convergence of stochastic approximation and reinforcement learning,” SIAM Journal on Control and Optimization, vol. 38, no. 2, pp. 447–469, 2000, [Online]. Available: https://doi.org/10.1137/S0363012997331639.
[16]
S. D. Liu, S. Chen, and S. Zhang, “The ODE method for stochastic approximation and reinforcement learning with Markovian noise,” Journal of Machine Learning Research, vol. 26, no. 24, pp. 1–76, 2025, [Online]. Available: http://jmlr.org/papers/v26/24-0100.html.
[17]
D. P. Bertsekas, Dynamic programming and optimal control, volume II: Approximate dynamic programming, 4th ed. Athena Scientific, 2012.
[18]
J. N. Tsitsiklis, “Asynchronous stochastic approximation and Q-learning,” Machine Learning, vol. 16, no. 3, pp. 185–202, 1994, [Online]. Available: https://doi.org/10.1023/A:1022689125041.
[19]
T. Jaakkola, M. Jordan, and S. Singh, “Convergence of stochastic iterative dynamic programming algorithms,” in Advances in neural information processing systems, 1993, vol. 6, [Online]. Available: https://proceedings.neurips.cc/paper/1993/hash/5807a685d1a9ab3b599035bc566ce2b9-Abstract.html.
[20]
H. Yu, “Least squares temporal difference methods: An analysis under general conditions,” SIAM Journal on Control and Optimization, vol. 50, no. 6, pp. 3310–3343, 2012, [Online]. Available: https://doi.org/10.1137/100807879.
[21]
G. Weisz, P. Amortila, and C. Szepesvári, “Exponential lower bounds for planning in MDPs with linearly-realizable optimal action-value functions,” in Proceedings of the 32nd international conference on algorithmic learning theory, 2021, vol. 132, pp. 1237–1264, [Online]. Available: https://proceedings.mlr.press/v132/weisz21a.html.
[22]
M. L. Puterman, Markov decision processes: Discrete stochastic dynamic programming. John Wiley & Sons, 1994.
[23]
C. D. Meyer, Matrix analysis and applied linear algebra, Second. SIAM, 2023.
[24]
W. Whitt, “Approximations of dynamic programs, I,” Mathematics of Operations Research, vol. 3, no. 3, pp. 231–243, 1978, [Online]. Available: https://doi.org/10.1287/moor.3.3.231.
[25]
A. G. Barto, R. S. Sutton, and C. W. Anderson, “Neuronlike adaptive elements that can solve difficult learning control problems,” IEEE Transactions on Systems, Man, and Cybernetics, vol. 13, no. 5, pp. 834–846, 1983, [Online]. Available: https://doi.org/10.1109/TSMC.1983.6313077.
[26]
S. Singh, T. Jaakkola, and M. Jordan, “Reinforcement learning with soft state aggregation,” in Advances in neural information processing systems, 1994, vol. 7, [Online]. Available: https://proceedings.neurips.cc/paper/1994/hash/287e03db1d99e0ec2edb90d079e142f3-Abstract.html.
[27]
G. J. Gordon, “Stable function approximation in dynamic programming,” in Proceedings of the 12th international conference on machine learning, 1995, pp. 261–268, [Online]. Available: https://doi.org/10.1016/B978-1-55860-377-6.50040-2.
[28]
B. Van Roy, “Performance loss bounds for approximate value iteration with state aggregation,” Mathematics of Operations Research, vol. 31, no. 2, pp. 234–244, 2006, [Online]. Available: https://doi.org/10.1287/moor.1060.0188.
[29]
M. Hutter, “Extreme state aggregation beyond Markov decision processes,” Theoretical Computer Science, vol. 650, pp. 73–91, 2016, [Online]. Available: https://doi.org/10.1016/j.tcs.2016.07.032.
[30]
S. Dong, B. Van Roy, and Z. Zhou, “Provably efficient reinforcement learning with aggregated states,” arXiv:1912.06366, 2019, [Online]. Available: https://arxiv.org/abs/1912.06366.
[31]
M. L. Littman, “Memoryless policies: Theoretical limitations and practical results,” in Proceedings of the third international conference on simulation of adaptive behavior: From animals to animats, 1994, vol. 3, pp. 238–245, [Online]. Available: https://dl.acm.org/doi/10.5555/189829.189893.
[32]
D. P. Bertsekas, “Approximate policy iteration: A survey and some new methods,” Journal of Control Theory and Applications, vol. 9, no. 3, pp. 310–335, 2011, [Online]. Available: https://doi.org/10.1007/s11768-011-1005-3.
[33]
B. Bakker, “Reinforcement learning with long short-term memory,” in Advances in neural information processing systems, 2001, vol. 14, [Online]. Available: https://papers.nips.cc/paper_files/paper/2001/hash/a38b16173474ba8b1a95bcbc30d3b8a5-Abstract.html.
[34]
O. Eberhard, M. Muehlebach, and C. Vernade, “Partially observable reinforcement learning with memory traces,” in Proceedings of the 42nd international conference on machine learning, 2025, vol. 267, pp. 14934–14949, [Online]. Available: https://proceedings.mlr.press/v267/eberhard25a.html.
[35]
C. Allen et al., “Mitigating partial observability in sequential decision processes via the lambda discrepancy,” in Advances in neural information processing systems, 2024, vol. 37, pp. 62988–63028, [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2024/hash/73073ccb3bc559fd001e66b9079d6d5e-Abstract-Conference.html.
[36]
K. P. Murphy, Probabilistic machine learning: Advanced topics. MIT Press, 2023.
[37]
N. Vlassis, M. L. Littman, and D. Barber, “On the computational complexity of stochastic controller optimization in POMDPs,” ACM Transactions on Computation Theory, vol. 4, no. 4, pp. 1–8, 2012, [Online]. Available: https://doi.org/10.1145/2382559.2382563.
[38]
O. Eberhard, C. Vernade, and M. Muehlebach, “A Pontryagin perspective on reinforcement learning,” in Proceedings of the 7th annual learning for dynamics & control conference, 2025, vol. 283, pp. 233–244, [Online]. Available: https://proceedings.mlr.press/v283/eberhard25a.html.
[39]
V. S. Borkar and K. Soumyanatha, “An analog scheme for fixed point computation – part i: theory,” IEEE Transactions on Circuits and Systems I: Fundamental Theory and Applications, vol. 44, no. 4, pp. 351–355, 1997, [Online]. Available: https://doi.org/10.1109/81.563625.
[40]
S. Axler, Linear algebra done right, 4th ed. Springer, 2024.
[41]
R. A. Horn and C. R. Johnson, Matrix analysis, 2nd ed. Cambridge University Press, 2012.
[42]
J. S. Rosenthal, A first look at rigorous probability theory, Second. World Scientific Publishing Company, 2006.

  1. This denotes that \((T_u')_{:, x} \in \Delta_{\mathcal{X}'}\) for each \(x \in \mathcal{X}'\) and \(u \in \mathcal{U}\).↩︎

  2. 12 compares 1 to [21].↩︎