October 05, 2022
We study the problem of episodic reinforcement learning in continuous state-action spaces with unknown rewards and transitions. Specifically, we consider the setting where the rewards and transitions are modeled using parametric bilinear exponential
families. We propose an algorithm, BEF-RLSVI, that a) uses penalized maximum likelihood estimators to learn the unknown parameters, b) injects a calibrated Gaussian noise in the parameter of rewards to ensure exploration, and c) leverages
linearity of the exponential family with respect to an underlying RKHS to perform tractable planning. We further provide a frequentist regret analysis of BEF-RLSVI that yields an upper bound of \(\tilde{
\text{\usefont{OMS}{cmsy}{m}{n}O}}(\sqrt{d^3H^3K})\), where \(d\) is the dimension of the parameters, \(H\) is the episode length, and \(K\) is the
number of episodes. Our analysis improves the existing bounds for the bilinear exponential family of MDPs by \(\sqrt{H}\) and removes the handcrafted clipping deployed in existing RLSVI-type algorithms. Our
regret bound is order-optimal with respect to \(H\) and \(K\).
Reinforcement Learning (RL) is a well-studied and popular framework for sequential decision making, where an agent aims to compute a policy that allows her to maximize the accumulated reward over a horizon by interacting with an unknown environment [1].
Episodic RL. In this paper, we consider the episodic finite-horizon MDP formulation of RL, in short Episodic RL [2]–[4]. Episodic RL is a tuple \(\mathcal{M}= \langle \mathcal{S}, \mathcal{A}, \mathbb{P}, r, K, H \rangle\), where the state (resp. action) space \(\mathcal{S}\) (resp. \(\mathcal{A}\)) might be continuous. In episodic RL, the agent interacts with the environment in episodes consisting of \(H\) steps. Episode \(k\) starts by observing state \(s_1^k\). Then, for \(t=1,\ldots H\), the agent draws action \(a_t^k\) from a (possibly time-dependent) policy \(\pi_t(s_t^k)\), observes the reward \(r(s_t^k,a_t^k) \in [0,1]\), and transits to a state \(s_{t+1}^k \sim \mathbb{P}(.\mid s_t^k,a_t^k)\) according to the transition function \(\mathbb{P}\). The performance of a policy \(\pi\) is measured by the total expected reward \(V_{1}^\pi\) starting from a state \(s\in \mathcal{S}\), the value function and the state-action value functions at step \(h\in [H]\) are defined as \[V_h^\pi (s) \stackrel{\rm def}{=}\mathbb{E}\left[\sum_{t=h}^H r(s_t,a_t) \mid s_h =s \right], \quad\text{and}\quad Q_h^\pi (s,a) \stackrel{\rm def}{=}\mathbb{E}\left[\sum_{t=h}^H r(s_t,a_t) \mid s_h =s, a_h=a \right].\] Here, computing the policy leading to maximization of cumulative reward requires the agent to strategically control the actions in order to learn the transition functions and reward functions as precisely as required. This tension between learning the unknown environment and reward maximization is quantified as regret: the typical performance measure of an episodic RL algorithm. Regret is defined as the difference between the expected cumulative reward or value collected by the optimal agent that knows the environment and the expected cumulative reward or value obtained by an agent that has to learn about the unknown environment. Formally, the regret over \(K\) episodes is \[\mathcal{R}(K) \triangleq \sum_{k=1}^K \left(V_{1}^{\pi^\star}(s_1^k)-V_{1}^{\pi_t}(s_1^k) \right).\]
Key Challenges. The first key challenge in episodic RL is to tackle the exploration–exploitation trade-off. This is traditionally addressed with the optimism principle that either carefully crafts optimistic upper bounds on the value (or state-action value) functions [3], or maintains a posterior on the parameters to perform posterior sampling [2], or perturbs the value (or state-action value) function estimates with calibrated noise [5]. Though the first two approaches induce theoretically optimal exploration, they might not yield tractable algorithms for large/continuous state-action spaces as they either involve optimization in the optimistic set or maintaining a high-dimensional posterior. Thus, we focus on extending the third approach of Randomized Least-Square Value Iteration (RLSVI)* framework, and inject noise only in rewards to perform tractable exploration.*
The second challenge, which emerges for continuous state-action spaces, is to learn a parametric functional approximation of either the value function or the rewards and transitions in order to perform planning and exploration. Different functional representations (or models), such as linear [6], bilinear [7], and bilinear exponential families [8], are studied in literature to develop optimal algorithms for episodic RL with continuous state-action spaces. Since the linear assumption is restrictive in real-life -where non-linear structures are abundant-, generalized representations have obtained more attention recently [7]–[10]. The bilinear exponential family model is of special interest as it is expressive enough to represent tabular MDPs (discrete state-action), factored MDPs [11] and linearly controlled dynamical systems (such as Linear Quadratic Regulators [12]) as special cases [8]. Thus, in this paper, we study the bilinear exponential family of MDPs, i.e. the episodic RL setting where the rewards and transition functions can be modelled with bilinear exponential families.
The third challenge is to perform tractable planning2 given the perturbation for exploration and the model class. Existing work [8], [13] assumes an oracle to perform planning and yield policies that aren’t explicit. The main difficulty in such planning approaches is that dynamic programming requires calculating \(\int \mathbb{P}(s'\mid s,a) V_{h}(s)\) for all \((s,a)\) pairs. This is not trivial unless the transition is assumed to be linear and decouples \(s'\) from \((s,a)\), which is not known to hold except for tabular MDPs. Much ink has been spilled about this challenge recently, e.g. [14] asks when misspecified linear representations are enough for a polynomial sample complexity in several settings. [15]–[17] provide positive answers for specific linear settings. In this paper, we aim to design a tractable planner for the bilinear exponential family representation.
In this paper, we aim to address the following question that encompasses the three challenges:
Can we design an algorithm that performs tractable exploration and planning for bilinear exponential family of MDPs yielding a near-optimal frequentist regret bound?
Our Contributions. Our contributions to this question are three-fold.
1. Formalism: We assume that neither rewards nor transitions are known, whereas existing efforts on the bilinear exponential family of MDPs assume knowledge of rewards. This makes the addressed problem harder, practical, and more general. We also observe that though the transition model can represent non-linear dynamics, it implies a linear behavior (see Section 0.0.2) in a Reproducible Kernel Hilbert Space (RKHS). This observation contributes to the tractability of planning.
2. Algorithm: We propose an algorithm BEF-RLSVI that extends the RLSVI framework to bilinear exponential families (see Section 0.0.3). BEF-RLSVI a) injects
calibrated Gaussian noise in the rewards to perform exploration, b) leverages the linearity of the transition model with respect to an underlying RKHS to perform tractable planning and c) uses penalized maximum likelihood estimators to learn the parameters
corresponding to rewards and transitions (see Section 0.0.4). To the best of our knowledge, BEF-RLSVI is the first algorithm for the bilinear exponential family of MDPs with tractable exploration
and planning under unknown rewards and transitions.
3. Analysis: We carefully develop an analysis of BEF-RLSVI that yields \(\tilde{ \text{\usefont{OMS}{cmsy}{m}{n}O}}(\sqrt{d^3 H^3 K})\) regret which improves the existing regret bound for bilinear
exponential family of MDPs with known reward by a factor of \(\sqrt{H}\) (Section 0.0.3.2). Our analysis (Section 0.0.5) builds on existing
analyses of RLSVI-type algorithms [5], but contrary to them, we remove the need to handcraft a clipping of the value
functions [18]. We also do not need to assume anti-concentration bounds as we can explicitly control it by the
injected noise. This was not done previously except for the linear MDPs. We illustrate this comparison in Table 1. We highlight three technical
tools that we used to improve the previous analyses: 1) Using transportation inequalities instead of the simulation lemma reduces a \(\sqrt{H}\) factor compared to [19], 2) Leveraging the observation that true value functions are bounded enables using an improved elliptical lemma (compared to [8]), and 3) Noticing that the norm of features can only be large for a finite amount of time allows us to forgo clipping and reduce a \(\sqrt{d}\)
factor from the regret compared to [18].
| Algorithm | Regret | Tractable | Tractable | Free of | Model, assumptions |
| exploration | planning | clipping | |||
| Thompson sampling | \(\sqrt{d^2 H^3 K}\) | N.A | Gaussian \(\mathbb{P}\) | ||
| [19] | (Bayesian) | Known rewards | |||
| EXP-UCRL | \(\sqrt{d^2 H^4 K}\) | N.A | Bilinear Exp Family (BEF) | ||
| [8] | (Frequentist) | known rewards | |||
| SMRL [9] | \(\sqrt{d^2 H^4 K}\) | N.A | BEF, known rewards | ||
| UCRL-VTR [20] | \(\sqrt{d^2 H^4 K}\) | N.A | Linear mixture model | ||
| \(\mathcal{F}-\)PHE-LSVI [21] | \(\operatorname{poly}(d_E H)\sqrt{K H}\) | Eluder dimension, Tabular | |||
| \(PHE-LSVI\) (linear-RL) | \(\sqrt{d^3 H^4 K}\) | Anti-concentration | |||
| UC-MatrixRL [22] | \(\sqrt{d^2 H^5 K}\) | N.A | Linear factor MDP | ||
| OPT-RLSVI [18] | \(\sqrt{d^4 H^5 K}\) | Linear \(V\) | |||
BEF-RLSVI(this work) |
\(\sqrt{d^3 H^3 K}\) | Bilinear Exp Family |
In this section, we introduce the bilinear exponential family (BEF) model coined in [8], extend it to parametric rewards, and we state a novel observation about linearity of this representation.
Bilinear exponential family. We consider transitions and rewards from the BEF. Specifically, \[\begin{align} \tag{1} \mathbb{P}\left(\tilde{s} \mid s,a\right) &= \exp\left(\psi (\tilde{s})^\top M_{\theta^{\texttt{p}}}\varphi(s,a) - Z_{s,a}^\texttt{p}(\theta^{\texttt{p}})\right),\\ \mathbb{P}\left(r \mid s,a\right) &= \exp\left(r\: B^\top M_{\theta^{\texttt{r}}}\varphi(s,a) - Z_{s,a}^\texttt{r}(\theta^{\texttt{r}})\right), \tag{2} \end{align}\] where \(\varphi \in (\mathbb{R}_{+}^{q})^{\mathcal{S}\times \mathcal{A}}\) and \(\psi \in (\mathbb{R}_{+}^{p})^{\mathcal{S}}\) are known feature mappings, and \(B \in \mathbb{R}^p\) is a known matrix. The reward and transition parameters are \(\theta^{\texttt{p}}, \theta^{\texttt{r}}\in \mathbb{R}^d\). \(M_{\theta^{\cdot}} \stackrel{\rm def}{=}\sum_{i=1}^d \theta_i^{\cdot} A_i\), where \((A_i)_{1\le i\le d}\) are known matrices. The log partition function: \(\quad Z^{\texttt{p}}_{s,a}(\theta^{\texttt{p}}) \stackrel{\rm def}{=}\log \int_{\mathcal{S}} \exp\left(\psi(\tilde{s})^\top M_{\theta^{\texttt{p}}} \varphi(s,a)\right)d\tilde{s}, \quad\) and \(Z^{\texttt{r}}\) is defined similarly. Finally, we emphasize a minor difference with the original BEF model: like [9], we omit a base measure of the form \(h(s,\tilde{s},a)\) from the model, note that all the examples provided in [8] still hold with this slight restriction.
We denote \(V_{\theta^{\texttt{p}},\theta^{\texttt{r}},h}^\pi\), respectively \(Q_{\theta^{\texttt{p}},\theta^{\texttt{r}},h}^\pi\), the value, respectively state-action value function for policy \(\pi\) in the MDP parameterized by \((\theta^{\texttt{p}},\theta^{\texttt{r}})\) at time \(h\). A policy \(\pi^\star\) is optimal if for all \(s\in \mathcal{S},\: V_{\theta,h}^{\pi^\star}(s) = \max\limits_{\pi \in \Pi} V_{\theta,h}^{\pi}(s)\). A learning algorithm minimizes the (pseudo-)regret defined as: \[\label{def:regret} \mathcal{R}(K) \triangleq \sum_{k=1}^K \left(V_{\theta,1}^{\pi^\star}(s_1^k)-V_{\theta,1}^{\pi^t}(s_1^k) \right).\tag{3}\]
Linearity of transitions. Now, we state an observation about the bilinear exponential family and discuss how it helps with the challenge of planning in episodic RL. Specifically, the popular assumption of linearity of the transition kernel is a direct consequence of our model. Indeed, \[2 \psi\left(s^{\prime}\right)^{\top} M_{\theta^{\texttt{p}}} \varphi(s, a) = -\|(\psi(s^{\prime}) - M_{\theta^{\texttt{p}}}\varphi(s, a)\|^2 + \|\psi(s')\|^2+\|M_{\theta^{\texttt{p}}}\varphi(s,a)\|^2.\] Notice that the quadratic term resembles the Radial Basis Function (RBF) kernel. More precisely, for an RBF kernel with covariance \(\Sigma \!=\! I_p\) and \(k(x,y) \!\stackrel{\rm def}{=}\! \exp\left(-\|x-y\|^2 /2\right)\), we find
\[\label{eq:linear95transition} \mathbb{P}\left(s^{\prime} \mid s, a\right) = \langle \phi^{\texttt{p}}(s,a), \mu^{\texttt{p}}(s') \rangle_{\mathcal{H}},\tag{4}\]
where \(\mathcal{H}\) is the RKHS associated with the kernel, \(\mu^{\texttt{p}}(s') = (2\pi)^{-p/2} \: k\left(\psi(s'),.\right) \: \exp\left(\|\psi\left(s^{\prime}\right)\|^2 /2\right)\), and \(\phi^{\texttt{p}}(s,a) = k\left(M_{\theta^{\texttt{p}}}^\top \varphi(s,a),.\right) \: \exp\left(\|M_{\theta^{\texttt{p}}} \varphi(s, a) \|^2 /2 -Z_{s,a}(\theta^{\texttt{p}}) \right)\). Equation 4 shows that \(s'\) is decoupled from \((s,a)\), we see hereafter why this is crucial to reducing the complexity of planning.
Remark 1. Up to our knowledge, [19] is the only work providing an example of linear transition kernel for RL with continuous state-action spaces. They consider Gaussian transitions with an unknown mean (\(f^\star (s,a)\)) and known variance (\(\sigma^2\)). Actually, linear \(f^\star\) is a special case of the bilinear exponential family model, where \(\psi(s')= (s', \|s'\|^2)\) and \(M_\theta \varphi(s,a) = (f_\theta (s,a)/\sigma^2 , -1/\sigma^2)\).
Importance of linearity. To understand the planning challenge in RL, recall the Bellman equation: \[Q_h^\pi(s,a) = r(s,a) + \int_{\tilde{s}\in \mathcal{S}} P(s'\mid s,a) V_{h+1}^\pi(\tilde{s}) d \tilde{s},\] We must approximate the integral at the R.H.S.for \((s,a) \in \mathcal{S}\times \mathcal{A}\). For a tabular MDP with \(|S|\) states and \(|A|\) actions, we need to evaluate \((Q_h^\pi)_{h\in [H]}\), i.e. to approximate \(|S| \times |A| \times H\) integrals per episode, which can be very expensive. However, with the linear transition model of Equation 4 , although \(\phi^{\texttt{p}}\) and \(\mu^{\texttt{p}}\) are infinite dimensional, we show in Section 0.0.4 (§ planning) that the planning complexity becomes polynomial in the problem parameters.
BEF-RLSVI: algorithm design and frequentist regret bound↩︎In this section, we formally introduce the Bilinear Exponential Family Randomized Least-Squares Value Iteration (BEF-RLSVI) algorithm along with a high probability upper-bound on its regret.
BEF-RLSVI: algorithm designBEF-RLSVI is based on RLSVI [5] framework with the distinction that we only perturb the reward
parameters and not all the parameters of the value function. RLSVI algorithms are reminiscent of Thompson Sampling, yet more tractable with better control over the probability to be optimistic.
We can see that Algorithm 1 performs exploration by a Gaussian perturbation of the reward parameter (Line [alg951:line954]). Contrary to optimistic approaches, this method is explicit and also more efficient since it does not a involve high-dimensional optimization.
We can approximate Line [alg952:planning] of Algorithm 2 with \(\text{\usefont{OMS}{cmsy}{m}{n}O}(p H^3 K\log(H K))\) complexity and without harming the learning process (cf. § planning, Section 0.0.4). Therefore, here, planning is tractable.
BEF-RLSVI: regret upper-boundWe state the standard smoothness assumptions on the model [8], [23], [24].
Assumption 1. There exist constants \(\alpha^{\texttt{p}}, \alpha^{\texttt{r}},\beta^{\texttt{p}},\beta^{\texttt{r}}>0\), such that the representation model satisfies: \[\begin{align} \forall (s,a) \in\mathcal{S}\times \mathcal{A}, \forall \theta, x \in \mathbb{R}^d \quad &\alpha^{\texttt{p}}\le x^\top C_{s,a}^\theta [\psi] x \le \beta^{\texttt{p}}\\ \forall (s,a)\in\mathcal{S}\times \mathcal{A}, \forall \theta, x \in \mathbb{R}^d \quad &\alpha^{\texttt{r}}\le \mathbb{V}\mathrm{ar}_{s,a}^\theta (r) \:x^\top B^\top B x \le \beta^{\texttt{r}} \end{align}\] where \(\mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] \triangleq \mathbb{E}_{s'\sim \mathbb{P}_{\theta}\mid s, a} \left[\psi\left(s^{\prime}\right) \psi\left(s^{\prime}\right)^{\top}\right]-\mathbb{E}_{s'\sim \mathbb{P}_{\theta}\mid s, a}\left[\psi\left(s^{\prime}\right)\right] \mathbb{E}_{s'\sim \mathbb{P}_{\theta}\mid s, a} \left[\psi\left(s^{\prime}\right)^{\top}\right]\) and \(\mathbb{V}\mathrm{ar}_{s,a}^\theta (r) \triangleq \left(\mathbb{E}_{s, a}^{\theta}\left[r^2\right]-\mathbb{E}_{s, a}^{\theta}\left[r\right]^2\right)\) is the variance of the reward under \(\theta\).
A closer look at the derivatives of the model (see Appendix 1.0.4.3) tells us that previous inequalities directly imply a control over the eigenvalues of the Hessian matrices of the log-normalizers.
We now state our main result, the regret upper-bound of BEF-RLSVI.
Theorem 1 (Regret bound). Let \(\mathbb{A}\triangleq (\operatorname{tr}(A_i A_j^\top))_{i,j \in [d]}\) and \(G_{s,a} \triangleq (\varphi(s,a)^\top A_i^\top A_j \varphi(s,a))_{i,j \in [d]}\). Under Assumption 1 and further considering that
\(\max\{\|\theta^{\texttt{r}}\|_{\mathbb{A}},\|\theta^{\texttt{p}}\|_{\mathbb{A}}\} \le B_{\mathbb{A}}, \: \:\|\mathbb{A}^{-1}G_{s,a}\| \le B_{\varphi,\mathbb{A}}\:\) and \(\:\mathbb{E}_{\theta^{\texttt{r}}}[r(s,a)]\in [0,1]\:\) for all \((s,a)\).
noise \(\xi_k \sim \mathcal{N}(0,x_k (\bar{G}_{k}^\texttt{p})^{-1})\:\) satisfies \(\:x_k \ge \left(H\sqrt{\frac{\beta^{\texttt{p}}\beta^{\texttt{p}}(K,\delta)}{\alpha^{\texttt{p}}\alpha^{\texttt{r}}}}+\frac{\sqrt{\beta^{\texttt{r}}\beta^{\texttt{r}}(K,\delta)\min\{1,\frac{\alpha^{\texttt{p}}}{\alpha^{\texttt{r}}}\}}}{2 \alpha^{\texttt{r}}}\right)^2 \propto d H^2\),
then for all \(\delta \in (0,1]\), with probability at least \(1-7\delta\), \[\begin{align} \mathcal{R}(K) &\le \sqrt{K H} \Bigg[\underbrace{2 H \left(\sqrt{\frac{2\beta^{\texttt{p}}}{\alpha^{\texttt{p}}} \beta^{\texttt{p}}(K,\delta) \gamma_{K}^\texttt{p}}\! +\! (1\!+\!\sqrt{\gamma^\texttt{r}_K})\sqrt{\log(1/\delta^2)}\right)}_{\text{Transition concentration} ~\approx~ d H} + \underbrace{\beta^{\texttt{r}}\sqrt{\frac{\beta^{\texttt{r}}(n,\delta)\gamma^\texttt{r}_K}{2\alpha^{\texttt{r}}}}}_{\text{Reward concentration}~\approx~d}\\ &\qquad\qquad+ \underbrace{c\beta^{\texttt{r}}\sqrt{x_K d \gamma^\texttt{r}_K\log(d K /\delta)} + \frac{\beta^{\texttt{r}}\sqrt{x_K d \gamma^\texttt{r}_K \log(e/\delta^2)}}{\Phi(-1)}(1\!+\!\sqrt{\log(d/\delta)})}_{\text{Noise concentration}~\approx~ d^{3/2} H} \Bigg] \\ &\qquad\qquad + \underbrace{\!\frac{\beta^{\texttt{r}}d\sqrt{x_K}}{\Phi(-1)}(1\!+\!\sqrt{\log(d/\delta)}) \sqrt{C_d \left(\!1\!+\!\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\!\right)}}_{\text{Learning error for no clipping}~ \approx ~(d H)^{3/2}} \!\Bigg]\,, \end{align}\] where for \(\texttt{i}\in [\texttt{p}, \texttt{r}]\), \(\beta^\texttt{i}(K,\delta)\triangleq \frac{\eta}{2}B_{\mathbb{A}}^2+\gamma_K^\texttt{i}+\log(1/\delta)\), and \(\gamma_K^\texttt{i}\triangleq d\log(1+\frac{\beta^\texttt{i}}{\eta}B_{\varphi,\mathbb{A}}H K)\). Also, \(C_d \triangleq\frac{3d}{\log(2)}\log\left(1+ \frac{\alpha^{\texttt{r}}\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right)\), \(\Phi\) is the Gaussian CDF, and \(c\) is a universal constant.
Theorem 1 entails a regret \(\mathcal{R}(K) = \text{\usefont{OMS}{cmsy}{m}{n}O}(\sqrt{d^3 H^3 K})\) for
BEF-RLSVI, where \(d\) is the number of parameters of the bilinear exponential family model, \(K\) is the number of episodes, and \(H\) is the
horizon of an episode. We now clarify how this contrasts with related literature.
Comparison with other bounds. The closest work to ours is [8] as it considers the same model for
transitions but with known rewards. They propose a UCRL-type and PSRL-type algorithm, which achieve a regret of order \(\widetilde{O}(\sqrt{d^2 H^4 K})\). There are two notable algorithmic
differences with our work. First, they do exploration using intractable-optimistic upper bounds or high-dimensional posteriors, while we do it with explicit perturbation. The second difference is in planning. While they assume access to a planning oracle,
we do it explicitly with pseudo-polynomial complexity (Section [sec:planning]). Moreover, we improve the regret bound by a \(\sqrt{H}\)
factor thanks to an improved analysis, (cf. Lemma 12). But similar to all RLSVI-type algorithms, we pick up an extra \(\sqrt{d}\) (cf. [25]).
[18] proposes a variant of RLSVI for continuous state-action spaces, where there are low-rank models of
transitions and rewards. They show a regret bound \(R(K) = \widetilde{O}(\sqrt{d^4 H^5 K})\), which is larger than that of BEF-RLSVI by \(O(\sqrt{d H^2})\). In algorithm design,
we improve on their work by removing the need to carefully clip the value function. Analytically, our model allows us to use transportation inequalities (cf. Lemma 7) instead of the simulation lemma, which saves us a \(\sqrt{H}\) factor.
[19] considers Gaussian transitions, i.e. \(s^{\prime}=f^{*}(s, a)+\epsilon\) such that \(\epsilon \sim \mathcal{N}\left(0, \sigma^{2}\right)\). This is a particular case of our model. They propose to use Thompson Sampling, and have the merit of being the first to have observed linearity of the value function from this transition structure. But they do not connect it to the finite dimensional approximation of [26] unlike us (Section 0.0.4). Finally, they show a Bayesian regret bound of \(O(\sqrt{d^2 H^3 K})\). This notion of regret is weaker than frequentist regret, hence this result is not directly comparable with Theorem 1.
Tightness of regret bound. A lower bound for episodic RL with continuous state-action spaces is still missing. However, for tabular RL, [27] proves a lower bound of order \(\Omega(\sqrt{H^3 S A K})\). If we represent a tabular MDP in our model, we would need \(d = S^2 \times A\) parameters (Section 4.3, [8]). In this case, our bound becomes \(R(K) = O(\sqrt{(S^2 A)^3 H^3 K})\), which is clearly not tight is \(S\) and \(A\). This is understandable due to the relative generality of our setting. We are however positively surprised that our bound is tight in terms of its dependence on \(H\) and \(K\).
BEF-RLSVI↩︎We present necessary details about BEF-RLSVI and discuss the key algorithm design techniques.
Estimation of parameters. We estimate transitions and rewards from observations similar to EXP-UCRL [8], i.e. by using a penalized maximum likelihood estimator \[\hat{\theta}^{\texttt{p}}(k) \in
\mathop{\mathrm{arg\,min}}_{\theta \in \mathbb{R}^{d}} \sum_{t=1}^{k} \sum_{h=1}^H -\log \mathbb{P}_{\theta}\left(s_{h+1}^t \mid s_{h}^t, a_{h}^t\right)+\eta \operatorname{pen} (\theta).\] Here, pen\((\theta)\) is a
trace-norm penalty: \(\operatorname{pen}(\theta) = \frac{1}{2}\|\theta\|_{\mathbb{A}}\) and \(\mathbb{A}=(\operatorname{tr}(A_i A_j^\top))_{i,j}\). By properties of the exponential family,
the penalized maximum likelihood estimator verifies, for all \(i\le d\): \[\label{eq:ML95transition} \sum_{t=1}^{k}\sum_{h=1}^H
\left(\psi\left(s_{h+1}^{t}\right)-\mathbb{E}_{s_{h}^t, a_{h}^t}^{\hat{\theta}^{\texttt{p}}_{k}}\left[\psi\left(s^{\prime}\right)\right]\right)^{\top} A_{i} \varphi\left(s_{h}^t, a_{h}^t\right)=\eta \nabla_{i}
\operatorname{pen}\left(\hat{\theta}^{\texttt{p}}_{k}\right).\tag{5}\] Equation 5 can be solved in closed form for simple distributions, like Gaussian, but it can involve integral approximations for other
distribution (cf. Appendix 1.0.6). We estimate the parameter for reward, i.e. \(\theta_r\), similarly \[\begin{align} \hat{\theta}^{\texttt{r}}(k) \in \mathop{\mathrm{arg\,min}}_{\theta \in \mathbb{R}^{d}} \sum_{t=1}^{k}\sum_{h=1}^H -\log \mathbb{P}_{\theta}\left(r_{t} \mid s_{h}^t, a_{h}^t\right) &+\eta
\operatorname{pen}(\theta),\\ \implies \qquad \sum_{t=1}^{k}\sum_{h=1}^H \left(r_t -\mathbb{E}_{s_{h}^t, a_{h}^t}^{\hat{\theta}^{\texttt{r}}_{k}}\left[r\right]\right)\: B^{\top} A_{i} \varphi\left(s_{h}^t, a_{h}^t\right) =\eta &\nabla_{i}
\operatorname{pen}\left(\hat{\theta}^{\texttt{r}}_{k}\right)\quad \forall i \in [d].\label{eq:ML95reward}
\end{align}\tag{6}\] Exploration. A significant challenge in RL is handling exploration in continuous spaces. The majority of the literature is split between
intractable, upper confidence bound-style optimism or Thompson sampling algorithms with high-dimensional posterior and guarantees only in terms of Bayesian regret. In BEF-RLSVI, we adopt the approach of reward perturbation motivated by the
RLSVI-framework [5], [18]. We show that perturbing the reward estimation can guarantee optimism with a constant probability, i.e. there exists \(\nu \in (0,1]\) such that for all \(k\in [K]\) and \(s_1^k \in \mathcal{S}\), \[\mathbb{P}\left(\tilde{V}_1(s_1^k) - V_1^\star(s_1^k)\ge 0\right)\ge \nu.\] [18] proves that this suffices to bound the learning error. However, their method clashes with not clipping the value function, as it modifies the
probability of optimism. Thus, [18] proposes an involved clipping procedure to handle the issue of unstable values. Instead, by
careful geometric analysis (cf. Lemma 13), we bound the occurrences of the unstable values, and in turn, upper bound the regret
without clipping. Note that unlike [21], BEF-RLSVI does not guarantee that the estimated value function is optimistic
but still is able to control the learning error (cf. Section 0.0.5).
Planning. Recall that with our model assumptions, we can write the state-action value function linearly. Using BEF-RLSVI, we have at step \(h\):
\[\label{eq:linear95value95function} Q_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},h}^\pi (s, a) = \mathbb{E}_{\tilde{\theta}^{\texttt{r}}}[r(s,a)] + \bigg\langle \phi^{\texttt{p}}(s,a), \int_{\mathcal{S}} \mu^{\texttt{p}}(\tilde{s}) V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},h+1}^\pi (\tilde{s}) d\tilde{s} \bigg\rangle.\tag{7}\]
Then, we select the best action greedily using dynamic programming to compute \(Q_h(s,a)\). Although our model yields infinite dimensional \(\phi^{\texttt{p}}\) and \(\psi^{\texttt{p}}\), approximating them (cf. next paragraph) with linear features of dimension \(\text{\usefont{OMS}{cmsy}{m}{n}O}(p H^2 K\log(H K))\) is possible without increasing the regret. Thus, the planning is done in \(\text{\usefont{OMS}{cmsy}{m}{n}O}(p H^3 K\log(H K))\), which is pseudo-polynomial in \(p\), \(H\) and \(K\), i.e. tractable.
For details about the finite-dimensional approximation of our transition kernel, refer to Appendix 1.0.5. Now, we highlight the schematic of a finite-dimensional approximation of \(\phi^{\texttt{p}}\) and \(\psi^{\texttt{p}}\). We proceed in three steps. 1) We have with high probability \(\mathbb{S}(V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},h})\le d H^{3/2}\) (Section 0.0.5). 2) If we have a uniform \(\epsilon\)-approximation of \(\mathbb{P}_{\theta^{\texttt{p}}}\), we show that using it incurs at most an extra \(\text{\usefont{OMS}{cmsy}{m}{n}O}(\epsilon d H^{5/2} K)\) regret. 3) Finally, following [26], we approximate uniformly the shift invariant kernels, here the RBF in Equation 4 , within \(\epsilon\) error and with features of dimensions \(\text{\usefont{OMS}{cmsy}{m}{n}O}(p \epsilon^{-2}\log\frac{1}{\epsilon^2})\), where \(p\) is dimension of \(\psi\). Associating these three elements and choosing \(\epsilon = 1/\sqrt{(H^2 K)}\), we establish our claim.
Remark 2. The observation of linearity (cf. Equation. 7 and Line [alg952:planning]) does not reduce BEF MDPs to linear MDPs because the former holds in an RKHS. Also, linearity is not in the representation parameter. Therefore, linear RL algorithms do not readily solve the BEF MDPs.
To convey the novelties in our analysis, we provide a proof sketch for Theorem 1. We start by decomposing the regret into an estimation loss and a learning error, as given below \[\label{eq:regret95decomposition95estim95learn} R(K) = \sum_{k=1}^K (V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star - V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^{\pi_k})(s_{1 k}) = \sum_{k=1}^K (\underbrace{V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star - V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^{\pi_k}}_{learning} + \underbrace{V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^{\pi_k} - V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^{\pi_k}}_{Estimation})(s_{1 k}).\tag{8}\] For the estimation error, we use smoothness arguments with concentrations of parameters up to some novelties. Regarding the learning error, we show that the injected noise ensures a constant probability of anti-concentration. Applying Assumption 1 and Lemma 12 leads to the upper-bound.
We further decompose the estimation error into the errors in estimating transitions and rewards. \[\label{eq:estimation95error95decomposition} V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}}}^\pi(s_{1 k}) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1 k}) = \underbrace{V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1 k}) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1 k})}_{\text{transition estimation}} + \underbrace{V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}}}^\pi(s_{1 k}) - V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1 k})}_{\text{reward estimation}}\tag{9}\]
Transition estimation Since the reward parameter is exact, the value function’s span is \(\le H\). Then, using the transportation of Lemma 7 we obtain the bound \(H \sum_{h=1}^H \sqrt{2\operatorname{KL}_{s_{h k}, a_{h k}}(\theta^{\texttt{p}}, \hat{\theta}^{\texttt{p}})}\). We notice that since the reward parameter is exact, the bound is actually \(H \min\{1,\sum_{h=1}^H \sqrt{2\operatorname{KL}_{s_{h k}, a_{h k}}(\theta^{\texttt{p}}, \hat{\theta}^{\texttt{p}})}\}\). Using Lemma 12 under Assumption 1, we win a \(\sqrt{H}\) factor compared to the analysis of [28].
Reward estimation Previous work uses clipping to help control this error, but in this case it can hinder the optimism probability by biasing the noise. [18] proposes an involved clipping depending on the norms \(\|(A_i \varphi(s_h^k,a_h^k))_{i\in[d]}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\), which is somewhat delicate to analyze and deploy. We remedy the situation acting solely in the proof. First let’s define what we call the set of “bad rounds”: \(\left\{k \in [K], \exists h:\: \|(A_i \varphi(s_h^k,a_h^k))_{i\in[d]}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\ge 1\right\}\), these rounds are why clipping is necessary. Thanks to Lemma 13, we know that the number of such rounds is at most \(\text{\usefont{OMS}{cmsy}{m}{n}O}(d)\). Surprisingly, it depends neither on \(H\) nor on \(K\). We show that the “bad rounds” incur at most \(O(d^{3/2} H^2)\) regret, independent of \(K\). Therefore, our algorithm can forgo clipping for free.
Remark 3. If it wasn’t for the episodic nature of our setting, we could have used the forward algorithm to eliminate the span control issue. We refer to [29], [30] for a description of this algorithm, [31] for a stochastic analysis, and Section 4 therein for an application to linear bandits.
To upper-bound this term of the regret, we first show that the estimated value function is optimistic with a constant probability. Then, we show that this is enough to control the learning error.
Stochastic optimism. The perturbation ensures a constant probability of optimism. Specifically, \[\begin{align} (V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}-&V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star)(s_1) \ge (Q_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^\star-Q_{1}^\star)(s_1,\pi^\star (s_1))\\ &\ge \underbrace{V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\theta^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1)}_{\text{first term}} + \underbrace{V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1)}_{\text{second term}} + \underbrace{V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1)}_{\text{third term}} \end{align}\] The first and second terms are perturbation free, we handle them similarly to the estimation error, i.e. using concentration arguments for \(\hat{\theta}^{\texttt{p}}\) and \(\hat{\theta}^{\texttt{r}}\). For the third term, we use transportation of rewards (Lemma 11) and anti-concentration of \(\xi_k\) (Lemma 6). We find that with probability at least \(1-2 \delta\) \[\begin{align} (V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}-V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star)(s_1) \ge& \xi_k ^\top \: \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k}\left[\sum_{t=1}^H \frac{\mathbb{V}\mathrm{ar}^{\theta^{\texttt{r}}_j} (r)}{2} (A_i \varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in[d]}\right] B\\ &{\displaystyle - H c(n,\delta) \left\|\sum_{h=1}^H \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k} \left[ (A_i \varphi(\tilde{s}_h, \pi^\star (\tilde{s}_h)))_{i\in [d]}\right] \right\|_{(\bar{G}_{k}^\texttt{p})^{-1}}}, \end{align}\] where \(c(n,\delta)\!= \!\left(\!\sqrt{\!\beta^{\texttt{p}}\beta^{\texttt{p}}(n,\delta)/\alpha^{\texttt{p}}}\! +\! \sqrt{\!\beta^{\texttt{r}}\beta^{\texttt{r}}(n,\delta) \min\{1,\alpha^{\texttt{p}}/\alpha^{\texttt{r}}\}/(2 \alpha^{\texttt{r}})\!} \!\right)\). Since \(\xi_k \!\sim\! \mathcal{N}(0,x_k (\bar{G}_{k}^\texttt{p})^{-1}\!)\) and \(x_k \!\ge\! H^2 c(n,\delta)^2\), we get \(\mathbb{P}\left(V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^\pi(s_1)-V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star(s_1) \ge 0\right)\ge \Phi(-1)\), where \(\Phi\) is the normal CDF. This is ensured by the anti-concentration property of Gaussian random variables, see Lemma 6.
From stochastic optimism to error control: Existing algorithms require the value function to be optimistic (i.e. negative learning error) with large probability. Contrary to them, BEF-RLSVI only requires the
estimated value to be optimistic with a constant probability. When it is, the learning happens. Otherwise, the policy is still close to a good one thanks to the decreasing estimation error, and the learning still happens. This part of the proof is similar
in spirit to that of [18].
Upper bound on \(V_1^\star\): Draw \((\bar{\xi}_{k})_{k\in [K]}\) i.i.d copies of \((\xi_{k})_{k\in [K]}\) and define the event where optimism holds as \(\bar{O}_k \triangleq \{V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}_k,1}(s_1^k) - V_1^\star (s_1^k) \ge 0\}\). This implies that \(\quad V_1^\star (s_1^k) \le \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)].\)
Lower bound on \(V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}\:\): Consider \(\underbar{V}_{1}(s_1^k)\) to be a solution of the optimization problem \[\min _{\xi_{ k}} V_{\hat{\theta}^{\texttt{p}}, \hat{\theta}^{\texttt{r}}+\xi_k,1}(s_{1}^k) \quad \text{ subject to: } \: \|\xi_k\|_{\bar{G}_k} \le \sqrt{x_k d\log(d/\delta)},\] As the injected noise concentrates, we obtain \(\underbar{V}_{1}(s_1^k) \le V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}(s_1^k)\).
Combination: Using these upper and lower bounds, we show that with probability at least \(1-\delta\), \[\begin{align} V_1^\star (s_1^k) -& V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k) \le \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\\ &\le \left(\mathbb{E}_{\bar{\xi}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)] - \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k^\texttt{c} }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\mathbb{P}(\bar{O}_k^\texttt{c})\right)/ \mathbb{P}(\bar{O}_k), \end{align}\] The last step follows from the tower rule. Note that the term inside the expectations is positive with high probability but not necessarily in expectation. We follow the lines of the estimation error analysis to complete the proof of Theorem 1. We refer to Appendix 1.0.2.2 for the detailed proof.
Our work extends the endeavor of using functional representations for regret minimization in continuous state-action MDPs. Now, we posit our contributions in existing literature.
Kernel value function representation. [20] studies MDPs with a linear mixtures model then extends to an RKHS setting, this
generalizes our work and that of [22]. However, the paper proposes an Eluder-dimension analysis, for RKHS settings this leads to
the result of [22], i.e. a regret \(H\log(T)^d\) higher than for
BEF-RLSVI.Recently, [32] shows that for RKHS, Eluder dimension and the information gain are strictly equivalent, which brings in
the extra factor.
General functional representation. The Eluder dimension is a complexity measure often used to analyze RL with general function space, [32] asserts that "common examples of where it is known to be small are function spaces (vector spaces)". [33]
provides the first convergence guarantee for general nonlinear function representations in the Maximum Entropy RL setting, where entropy of a policy is used as a regularizer to induce exploration. Thus, the analysis cannot address episodic RL, where we
have to explicitly ensure exploration with optimism. In the episodic setting, [34] leverage the UCB approach for tabular MDPs and
function spaces with bounded Eluder dimension, this strategy achieves a and achieve a \(\tilde{O}\left(\sqrt{d^4 H^2 T}\right)\) regret for linear MDPs. [21] considers the same setting, proposes an RLSVI based algorithm, and achieves a \(\tilde{O}(\sqrt{d^3 H^4 K})\) for linear MDPs. However, the
latter assumes an oracle perturbing the estimation to achieve anti-concentration while maintaining a bounded covering number, which is a counter-intuitive mix of boundedness and anti-concentration. Indeed, [18] studied the linear MDP case, and while it managed to design an ingenious clipping verifying previous assumptions, the method is extremely
intricate and the proof is involved and unlikely to extend for general value function spaces. To concertize our design, we focus on the general but explicit BEF of MDPs than any abstract representation. We also remove the requirement to clip with a
novel analysis.
Bilinear exponential family of MDPs. Exponential families are studied widely in RL theory, from bandits to MDPs [24], [35]–[37], as an expressive parametric family to design theoretically-grounded model-based algorithms. [8] first studies episodic RL with Bilinear Exponential Family (BEF) of transitions, which is linear in both state-action pairs and the next-state. It proposes a regularized log-likelihood method to estimate the model parameters, and two optimistic algorithms with upper confidence bounds and posterior sampling. Due to its generality to unifiedly model tabular MDPs, factored MDPs, and linearly controlled dynamical systems, the BEF-family of MDPs has received increasing attention [9]. [9] estimates the model parameters based on score matching that enables them to replace regularity assumption on the log-partition function with Fisher-information and assumption on the parameters. Both [8], [9] achieve a worst-case regret of order \(\tilde{O}(\sqrt{d^2 H^4 K})\) for known reward. On a different note, [7], [10] also introduces a new structural framework for generalization in RL, called bilinear classes as it requires the Bellman error to be upper bounded by a bilinear form. Instead of using bilinear forms to capture non-linear structures, this class is not identical to BEF class of MDPs, and studying the connection is out of the scope of this paper. Specifically, we address the shortcomings of the existing works on BEF-family of MDPs that assume known rewards, absence of RLSVI-type algorithms, and access to oracle planners. Tractable planning and linearity. Planning is a major byproduct of the chosen functional representation. In general, planning can incur high computational complexity if done naïvely. Specially, [14] shows that for some settings, even with a linear \(\epsilon\)-approximation of the \(Q\)-function, a planning procedure able to produce an \(\epsilon\)-optimal policy has a complexity at least \(2^H\). Thus, different works [15]–[17] propose to leverage different low-dimensional representations of value functions or transitions to perform efficient planning. Here, we take note from [19] that Gaussian transitions induce an explicit linear value function in an RKHS. And generalize this observation with the bilinear exponential. Moreover, using uniformly good features [26] to approximate transition dynamics from our model enables us to design a tractable planner. We provide a detailed discussion of this approximation in Section 0.0.4. More practically, [19], [38] use representations given by random Fourier features [26] to approximate the transition dynamics and provide experiments validating the benefits of this approach for high-dimensional Atari-games. Thus, we propose the first algorithm with tractable planning for BEF-family.
We propose the BEF-RLSVI algorithm for the bilinear exponential family of MDPs in the setting of episodic-RL. BEF-RLSVI explores using a Gaussian perturbation of rewards, and plans tractably (complexity of \(\text{\usefont{OMS}{cmsy}{m}{n}O}(p H^3 K\log(H K))\)) thanks to properties of the RBF kernel. Our proof shows that clipping can be forwent for similar RLSVI-type algorithms. Moreover, we prove a \(\sqrt{d^3 H^3 K}\) frequentist regret bound, which improves over existing work, accommodates unknown rewards, and matches the lower bound in terms of \(H\) and \(K\). Regarding future work, we believe that our proof approach can be extended to rewards with bounded variance. We also believe that the extra \(\sqrt{d}\) in our bound is an artefact of the
proof, and specifically, the anti-concentration. We will investigate it further. Finally, we plan to study the practical efficiency of BEF-RLSVI through experiments on tasks with continuous state-action spaces in an extended version of this
work.
The authors acknowledge the funding of the French National Research Agency, the French Ministry of Higher Education and Research, Inria, the MEL and the I-Site ULNE regarding project R-PILOTE-19-004-APPRENF. R. Ouhamma also acknowledges support from Ecole polytechnique.
We dedicate this section to index all the notations used in this paper. Note that every notation is defined when it is introduced as well.
| \(H\) | \(\stackrel{\rm def}{=}\) | number of steps in a given episode |
| \(K\) | \(\stackrel{\rm def}{=}\) | number of episodes |
| \(T\) | \(\stackrel{\rm def}{=}\) | \(K H\), total number of steps |
| \(s_{h}^k\) | \(\stackrel{\rm def}{=}\) | state at time \(h\) of episode \(k\), denoted \(s_h\) when \(k\) is clear from context |
| \(a_{h}^k\) | \(\stackrel{\rm def}{=}\) | action at time \(h\) of episode \(k\), denoted \(a_h\) when \(k\) is clear from context |
| \(r(s,a)\) | \(\stackrel{\rm def}{=}\) | realization of the reward in state \(s\) under action \(a\) |
| \(\theta^{\texttt{p}}\) | \(\stackrel{\rm def}{=}\) | parameter of the transition distribution, \(\in \mathbb{R}^d\) |
| \(\theta^{\texttt{r}}\) | \(\stackrel{\rm def}{=}\) | parameter of the reward distribution, \(\in \mathbb{R}^d\) |
| \(\theta\) | \(\stackrel{\rm def}{=}\) | \(\in \mathbb{R}^d\) denotes either \(\theta^{\texttt{r}}\) or \(\theta^{\texttt{p}}\), unless stated otherwise |
| \(\hat{\theta}\) | \(\stackrel{\rm def}{=}\) | \(\theta\) estimator with Maximum Likelihood unless stated otherwise |
| \(\tilde{\theta}\) | \(\stackrel{\rm def}{=}\) | \(\hat{\theta}+\xi\) where \(\xi\) is a chosen noise. Perturbed estimation of \(\theta\). |
| \([\theta_1, \theta_2]\) | \(\stackrel{\rm def}{=}\) | the d-dimensional \(\ell_\infty\) hypercube joining \(\theta_1\) and \(\theta_2\) |
| \(\mathbb{P}_{\theta^{\texttt{p}}}\) | \(\stackrel{\rm def}{=}\) | transition under the exponential family model with parameter \(\theta^{\texttt{p}}\) |
| \(\psi\) | \(\stackrel{\rm def}{=}\) | feature function, \(\in (\mathbb{R}_+^p)^\mathcal{S}\) |
| \(\varphi\) | \(\stackrel{\rm def}{=}\) | feature function, \(\in (\mathbb{R}_+^q)^{\mathcal{S}\times\mathcal{A}}\) |
| \(B\) | \(\stackrel{\rm def}{=}\) | \(p\)-dimensional vector |
| \(M_\theta\) | \(\stackrel{\rm def}{=}\) | \(\sum_{i=1}^d \theta_i A_i\), where \(A_i\) are \(p\times q\) matrices. |
| \(Z^{\texttt{r}}\) | \(\stackrel{\rm def}{=}\) | the rewards’ log partition function |
| \(Z^{\texttt{p}}\) | \(\stackrel{\rm def}{=}\) | the transitions’ log partition function |
| \(\mathcal{H}\) | \(\stackrel{\rm def}{=}\) | Hilbert space where we decompose transitions |
| \(\mu^{\texttt{p}}\) | \(\stackrel{\rm def}{=}\) | feature function after decomposition, \(\in (\mathbb{R}_+)^{\mathcal{S}\times \mathcal{H}}\) |
| \(\phi^{\texttt{p}}\) | \(\stackrel{\rm def}{=}\) | feature function after decomposition, \(\in (\mathbb{R}_+)^{\mathcal{S}\times \mathcal{A}\times \mathcal{H}}\) |
| \(G_{s, a}\) | \(\stackrel{\rm def}{=}\) | \(\left(\varphi(s, a)^{\top} A_{i}^{\top} A_{j} \varphi(s, a)\right)_{i, j \in [d]}\) |
| \(\bar{G}_k^\texttt{r}\) | \(\stackrel{\rm def}{=}\) | \(\bar{G}_{(k-1)h}^\texttt{r} = \frac{\eta}{\alpha^{\texttt{r}}}\mathbb{A}+ \sum_{\tau=1}^{k-1} \sum_{h=1}^H G_{s_h^\tau , a_h^\tau}\) |
| \(\bar{G}_k^\texttt{p}\) | \(\stackrel{\rm def}{=}\) | \(\bar{G}_{(k-1)h}^\texttt{p} = \frac{\eta}{\alpha^{\texttt{p}}}\mathbb{A}+ \sum_{\tau=1}^{k-1} \sum_{h=1}^H G_{s_h^\tau , a_h^\tau}\) |
| \(\mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]\) | \(\stackrel{\rm def}{=}\) | \(\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right) \psi\left(s^{\prime}\right)^{\top}\right]-\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top}\right]\) |
| \(\beta^{\texttt{p}}\) | \(\stackrel{\rm def}{=}\) | \(\sup _{\theta, s, a} \lambda_{\max }\left(\mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]\right)\) linked to the maximum eigenvalue of \(\nabla^2 Z^{\texttt{p}}\) |
| \(\alpha^{\texttt{p}}\) | \(\stackrel{\rm def}{=}\) | \(\inf _{\theta, s, a} \lambda_{\max }\left(\mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]\right)\) linked to the minimum eigenvalue of \(\nabla^2 Z^{\texttt{p}}\) |
| \(\beta^{\texttt{r}}\) | \(\stackrel{\rm def}{=}\) | \(\lambda_{\max }\left(B B^\top \right) \sup _{\theta, s, a} \mathbb{V}\mathrm{ar}_{s,a}^\theta(r)\), linked to the maximum eigenvalue of \(\nabla^2 Z^{\texttt{r}}\) |
| \(\alpha^{\texttt{r}}\) | \(\stackrel{\rm def}{=}\) | \(\lambda_{\min }\left(B B^\top \right) \inf _{\theta, s, a} \mathbb{V}\mathrm{ar}_{s,a}^\theta(r)\), linked to the minimum eigenvalue of \(\nabla^2 Z^{\texttt{r}}\) |
We provide a high probability analysis of the regret of BEF-RLSVI under standard regularity assumptions of the representation. First we recall the regret definition then we separate the perturbation error from the statistical estimation:
\[\begin{align} \mathcal{R}(K) = \sum_{k=1}^K (V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star - V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^{\pi_k})(s_{1}^k) = \sum_{k=1}^K
\Big(\underbrace{V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star - V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^{\pi_k}}_{learning} + \underbrace{V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^{\pi_k} -
V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^{\pi_k}}_{Estimation}\Big)(s_{1}^k)
\end{align}\]
To show that the estimation error \(\big(\sum_{k=1}^K V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1} - V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^{\pi_k}\big)\) can be controlled, we decompose it to an error that comes from the estimation of the transition parameter and one that comes from the estimation of the reward parameter:
\[V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}}}^\pi( s_{1}^k) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1}^k) = \underbrace{V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1}^k) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1}^k)}_{\text{transition estimation}} + \underbrace{V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}}}^\pi(s_{1}^k) - V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}^\pi( s_{1}^k)}_{\text{reward estimation}},\] we control each term separately in Section 1.0.2.1.1 and Section 1.0.2.1.2. Therefore, we obtain the following lemma controlling the estimation error.
Lemma 1. The estimation error satisfies, with probability at least \(1-5\delta\) \[\begin{align} \sum_{k=1}^K &V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}(s_{1}^{k}) -V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\pi(s_{1}^{k}) \le 2 H \sqrt{\frac{2\beta^{\texttt{p}}}{\alpha^{\texttt{p}}} \beta^{\texttt{p}}(N,\delta) N \gamma_{K}^\texttt{p}} + 2H\sqrt{2 N \log(1/\delta)}\\ +& \left[ \sqrt{K H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} n\right)} + C_d \sqrt{H d\log(1+\alpha \eta^{-1} B_{\varphi, \mathbb{A}}H)} \right] \times \Bigg( \sqrt{ \frac{\beta^{\texttt{r}}(n,\delta) }{2\alpha^{\texttt{r}}}}\\ +& c\sqrt{(\max_{k} x_k)d\log(d K /\delta)}\Bigg) \beta^{\texttt{r}}+ \sqrt{2K H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} n\right) \log(1/\delta)} \end{align}\] where for \(\texttt{i}\in [\texttt{p}, \texttt{r}]\), \(\beta^\texttt{i}(K,\delta)\triangleq \frac{\eta}{2}B_{\mathbb{A}}^2+\gamma_K^\texttt{i}+\log(1/\delta)\), and \(\gamma_K^\texttt{i}\triangleq d\log(1+\frac{\beta^\texttt{i}}{\eta}B_{\varphi,\mathbb{A}}H K)\). Also, \(C_d \triangleq\frac{3d}{\log(2)}\log\left(1+ \frac{\alpha^{\texttt{r}}\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right)\), and \(c\) is a universal constant.
The goal of this section is to prove the following lemma which bounds the regret due to transition estimation.
Lemma 2. We have, with probability at least \(1-2\delta\) \[\sum_{k=1}^K V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}(s_{1}^{k}) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1}^{k}) \le 2 H \sqrt{\frac{2\beta^{\texttt{p}}}{\alpha^{\texttt{p}}} \beta^{\texttt{p}}(N,\delta) N \gamma_{K}^\texttt{p}} + 2H\sqrt{2 N \log(1/\delta)}\] where \(\gamma_{K}^\texttt{p}:=d \log \left(1+\beta^{\texttt{p}}\eta^{-1} B_{\varphi, \mathbb{A}} H K\right)\), and \(\beta^{\texttt{p}}(K,\delta)\triangleq \frac{\eta}{2}B_{\mathbb{A}}^2+\gamma_K^\texttt{p}+\log(1/\delta)\).
Proof. The proof proceeds in two parts. First, we will reveal a bound in terms of the induced local geometry, i.e. a bound in terms of KL-divergence. Second, we explicit the bound by transferring the induced local geometry to the euclidean one.
1) Bound in terms of local geometry. We provide a bound on the estimation error of the transition in terms of \(\operatorname{KL}\) divergences, for that end we show that the estimation error can be decomposed and well controlled. We start by writing the one-step decomposition:
\[\begin{align} V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi(s_{1}^{k}) -&V_{\theta^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi (s_{1}^{k})\\ &=\mathbb{E}_{s_{1}^{k},a_{1}^{k}}^{\hat{\theta}^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi\right] - \mathbb{E}_{s_{1}^{k},a_{1}^{k}}^{\theta^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi\right] + \mathbb{E}_{s_{1}^{k},a_{1}^{k}}^{\theta^{\texttt{p}}}[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi - V_{\theta^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi]\\ &= \mathbb{E}_{s_{1}^{k},a_{1}^{k}}^{\hat{\theta}^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi\right] - \mathbb{E}_{s_{1}^{k},a_{1}^{k}}^{\theta^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi\right] + V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi(s_{2 k}) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}},2}^\pi(s_{2 k}) + \zeta_{1}^{k}\\ &= \sum_{h=1}^H \mathbb{E}_{s_{h k},a_{h k}}^{\hat{\theta}^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi\right] - \mathbb{E}_{s_{h k},a_{h k}}^{\theta^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi\right] + \zeta_{h k} \end{align}\] where \(\zeta_{h k} = \mathbb{E}_{s_{h k},a_{h k}}^{\theta^{\texttt{p}}}[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi - V_{\theta^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi] - \left(V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi(s_{h+1 k}) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi(s_{h+1 k})\right)\) is a martingale sequence, and the last equality comes by induction. Here we consider the true reward parameter which verifies \(|\mathbb{E}_{\theta^{\texttt{r}}}[r(s,a)]|\le 1\) by assumption, therefore \(|\zeta_{h k}|\le 2 H\). Using the Azuma-Hoeffding inequality [39], with probability at least \(1-\delta\) \[\sum_{k=1}^K \sum_{h=1}^H \zeta_{h k} \le 2H \sqrt{2K H \log(1/\delta)}\] We finish bounding the first term using Lemma 7, indeed \[\begin{align} \mathbb{E}_{s_{h k},a_{h k}}^{\hat{\theta}^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi\right] - \mathbb{E}_{s_{h k},a_{h k}}^{\theta^{\texttt{p}}}\left[V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},h+1}^\pi\right] &\le H \sqrt{2 \operatorname{KL}_{s_{h k}, a_{h k}}(\theta^{\texttt{p}}, \hat{\theta}^{\texttt{p}})}\\ &\le H \min\left\{1, \sqrt{2 \operatorname{KL}_{s_{h k}, a_{h k}}(\theta^{\texttt{p}}, \hat{\theta}^{\texttt{p}})}\right\}, \end{align}\] the last inequality follows because \(\forall h, \: \mathbb{S}(V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}},h+1})\le H\).
Remark 4. Traditionally, the expected value difference bound follows from the simulation lemma [19]. The simulation lemma incurs an extra \(\sqrt{H}\) factor compared to our bound.
We deduce that with probability at least \(1-\delta\): \[\begin{align} \sum_{k=1}^K V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}(s_{1}^{k})& -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1}^{k}) \nonumber\\ &\quad \le H \sum_{k=1}^K \min\left\{1,\sum_{h=1}^H \sqrt{2\operatorname{KL}_{s_{h k}, a_{h k}}(\theta^{\texttt{p}}, \hat{\theta}^{\texttt{p}})}\right\}+2H\sqrt{2 K H \log(1/\delta)} \label{eq:transition95estimation95kl} \end{align}\tag{10}\]
2) Bounding the sum of KL divergences. we explicit the bound of inequality 10 using Assumption 1 along with properties of the exponential family (cf. Section 1.0.4.3). We have for all \((s, a)\), \[\label{ineq:transition95kl} \forall \theta^{\texttt{p}}, \theta^{\texttt{p} \prime}, \quad \frac{\alpha^{\texttt{p}}}{2}\left\|\theta^{\texttt{p} \prime}-\theta^{\texttt{p}}\right\|_{G_{s, a}}^{2} \leq \mathrm{KL}_{s, a}\left(\theta^{\texttt{p}}, \theta^{\texttt{p} \prime}\right) \leq \frac{\beta^{\texttt{p}}}{2}\left\|\theta^{\texttt{p} \prime}-\theta^{\texttt{p}}\right\|_{G_{s, a}}^{2}.\tag{11}\] This implies that \[\mathrm{KL}_{s, a}\left(\hat{\theta}^{\texttt{p}}(k), \theta^{\texttt{p}}\right) \leq \frac{\beta^{\texttt{p}}}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{G_{s, a}}^{2} \leq \beta^{\texttt{p}}\left\|(\bar{G}_{k}^\texttt{p})^{-1 / 2} G_{s, a} (\bar{G}_{k}^\texttt{p})^{-1 / 2}\right\| \frac{1}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\bar{G}_{k}^\texttt{p}}^2,\] where \(\bar{G}_{k}^\texttt{p} \equiv \bar{G}_{(k-1) H}^\texttt{p}:=G_{k}+(\alpha^{\texttt{p}})^{-1} \eta \mathbb{A}\) and \(G_{k} \equiv \sum_{\tau=1}^{k-1} \sum_{h=1}^{H} G_{s_{s}^{\tau}, a_{h}^{\tau}}\).
From Corollary 1, with probability at least \(1-\delta\) and for all \(k\in \mathbb{N}\) \[\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\bar{G}_{k}^\texttt{p}}^2 \le 2\beta^{\texttt{p}}(k,\delta) / \alpha^{\texttt{p}}.\]
Also, using Lemma 12, we have \[\sum_{t=1}^{T} \sum_{h=1}^{H}\min\left\{1, \left\|(\bar{G}_{k}^\texttt{p})^{-1 / 2} G_{s, a} (\bar{G}_{k}^\texttt{p})^{-1 / 2}\right\|\right\} \le 2 d \log \left(1+\alpha^{\texttt{p}}\eta^{-1} B_{\varphi, \mathbb{A}} H K\right).\] Combining these two results we obtain, with probability at least \(1-\delta\):
\[\label{eq:sum95kl95bound} \sum_{t=1}^{T} \sum_{h=1}^{H} \min\left\{1, \mathrm{KL}_{s_{h}^{t}, a_{h}^{t}}\left(\hat{\theta}^{\texttt{p}}(k), \theta^{\texttt{p}}\right)\right\} \leq \frac{2 \beta^{\texttt{p}}}{\alpha^{\texttt{p}}} \beta^{\texttt{p}}(K,\delta) \gamma_{K}^\texttt{p}.\tag{12}\]
Remark 5. Notice that the minimum with \(1\) is crucial, indeed, without it the bound deteriorates by a factor \(H\) as was the case in [8].
3) Combining the bounds. By applying Cauchy-Schwarz in inequality 10 , we obtain, with probability at least \(1-\delta\), and for all \(K \in \mathbb{N}\) \[\sum_{k=1}^K V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}(s_{1}^{k}) -V_{\theta^{\texttt{p}}, \theta^{\texttt{r}}}^\pi(s_{1}^{k}) \le H \sqrt{2\sum_{k=1}^K \sum_{h=1}^H \operatorname{KL}_{s_{h k}, a_{h k}}(\theta^{\texttt{p}}, \hat{\theta}^{\texttt{p}})}+2H\sqrt{2 K H \log(1/\delta)}.\] Injecting inequality 12 proves the desired result with probability at least \(1-2\delta\). ◻
Now, we provide the bound over the regret due to estimating the reward parameter.
Lemma 3. With probability at least \(1-3\delta\), the following result holds true. \[\begin{align} \sum_{k=1}^K V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}},1}^\pi (s_{1}^{k}) - &V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi (s_{1}^{k}) \le \left(\sqrt{\frac{\beta^{\texttt{r}}(K,\delta)}{2\alpha^{\texttt{r}}}}+c\sqrt{(\max_{k\le K} x_k) d\log(d K /\delta)}\right) \beta^{\texttt{r}}\\ \times & \left( \sqrt{C_d \left(1+\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\right)} + \sqrt{K\log(e/\delta^2)} \right) \sqrt{ H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} H K\right)}, \end{align}\] where \(\beta^\texttt{p}(K,\delta)\triangleq \frac{\eta}{2}B_{\mathbb{A}}^2+\gamma_K^\texttt{p}+\log(1/\delta)\), and \(\gamma_K^\texttt{p}\triangleq d\log(1+\frac{\beta^\texttt{p}}{\eta}B_{\varphi,\mathbb{A}}H K)\). Also, \(C_d \triangleq\frac{3d}{\log(2)}\log\left(1+ \frac{\alpha^{\texttt{r}}\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right)\), and \(c\) is a universal constant.
Proof. The reward estimation error in Equation 9 can be written explicitly. Indeed, using Lemma 11
\[\begin{align} V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^\pi(s_{1}^{k}) - V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi &(s_{1}^{k}) = \mathbb{E}_{(\tilde{s}_h)_{1\le h\le H}\sim \pi \mid \hat{\theta}^{\texttt{p}}, s_{1}^{k}}\left[\sum_{h=1}^H \frac{\mathbb{V}\mathrm{ar}_{\tilde{s}_h,\pi(\tilde{s}_h)}(r)}{2} B^\top M_{\tilde{\theta}^{\texttt{r}}-\theta^{\texttt{r}}}\varphi(\tilde{s}_h,\pi(\tilde{s}_h))\right] \\ \le& \mathbb{E}\left[\sum_{h=1}^H \frac{\mathbb{V}\mathrm{ar}_{\tilde{s}_h,\pi(\tilde{s}_h)}(r)}{2} \|\tilde{\theta}^{\texttt{r}}-\theta^{\texttt{r}}\|_{\bar{G}_{k}^\texttt{r}} \|(B^\top A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{r})^{-1}}\right]\\ \le& \|\tilde{\theta}^{\texttt{r}}-\theta^{\texttt{r}}\|_{\bar{G}_{k}^\texttt{r}} \mathbb{E}\left[\sum_{h=1}^H \frac{\mathbb{V}\mathrm{ar}_{\tilde{s}_h,\pi(\tilde{s}_h)}(r)}{2} \|(B^\top A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{r})^{-1}}\right]\\ \le& \|\tilde{\theta}^{\texttt{r}}-\theta^{\texttt{r}}\|_{\bar{G}_{k}^\texttt{r}} \frac{\beta^{\texttt{r}}}{2} \mathbb{E}\Bigg[ \underbrace{\sum_{h=1}^H \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{r})^{-1}}}_{\stackrel{\rm def}{=}\widetilde{\operatorname{traj}}_{k}} \Bigg], \end{align}\] where \(\operatorname{traj}_{k} \stackrel{\rm def}{=}\sum_{h=1}^H \|(A_i\varphi(s_h,\pi(s_h)))_{1\le i \le d} \|_{ (G_{k }^\texttt{r} )^{-1}}\).
Bad rounds. We separate the analysis of this estimation error into bad and good rounds. Here we analyze the bad rounds, which are define by the following set: \[\mathcal{T} = \{k\in \mathbb{N}^*, \exists h \in [H], \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{r})^{-1}} \ge 1\}\]
1) We know that \(\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d} (A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}^\top\|_2^2 \le \|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2\). Consequently, according to Lemma 13 \[\left|\mathcal{T}\right| \le \frac{3d}{\log(2)}\log\left(1+ \frac{\alpha\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right).\]
2) Since \(G_{k}\) is positive semi-definite, we have \(\bar{G}_{k}^\texttt{r}\succeq (\alpha^{\texttt{r}})^{-1} \eta \mathbb{A}\), and in turn, for all state-action couples \((s,a)\), \(\left\|(\bar{G}_{k}^\texttt{r})^{-1} G_{s, a}\right\| \leq \frac{\alpha^{\texttt{r}}}{\eta}\left\|\mathbb{A}^{-1} G_{s, a}\right\| \leq \frac{\alpha^{\texttt{r}}B_{\varphi, \mathbb{A}}}{\eta}\).
This further yields \[\left\|I+(\bar{G}_{k}^\texttt{r})^{-1} \sum_{h=1}^{H} G_{s_{h}^{t}, a_{h}^{t}}\right\| \leq 1+\sum_{h=1}^{H}\left\|(\bar{G}_{k}^\texttt{r})^{-1} G_{s_{h}^{t}, a_{h}^{t}}\right\| \leq 1+\frac{\alpha^{\texttt{r}}B_{\varphi, \mathbb{A}} H}{\eta} .\]
Let us define \(\bar{G}_{k+H}^\texttt{r}:=\bar{G}_{k}^\texttt{r}+\sum_{h=1}^{H} G_{s_{h}^{k}, a_{h}^{k}}\). Then, \[\bar{G}_{k+H}^{-1} G_{s, a}=\left(I+(\bar{G}_{k}^\texttt{r})^{-1} \sum_{h=1}^{H} G_{s_{h}^{t}, a_{h}^{t}}\right)^{-1} (\bar{G}_{k}^\texttt{r})^{-1} G_{s, a}.\] Therefore, for all pairs \((s,a)\), \[\begin{align} \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{r})^{-1}} & = \sqrt{ \operatorname{tr}((A_i\varphi( \tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}^\top (\bar{G}_{k}^\texttt{r})^{-1} (A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d})}\\ &= \sqrt{\operatorname{tr}(\left(1+\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\right) (\bar{G}_{k+H}^\texttt{r})^{-1} G_{s, a} )} \\ &\le \sqrt{\left(1+\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\right)} \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k+H}^\texttt{r})^{-1}} \end{align}\] Since \(\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k+H}^\texttt{r})^{-1}} \le 1\), we have \(\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k+H}^\texttt{r})^{-1}} \le \min\left\{1,\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{r})^{-1}}\right\}\). Consequently \[\sum_{h=1}^H \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k+H}^\texttt{r})^{-1}} \le \sqrt{H d\log(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}}H)}.\]
3) From 1) and 2), we deduce that the total regret induced by rounds from \(\mathcal{T}\) is bounded. \[\begin{align} \sum_{k\in \mathcal{T}}&\sum_{h\in [H]} V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}},1}^\pi(s_{1}^{k}) - V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi(s_{1}^{k}) \nonumber \le \|\tilde{\theta}^{\texttt{r}}-\theta^{\texttt{r}}\|_{\bar{G}_{k}^\texttt{r}} \frac{\beta^{\texttt{r}}}{2}\\ &\sqrt{\frac{3d}{\log(2)}\log\left(1+ \frac{\alpha^{\texttt{r}}\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right) \left(1+\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\right) H d\log(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}}H)} \label{eq:reward95estimation95bad95rounds} \end{align}\tag{13}\]
Remark 6. The bad rounds analysis is one of our most important contributions as it enables us to forgo clipping without consequences. Consequently, this is a novel method to control the reward estimation error that improves on existing work for whom clipping was essential.
Good rounds. Going forward we consider rounds from \(\bar{\mathcal{T}}\). Let us define \[\zeta'_{k} \stackrel{\rm def}{=}\operatorname{ traj}_{k} -
\mathbb{E}_{(\tilde{s}_h)_{1\le h\le H}\sim \pi \mid \hat{\theta}^{\texttt{p}}, s_{1}^{k}} \left[\widetilde{\operatorname{traj}}_{k}\right].\] where \(\widetilde{\operatorname{traj}}_{k}\) is the same quantity as
\(\operatorname{traj}\) but with a random realization of state transitions.
Since all feature norms are smaller than one, \((\zeta'_{k})_{k}\) is a martingale sequence with \(|\zeta'_{k}|\le \sqrt{H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi,
\mathbb{A}} H K\right)}\). We deduce that with probability at least \(1-\delta\): \[\sum_{k=1}^K \zeta'_{k} \le \sqrt{2K H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi,
\mathbb{A}} H K\right) \log(1/\delta)}\]
Therefore, we have with probability at least \(1-3\delta\): \[\begin{align} \sum_{k\in \mathcal{T}^\texttt{c}} V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}},1}^\pi (s_{1}^{k}) - V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi(s_{1}^{k}) &\le \left(\sqrt{\frac{\beta^{\texttt{r}}(K,\delta)}{2\alpha^{\texttt{r}}}}+c\sqrt{(\max_{k} x_k)d\log(d K /\delta)}\right)\\ &\times \beta^{\texttt{r}}\sqrt{K H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} K H\right)\log(e/\delta^2)}. \end{align}\]
The last inequality follows from controlling the concentration of the reward parameter. First we observe that (Corollary 2) with probability at least \(1-\delta\), uniformly over \(k \in \mathbb{N}, \quad \left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(k)\right\|_{\bar{G}_{k}^\texttt{r}}^{2} \le \frac{2}{\alpha^{\texttt{r}}} \beta^{\texttt{r}}(k,\delta)\). Second, we also have that for all \(k\ge 1\), with probability at least \(1-\delta, \|\xi_{ k}\|_{G_{k}^\texttt{r}} \leq c \sqrt{x_k d \log(d/\delta)}\), we then use a union bound. Combining with Equation 13 we find
\[\begin{align} \sum_{k=1}^K V_{\hat{\theta}^{\texttt{p}}, \tilde{\theta}^{\texttt{r}},1}^\pi (s_{1}^{k}) - V_{\hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}},1}^\pi(s_{1}^{k}) &\le \left(\sqrt{\frac{\beta^{\texttt{r}}(K,\delta)}{2\alpha^{\texttt{r}}}}+c\sqrt{(\max_{k} x_k)d\log(d K /\delta)}\right)\\ & \times \beta^{\texttt{r}}\sqrt{K H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} H K\right)\log(e/\delta^2)}. \end{align}\] This concludes the proof. ◻
Remark 7. If we use Lemma 11 without the martingale difference sequence, it will lead to a linear regret. Indeed, the span of the sum of norms over an episode is of order \(\sqrt{H}\). Using the martingale technique instead allows us to retrieve a telescopic sum controlled using the elliptical lemma, this is essential to obtaining a sub-linear regret bound.
We now start the control of an important regret term, due to the distance between the estimated value function and the optimal value function.
Lemma 4. If the variance parameter of the injected noise \((\xi_k)_k\) satisfies \[x_k \ge \left(H\sqrt{\frac{\beta^{\texttt{p}}\beta^{\texttt{p}}(k,\delta)}{\alpha^{\texttt{p}}\alpha^{\texttt{r}}}}+\frac{\sqrt{\beta^{\texttt{r}}\beta^{\texttt{r}}(k,\delta)\min\{1,\frac{\alpha^{\texttt{p}}}{\alpha^{\texttt{r}}}\}}}{2 \alpha^{\texttt{r}}}\right),\] then the learning error is controlled with probability at least \(1-2\delta\) as \[\begin{align} \sum_{k=1}^K V_1^\star (s_1^k) - V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}^\pi (s_1^k) &\le \frac{d \beta^{\texttt{r}}\sqrt{x_k} \left(1 +\sqrt{ \log(d/\delta) }\right) }{\Phi(-1)} \sqrt{ H \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} H K\right)}\\ &\times \left( \sqrt{C_d \left(1+\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\right)} + \sqrt{K \log(e/\delta^2)} \right), \end{align}\] where for \(\texttt{i}\in [\texttt{p}, \texttt{r}]\), \(\beta^\texttt{i}(K,\delta)\triangleq \frac{\eta}{2}B_{\mathbb{A}}^2+\gamma_K^\texttt{i}+\log(1/\delta)\), and \(\gamma_K^\texttt{i}\triangleq d\log(1+\frac{\beta^\texttt{i}}{\eta}B_{\varphi,\mathbb{A}}H K)\). Also \(C_d \stackrel{\rm def}{=}\frac{3d}{\log(2)}\log\left(1+ \frac{\alpha^{\texttt{r}}\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right)\), and \(\Phi\) is the normal CDF.
This result basically means that we are no longer obliged to follow optimistic value functions, the perturbed estimation is enough to have a tight bound on the learning error.
The goal here is to show that by injecting our carefully designed noise in the rewards we can ensure optimism with a constant probability. Consider the optimal policy \(\pi^\star\), we have: \[\begin{align} (V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}-V_{\theta^{\texttt{p}},\theta^{\texttt{r}},1}^\star &)(s_1) \ge (Q_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^\star-Q_{1}^\star)(s_1,\pi^\star (s_1))\\ &\ge \underbrace{V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\theta^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1)}_{\text{first term}} + \underbrace{V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1)}_{\text{second term}} + \underbrace{V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1)}_{\text{third term}} \end{align}\]
First term. By assumption, the expected reward under the true parameter satisfies \(\mathbb{E}_{\theta^{\texttt{r}}}[r(s,a)] \in [0,1]\), then \(\mathbb{S}\left(\sum_{t=1}^H \mathbb{E}_{\theta^{\texttt{r}}}[r(s_t,\pi(s_t))]\right)\le H\). Consequently, the first term can be controlled using Lemma 7 \[\begin{align} &V_{\theta^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) \le H \sqrt{\mathrm{KL}(P_{\hat{\theta}^{\texttt{p}}}(s_2,\ldots, s_H),P_{\theta^{\texttt{p}}}(s_2,\ldots, s_H)) }\\ &\le H \sqrt{\mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k}\left[\sum_{t=1}^H \psi(\tilde{s}_{t+1})^\top M_{\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}} \varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)) + Z^{\texttt{p}}_{\theta^{\texttt{p}}}(\tilde{s}_t, \pi^\star (\tilde{s}_t)) - Z^{\texttt{p}}_{\hat{\theta}^{\texttt{p}}}(\tilde{s}_t, \pi^\star (\tilde{s}_t)) \right]} \end{align}\]
Using Taylor’s expansion, for all \(h\in [H], \exists \theta_h \in [\theta^{\texttt{p}},\hat{\theta}^{\texttt{p}}]\) such that: \[\begin{align} \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim
\hat{\theta}^{\texttt{p}}\mid s_1^k}&\left[ \psi(\tilde{s}_{t+1})^\top M_{\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}} \varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)) + Z^{\texttt{p}}_{\theta^{\texttt{p}}}(\tilde{s}_t, \pi^\star (\tilde{s}_t)) -
Z^{\texttt{p}}_{\hat{\theta}^{\texttt{p}}}(\tilde{s}_t, \pi^\star (\tilde{s}_t)) \right]\\ &= \frac{1}{2} (\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}})^\top \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid
s_1^k}\left[\nabla_{s_h,\pi^\star(s_h)}^2 Z^{\texttt{p}}(\theta_h)\right] (\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}})\\ &\le \frac{\beta^{\texttt{p}}}{2} \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid
s_1^k}\left[\|\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}\|_{G_{\tilde{s}_h, \pi^\star (\tilde{s}_h)}}^2\right].
\end{align}\] Define \(u_k \stackrel{\rm def}{=}\sum_{h=1}^H \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k} \left[ (A_i \varphi(\tilde{s}_h, \pi^\star (\tilde{s}_h)))_{i\in
[d]}\right]\), then \[\begin{align} V_{\theta^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) - V_{ \hat{\theta}^{\texttt{p}}, \theta^{\texttt{r}}}^{\pi^\star} (s_1) &\le H \sqrt{ \frac{\beta^{\texttt{p}}}{2}
\sum_{h=1}^H \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k}\left[\|\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}\|_{G_{\tilde{s}_h, \pi^\star (\tilde{s}_h)}}^2\right]}\\ &\le H \sqrt{\frac{\beta^{\texttt{p}}}{2}}
\left\|\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}\right\|_{\sum_{h=1}^H \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k} \left[ G_{\tilde{s}_h, \pi^\star (\tilde{s}_h)}\right]} \\ &\le H
\sqrt{\frac{\beta^{\texttt{p}}}{2}} \left\|\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}\right\|_{u_k u_k^\top} \\ &\le H \sqrt{\frac{\beta^{\texttt{p}}}{2} \left\|(\bar{G}_{k}^\texttt{p})^{-1/2} u_k u_k^\top (\bar{G}_{k}^\texttt{p})^{-1/2}\right\|}
\|\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}\|_{\bar{G}_{k}^\texttt{p}}\\ &\le H \sqrt{\frac{\beta^{\texttt{p}}}{2}} \| u_k \|_{ (\bar{G}_{k}^\texttt{p})^{-1}} \|\hat{\theta}^{\texttt{p}}-\theta^{\texttt{p}}\|_{\bar{G}_{k}^\texttt{p}}
\end{align}\] The third line follows because \(\forall x\in \mathbb{R}^d,\quad \|x\|_{\sum_{i=1}a_i a_i^\top} \le \|x\|_{(\sum_{i=1}a_i)(\sum_{i=1}a_i)^\top}\), and the last one follows because \(\operatorname{tr}(AB)\le \operatorname{tr}(A)\operatorname{tr}(B)\) for any two real positive semi-definite matrices \(A\) and \(B\).
We deduce, with probability at least \(1-\delta\): \[V_{\theta^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) \le H
\sqrt{\frac{\beta^{\texttt{p}}\beta^{\texttt{p}}(k,\delta)}{\alpha^{\texttt{p}}}} \left\|\sum_{h=1}^H \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k} \left[ (A_i \varphi(\tilde{s}_h, \pi^\star (\tilde{s}_h)))_{i\in
[d]}\right] \right\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\]
Second term. We have \[\begin{align} V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\theta^{\texttt{r}}}^{\pi^\star} (s_1) &=
\mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k}\left[\sum_{t=1}^H \frac{\mathbb{V}\mathrm{ar}^{\theta^{\texttt{r}}_t} (r)}{2} B^\top M_{\hat{\theta}^{\texttt{r}}- \theta^{\texttt{r}}}\varphi(\tilde{s}_t,\pi^\star
(\tilde{s}_t))\right]\\ &= (\hat{\theta}^{\texttt{r}}- \theta^{\texttt{r}})^\top \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k}\left[\sum_{t=1}^H \frac{\mathbb{V}\mathrm{ar}^{\theta^{\texttt{r}}_t} (r)}{2}
(A_i\varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in [d]}\right] B\\ &\le \frac{\sqrt{\beta^{\texttt{r}}}}{2} \|\hat{\theta}^{\texttt{r}}- \theta^{\texttt{r}}\|_{\bar{G}_{k}^\texttt{r}} \left\| \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim
\hat{\theta}^{\texttt{p}}\mid s_1^k}\left[\sum_{t=1}^H (A_i\varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in [d]}\right] \right\|_{(\bar{G}_{k}^\texttt{r})^{-1}}
\end{align}\] The last inequality comes from Cauchy-Schwarz. Applying that the norm (sum) makes appear only symmetric matrices times the variances so that we can bound the latter by \(\beta^{\texttt{r}}\).
We conclude that with probability at least \(1-\delta\), \[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) -
V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) \le \frac{\beta^{\texttt{r}}\sqrt{\beta^{\texttt{r}}(k,\delta)}}{\sqrt{2 \alpha^{\texttt{r}}}} \left\| \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid
s_1^k}\left[\sum_{t=1}^H (A_i\varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in [d]}\right] \right\|_{(\bar{G}_{k}^\texttt{r})^{-1}}\] We want to write all the norms in the same matrix. Therefore, with probability at least \(1-\delta\), \[\begin{align} V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) \le&
\sqrt{\frac{\beta^{\texttt{r}}\beta^{\texttt{r}}(k,\delta) \min\{1,\frac{\alpha^{\texttt{p}}}{\alpha^{\texttt{r}}}\}}{2 \alpha^{\texttt{r}}}}\\ & \times \left\| \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid
s_1^k}\left[\sum_{t=1}^H (A_i\varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in [d]}\right] \right\|_{(\bar{G}_{k}^\texttt{p})^{-1}}
\end{align}\]
Third term. We have \[\begin{align} V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}},1}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^{\pi^\star} (s_1) &= \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k} \left[\sum_{t=1}^H \frac{\mathbb{V}\mathrm{ar}^{\theta^{\texttt{r}}_j} (r)}{2} B^\top M_{\hat{\theta}^{\texttt{r}}- \tilde{\theta}^{\texttt{r}}}\varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t))\right]\\ &= \xi_k ^\top \: \mathbb{E}_{(\tilde{s}_t)_{t \in [H]}\sim \hat{\theta}^{\texttt{p}}\mid s_1^k} \left[\sum_{t=1}^H \frac{\mathbb{V}\mathrm{ar}^{\theta^{\texttt{r}}_j} (r)}{2} (A_i \varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in[d]}\right] B \end{align}\]
Given the normal CDF \(\Phi\), we obtain that with probability at least \(\Phi(-1)\) \[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) - V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}^{\pi^\star} (s_1) \ge \sqrt{x_k \alpha^{\texttt{r}}} \left\|\left[\sum_{t=1}^H \frac{\mathbb{V}\mathrm{ar}^{\theta^{\texttt{r}}_j} (r)}{2} (A_i \varphi(\tilde{s}_t,\pi^\star (\tilde{s}_t)))_{i\in[d]}\right]\right\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\]
Choosing \(x_k \ge \left(H\sqrt{\frac{\beta^{\texttt{p}}\beta^{\texttt{p}}(k,\delta)}{\alpha^{\texttt{p}}\alpha^{\texttt{r}}}}+\frac{\sqrt{\beta^{\texttt{r}}\beta^{\texttt{r}}(k,\delta)\min\{1,\frac{\alpha^{\texttt{p}}}{\alpha^{\texttt{r}}}\}}}{2 \alpha^{\texttt{r}}}\right)\) and using Lemma 6, we find that the perturbed value function is optimistic with probability at least \(\Phi(-1)\).
In this section we see the core difference with optimistic algorithms. On the one hand, optimistic approaches require the value function generating the agent’s policy to be larger than the optimal one with large probability, and can therefore ensure
that the learning error is negative. On the other hand, BEF-RLSVI only ensures that the value function is optimistic with a constant probability: intuitively when this event holds the learning happens, and if it does not then the policy is
still close to a good one thanks to the decreasing estimation error.
Let us draw \((\bar{\xi}_{k})_{k\in [K]}\) i.i.d copies of \((\xi_{k})_{k\in [K]}\). Define the optimism event at episode \(k\): \[\label{def:optimism95k} \bar{O}_k = \{V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k) - V_1^\star (s_1^k) \ge 0\}\tag{14}\] we know that \(\mathbb{P}(\bar{O}_k)\ge \Phi(-1)\). This event provides the upper bound: \[\label{eq:value95upper95bound} V_1^\star (s_1^k) \le \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)]\tag{15}\]
We define this bound with an optimization problem under concentration of the noise. Consider \(\underbar{V}_{1}(s_1^k)\) is the solution of \[\begin{align} &\min _{\xi_{ k}} V_{\hat{\theta}^{\texttt{p}}, \hat{\theta}^{\texttt{r}}+\xi_k,1}(s_{1^k}) \label{eq:value95lower95bound95opt}\\ &\|\xi_k\|_{\bar{G}_{k}^\texttt{p}} \le \sqrt{x_k d\log(d/\delta)}, \quad \forall t \in[H] \nonumber \end{align}\tag{16}\] Under the concentration of our injected noise, we obtain \[\label{eq:value95lower95bound} \underbar{V}_{1}(s_1^k) \le V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}}}(s_1^k)\tag{17}\]
Combining the upper bound of Equation 15 with the lower bound of Equation 17 , we get, with probability at least \(1-\delta\): \[V_1^\star (s_1^k) - V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k) \le \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\] Also, using the tower rule, \[\begin{align} \mathbb{E}_{\bar{\xi}_k }[&V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\\ &= \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\mathbb{P}(\bar{O}_k) + \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k^\texttt{c} }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\mathbb{P}(\bar{O}_k^\texttt{c}) \end{align}\] Therefore, \[\begin{align} V_1^\star (s_1^k) - &V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)\\ &\le \left(\mathbb{E}_{\bar{\xi}_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)] - \mathbb{E}_{\bar{\xi}_k \mid \bar{O}_k^\texttt{c} }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\mathbb{P}(\bar{O}_k^\texttt{c})\right)/ \mathbb{P}(\bar{O}_k)\\ &=\left(\mathbb{E}_{\xi_k }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+{\xi}_k,1}^\pi (s_1^k)-\underbar{V}_{1}^\pi (s_1^k)] - \mathbb{E}_{\xi_k \mid \bar{O}_k^\texttt{c} }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\xi_k,1}(s_1^k)-\underbar{V}_{1}(s_1^k)]\mathbb{P}(\bar{O}_k^\texttt{c})\right)/ \mathbb{P}(\bar{O}_k). \end{align}\] The last line follows since \(\xi_k\) and \(\bar{\xi}_k\) are i.i.d.
The rest of the analysis proceeds similarly to the proof of the reward estimation.
Let us call the argument of the minimum in Equation 16 as \(\underline{\xi}_k\). Using Lemma 11, we find \[\begin{align} V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^\pi(s_{1}^{k}) - &V_{\hat{\theta}^{\texttt{p}}, \hat{\theta}^{\texttt{r}}+\underline{\xi}_k,1}^\pi(s_{1}^{k})\\ &= \mathbb{E}_{(\tilde{s}_h)_{1\le h\le H}\sim \pi \mid \hat{\theta}^{\texttt{p}}, s_{1}^{k}}\left[\sum_{h=1}^H \frac{\mathbb{V}\mathrm{ar}_{\tilde{s}_h,\pi(\tilde{s}_h)}(r)}{2} B^\top M_{\tilde{\theta}^{\texttt{r}}-\hat{\theta}^{\texttt{r}}-\underline{\xi}_k}\varphi(\tilde{s}_h,\pi(\tilde{s}_h))\right] \\ &\le \mathbb{E}\left[\sum_{h=1}^H \frac{\mathbb{V}\mathrm{ar}_{\tilde{s}_h,\pi(\tilde{s}_h)}(r)}{2} \|\tilde{\theta}^{\texttt{r}}-\hat{\theta}^{\texttt{r}}-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}} \|(B^\top A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\right]\\ &\le \|\tilde{\theta}^{\texttt{r}}-\hat{\theta}^{\texttt{r}}-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}} \mathbb{E}\left[\sum_{h=1}^H \frac{\mathbb{V}\mathrm{ar}_{\tilde{s}_h,\pi(\tilde{s}_h)}(r)}{2} \|(B^\top A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\right]\\ &\le \|\tilde{\xi}_k-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}} \frac{\beta^{\texttt{r}}}{2} \mathbb{E}\Bigg[ \sum_{h=1}^H \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{p})^{-1}} \Bigg] \end{align}\] Then, \[\begin{align} \mathbb{E}_{\tilde{\xi}_k} \Big[V_{\hat{\theta}^{\texttt{p}},\tilde{\theta}^{\texttt{r}},1}^\pi(s_{1}^{k}) - &V_{\hat{\theta}^{\texttt{p}}, \hat{\theta}^{\texttt{r}}+\underline{\xi}_k,1}^\pi (s_{1}^{k}) \Big]\\ &\le \frac{\beta^{\texttt{r}}}{2} \mathbb{E}_{\tilde{\xi}_k}[\|\tilde{\xi}_k-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}] \mathbb{E}_{(\tilde{s}_h) \sim \pi \mid \hat{\theta}^{\texttt{p}}}\left[\sum_{h=1}^H \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\right]. \end{align}\] Also, \[\begin{align} \Big|\mathbb{E}_{\xi_k \mid \bar{O}_k^\texttt{c} }[V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\xi_k,1}(s_1^k)-&\underline{V}_{1}(s_1^k)]\Big|\\ \le \frac{\beta^{\texttt{r}}}{2}& \mathbb{E}_{\tilde{\xi}_k \mid \bar{O}_k^\texttt{c}}[\|\tilde{\xi}_k-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}] \mathbb{E}_{(\tilde{s}_h) \sim \pi \mid \hat{\theta}^{\texttt{p}}}\left[\sum_{h=1}^H \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\right]\\ \le \frac{\beta^{\texttt{r}}}{2}& \mathbb{E}_{\tilde{\xi}_k}[\|\tilde{\xi}_k-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}] \mathbb{E}_{(\tilde{s}_h) \sim \pi \mid \hat{\theta}^{\texttt{p}}}\left[\sum_{h=1}^H \|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\|_{(\bar{G}_{k}^\texttt{p})^{-1}}\right]. \end{align}\] We have a bound on the expected value of the sum of feature norms in the proof of Lemma 3. Also, \[\begin{align} \mathbb{E}_{\tilde{\xi}_k}[\|\tilde{\xi}_k-\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}] &\le \mathbb{E}_{\tilde{\xi}_k}[\|\tilde{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}] + \mathbb{E}_{\tilde{\xi}_k}[\|\underline{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}]\\ &\le \sqrt{\mathbb{E}_{\tilde{\xi}_k}[\|\tilde{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}^2]} + \sqrt{x_k d \log(d/\delta)}\\ &\le \sqrt{x_k d}+\sqrt{x_k d \log(d/\delta)} \end{align}\] The second line follows from Cauchy-Schwarz and by definition of \(\underline{\xi}_k\). The last line is due to the fact that \(x_k(\bar{G}_{k}^\texttt{p})^{-1} \sim \mathcal{N}(0,x_k I_d)\), which implies \(\|\tilde{\xi}_k\|_{\bar{G}_{k}^\texttt{p}}^2 \sim \mathcal{N}(0, d x_k)\). We conclude the proof by taking the sum of feature norms from the proof of Lemma 3.
We conclude that with probability at least \(1-2\delta\): \[\begin{align} \sum_{k=1}^K V_1^\star &(s_1^k) - V_{\hat{\theta}^{\texttt{p}},\hat{\theta}^{\texttt{r}}+\bar{\xi}_k,1}(s_1^k)\le \frac{\beta^{\texttt{r}}}{\Phi(-1)}(\sqrt{x_k d}+\sqrt{x_k d \log(d/\delta)})\\ &\Bigg[ \sqrt{\frac{3d}{\log(2)}\log\left(1+ \frac{\alpha^{\texttt{r}}\|\mathbb{A}\|_2^2 B_{\varphi,\mathbb{A}}^2}{\eta \log(2)}\right) \left(1+\frac{\alpha^{\texttt{r}}B_{\varphi, A} H}{\eta}\right) H d\log(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}}H)} \\ &+ \sqrt{K H d \log \left(1+\alpha^{\texttt{r}}\eta^{-1} B_{\varphi, \mathbb{A}} H K\right)\log(e/\delta^2)} \Bigg] \end{align}\]
We recall the important concentration of the maximum likelihood estimator for general bilinear exponential families (cf. Theorem 1 of [8]).
Theorem 2. Suppose \(\left\{\mathcal{F}_{t}\right\}_{t=0}^{\infty}\) is a filtration such that for each \(t\), (i) \(s_{t+1}\) is \(\mathcal{F}_{t}\)-measurable, (ii) \(\left(s_{t}, a_{t}\right)\) is \(\mathcal{F}_{t-1}\) measurable, and (iii) given \(\left(s_{t}, a_{t}\right), s_{t+1} \sim P_{\theta^{\texttt{p}}}^\texttt{p} \left(\cdot \mid s_{t}, a_{t}\right)\) according to the exponential family defined by Equation 1 . Let \(\hat{\theta}^{\texttt{p}}(k)\) be the penalized MLE defined by Equation 5 , and let \(Z^{\texttt{p}}_{s, a}(\theta)\) be strictly convex in \(\theta\) for all \((s, a).\) Then, for any \(\delta \in(0,1]\), with probability at least \(1-\delta\), the following holds uniformly over all \(n \in \mathbb{N}\) : \[\sum_{t=1}^{k} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{p}}(k), \theta^{\texttt{p}}\right)+\frac{\eta}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\mathbb{A}}^{2}-\frac{\eta}{2}\left\|\theta^{\texttt{p}}\right\|_{\mathbb{A}}^{2} \leq \log \left(\frac{C_{\mathrm{A}, k}^\texttt{p}}{\delta}\right),\] where \(C_{\mathrm{A}, k}^\texttt{p} = \left(\!\int_{\mathbb{R}^{d}} \exp\! \left(\!-\!\frac{\eta}{2}\left\|\theta^{\prime}\right\|_{\mathbb{A}}^{2}\right)\! d \theta^{\prime}\!\right)/\left(\!\int_{\mathbb{R}^d} \exp \left(-\sum_{t=1}^{k} \mathrm{KL}_{s_{t}, a_{t}}\left(\theta_{k}, \theta^{\prime}\right)\!-\!\frac{\eta}{2}\left\|\theta^{\prime}-\theta_{k}\right\|_{\mathbb{A}}^{2}\right)\! d \theta^{\prime}\!\right)\). Define \(G_{s, a}\stackrel{\rm def}{=}\left(\varphi(s, a)^{\top} A_{i}^{\top} A_{j} \varphi(s, a)\right)_{i, j \in [d]}\), we have \[C_{\mathbb{A}, k}^\texttt{p} \leq \operatorname{det}\left(I+\beta^{\texttt{p}}\eta^{-1} \mathbb{A}^{-1} \sum_{t=1}^{k} G_{s_{t}, a_{t}}\right),\] where \(\beta^{\texttt{p}}=\sup_{\theta, s, a} \lambda_{ \max } \left(\mathbb{C}_{s, a}^{ \theta }\left[ \psi \left( s^{\prime} \right) \right]\right)\).
A proof of this result can be found in the work [8]. We provide an almost similar proof for the concentration of rewards in the next section.
Corollary 1. The previous theorem implies a simple euclidean confidence region. Indeed, with probability at least \(1-\delta\), for all \(k\in \mathbb{N}\) \[\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\bar{G}_{n}^\texttt{p}}^{2} \le \frac{2}{\alpha^{\texttt{p}}} \beta^{\texttt{p}}(k,\delta),\] where \(\beta^{\texttt{p}}(k,\delta) \stackrel{\rm def}{=}\beta^{\texttt{p}}_{(k-1) H}(\delta)=\frac{2}{2} B_{A}^{2}+\log \left(2 C_{A,k}^\texttt{p} / \delta\right)\).
Proof. The result follows from the following simple calculations: \[\begin{align} \frac{1}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\bar{G}_{k}}^{2} &= \frac{(\alpha^{\texttt{p}})^{-1} \eta}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\mathbb{A}}^{2}+\sum_{\tau=1}^{k-1} \sum_{h=1}^{H} \frac{1}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{G_{s_h^\tau, a_{h}^{\tau}}}^{2}\\ &\leq (\alpha^{\texttt{p}})^{-1}\left(\frac{\eta}{2}\left\|\theta^{\texttt{p}}-\hat{\theta}^{\texttt{p}}(k)\right\|_{\mathbb{A}}^{2}+\sum_{\tau=1}^{k-1} \sum_{h=1}^{H} \mathrm{KL}_{s_{h}^{\tau}, a_{h}^{\tau}}\left(\theta_{k}, \theta \right) \right). \end{align}\] ◻
Theorem 3. Suppose \(\left\{\mathcal{F}_{t}\right\}_{t=0}^{\infty}\) is a filtration such that for each \(t\), (i) \(r(s_t,a_t)\) is \(\mathcal{F}_{t}\)-measurable, (ii) \(\left(s_{t}, a_{t}\right)\) is \(\mathcal{F}_{t-1}\) measurable, and (iii) given \(\left(s_{t}, a_{t}\right), r(s_t,a_t) \sim P_{\theta^{\texttt{r}}}^\texttt{r} \left(\cdot \mid s_{t}, a_{t}\right)\) according to the exponential family defined by 2 . Let \(\hat{\theta}^{\texttt{r}}(k)\) be the penalized MLE defined by Equation 6 , and let \(Z^{\texttt{r}}_{s, a}(\theta)\) be strictly convex in \(\theta\) for all \((s, a).\) Then, for any \(\delta \in(0,1]\), with probability at least \(1-\delta\), the following holds uniformly over all \(k \in \mathbb{N}\) : \[\sum_{t=1}^{k} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(k), \theta^{\texttt{r}}\right)+\frac{\eta}{2}\left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(k)\right\|_{\mathbb{A}}^{2}-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{\mathbb{A}}^{2} \leq \log \left(\frac{C_{\mathrm{A}, k}^\texttt{r}}{\delta}\right),\] where \(C_{\mathrm{A}, k}^\texttt{r}=\left(\!\int_{\mathbb{R}^{d}} \exp\! \left(\!-\!\frac{\eta}{2}\left\|\theta^{\prime}\right\|_{\mathbb{A}}^{2}\right)\! d \theta^{\prime}\!\right)/\left(\!\int_{\mathbb{R}^d} \exp \left(-\sum_{t=1}^{k} \mathrm{KL}_{s_{t}, a_{t}}\left(\theta_{k}, \theta^{\prime}\right)\!-\!\frac{\eta}{2}\left\|\theta^{\prime}-\theta_{k}\right\|_{\mathbb{A}}^{2}\right)\! d \theta^{\prime}\!\right)\). Define \(G_{s, a}\stackrel{\rm def}{=}\left(\varphi(s, a)^{\top} A_{i}^{\top} A_{j} \varphi(s, a)\right)_{i, j \in [d]}\), we have \[C_{\mathbb{A}, k} \leq \operatorname{det}\left(I+\beta^{\texttt{r}}\eta^{-1} \mathbb{A}^{-1} \sum_{t=1}^{k} G_{s_{t}, a_{t}}\right),\] where \(\beta^{\texttt{r}}:=\|B\|_2^2 \: \sup _{\theta, s, a} \mathbb{V}\mathrm{ar}_{s,a}^\theta(r)\).
Proof. We proceed similar to the proof of Theorem 1 in [28].
First, observe that by assuming strict convexity, the log-partition function \(Z^{\texttt{r}}_{s, a}\) becomes a Legendre function. Now for the conditional exponential family model, the KL divergence between \(\mathbb{P}_{\theta^{\texttt{r}}}^\texttt{r}\left(\cdot \mid s, a\right)\) and \(\mathbb{P}_{\theta^{\prime \texttt{r}}}^\texttt{r}\left(\cdot \mid s, a\right)\) can be expressed as a Bregman divergence associated to \(Z^{\texttt{r}}_{s, a}\) with the parameters reversed, i.e. \[\mathrm{KL}_{s, a}\left(\theta^{\texttt{r}}, \theta^{\texttt{r} \prime}\right):=\mathrm{KL}\left(P_{\theta^{\texttt{r}}}(\cdot \mid s, a), P_{\theta^{\texttt{r} \prime}}(\cdot \mid s, a)\right)=B_{Z_{s, a}}\left(\theta^{\texttt{r} \prime}, \theta^{\texttt{r}}\right).\] Now, for any \(\lambda \in \mathbb{R}^{d}\), we introduce the function \(B_{Z_{n, \alpha}, \theta^{\texttt{r}}}(\lambda)=B_{Z_{n, \alpha}}\left(\theta^{\texttt{r}}+\lambda, \lambda\right)\) and define \[M_{n}^{\lambda}=\exp \left(\lambda^{\top} S_{n}-\sum_{t=1}^{n} B_{Z_{n_{t}, a_{t}}, \theta^{\texttt{r}}}(\lambda)\right)\] where \(\forall i \leq d\), we denote \(\left(S_{n}\right)_{i}=\sum_{t=1}^{n}\left(r\left(s_{t},a_t \right)-\mathbb{E}_{s_{t}, a_{t}}^{\theta^{\texttt{r}}}\left[r\right]\right) B^{\top} A_{i} \varphi\left(s_{t}, a_{t}\right) .\) Note that \(M_{n}^{\lambda}>0\) and it is \(\mathcal{F}_{n^{-}}\) measurable. Furthermore, we have for all \((s, a)\), \[\begin{align} \mathbb{E}_{s, a}^{\theta^{\texttt{r}}}&\left[\exp \left(\sum_{i=1}^{d} \lambda_{i}\left(r\left(s_{t},a_t \right)-\mathbb{E}_{s_{t}, a_{t}}^{\theta^{\texttt{r}}}\left[r\right]\right) B^{\top} A_{i} \varphi\left(s_{t}, a_{t}\right)\right)\right] \\ &=\exp \left(-\lambda^{\top} \nabla Z^{\texttt{r}}_{s, a}\left(\theta^{\texttt{r}}\right)\right) \int_{\mathcal{S}} \exp \left(\sum_{i=1}^{d}\left(\theta^{\texttt{r}}_{i}+\lambda_{i}\right) B^\top A_{i} \varphi(s, a)-Z^{\texttt{r}}_{s, a}(\theta^{\texttt{r}})\right) d r \\ &=\exp \left(Z^{\texttt{r}}_{s, a}(\theta^{\texttt{r}}+\lambda)-Z^{\texttt{r}}_{s, a}(\theta^{\texttt{r}})-\lambda^{\top} \nabla Z^{\texttt{r}}_{s, a}(\theta^{\texttt{r}})\right)=\exp \left(B_{Z^{\texttt{r}}_{s, a}}(\theta^{\texttt{r}})\right) \end{align}\] This implies \(\mathbb{E}\left[\exp \left(\lambda^{\top} S_{n}\right) \mid \mathcal{F}_{n-1}\right]=\exp \left(\lambda^{\top} S_{n-1}+B_{Z_{n_{n}, a_{n}, \theta^{\texttt{r}}}}(\lambda)\right)\) thus \(\mathbb{E}\left[M_{n}^{\lambda} \mid \mathcal{F}_{n-1}\right]=M_{n-1}^{\lambda}\). Therefore \(\left\{M_{n}^{\lambda}\right\}_{n=0}^{\infty}\) is a non-negative martingale adapted to the filtration \(\left\{\mathcal{F}_{n}\right\}_{n=0}^{\infty}\) and actually satisfies \(\mathbb{E}\left[M_{n}^{\lambda}\right]=1\). For any prior density \(q(\theta)\) for \(\theta\), we now define a mixture of martingales \[\label{def:mixture95martingales} M_{n}=\int_{\mathbb{R}^{d}} M_{n}^{\lambda} q\left(\theta^{\texttt{r}}+\lambda\right) d \lambda\tag{18}\] Then \(\left\{M_{n}\right\}_{n=0}^{\infty}\) is also a non-negative martingale adapted to \(\left\{\mathcal{F}_{n}\right\}_{n=0}^{\infty}\) and in fact, \(\mathbb{E}\left[M_{n}\right]=1\).
Considering the prior density \(\mathcal{N}(0,(\eta \mathbb{A})^{-1})\), we obtain from 18 that \[\label{eq:mixture95martingales} M_{n}=c_{0} \int_{\mathbb{R}^{d}} \exp \left(\lambda^{\top} S_{n}-\sum_{t=1}^{n} B_{Z^{\texttt{r}}_{x_{t}, a_{t}},
\theta^{\texttt{r}}}(\lambda)-\frac{\eta}{2}\left\|\theta^{\texttt{r}}+\lambda\right\|_{\mathbb{A}}^{2}\right) d \lambda,\tag{19}\] where \(c_{0}=\frac{1}{\int_{\mathbb{R}^{d}} \exp
\left(-\frac{\eta}{2}\left\|\theta^{\prime}\right\|_{\Lambda}^{2}\right) d \theta^{\prime}} .\) We now introduce the function \(Z^{\texttt{r}}_{n}(\theta)=\sum_{t=1}^{n} Z^{\texttt{r}}_{s_{t}, a_{t}}(\theta) .\) Note
that \(Z^{\texttt{r}}_{n}\) is a also Legendre function and its associated Bregman divergence satisfies \[B_{Z^{\texttt{r}}_{n}}\left(\theta^{\prime},
\theta\right)=\sum_{t=1}^{n}\left(Z^{\texttt{r}}_{s_{t}, a_{t}}\left(\theta^{\prime}\right)-Z^{\texttt{r}}_{s_{t}, a_{t}}(\theta)-\left(\theta^{\prime}-\theta\right)^{\top} \nabla Z^{\texttt{r}}_{S_{t}, a_{t}}(\theta)\right)=\sum_{t=1}^{n}
B_{Z^{\texttt{r}}_{s_{t}, \alpha_{t}}}\left(\theta^{\prime}, \theta\right)\] Furthermore, we have \(\sum_{t=1}^{n} B_{Z^{\texttt{r}}_{s_{t}, \alpha_{t}}, \theta^{\texttt{r}}}(\lambda)=B_{Z^{\texttt{r}}_{n},
\theta^{\texttt{r}}}(\lambda)\). From the penalized likelihood formula 6 , recall that \[\forall i \leq d, \quad \sum_{t=1}^{n} \nabla_{i} Z^{\texttt{r}}_{s_{t},
a_{t}}\left(\hat{\theta}^{\texttt{r}}(k)\right)+\frac{\eta}{2} \nabla_{i}\|\hat{\theta}^{\texttt{r}}(k)\|_{\mathbb{A}}^{2}=\sum_{t=1}^{k} r_t B^{\top} A_{i} \varphi\left(s_{t}, a_{t}\right).\] This yields \[\label{eq:S95n} S_{k}=\sum_{t=1}^{k}\left(\nabla Z^{\texttt{r}}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(k)\right)-\nabla Z^{\texttt{r}}_{s_{t}, a_{t}}\left(\theta^{\texttt{r}}\right)\right)+\eta
\mathbb{A}\hat{\theta}^{\texttt{r}}(k)=\nabla Z^{\texttt{r}}_{k}\left(\hat{\theta}^{\texttt{r}}(k)\right)-\nabla Z^{\texttt{r}}_{k}\left(\theta^{\texttt{r}}\right)+\eta \mathbb{A}\hat{\theta}^{\texttt{r}}(k)\tag{20}\] We now obtain from 19 and 20 that \[\label{eq:9} M_{k}=c_{0} \cdot \exp \left(-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{A}^{2}\right)
\int_{\mathbb{R}^{d}} \exp \left(\lambda^{\top} x_{k}-B_{Z_{k}, \theta^{*}}(\lambda)+g_{k}(\lambda)\right) d \lambda,\tag{21}\] where we introduced \(g_{k}(\lambda)=\frac{\eta}{2}\left(2 \lambda^{\top}
\mathbb{A}\hat{\theta}^{\texttt{r}}(k)+\left\|\theta^{\texttt{r}}\right\|_{\mathbb{A}}^{2}-\left\|\theta^{\texttt{r}}+\lambda\right\|_{\mathbb{A}}^{2}\right)\) and \(x_{k}=\nabla
Z^{\texttt{r}}_{k}\left(\hat{\theta}^{\texttt{r}}(k)\right)-\nabla Z^{\texttt{r}}_{k}\left(\theta^{\texttt{r}}\right)\).
Now, note that \(\sup _{\lambda \in \mathbb{R}^{d}} g_{k}(\lambda)=\frac{\eta}{2}\left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(k)\right\|_{\mathbb{A}}^{2}\), where the supremum is attained at \(\lambda^{\star}=\hat{\theta}^{\texttt{r}}(k)-\theta^{\texttt{r}}\). We then have \[\begin{align} g_{k}(\lambda) &=g_{n}(\lambda)+\sup _{\lambda \in
\mathbb{R}^{\star}} g_{k}(\lambda)-g_{k}\left(\lambda^{\star}\right) \nonumber\\ &=\frac{\eta}{2}\left\|\hat{\theta}^{\texttt{r}}(k)-\theta^{\texttt{r}}\right\|_{\mathbb{A}}^{2}+\eta\left(\lambda-\lambda^{\star}\right)^{\top}
\mathbb{A}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)+\frac{\eta}{2}\left\|\theta^{\texttt{r}}+\lambda^{\star}\right\|_{A}^{2}-\frac{\eta}{2}\left\|\theta^{\texttt{r}}+\lambda\right\|_{\mathbb{A}}^{2} \nonumber\\
&=B_{Z^{\texttt{r}}_{0}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(k)\right)+\left(\lambda-\lambda^{\star}\right)^{\top} \nabla
Z^{\texttt{r}}_{0}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)+Z^{\texttt{r}}_{0}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{0}\left(\theta^{\texttt{r}}+\lambda\right) \label{eq:10}
\end{align}\tag{22}\] where we have introduced the Legendre function \(Z^{\texttt{r}}_{0}(\theta)=\frac{\eta}{2}\|\theta\|_{\mathbb{A}}^{2}\). We now have from 25 that
\[\begin{align} \sup _{\lambda \in \mathbb{R}^{d}}&\left(\lambda^{\top} x_{n}-B_{Z^{\texttt{r}}_{n}, \theta^{\texttt{r}}}(\lambda)\right) \\ &=B_{Z^{\texttt{r}}_{n},
\theta^{\texttt{r}}}^{\star}\left(x_{n}\right)=B_{Z^{\texttt{r}}_{n}, \theta^{\texttt{r}}}^{\star}\left(\nabla Z^{\texttt{r}}_{n}\left(\hat{\theta}^{\texttt{r}}(n)\right)-\nabla
Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}\right)\right)=B_{Z^{\texttt{r}}{n}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right).
\end{align}\] Further, any optimal \(\lambda\) must satisfy \[\nabla Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}+\lambda\right)-\nabla
Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}\right)=x_{n} \Longrightarrow \nabla Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}+\lambda\right)=\nabla Z^{\texttt{r}}_{n}\left(\hat{\theta}^{\texttt{r}}(n)\right).\] One possible solution is \(\lambda=\lambda^{\star}\). Now, since \(Z^{\texttt{r}}_{n}\) is strictly convex, the supremum is indeed attained at \(\lambda=\lambda^{\star}\). We then have
\[\begin{align} \lambda^{\top} x_{n} &- B_{Z^{\texttt{r}}_{n}, \theta^{\texttt{r}}}(\lambda) \nonumber\\ &=\lambda^{\top} x_{n}-B_{Z^{\texttt{r}}_{n},
\theta^{\texttt{r}}}(\lambda)+B_{Z^{\texttt{r}}_{n}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)-\left(\lambda^{\star} x_{n}-B_{Z^{\texttt{r}}_{n}, \theta^{\texttt{r}}}\left(\lambda^{\star}\right)\right) \nonumber\\
&=B_{Z^{\texttt{r}}_{n}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)+\left(\lambda-\lambda^{\star}\right)^{\top} \nabla Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)+B_{Z^{\texttt{r}}_{n},
\theta^{*}}\left(\lambda^{\star}\right)-B_{Z^{\texttt{r}}_{n}, \theta^{*}}(\lambda) \nonumber\\ & \quad-\left(\lambda-\lambda^{\star}\right)^{\top} \nabla Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}\right) \nonumber\\
&=B_{Z^{\texttt{r}}_{n}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)+\left(\lambda-\lambda^{\star}\right)^{\top} \nabla
Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)+Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{n}\left(\theta^{\texttt{r}}+\lambda\right) \label{eq:11}
\end{align}\tag{23}\]
Plugging Equation 22 and Equation 23 in Equation 21 , we obtain \[\begin{align} M_{n} &= c_{0} \cdot \exp \left(\sum_{j \in\{0, n\}} B_{Z^{\texttt{r}}_{j}}\left(\theta^{\texttt{r}}, \theta_{j}\right)-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{A}^{2}\right) \\ & \qquad \times \int_{\mathbb{R}^{d}} \exp \left(\sum_{j \in\{0, n\}}\left(\left(\lambda-\lambda^{\star}\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)+Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda\right)\right)\right) d \lambda \\ &= c_{0} \cdot \exp \left(\sum_{j \in\{0, n\}} B_{Z^{\texttt{r}}_{j}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{\AA}^{2}\right)\\ & \qquad \times \exp \left(-\sum_{j \in\{0, n\}}\left(\left(\theta^{\texttt{r}}+\lambda^{\star}\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)\right)\right) \\ & \qquad \times \int_{\mathbb{R}^{d}} \exp \left(\sum_{j \in\{0, n\}}\left(\left(\theta^{\texttt{r}}+\lambda\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda\right)\right)\right) d \lambda \\ &= \frac{c_{0}}{c_{\mathrm{n}}} \exp \left(\sum_{j \in\{0, n\}} B_{Z^{\texttt{r}}_{j}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{\mathbb{A}}^{2}\right)\\ &\qquad\times \frac{\int_{\mathbb{R}^{d}} \exp \left(\sum_{j \in\{0, n\}}\left(\left(\theta^{\texttt{r}}+\lambda\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda\right)\right)\right) d \lambda}{\int_{\mathbb{R}^{d}} \exp \left(\sum_{j \in\{0, n\}}\left(\left(\theta^{\prime}\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{\star}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\prime}\right)\right)\right) d \theta^{\prime}} \\ &= \frac{c_{0}}{c_{n}} \cdot \exp \left(B_{Z_{n}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)+B_{Z_{0}}\left(\theta^{\texttt{r}}, \hat{\theta}^{\texttt{r}}(n)\right)-\frac{\eta}{2}\left\| \theta^{\texttt{r}}\right\|_{\mathbb{A}}^{2}\right), \end{align}\]
where we introduced \(c_{n}=\frac{\exp \left(\sum_{j \in\{0, n\}}\left(\left(\theta^{\texttt{r}}+\lambda^{*}\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{*}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{*}\right)\right)\right)}{\int_{\mathbb{R}^{d}} \exp \left(\sum_{j \in\{0, n\}}\left(\left(\theta^{\prime}\right)^{\top} \nabla Z^{\texttt{r}}_{j}\left(\theta^{\texttt{r}}+\lambda^{*}\right)-Z^{\texttt{r}}_{j}\left(\theta^{\prime}\right)\right)\right) d \theta^{\prime}} .\) Since \(\lambda^{\star}=\hat{\theta}^{\texttt{r}}(n)-\theta^{\texttt{r}}\), we have \[c_{n}=\frac{1}{\int_{\mathbb{R}^{d}} \exp \left(-\sum_{j \in\{0, n\}} B_{Z^{\texttt{r}}_{j}}\left(\theta^{\prime}, \theta^{\texttt{r}}+\lambda^{\star}\right)\right) d \theta^{\prime}}=\frac{1}{\int_{\mathbb{R}^{d}} \exp \left(-\sum_{t=1}^{n} B_{Z_{s_{t}, a_{t}}}\left(\theta^{\prime}, \hat{\theta}^{\texttt{r}}(n)\right)-\frac{\eta}{2}\left\|\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right\|_{\mathbb{A}^{\prime}}^{2}\right) d \theta^{\prime}}\] Therefore, we have from \((5)\) that \[C_{A, n}:=\frac{c_{n}}{c_{0}}=\frac{\int_{\mathbb{R}^{d}} \exp \left(-\frac{\eta}{2}\left\|\theta^{\prime}\right\|_{\mathbb{A}}^{2}\right) d \theta^{\prime}}{\int_{\mathbb{R}^{d}} \exp \left(-\sum_{t=1}^{n} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(n), \theta^{\prime}\right)-\frac{\eta}{2}\left\|\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right\|_{\mathbb{A}}^{2}\right) d \theta^{\prime}}\] An application of Markov’s inequality now yields \[\mathbb{P}\left[\sum_{t=1}^{n} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(n), \theta^{\texttt{r}}\right) \! + \! \frac{\eta}{2}\left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(n)\right\|_{\mathbb{A}}^{2} \! - \! \frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{\mathbb{A}}^{2} \geq \! \log \! \left( \! \frac{C_{A, n}}{\delta} \! \right) \! \right] \! \!= \! \mathbb{P}\left[M_{n} \geq \frac{1}{\delta}\right] \leq \delta \mathbb{E}\left[M_{n}\right] \!= \! \delta\]
Let \(N\) be a stopping time with respect to the filtration \(\left\{\mathcal{F}_{n}\right\}_{n=0}^{\infty}\). Now, by the martingale convergence theorem, \(M_{\infty}=\lim _{n \rightarrow \infty} M_{n}\) is almost surely well-defined, and thus \(M_{N}\) is well-defined as well irrespective of whether \(N<\infty\) or not. Let \(Q_{n}=M_{\min \{N, n\}}\) be a stopped version of \(\left\{M_{n}\right\}_{n}\). Then an application of Fatou’s lemma yields \[\mathbb{E}\left[M_{N}\right]=\mathbb{E}\left[\liminf _{n \rightarrow \infty} Q_{n}\right] \leq \liminf _{n \rightarrow \infty} \mathbb{E}\left[Q_{n}\right]=\liminf _{n \rightarrow \infty} \mathbb{E}\left[M_{\min \{N, n\}}\right] \leq 1,\] since the stopped martingale \(\left\{M_{\min \{N, n\}}\right\}_{n \geq 1}\) is also a martingale. Therefore, by the properties of \(M_{n},(12)\) also holds for any random stopping time \(N<\infty\). To complete the proof, we now employ a random stopping time construction as in Abbasi-Yadkori et al. (2011)
We define a random stopping time \(N\) by \[N=\min \left\{n \geq 1: \sum_{t=1}^{n} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(n),
\theta^{\texttt{r}}\right)+\frac{\eta}{2}\left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(n)\right\|_{A}^{2}-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{A}^{2} \geq \log \left(\frac{C_{A}, n}{\delta}\right)\right\}\] with \(\min \{\emptyset\}:=\infty\) by convention. We then have \[\mathbb{P}\left[\exists n \geq 1, \sum_{t=1}^{n} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(n),
\theta^{\texttt{r}}\right)+\frac{\eta}{2}\left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(n)\right\|_{\mathrm{A}}^{2}-\frac{\eta}{2}\left\|\theta^{\texttt{r}}\right\|_{\mathrm{A}}^{2} \geq \log \left(\frac{C_{A,
n}}{\delta}\right)\right]=\mathbb{P}[N<\infty] \leq \delta,\] which concludes the proof of the first part.
Proof of second part: upper bound on \(C_{A, n}\). First, we have for some \(\tilde{\theta} \in\left[\hat{\theta}^{\texttt{r}}(n), \theta^{\prime}\right]_{\infty}\) that
\[\label{eq:KL95reward} \mathrm{KL}_{s, a}\left(\hat{\theta}^{\texttt{r}}(n), \theta^{\prime}\right)=\frac{1}{2} \sum_{i,
j=1}^{d}\left(\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right)_{i} \mathbb{V}\mathrm{ar}_{s,a}^\theta (r) \times \varphi(s,a)^\top A_i^\top B B^\top A_j \varphi(s,a) \left(\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right)_{j}\tag{24}\]
Now 24 implies that \[\begin{align} \sum_{t=1}^{n} \mathrm{KL}_{s_{t}, a_{t}}\left(\hat{\theta}^{\texttt{r}}(n), \theta^{\prime}\right) &\leq \frac{\beta}{2} \sum_{t=1}^{n} \sum_{i,
j=1}^{d}\left(\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right)_{i} \varphi\left(s_{t}, a_{t}\right)^{\top} A_{i}^{\top} A_{j} \varphi\left(s_{t}, a_{t}\right)\left(\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right)_{j}\\
&=\frac{\beta^{\texttt{r}}}{2}\left\|\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right\|_{\sum_{t=1}^{n}}^{2} G_{s_{t}, a_{t}},
\end{align}\] where \(\beta^{\texttt{r}}:=\lambda_{\max }\left(B B^\top \right) \times \sup _{\theta, s, a} \mathbb{V}\mathrm{ar}_{s,a}^\theta(r)\) and \(\forall i, j \leq d, \:\left(G_{s,
a}\right)_{i, j}:=\varphi(s, a)^{\top} A_{i}^{\top} A_{j} \varphi(s, a) .\) Therefore, we obtain \[\begin{align}
C_{\mathrm{A}, n} & \leq \frac{\int_{\mathbb{R}^{d}} \exp \left(-\frac{\eta}{2}\left\|\theta^{\prime}\right\|_{\mathrm{A}}^{2}\right) d \theta^{\prime}}{\int_{\mathbb{R}^{d}} \exp
\left(-\frac{1}{2}\left\|\theta^{\prime}-\hat{\theta}^{\texttt{r}}(n)\right\|_{\left(\beta^{\texttt{r}}\sum_{t=1}^{n} G_{s_{t}, a_{t}}+\eta \mathrm{A}\right)}^{2}\right) d \theta^{\prime}} \\
&=\frac{(2 \pi)^{d / 2}}{\operatorname{det}(\eta \mathbb{A})^{1 / 2}} \times \frac{\operatorname{det}\left(\beta^{\texttt{r}}\sum_{t=1}^{n} G_{s_{t}, a_{t}}+\eta \mathbb{A}\right)^{1 / 2}}{(2 \pi)^{d /
2}}=\operatorname{det}\left(I+\beta^{\texttt{r}}\eta^{-1} \mathbb{A}^{-1} \sum_{t=1}^{n} G_{s_{t}, a_{t}}\right),
\end{align}\] which completes the proof of the second part. ◻
Corollary 2. Here also, the theorem implies a euclidean control. With probability at least \(1-\delta\) uniformly over \(k\in \mathbb{N}\) \[\left\|\theta^{\texttt{r}}-\hat{\theta}^{\texttt{r}}(k)\right\|_{\bar{G}_{k}^\texttt{r}}^{2} \le \frac{2}{\alpha^{\texttt{r}}} \beta^{\texttt{r}}(k,\delta),\] where \(\beta^{\texttt{r}}(k,\delta) \stackrel{\rm def}{=}\beta^{\texttt{r}}_{(k-1) H}(\delta)=\frac{2}{2} B_{A}^{2}+\log \left(2 C_{A,k}^\texttt{r} / \delta\right)\).
Lemma 5 (Gaussian concentration, ref. Appendix A in [25]). Let \(\overline{\xi}_{tk} \sim \mathcal{N}(0, H\nu_k(\delta) \Sigma_{tk}^{-1})\). For any \(\delta > 0\), with probability \(1- \delta\) \[\begin{align} \|\overline{\xi}_{tk}\|_{\Sigma_{tk}} \leq c \sqrt{H d \nu_k(\delta) \log(d/\delta)} \end{align}\] for some absolute constant \(c\).
Lemma 6 (Gaussian anti-concentration, ref. Appendix A in [25]). Let \(\xi \sim \mathcal{N}(0,I_d)\), for any \(u\in \mathbb{R}^d\) with \(\|u\|=1\), we have: \[\mathbb{P}(u^\top\xi\ge 1)\ge \Phi(-1),\] where \(\Phi\) is the normal CDF.
Thanks to lower bounds on the error function, we have the following bound on the probability of anti-concentration \(\Phi(-1) \ge 1/(4 \sqrt{e \pi})\).
For any function \(f: \mathcal{X} \rightarrow \mathbb{R}\), we define its span as \(\mathbb{S}(f):=\max _{x \in \mathcal{X}} f(x)-\min _{x \in \mathcal{X}} f(x) .\) For a probability distribution \(P\) supported on the set \(\mathcal{X}\), let \(\mathbb{E}_{P}[f]:=\mathbb{E}_{P}[f(X)]\) and \(\mathbb{V}_{P}[f]:=\mathbb{V}_{P}[f(X)]=\mathbb{E}_{P}\left[f(X)^{2}\right]-\) \(\mathbb{E}_{P}[f(X)]^{2}\) denote the mean and variance of the random variable \(f(X)\), respectively. We now state the following transportation inequalities, which can be adapted from [39] (Lemma 4.18).
Lemma 7. (Transportation inequalities) Assume \(f\) is such that \(S(f)\) and \(\mathbb{V}_{P}[f]\) are finite. Then it holds \[\begin{align} \forall Q \ll P, \quad \mathbb{E}_{Q}[f]-\mathbb{E}_{P}[f] &\leq \sqrt{2 \mathbb{V}_{P}[f] \mathrm{KL}(Q, P)}+\frac{2 S(f)}{3} \mathrm{KL}(Q, P) \\ \forall Q \ll P, \quad \mathbb{E}_{P}[f]-\mathbb{E}_{Q}[f] &\leq \sqrt{2 \mathbb{V}_{P}[f] \mathrm{KL}(Q, P)} \end{align}\]
For a Legendre function \(F: \mathbb{R}^{d} \rightarrow \mathbb{R}\), the Bregman divergence between \(\theta^{\prime}, \theta \in \mathbb{R}^{d}\) associated with \(F\) is defined as \(B_{F}\left(\theta^{\prime}, \theta\right):=F\left(\theta^{\prime}\right)-F(\theta)-\left(\theta^{\prime}-\theta\right)^{\top} \nabla F(\theta) .\) Now, for any fixed \(\theta \in \mathbb{R}^{d}\), we introduce the function \[B_{F, \theta}(\lambda):=B_{F}(\theta+\lambda, \lambda)=F(\theta+\lambda)-F(\theta)-\lambda^{\top} \nabla F(\theta) .\] It then follows that \(B_{F, \theta}\) is a convex function, and we define its dual as \[B_{F, \theta}^{\star}(x)=\sup _{\lambda \in \mathbb{R}^{d}}\left(\lambda^{\top} x-B_{F, \theta}(\lambda)\right)\] We have for any \(\theta, \theta^{\prime} \in \mathbb{R}^{d}\): \[\label{eq:Bregman95duality} B_{F}\left(\theta^{\prime}, \theta\right)=B_{F, \theta^{\prime}}^{\star}\left(\nabla F(\theta)-\nabla F\left(\theta^{\prime}\right)\right)\tag{25}\] To see this, we observe that \[\begin{align} B_{F, \theta^{\prime}}^{\star}&\left(\nabla F(\theta)-\nabla F\left(\theta^{\prime}\right)\right) \\ &= \sup _{\lambda \in \mathbb{R}^{d}} \lambda^{\top}\left(\nabla F(\theta)-\nabla F\left(\theta^{\prime}\right)\right)-\left[F\left(\theta^{\prime}+\lambda\right)-F\left(\theta^{\prime}\right)-\lambda^{\top} \nabla F\left(\theta^{\prime}\right)\right] \\ &= \sup _{\lambda \in \mathbb{R}^{d}} \lambda^{\top} \nabla F(\theta)-F\left(\theta^{\prime}+\lambda\right)+F\left(\theta^{\prime}\right) . \end{align}\]
Now an optimal \(\lambda\) must satisfy \(\nabla F(\theta)=\nabla F\left(\theta^{\prime}+\lambda\right)\). One possible choice is \(\lambda=\theta-\theta^{\prime}\). Since, by definition, \(F\) is strictly convex, the supremum will indeed be attained at \(\lambda=\theta-\theta^{\prime}.\) Plugin-in this value, we obtain \[B_{F, \theta^{\prime}}^{\star}\left(\nabla F(\theta)-\nabla F\left(\theta^{\prime}\right)\right)=\left(\theta-\theta^{\prime}\right)^{\top} \nabla F(\theta)-F(\theta)+F\left(\theta^{\prime}\right)=B_{F}\left(\theta^{\prime}, \theta\right) .\] Note that 25 holds for any convex function \(F\). Only difference is that, in this case, \(B_{F}(\cdot, \cdot)\) will not correspond to the Bregman divergence.
In this section, we detail some useful results related to exponential families in our model.
Lemma 8. (Gradients) We provide the derivatives of the log-partitions in closed form. As usual with exponential families, these are intimately linked to moments of the random variable. We have: \[\left(\nabla_{i} Z^{\texttt{p}}_{s, a}\right)(\theta) = \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]^{\top} A_{i} \varphi(s, a).\] And \[\left(\nabla_{i} Z^{\texttt{r}}_{s, a}\right)(\theta) =\mathbb{E}_{s, a}^{\theta}\left[r\right]\: B^{\top} A_{i} \varphi(s, a).\]
Proof. We prove the lemma as follows \[\begin{align} \left(\nabla_{i} Z^{\texttt{p}}_{s, a}\right)(\theta) &=\int_{\mathcal{S}} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a) \frac{ \exp \left(\sum_{i=1}^{d} \theta_{i} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right)}{\int_{\mathcal{S}} \exp \left(\sum_{i=1}^{d} \theta_{t} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right) d s^{\prime}} d s^{\prime} \\ &=\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]^{\top} A_{i} \varphi(s, a)\\ \left(\nabla_{i} Z^{\texttt{r}}_{s, a}\right)(\theta) &=\int_{\mathcal{S}} r B^{\top} A_{i} \varphi(s, a) \frac{ \exp \left(r \sum_{i=1}^{d} \theta_i B^{\top} A_{i} \varphi(s, a)\right)}{\int_{\mathcal{S}} \exp \left(r \sum_{i=1}^{d} \theta_i B^{\top} A_{i} \varphi(s, a)\right) d r} d r \\ &=\mathbb{E}_{s, a}^{\theta}\left[r\right]\: B^{\top} A_{i} \varphi(s, a) \end{align}\] ◻
Lemma 9. (Hessians)The entries of the Hessians of the log partition functions are given by \[\left(\nabla_{i, j}^{2} Z^{\texttt{p}}_{s, a}\right)(\theta) = \varphi(s, a)^{\top} A_{i}^{\top} \mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] A_{j} \varphi(s, a),\] where \(\mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] \stackrel{\rm def}{=}\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right) \psi\left(s^{\prime}\right)^{\top}\right]-\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top}\right]\).
Similarly, \[\left(\nabla_{i, j}^{2} Z^{\texttt{r}}_{s, a}\right)(\theta) = \mathbb{V}\mathrm{ar}_{s,a}^\theta (r) \times \varphi(s,a)^\top A_i^\top B B^\top A_j \varphi(s,a),\] where \(\mathbb{V}\mathrm{ar}_{s,a}^\theta (r) \stackrel{\rm def}{=}\left(\mathbb{E}_{s, a}^{\theta}\left[r^2\right]-\mathbb{E}_{s, a}^{\theta}\left[r\right]^2\right)\) is the variance of the reward under \(\theta\).
Proof. We prove these formulas by differentiating under the integral sign. \[\begin{align} \left(\nabla_{i, j}^{2} Z^{\texttt{p}}_{s, a}\right)(\theta) &= \int_{\mathcal{S}} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a) \psi\left(s^{\prime}\right)^{\top} A_{j} \varphi(s, a) \frac{\exp \left(\sum_{i=1}^{d} \theta_{i} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right)}{\int_{\mathcal{S}} \exp \left(\sum_{i=1}^{d} \theta_{i} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right) d s^{\prime}} d s^{\prime} \\ &- \int_{\mathcal{S}} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a) \frac{ \exp \left(\sum_{i=1}^{d} \theta_{i} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right)}{\int_{\mathcal{S}} \exp \left(\sum_{i=1}^{d} \theta_{i} \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right) d s^{\prime}} d s^{\prime}\left(\nabla_{j} Z_{s, a}\right)(\theta) \\ &= \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a) \psi\left(s^{\prime}\right)^{\top} A_{j} \varphi(s, a)\right] \\ &-\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)\right] \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top} A_{j} \varphi(s, a)\right] \\ =& \varphi(s, a)^{\top} A_{i}^{\top}\left(\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right) \psi\left(s^{\prime}\right)^{\top}\right]-\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top}\right]\right) A_{j} \varphi(s, a) \\ =& \varphi(s, a)^{\top} A_{i}^{\top} \mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] A_{j} \varphi(s, a), \end{align}\]
where we introduce in the last line the \(p \times p\) covariance matrix given by \[\mathbb{C}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]=\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right) \psi\left(s^{\prime}\right)^{\top}\right]-\mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right] \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)^{\top}\right]\]
The proof of the form of the Hessian for the reward partition function follows the same steps as above. ◻
Lemma 10. (KL Divergences)For any two \(\theta, \theta^{\prime}\) and for some pair \((s, a)\), \[\exists \tilde{\theta} \in\left[\theta, \theta^{\prime}\right]_{\infty}, \quad \mathrm{KL}\left(P_{\theta}^\texttt{p} (\cdot \mid s, a), P_{\theta^{\prime}}^\texttt{p} (\cdot \mid s, a)\right) = \frac{1}{2}\left(\theta-\theta^{\prime}\right)^{\top}\left(\nabla^{2} Z^{\texttt{p}}_{s, a}\right)(\tilde{\theta})\left(\theta-\theta^{\prime}\right),\] where \(\left[\theta, \theta^{\prime}\right]_{\infty}\) denotes the \(d\)-dimensional hypercube joining \(\theta\) to \(\theta^{\prime}\).
Similarly \[\exists \tilde{\theta} \in\left[\theta, \theta^{\prime}\right]_{\infty}, \quad \mathrm{KL}\left(P_{\theta}^\texttt{r}(\cdot \mid s, a), P_{\theta^{\prime}}^\texttt{r} (\cdot \mid s, a)\right) = \frac{1}{2}\left(\theta-\theta^{\prime}\right)^{\top}\left(\nabla^{2} Z^{\texttt{r}}_{s, a}\right)(\tilde{\theta})\left(\theta-\theta^{\prime}\right).\]
Proof. We start by writing: \[\log \left(\frac{P_{\theta}^\texttt{p} \left(s^{\prime} \mid s, a\right)}{P_{\theta^{\prime}}^\texttt{p} \left(s^{\prime} \mid s, a\right)}\right) =\sum_{i=1}^{d}\left(\theta_{i}-\theta_{i}^{\prime}\right) \psi\left(s^{\prime}\right)^{\top} A_{i} \varphi(s, a)-Z^{\texttt{p}}_{s, a}(\theta)+Z^{\texttt{p}}_{s, a}\left(\theta^{\prime}\right),\] then \[\begin{align} \mathrm{KL}\left(P_{\theta}^\texttt{p} (\cdot \mid s, a), P_{\theta^{\prime}}^\texttt{p} (\cdot \mid s, a)\right) &=\sum_{i=1}^{d}\left(\theta_{i}-\theta_{i}^{\prime}\right) \mathbb{E}_{s, a}^{\theta}\left[\psi\left(s^{\prime}\right)\right]^{\top} A_{i} \varphi(s, a)-Z^{\texttt{p}}_{s, a}(\theta)+Z^{\texttt{p}}_{s, a}\left(\theta^{\prime}\right) \\ &=\frac{1}{2}\left(\theta-\theta^{\prime}\right)^{\top}\left(\nabla^{2} Z^{\texttt{p}}_{s, a}\right)(\tilde{\theta})\left(\theta-\theta^{\prime}\right), \end{align}\] where in the last line, we used, by a Taylor expansion, that \(Z_{s,a} \left( \theta^{\prime} \right) = Z_{s, a} (\theta)+\left(\nabla Z_{s, a}(\theta)\right)^{\top}\left(\theta^{\prime}-\theta\right)+\frac{1}{2}(\theta-\) \(\left.\theta^{\prime}\right)^{\top}\left(\nabla^{2} Z_{s, a}(\tilde{\theta})\right)\left(\theta-\theta^{\prime}\right)\) for some \(\tilde{\theta} \in\left[\theta, \theta^{\prime}\right]_{\infty}\).
The proof of the form of the KL divergence for the reward follows the same steps as above. ◻
Lemma 11. We provide a closed-form formula for the difference of expected rewards under two distinct parameters: \[\exists \theta_3 \in [\theta_1, \theta_2], \qquad \mathbb{E}_{s, a}^{\theta_1}\left[r\right] = \mathbb{E}_{s, a}^{\theta_2}\left[r\right] + \frac{ \mathbb{V}\mathrm{ar}_{s,a}^{\theta_3} (r)}{ 2 } B^\top M_{\theta_1 - \theta_2}\varphi(s,a)\]
Proof. Let’s recall the gradient of the reward log partition function: \[\left(\nabla_{i} Z^{\texttt{r}}_{s, a}\right)(\theta^{\texttt{r}}) =\mathbb{E}_{s, a}^{\theta^{\texttt{r}}}\left[r\right]\: B^{\top} A_{i} \varphi(s, a)\] then for all \(\theta^{\texttt{r} \prime}\) we have: \[\mathbb{E}_{s, a}^{\theta^{\texttt{r}}}\left[r\right] = \frac{1}{ B^{\top} M_{\theta^{\texttt{r} \prime}} \varphi(s, a)} \nabla_{i} Z^{\texttt{r}}_{s, a}(\theta^{\texttt{r}})^\top \theta^{\texttt{r} \prime}\] Let \(\theta_1 , \theta_2 \in \mathbb{R}^d\), using Taylor-Cauchy’s formula there exists \(\theta_3 \in [\theta_1, \theta_2]\) such that: \[\begin{align} \mathbb{E}_{s, a}^{\theta_1}\left[r\right] = \mathbb{E}_{s, a}^{\theta_2}\left[r\right] + \frac{1}{ 2 B^{\top} M_{\theta^{\texttt{r} \prime}} \varphi(s, a)} (\theta_1 - \theta_2)^\top \nabla^2 Z^{\texttt{r}}_{s, a}(\theta_3)^\top \theta^{\texttt{r} \prime} \end{align}\] We know that \(\left(\nabla_{i, j}^{2} Z^{\texttt{r}}_{s, a}\right)(\theta) = \mathbb{V}\mathrm{ar}_{s,a}^\theta (r) \times \varphi(s,a)^\top A_i^\top B B^\top A_j \varphi(s,a)\), choosing \(\theta^{\texttt{r} \prime}= \theta_1 - \theta_2\) we find: \[\mathbb{E}_{s, a}^{\theta_1}\left[r\right] = \mathbb{E}_{s, a}^{\theta_2}\left[r\right] + \frac{ \mathbb{V}\mathrm{ar}_{s,a}^{\theta_3} (r)}{ 2 } B^\top M_{\theta_1 - \theta_2}\varphi(s,a).\] ◻
Here we show a lemma that is popular for regret control in linear MDPs and linear Bandits.
First, consider the notations: \(G_{s, a} :=(\varphi(s, a)^{\top} A_{i}^{\top} A_{j} \varphi(s, a))_{1\le i,j \le d} \:\), \(\quad \bar{G}_{n}^\texttt{e} \equiv \bar{G}_{(k-1) H}^\texttt{e}:=G_{n}+(\alpha^\texttt{e})^{-1} \eta A \:\), and \(G_{n} \equiv G_{(k-1) H}:=\sum_{\tau=1}^{k-1} \sum_{h=1}^{H} G_{s_{s}^{\tau}, a_{h}^{\tau}}\). Where \(\texttt{e}\) represents either \(\texttt{r}\) or \(\texttt{p}\), we omit the superscript \(\texttt{e}\) w.l.o.g in the rest of this section.
Lemma 12. (Elliptical lemma and variant for bounded potentials) Let \(c\in \mathbb{R}^+\), we can bound the sum of feature norms as follows \[\sum_{t=1}^{T} \min\{c, \sum_{h=1}^{H}\left\|\bar{G}_n^{-1/2} G_{s,a} \bar{G}_n^{-1/2}\right\|\} \le \frac{c}{\log(1+c)} d \log \left(1+\alpha \eta^{-1} B_{\varphi, \mathbb{A}} n\right).\] where \(B_{\varphi, \mathbb{A}}:=\sup _{s, a}\left\|\mathbb{A}^{-1} G_{s, a}\right\|\).
Further, we have \[\sum_{t=1}^{T} \sum_{h=1}^{H}\left\|\bar{G}_n^{-1/2} G_{s,a} \bar{G}_n^{-1/2}\right\| \le 2d \log \left(1+\alpha \eta^{-1} B_{\varphi, \mathbb{A}} n\right) + \frac{3 d H}{\log (2)} \log \left(1+\frac{\alpha \|A\|_2^2 B_{\varphi, \mathbb{A}}^{2}}{\eta \log (2)}\right)\]
Proof. First we have \[\begin{align} \|\bar{G}_n^{-1/2} G_{s,a} \bar{G}_n^{-1/2}\| &= \sqrt{\operatorname{tr}(\bar{G}_n^{-1/2} G_{s,a} \bar{G}_n^{-1/2}\bar{G}_n^{-1/2} G_{s,a} \bar{G}_n^{-1/2})}\\ &\le \operatorname{tr}(\bar{G}_n^{-1/2} G_{s,a} \bar{G}_n^{-1/2}) = \operatorname{tr}(\bar{G}_n^{-1} G_{s,a}) = \operatorname{tr}(\boldsymbol{a}_h^\top \bar{G}_n^{-1}\boldsymbol{a}_h) \end{align}\] the last line is because \(G_{s,a} = \boldsymbol{a}_h\boldsymbol{a}_h^\top\), where \(\boldsymbol{a}_h = (A_i\varphi(s_h,a_h))_{i\in[d]}\).
First result. Consider \(h\in[H]\), denote \((\lambda_{h,i}){i\in[d]}\) the eigenvalues of \(\boldsymbol{a}_h^\top \bar{G}_n^{-1}\boldsymbol{a}_h\). \(\bar{G}_n\) is positive definite hence \(\lambda_{h,i} > 0, \forall h,i\), then \[\begin{align} \min\{c,\sum_{h=1}^H \operatorname{tr}(\boldsymbol{a}_h^\top \bar{G}_n^{-1}\boldsymbol{a}_h)\} &= \min\{c,\sum_{h=1}^H \sum_{i=1}^d \lambda_{h,i}\}\\ &\le \frac{c}{\log(1+c)} \sum_{h=1}^H \sum_{i=1}^d \log(1+\lambda_{h,i}) \\ &\le \frac{c}{\log(1+c)} \sum_{h=1}^H \log(\prod_{i=1}^d 1+\lambda_{h,i}) = \frac{c}{\log(1+c)} \sum_{h=1}^H \log \operatorname{det}(I + \boldsymbol{a}_h^\top \bar{G}_n^{-1}\boldsymbol{a}_h)\\ &\le \frac{c}{\log(1+c)}\log\left(\frac{\operatorname{det}(\bar{G}_n + \sum_{h=1}^H G_{s_h,a_h})}{\operatorname{det}(\bar{G}_n)}\right) \end{align}\] where the last line follows from the matrix determinant lemma: \[\operatorname{det}\left(\bar{G}_n + \boldsymbol{a}_h \boldsymbol{a}_h^\top\right) = \operatorname{det}(I + \boldsymbol{a}_h^\top \bar{G}_n^{-1}\boldsymbol{a}_h)\operatorname{det}(\bar{G}_n)\] Therefore: \[\sum_{t=1}^{T} \min\{c, \sum_{h=1}^{H}\left\|\bar{G}_{n}^{-1} G_{s_{h}^{t}, a_{h}^{t}}\right\|\} \le \frac{c}{\log(1+c)} \sum_{t=1}^{T} \log \frac{\operatorname{det}\left(\bar{G}_{n+H}\right)}{\operatorname{det}\left(\bar{G}_{n}\right)},\]
We can now control the R.H.S. of the above equation, as \[\begin{align} \sum_{t=1}^{T} \log& \frac{\operatorname{det}\left(\bar{G}_{n+H}\right)}{\operatorname{det}\left(\bar{G}_{n}\right)} = \sum_{t=1}^{T} \log \frac{\operatorname{det}\left(\bar{G}_{t H}\right)}{\operatorname{det}\left(\bar{G}_{(t-1) H}\right)}=\log \frac{\operatorname{det}\left(\bar{G}_{T H}\right)}{\operatorname{det}\left(\bar{G}_{0}\right)}\\ &= \log \frac{\operatorname{det}\left(\bar{G}_{N}\right)}{\operatorname{det}\left((\alpha^{\texttt{p}})^{-1} \eta \mathbb{A}\right)}=\log \operatorname{det}\left(I+\alpha \eta^{-1} \mathrm{~A}^{-1} G_{N}\right)\\ &\le d \log\left(1+\frac{\alpha^{\texttt{p}}\eta^{-1}}{d} \operatorname{tr}\left(\mathbb{A}^{-1} G_{n}\right)\right) \\ &\le d \log \left(1+\alpha^{\texttt{p}}\eta^{-1} B_{\varphi, \mathbb{A}} n\right) \end{align}\] This concludes the proof of the first result.
Second result. First, we have \(\sup _{s, a}\left\|G_{s, a}\right\|_2 \le \|A\|_2 B_{\varphi, \mathbb{A}}\).
Fix an episode \(k\in [K], n = (k-1)H\), using Lemma 13, we know that the number of times \(h\in [h]\) such that \(\: \left\|\bar{G}_{n}^{-1} G_{s_h, a_h}\right\|\ge 1\) is smaller than \(\frac{3 d}{\log (2)} \log \left(1+\frac{\alpha (\|A\|_2 B_{\varphi, \mathbb{A}})^{2}}{\eta \log (2)}\right)\). Let us call \(\mathcal{T}_{k}:=\{h\in [H] \left\|\bar{G}_{(k-1)h}^{-1} G_{s_h, a_h}\right\|\le 1\}\), then \[\begin{align} \sum_{t=1}^{T} \sum_{h=1}^{H}\left\|\bar{G}_{n}^{-1} G_{s_{h}^{t}, a_{h}^{t}}\right\| \le \frac{3 d}{\log (2)} \log \left(1+\frac{\alpha \|A\|_2^2 B_{\varphi, \mathbb{A}}^{2}}{\eta \log (2)}\right) + \sum_{h\in \mathcal{T}_{k}} \min\{1, \left\|\bar{G}_{n}^{-1} G_{s_{h}^{t}, a_{h}^{t}}\right\|\} \end{align}\] the sum of the right hand side is similar to the first result. Although the sum is not contiguous, the previous bound holds since if \(h_1 < h_2, \operatorname{det}(\bar{G}_{n+h_1})\le \operatorname{det}(\bar{G}_{n+h_2})\), this concludes the proof. ◻
Remark 8. We can also write from the lemma in terms of \(\left\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\right\|_{(\bar{G}_{k}^\texttt{r})^{-1}}\) by skipping the norm upper bound at the beginning of the proof: \[\sum_{t=1}^{T} \min\{c, \sum_{h=1}^{H}\left\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\right\|_{(\bar{G}_{k}^\texttt{r})^{-1}}\} \le \frac{c}{\log(1+c)} d \log \left(1+\alpha \eta^{-1} B_{\varphi, \mathbb{A}} n\right).\] and \[\begin{align} \sum_{t=1}^{T} \sum_{h=1}^{H}\left\|(A_i\varphi(\tilde{s}_h,\pi(\tilde{s}_h)))_{1\le i\le d}\right\|_{(\bar{G}_{k}^\texttt{r})^{-1}} \le& 2d \log \left(1+\alpha \eta^{-1} B_{\varphi, \mathbb{A}} n\right)\\ &+ \frac{3 d H}{\log (2)} \log \left(1+\frac{\alpha \|A\|_2^2 B_{\varphi, \mathbb{A}}^{2}}{\eta \log (2)}\right) \end{align}\]
Lemma 13. (Worst case elliptical potentials, adaptation of Exercise 19.3 [40] for matrices) Let \(V_{0}=\lambda I\) and \(a_{1}, \ldots, a_{n} \in \mathbb{R}^{d\times p}\) be a sequence of matrices with \(\left\|a_{t}\right\|_{2} \leq L\) for all \(t \in[n]\). Let \(V_{t}=V_{0}+\sum_{s=1}^{t} a_{s} a_{s}^{\top}\), then \[\left|\{t \in \mathbb{N}^*, \left\|a_{t}\right\|_{V_{t-1}^{-1}} \geq 1\}\right| \le \frac{3 d}{\log (2)} \log \left(1+\frac{L^{2}}{\lambda \log (2)}\right)\]
Proof. Let \(\mathcal{T}\) be the set of rounds \(t\) when \(\left\|a_{t}\right\|_{V_{t-1}^{-1}} \geq 1\) and \(G_{t}=V_{0}+\sum_{s=1}^{t} \mathbb{I}_{\mathcal{T}}(s) a_{s} a_{s}^{\top}\). Then \[\begin{align} \left(\frac{d \lambda+|\mathcal{T}| L^{2}}{d}\right)^{d} & \geq\left(\frac{\operatorname{trace}\left(G_{n}\right)}{d}\right)^{d} \\ & \geq \operatorname{det}\left(G_{n}\right) \\ &=\operatorname{det}\left(V_{0}\right) \prod_{t \in T}\left(1+\left\|a_{t}\right\|_{G_{t-1}^{-1}}^{2}\right) \\ & \geq \operatorname{det}\left(V_{0}\right) \prod_{t \in T}\left(1+\left\|a_{t}\right\|_{V_{t-1}^{-1}}^{2}\right) \\ & \geq \lambda^{d} 2^{|\mathcal{T}|} \end{align}\] where the third line follows from the matrix determinant lemma: \[\operatorname{det}\left(\bar{G}_n + \boldsymbol{a}_h \boldsymbol{a}_h^\top\right) = \operatorname{det}(I + \boldsymbol{a}_h^\top \bar{G}_n^{-1}\boldsymbol{a}_h)\operatorname{det}(\bar{G}_n).\] Rearranging and taking the logarithm shows that \[|\mathcal{T}| \leq \frac{d}{\log (2)} \log \left(1+\frac{|\mathcal{T}| L^{2}}{d \lambda}\right)\] Abbreviate \(x=d / \log (2)\) and \(y=L^{2} / d \lambda\), which are both positive. Then \[x \log (1+y(3 x \log (1+x y))) \leq x \log \left(1+3 x^{2} y^{2}\right) \leq x \log (1+x y)^{3}=3 x \log (1+x y).\] Since \(z-x \log (1+y z)\) is decreasing for \(z \geq 3 x \log (1+x y)\) it follows that \[|\mathcal{T}| \leq 3 x \log (1+x y)=\frac{3 d}{\log (2)} \log \left(1+\frac{L^{2}}{\lambda \log (2)}\right).\] ◻
A Primer on random Fourier transforms. We start by defining the Random Fourier Transform and its most relevant property. Let us consider the transition model of Equation 1 , we have \[\begin{align} \mathbb{P}(s' \mid s,a, \theta) = \exp\left(\psi(s') M_\theta \varphi(s,a) - Z_{\theta}(s,a)\right) = \mathbb{E}_{p(w,b)}\left[f\left(\psi(s'),w,b\right) f\left(M_\theta \varphi(s,a),w,b\right)\right], \end{align}\] where \(f\left(x,w,b\right) = \sqrt{2}\cos(w^\top x +b)\) are the random Fourier bases. \(p(w,b) = \mathcal{N}(0,\sigma^{-2} I) \times \mathcal{U}([0,2\pi])\), such that \(\mathcal{N}\) is the Gaussian distribution, \(\mathcal{U}\) is the Uniform distribution, and \(p(w,b)\) is a coupling among them.
Notice that this provides an alternative approach to decompose the transition kernel and obtain linearity of the value function. Moreover, since \(\forall x,w \in \mathbb{R}^d , b \in \mathbb{R}, |f(x,w,b)| \le \sqrt{2}\), we can use Hoeffding’s inequality to prove that a Monte-Carlo approximation of \(\mathbb{P}(s' \mid s,a, \theta)\) using \(N\) sample pairs of \((w,b)\) guarantees an error smaller than \(\epsilon\) with probability at least \(1-2\exp(-N\epsilon^2 /4)\). [26] proves a stronger result: it provides an algorithm approximating the Gaussian kernel for which the following uniform convergence bound holds.
Lemma 14. Let \(\mathcal{M}\) be a compact subset of \(\mathcal{R}^{p}\) with diameter \(\operatorname{diam}(\mathcal{M})\). Then, using the explicit mapping \(\mathbf{z}\) defined in Algorithm 1 in [26] with \(N\) samples, we have \[\operatorname{Pr}\left[\sup _{x, y \in \mathcal{M}}\left|\mathbf{z}(\mathbf{x})^{\prime} \mathbf{z}(\mathbf{y})-k(\mathbf{y}, \mathbf{x})\right| \geq \epsilon\right] \leq 2^{8}\left(\frac{\sigma_{p} \operatorname{diam}(\mathcal{M})}{\epsilon}\right)^{2} \exp \left(-\frac{N \epsilon^{2}}{4(p+2)}\right)\] where \(\sigma_{p}^{2} \equiv E_{p}\left[\omega^{\prime} \omega\right]\) is the second moment of the Fourier transform of \(k\).
Further, it implies that if \(N=\Omega\left(\frac{p}{\epsilon^{2}} \log \frac{\sigma_{p} \operatorname{diam}(\mathcal{M})}{\epsilon}\right)\), then \(\sup _{x, y \in \mathcal{M}}\left|\mathbf{z}(\mathbf{x})^{\prime} \mathbf{z}(\mathbf{y})-k(\mathbf{y}, \mathbf{x})\right| \leq \epsilon\) with constant probability.
Application to planning in BEF-RLSVI. Since our regret analysis is done under the high probability event of bounded estimation parameters, we know that the spaces of \(\psi(s')\) and
\(M_\theta \varphi(s,a)\) are bounded and the diameter depends on the dimensions. We abstain from explicating the exact diameter as it only influences the number of samples logarithmically. Using \(N \approx p/\epsilon^{2}\) samples, we can construct a uniform \(\epsilon\)-approximation of \(\mathbb{P}(s' \mid s,a, \theta)\).
Let’s call \(\hat{V}_h\) the estimated value function using Algorithm [alg952:planning] with the above approximation of transition. Here, we elucidate the span of this estimation of value function. First we have: \[\hat{V}_H^\pi - V_H^\pi = \int_{s'} (\hat{P}-P)(s'\mid s,a) r(s',\pi(s')) \,\mathrm{d}s' \le \epsilon d H^{3/2}\] Here, we use the facts that \(\mathbb{S}\left(V_{\hat{\theta}, \tilde{\theta}^{\mathrm{x}}, h}\right) \leq d H^{3 / 2}\) (cf. Section 1.0.2.2) and the error in approximating \(P\) is bounded by \(\epsilon\), i.e. \(\sup_{s',s,a} |(\hat{P}-P)(s'|s,a)| \leq \epsilon\).
Assume that at step \(h+1\), we have \(\hat{V}_{h+1}^\pi - V_{h+1}^\pi \le \sum_{j=1}^{h+1} \epsilon^j \alpha_{h+1,j}\). Then, we obtain \[\begin{align} \hat{V}_{h}^\pi - V_{h}^\pi &\le \int_{s'} (\hat{P}-P)(s'\mid s,a) \hat{V}_{h+1}^\pi(s') \,\mathrm{d}s' + \int_{s'} P(s'\mid s,a)(\hat{V}_{h+1}^\pi - V_{h+1}^\pi)(s') \,\mathrm{d}s' \\ &= \int_{s'} (\hat{P}-P)(s'\mid s,a) (V_{h+1}^\pi + \hat{V}_{h+1}^\pi - V_{h+1}^\pi) \,\mathrm{d}s' + \int_{s'} P(s'\mid s,a)(\hat{V}_{h+1}^\pi - V_{h+1}^\pi)(s') \,\mathrm{d}s'\\ &\le \epsilon(d H^{3/2} + \sum_{j=1}^{h+1} \epsilon^j \alpha_{h+1,j}) + \sum_{j=1}^{h+1} \epsilon^j \alpha_{h+1,j}\\ &\le \epsilon (d H^{3/2} + \alpha_{h+1,1}) + \sum_{j=2}^{h+1} \epsilon^j (\alpha_{h+1,j-1} + \alpha_{h+1,j}) + \epsilon^{h+2} \alpha_{h+1,h+1} \end{align}\] Using the fact that \(\alpha_{1,1}=d H^{3/2}\) and with a proper induction, we find that: \[\hat{V}_{1}^\pi - V_{1}^\pi \le \epsilon d H^{5/2} \frac{1-\epsilon^{H-h}}{1-\epsilon} \underset{H \rightarrow \infty}{\leq} \epsilon d H^{5/2}\]
This concludes the proof of the arguments provided in § Planning of Section [sec:planning]. This means that the extra regret due to planning with the approximation by RFT features is of order \(\text{\usefont{OMS}{cmsy}{m}{n}O}(\epsilon d H^{5/2} K)\). By choosing an \(\epsilon\) of order \(1/(H \sqrt{K})\), we deduce that approximating the probability kernel with \(\text{\usefont{OMS}{cmsy}{m}{n}O}(p H^2 K)\) samples induces a tractable planning procedure without harming the regret.
Remark 9. The reader might be tempted to combine the finite approximation using RFT with algorithms from the linear reinforcement learning literature [6]. However, note that the dimensionality of the linear space induced by RFT is polynomial in \(H\) and \(K\). Consequently, applying algorithms designed with the assumption of linear value function incurs a linear regret.
The maximum likelihood estimation is explicit for simple distributions like the Gaussian [41] and for Linearly controlled dynamical systems. But it requires integral approximations for generic transitions. However, we believe that this estimation problem is far simpler than the planning problem since the latter traditionally involves approximating an integral for all state-action pairs.
Different approximation techniques have been used in literature to handle the penalized ML estimation. For instance, Integral Approximation techniques are well studied for this problem. Indeed, [42] proposes to handle the ML estimation using simulated annealing, a method that starts from a tractable distribution and updates it to resemble the distribution at hand. [43] proposes MCMC techniques for approximating the partition function. [44] shows that optimizing a different objective, called the contrastive divergence leads to a good approximation of the ML. Another line of work is related to Score matching, a technique that avoids approximating the partition function and is well studied in literature, see [45]. More recently, [9] proposed an adaptation of this technique to the exact setting we consider. The latter shows that under certain conditions, that we are unable to verify, the estimation can be solved in \(\mathcal{O}(d^3)\) time. Furthermore, in the case of Bounded distribution support and natural parameter, [46] shows that for a minimally represented \(k\)-parameter Exponential family, an \(\alpha\)-approximation of the ML can be derived in \(\mathcal{O}(\operatorname{poly}(k/\alpha))\) time. The latter assumes a specific definition of compactness of the representation as well as knowledge of the support and shows how to re-parameterize the density to a specific class of exponential families that are easier to study. Finally, [47] studies exponential families such that the natural parameter belongs to an RKHS, it proposes a method that improves over score matching in time and in memory complexity.