Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Reinforcement Learning

88 missions · 34 completed

Missions

Open54Completed34All88
Machine LearningStatistics·Captain: mikedeng1

Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model 2: The Conservative Model-Based Policy Is ε-Optimal w.p. 1−δ at the Sample Size of Theorem 1Research Paper

Motivation

Reinforcement learning with a generative model (a simulator that returns an independent next state for any queried state–action pair) is the standard setting for measuring how many samples are needed to plan in an unknown Markov decision process. The simplest algorithm is model-based planning: query each pair NNN times, build the empirical transition kernel, and plan in the resulting empirical MDP. Azar, Munos and Kappen (2013) showed that O~(∣S∣∣A∣(1−γ)3ε2)\widetilde O\big(\frac{|\mathcal S||\mathcal A|}{(1-\gamma)^3\varepsilon^2}\big)O((1−γ)3ε2∣S∣∣A∣​) total samples suffice and are necessary, but only for ε≤1/(1−γ)∣S∣\varepsilon \le 1/\sqrt{(1-\gamma)|\mathcal S|}ε≤1/(1−γ)∣S∣​. Agarwal, Kakade and Yang (2020) extended the range to ε≤1/1−γ\varepsilon \le 1/\sqrt{1-\gamma}ε≤1/1−γ​. A sample size barrier remained: for larger ε\varepsilonε, no algorithm was known to be minimax optimal with fewer than ∣S∣∣A∣(1−γ)2\frac{|\mathcal S||\mathcal A|}{(1-\gamma)^2}(1−γ)2∣S∣∣A∣​ samples.

Li, Wei, Chi and Chen (arXiv:2005.12900v8, Operations Research, 2024) remove the barrier: the sample size is minimax optimal over the full range 0<ε≤1/(1−γ)0 < \varepsilon \le 1/(1-\gamma)0<ε≤1/(1−γ). They give two planners. The first (Theorem 1) perturbs the rewards slightly at random. The second, the subject of this mission, leaves the rewards unchanged and instead chooses among near-optimal actions by a randomized but structured rule.

Timeline:

  • 2013: Azar–Munos–Kappen, minimax sample complexity of model-based planning for ε≤1/(1−γ)∣S∣\varepsilon \le 1/\sqrt{(1-\gamma)|\mathcal S|}ε≤1/(1−γ)∣S∣​.
  • 2018: Sidford, Wang, Wu, Yang and Ye, a model-free variance-reduced method, minimax for ε≤1\varepsilon \le 1ε≤1.
  • 2020: Agarwal–Kakade–Yang, model-based planning minimax for ε≤1/1−γ\varepsilon \le 1/\sqrt{1-\gamma}ε≤1/1−γ​, via absorbing MDPs.
  • 2020 (v1) – 2024: Li–Wei–Chi–Chen, the full range ε≤1/(1−γ)\varepsilon \le 1/(1-\gamma)ε≤1/(1−γ) (this paper).

Setting

A finite discounted MDP M=(S,A,P,r,γ)\mathcal M = (\mathcal S,\mathcal A,P,r,\gamma)M=(S,A,P,r,γ) has states S\mathcal SS, actions A={1,…,∣A∣}\mathcal A = \{1,\dots,|\mathcal A|\}A={1,…,∣A∣}, a transition kernel P(⋅∣s,a)P(\cdot\mid s,a)P(⋅∣s,a), rewards r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1] and a discount factor γ∈(0,1)\gamma\in(0,1)γ∈(0,1). A deterministic policy π:S→A\pi:\mathcal S\to\mathcal Aπ:S→A has value Vπ(s)V^\pi(s)Vπ(s), the expected discounted sum of rewards from sss, and Q-function Qπ(s,a)=r(s,a)+γ∑s′P(s′∣s,a)Vπ(s′)Q^\pi(s,a) = r(s,a) + \gamma\sum_{s'}P(s'\mid s,a)V^\pi(s')Qπ(s,a)=r(s,a)+γ∑s′​P(s′∣s,a)Vπ(s′). The optimal value is V⋆(s)=max⁡πVπ(s)V^\star(s) = \max_\pi V^\pi(s)V⋆(s)=maxπ​Vπ(s) and Q⋆=r+γPV⋆Q^\star = r + \gamma P V^\starQ⋆=r+γPV⋆.

The data are NNN independent next states ss,ai∼P(⋅∣s,a)s^i_{s,a}\sim P(\cdot\mid s,a)ss,ai​∼P(⋅∣s,a) for every pair, and the empirical kernel is P^(s′∣s,a)=1N∑i1{ss,ai=s′}\widehat P(s'\mid s,a) = \frac1N\sum_i \mathbb 1\{s^i_{s,a} = s'\}P(s′∣s,a)=N1​∑i​1{ss,ai​=s′}. The empirical MDP M^=(S,A,P^,r,γ)\widehat{\mathcal M} = (\mathcal S,\mathcal A,\widehat P,r,\gamma)M=(S,A,P,r,γ) has optimal functions Q^⋆\widehat Q^\starQ​⋆ and V^⋆\widehat V^\starV⋆.

The conservative planner (Algorithm 2) draws a threshold ς∼Unif(0,ξ)\varsigma\sim\mathrm{Unif}(0,\xi)ς∼Unif(0,ξ) independently of the data and plays

π^c(s):=min⁡{a∈A:Q^⋆(s,a)>V^⋆(s)−ς},\widehat\pi_{\mathrm c}(s) := \min\{a\in\mathcal A : \widehat Q^\star(s,a) > \widehat V^\star(s) - \varsigma\},πc​(s):=min{a∈A:Q​⋆(s,a)>V⋆(s)−ς},

the smallest-indexed action whose empirical Q-value is within ς\varsigmaς of optimal.

Formalization targets

Goal: Theorem 2

There are universal constants c0,c1>0c_0, c_1 > 0c0​,c1​>0 such that, for every MDP as above, every δ>0\delta > 0δ>0 and 0<ε≤11−γ0 < \varepsilon \le \frac1{1-\gamma}0<ε≤1−γ1​, with ξ=c1(1−γ)ε∣S∣5∣A∣5\xi = \frac{c_1(1-\gamma)\varepsilon}{|\mathcal S|^5|\mathcal A|^5}ξ=∣S∣5∣A∣5c1​(1−γ)ε​ and

N≥c0log⁡(∣S∣∣A∣(1−γ)εδ)(1−γ)3ε2,N \ge \frac{c_0\log\big(\frac{|\mathcal S||\mathcal A|}{(1-\gamma)\varepsilon\delta}\big)}{(1-\gamma)^3\varepsilon^2},N≥(1−γ)3ε2c0​log((1−γ)εδ∣S∣∣A∣​)​,

with probability at least 1−δ1-\delta1−δ over the data and ς\varsigmaς,

∀(s,a):Vπ^c(s)≥V⋆(s)−εandQπ^c(s,a)≥Q⋆(s,a)−γε.\forall (s,a):\qquad V^{\widehat\pi_{\mathrm c}}(s)\ge V^\star(s)-\varepsilon \quad\text{and}\quad Q^{\widehat\pi_{\mathrm c}}(s,a)\ge Q^\star(s,a)-\gamma\varepsilon.∀(s,a):Vπc​(s)≥V⋆(s)−εandQπc​(s,a)≥Q⋆(s,a)−γε.

The constants are left unspecified, as in the paper.

Milestones

The paper's own steps, in the order of §6.4:

  1. Lemma 7: V^π⋆−V^π^c≤ξ1−γ1\widehat V^{\pi^\star} - \widehat V^{\widehat\pi_{\mathrm c}} \le \frac{\xi}{1-\gamma}\mathbf 1Vπ⋆−Vπc​≤1−γξ​1.
  2. Lemma 3 and (88): the (s,a)(s,a)(s,a)-absorbing MDPs reproduce Q⋆Q^\starQ⋆ at the right reward and depend Lipschitz-continuously on it.
  3. (56): a point of a finite net gives an absorbing MDP within ω\omegaω of Q^⋆\widehat Q^\starQ​⋆.
  4. Lemma 8: with probability 1−δ1-\delta1−δ over ς\varsigmaς, the near-optimal action sets are unchanged by any perturbation of size ξδ8∣S∣∣A∣\frac{\xi\delta}{8|\mathcal S||\mathcal A|}8∣S∣∣A∣ξδ​.
  5. (57): consequently π^c\widehat\pi_{\mathrm c}πc​ coincides with the conservative policy of every nearby absorbing MDP.
  6. Lemmas 2 and 1: the policy-evaluation bounds used for the remaining terms of (53).

Significance

Theorem 2 shows that the minimax sample size O~(∣S∣∣A∣(1−γ)3ε2)\widetilde O\big(\frac{|\mathcal S||\mathcal A|}{(1-\gamma)^3\varepsilon^2}\big)O((1−γ)3ε2∣S∣∣A∣​) is reachable over the whole range of ε\varepsilonε without altering the reward function: a planner can keep the model it estimated and only change how it breaks near-ties. The guarantee covers both value and Q-function suboptimality, and with a sample size proportional to 1/(1−γ)1/(1-\gamma)1/(1−γ) rather than 1/(1−γ)21/(1-\gamma)^21/(1−γ)2 in the large-ε\varepsilonε regime it allows a coarse but correct policy to be computed from very few samples.

None of these results is formalized. The mission produces a machine-checked account of the decoupling argument for data-dependent policies (absorbing MDPs, nets, stability of the tie-breaking rule), which the companion missions on Theorems 1 and 3 share. The paper omits the last step of the proof of Theorem 2 ("follows from an identical argument as in the proof of Theorem 1"); a formal proof has to supply it, including the analogue of Lemma 5 for π^c\widehat\pi_{\mathrm c}πc​, which the paper does not state.

Difficulty

The policy π^c\widehat\pi_{\mathrm c}πc​ depends on all the data, so the standard concentration argument for a fixed policy (Lemma 1) does not apply to V^π^c−Vπ^c\widehat V^{\widehat\pi_{\mathrm c}} - V^{\widehat\pi_{\mathrm c}}Vπc​−Vπc​. A union bound over all ∣A∣∣S∣|\mathcal A|^{|\mathcal S|}∣A∣∣S∣ deterministic policies costs a factor ∣S∣|\mathcal S|∣S∣ in the sample size, which is exactly the barrier. The leave-one-out construction removes the samples of one pair (s,a)(s,a)(s,a) from the policy; it works only if the policy is stable under the small change of Q^⋆\widehat Q^\starQ​⋆ that this causes. The greedy policy is not stable when two actions nearly tie. The conservative rule is stable with high probability over ς\varsigmaς (Lemma 8), but only because it takes the smallest near-optimal action: the set {a:Q^⋆(s,a)>V^⋆(s)−ς}\{a : \widehat Q^\star(s,a) > \widehat V^\star(s)-\varsigma\}{a:Q​⋆(s,a)>V⋆(s)−ς} is stable, and a rule that picked an arbitrary member of it would not be.

Formalization scope

All declarations live in the namespace BreakingSample.Conservative. The MDP layer reuses the platform's FoundationsML.ReinforcementLearning definitions (IsTransitionKernel, PolicyValue, QFunction); deterministic policies enter as point-mass stochastic policies, and V⋆V^\starV⋆ is the maximum over the finite set of maps S→A\mathcal S\to\mathcal AS→A. Norms are sup norms on finite function types. The order on A\mathcal AA is an arbitrary linear order on a finite type.

Probability: a data set is a map S×A×Fin N→S\mathcal S\times\mathcal A\times\mathrm{Fin}\,N\to\mathcal SS×A×FinN→S with the product law, so probabilities of data events are finite sums. The threshold ς\varsigmaς has the uniform law on [0,ξ][0,\xi][0,ξ]; joint probabilities are ∑xP(x) Unif(0,ξ){ς:(x,ς)∈E}\sum_x \mathbb P(x)\,\mathrm{Unif}(0,\xi)\{\varsigma : (x,\varsigma)\in E\}∑x​P(x)Unif(0,ξ){ς:(x,ς)∈E}, with the outer measure for non-measurable sections. "With probability at least 1−δ1-\delta1−δ" is stated as an upper bound δ\deltaδ on the probability of the failure event. Because the policy defined by (10) is a predicate on policies, the conclusion is stated for every policy satisfying (10). The universal constants are quantified before all types and parameters. The goal adds N>0N>0N>0, the standing assumption of (3); "the same assumptions of Theorem 1" is formalized with the goal's own constants c0,c1c_0, c_1c0​,c1​.

A trivializing formalization is ruled out: π^c\widehat\pi_{\mathrm c}πc​ is the smallest-index rule of (10), not an arbitrary policy within ς\varsigmaς of optimal, and ς\varsigmaς is random, not fixed.

Infrastructure that a complete development needs and that is reusable: Bellman optimality for finite MDPs with deterministic policies and real rewards, the resolvent identities, Bernstein's inequality for the empirical kernel, the absorbing-MDP construction, and the analogue of Lemma 5 for the conservative policy. Proofs of any milestone, and of the policy-evaluation lemmas, are welcome.

Selected references

  • G. Li, Y. Wei, Y. Chi, Y. Chen, Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model, Operations Research, 2024; arXiv:2005.12900v8. https://arxiv.org/abs/2005.12900
  • M. G. Azar, R. Munos, H. J. Kappen, Minimax PAC bounds on the sample complexity of reinforcement learning with a generative model, Machine Learning 91, 2013. https://doi.org/10.1007/s10994-013-5368-1
  • A. Agarwal, S. Kakade, L. F. Yang, Model-Based Reinforcement Learning with a Generative Model is Minimax Optimal, COLT 2020. https://arxiv.org/abs/1906.03804
  • A. Sidford, M. Wang, X. Wu, L. F. Yang, Y. Ye, Near-Optimal Time and Sample Complexities for Solving Markov Decision Processes with a Generative Model, NeurIPS 2018. https://arxiv.org/abs/1806.01492
17 thms3 active usersReviewed
Bandit AlgorithmsMachine LearningProbability·Captain: mikedeng1

Provably Efficient Reinforcement Learning with Linear Function Approximation 2: LSVI-UCB Has Regret O(√(d³H³Tι²) + ζdHT√ι) on ζ-Approximately Linear MDPsResearch Paper

Motivation

Reinforcement learning with large or continuous state spaces relies on function approximation: value functions are represented as functions of a ddd-dimensional feature map instead of tables indexed by states. Before 2019, regret guarantees for exploration with function approximation either needed strong assumptions (deterministic dynamics, a generative model) or applied only to tabular problems. Jin, Yang, Wang and Jordan (arXiv:1907.05388, COLT 2020) showed that in a linear MDP, where transitions and rewards are linear in known features, an optimistic version of least-squares value iteration, LSVI-UCB, has regret O~(d3H3T)\tilde O(\sqrt{d^3H^3T})O~(d3H3T​), with no dependence on the number of states or actions (Theorem 3.1).

Exact linearity is rarely satisfied by features chosen in practice. A guarantee that collapses under a small modelling error would say little about real use, and a naive adaptation of linear-bandit methods can break down entirely when the model is wrong. Theorem 3.2 of the same paper addresses this: if the MDP is only ζ\zetaζ-approximately linear, LSVI-UCB with an episode-dependent bonus still has sublinear regret plus an additive term linear in ζT\zeta TζT. This mission formalizes that result. A companion mission formalizes Theorem 3.1.

Setting

An episodic MDP has a measurable state space S\mathcal SS, a finite action set A\mathcal AA, a horizon HHH, and for each step h∈[H]h\in[H]h∈[H] a transition kernel Ph(⋅∣x,a)\mathbb P_h(\cdot\mid x,a)Ph​(⋅∣x,a) and a reward rh:S×A→[0,1]r_h:\mathcal S\times\mathcal A\to[0,1]rh​:S×A→[0,1]. A policy π\piπ chooses an action π(x,h)\pi(x,h)π(x,h) at state xxx and step hhh. Its value functions satisfy the Bellman equation

Qhπ(x,a)=rh(x,a)+∫Vh+1π dPh(⋅∣x,a),Vhπ(x)=Qhπ(x,π(x,h)),VH+1π=0,Q^\pi_h(x,a)=r_h(x,a)+\int V^\pi_{h+1}\,\mathrm d\mathbb P_h(\cdot\mid x,a),\qquad V^\pi_h(x)=Q^\pi_h(x,\pi(x,h)),\qquad V^\pi_{H+1}=0,Qhπ​(x,a)=rh​(x,a)+∫Vh+1π​dPh​(⋅∣x,a),Vhπ​(x)=Qhπ​(x,π(x,h)),VH+1π​=0,

and Vh⋆(x)=max⁡aQh⋆(x,a)V^\star_h(x)=\max_aQ^\star_h(x,a)Vh⋆​(x)=maxa​Qh⋆​(x,a) is the optimal value, with Q⋆Q^\starQ⋆ defined by the same recursion.

A feature map ϕ:S×A→Rd\phi:\mathcal S\times\mathcal A\to\mathbb R^dϕ:S×A→Rd with ∥ϕ∥≤1\|\phi\|\le1∥ϕ∥≤1 makes the MDP ζ\zetaζ-approximately linear (Assumption B) if for every step hhh there are signed measures μh=(μh(1),…,μh(d))\mu_h=(\mu_h^{(1)},\dots,\mu_h^{(d)})μh​=(μh(1)​,…,μh(d)​) on S\mathcal SS and a vector θh\theta_hθh​ with

∥Ph(⋅∣x,a)−⟨ϕ(x,a),μh(⋅)⟩∥TV≤ζ,∣rh(x,a)−⟨ϕ(x,a),θh⟩∣≤ζ\big\|\mathbb P_h(\cdot\mid x,a)-\langle\phi(x,a),\mu_h(\cdot)\rangle\big\|_{\mathrm{TV}}\le\zeta,\qquad|r_h(x,a)-\langle\phi(x,a),\theta_h\rangle|\le\zeta​Ph​(⋅∣x,a)−⟨ϕ(x,a),μh​(⋅)⟩​TV​≤ζ,∣rh​(x,a)−⟨ϕ(x,a),θh​⟩∣≤ζ

for all (x,a)(x,a)(x,a), together with the normalization ∥θh∥≤d\|\theta_h\|\le\sqrt d∥θh​∥≤d​ and a d\sqrt dd​ bound on the masses of μh\mu_hμh​. At ζ=0\zeta=0ζ=0 this is a linear MDP.

LSVI-UCB (Algorithm 1) plays KKK episodes. In episode kkk, with data ϕhτ=ϕ(xhτ,ahτ)\phi^\tau_h=\phi(x^\tau_h,a^\tau_h)ϕhτ​=ϕ(xhτ​,ahτ​) from earlier episodes, it computes backwards from QH+1k≡0Q^k_{H+1}\equiv0QH+1k​≡0

Λhk=∑τ<kϕhτ(ϕhτ)⊤+λI,whk=(Λhk)−1∑τ<kϕhτ[rh(xhτ,ahτ)+max⁡aQh+1k(xh+1τ,a)],\Lambda^k_h=\sum_{\tau<k}\phi^\tau_h(\phi^\tau_h)^\top+\lambda I,\qquad w^k_h=(\Lambda^k_h)^{-1}\sum_{\tau<k}\phi^\tau_h\big[r_h(x^\tau_h,a^\tau_h)+\max_aQ^k_{h+1}(x^\tau_{h+1},a)\big],Λhk​=τ<k∑​ϕhτ​(ϕhτ​)⊤+λI,whk​=(Λhk​)−1τ<k∑​ϕhτ​[rh​(xhτ​,ahτ​)+amax​Qh+1k​(xh+1τ​,a)], Qhk(x,a)=min⁡{⟨whk,ϕ(x,a)⟩+βk∥ϕ(x,a)∥(Λhk)−1, H},Q^k_h(x,a)=\min\big\{\langle w^k_h,\phi(x,a)\rangle+\beta_k\|\phi(x,a)\|_{(\Lambda^k_h)^{-1}},\,H\big\},Qhk​(x,a)=min{⟨whk​,ϕ(x,a)⟩+βk​∥ϕ(x,a)∥(Λhk​)−1​,H},

and then acts greedily, ahk=arg⁡max⁡aQhk(xhk,a)a^k_h=\arg\max_aQ^k_h(x^k_h,a)ahk​=argmaxa​Qhk​(xhk​,a). An adversary may choose each initial state x1kx^k_1x1k​. The regret after KKK episodes is

Regret(K)=∑k=1K[V1⋆(x1k)−V1πk(x1k)],\mathrm{Regret}(K)=\sum_{k=1}^K\big[V^\star_1(x^k_1)-V^{\pi_k}_1(x^k_1)\big],Regret(K)=k=1∑K​[V1⋆​(x1k​)−V1πk​​(x1k​)],

where πk\pi_kπk​ is the greedy policy of episode kkk. Throughout, T=KHT=KHT=KH and ι=log⁡(2dT/p)\iota=\log(2dT/p)ι=log(2dT/p).

Formalization targets

Goal: Theorem 3.2

There are absolute constants c,C>0c,C>0c,C>0 such that for every ζ\zetaζ-approximately linear MDP, every p∈(0,1)p\in(0,1)p∈(0,1) and every run of LSVI-UCB with λ=1\lambda=1λ=1 and βk=c (dι+ζkd)H\beta_k=c\,(d\sqrt\iota+\zeta\sqrt{kd})Hβk​=c(dι​+ζkd​)H, with probability at least 1−p1-p1−p,

Regret(K)≤C(d3H3Tι2+ζdHTι).\mathrm{Regret}(K)\le C\Big(\sqrt{d^3H^3T\iota^2}+\zeta dHT\sqrt\iota\Big).Regret(K)≤C(d3H3Tι2​+ζdHTι​).

The constants are not fixed numerically, so improvements of the constants in the proof do not invalidate the target.

Milestones

The milestones follow Appendix C: the approximate linearity of QπQ^\piQπ (Lemma C.1) and the bound on its weights (Lemma C.2); the trace inequality D.1 and the adversarial-noise bound C.4; the self-normalized concentration bound D.3 (published) and the concentration event of Lemma C.3; the key estimate C.5; approximate optimism C.6; the recursive formula C.7; and the elliptical potential lemma D.2 (published) with the bonus-sum bound (21)–(24).

Significance

Theorem 3.2 shows that the regret of LSVI-UCB degrades gracefully under misspecification: the extra cost is of order ζdHTι\zeta dHT\sqrt\iotaζdHTι​, linear in TTT because of the bias of linear approximation and negligible when ζ≲1/T\zeta\lesssim1/\sqrt Tζ≲1/T​. The paper also converts it into a PAC guarantee with an additive O~(ζdH2)\tilde O(\zeta dH^2)O~(ζdH2) error. It is a reference point for later work on misspecified linear bandits and RL, which asks how far the linear term can be improved.

The result is proved on paper; no machine-checked proof is known. The formalization supplies an episodic MDP on a general measurable state space, LSVI-UCB as a function of the observed data, and its interaction with an adaptive adversary on a filtered probability space. These are shared with the companion mission on Theorem 3.1 and are reusable for other optimistic algorithms with linear function approximation. At ζ=0\zeta=0ζ=0 the goal specializes to Theorem 3.1 under the same normalization; this is a consistency check, not a dependency.

Difficulty

The central difficulty is that the regression targets rh+Vh+1k(xh+1τ)r_h+V^k_{h+1}(x^\tau_{h+1})rh​+Vh+1k​(xh+1τ​) depend on the data through Vh+1kV^k_{h+1}Vh+1k​, which is computed from all earlier episodes. A martingale concentration bound for a fixed function does not apply. Lemma C.3 needs a bound that holds uniformly over the class of functions LSVI-UCB can produce, which requires a covering-number argument whose size depends on βk\beta_kβk​; that is why the constant CCC must be independent of cβc_\betacβ​ and cβc_\betacβ​ is chosen afterwards. Under misspecification a second error appears: the deviations rh−⟨ϕ,θh⟩r_h-\langle\phi,\theta_h\ranglerh​−⟨ϕ,θh​⟩ and (Ph−⟨ϕ,μh⟩)V(\mathbb P_h-\langle\phi,\mu_h\rangle)V(Ph​−⟨ϕ,μh​⟩)V are not mean-zero and can be adversarial, so they cannot be concentrated away. Lemma C.4 absorbs them into the bonus at the price of the ζkd\zeta\sqrt{kd}ζkd​ term in βk\beta_kβk​. Optimism then holds only up to an error that accumulates over the horizon (Lemma C.6).

Formalization scope

  • Indices are 1-based, as on the page; values and estimates are 000 outside 1≤h≤H1\le h\le H1≤h≤H.
  • Values: VπV^\piVπ and V⋆V^\starV⋆ are defined by the Bellman recursions (1) and (2), not by sup⁡π\sup_\pisupπ​.
  • Measurability: the state space is a bare measurable space. Features ϕ(⋅,a)\phi(\cdot,a)ϕ(⋅,a) are assumed measurable, and lemmas about a policy π\piπ assume it measurable, so that every integral is meaningful.
  • Actions: A\mathcal AA is finite and nonempty. Argmax ties are broken towards the least action of a fixed linear order on A\mathcal AA.
  • Interaction: the run is a process adapted to an arbitrary filtration, with actions given by Algorithm 1 and the next-state law holding conditionally on the past. The initial states are only required to be adapted.
  • Probability statements: "with probability 1−p1-p1−p" is "the bad set has (outer) measure at most ppp".
  • Constants: ccc and CCC are quantified before all types, dimensions, horizons, ζ\zetaζ, ppp and runs. The hypotheses d,H,K≥1d,H,K\ge1d,H,K≥1 and 0≤ζ≤10\le\zeta\le10≤ζ≤1 are stated.
  • Assumption B measures the TV distance by the total variation norm ∣ν∣(S)|\nu|(\mathcal S)∣ν∣(S). The page's normalization ∥μh(S)∥≤d\|\mu_h(\mathcal S)\|\le\sqrt d∥μh​(S)∥≤d​ is replaced by the same bound on the vector of total variations (∣μh(i)∣(S))i(|\mu_h^{(i)}|(\mathcal S))_i(∣μh(i)​∣(S))i​, because Lemma C.2 is false under the printed form; the replacement implies the printed condition and holds for tabular MDPs.
  • Lemma C.7 carries the +4Hζ+4H\zeta+4Hζ term that its own proof derives; the printed statement omits it. Theorem 3.2 is unaffected.

Lemmas C.3 and C.5 are formalized as printed. Their proofs use sup⁡x∣Vh+1k(x)∣≤H\sup_x|V^k_{h+1}(x)|\le Hsupx​∣Vh+1k​(x)∣≤H, which Algorithm 1 does not enforce from below; a solver may find that one of them needs an additional argument.

A formalization in which the goal assumes the event E\mathfrak EE, the optimism of Lemma C.6 or the recursion of Lemma C.7, or in which the run does not fix the actions to Algorithm 1's, would be trivial or false; the goal assumes none of these. Contributions are welcome on the linear-algebra lemmas (D.1, C.4, (21)–(24)), on measurability of the LSVI-UCB estimates, and on the covering argument behind Lemma C.3.

Selected references

  • C. Jin, Z. Yang, Z. Wang, M. I. Jordan, Provably Efficient Reinforcement Learning with Linear Function Approximation, COLT 2020; arXiv:1907.05388v2, 2019. https://arxiv.org/abs/1907.05388
  • Y. Abbasi-Yadkori, D. Pál, C. Szepesvári, Improved Algorithms for Linear Stochastic Bandits, NeurIPS 2011. https://papers.nips.cc/paper/2011/hash/e1d5be1c7f2f456670de3d53c7b54f4a-Abstract.html
  • L. F. Yang, M. Wang, Sample-Optimal Parametric Q-Learning Using Linearly Additive Features, ICML 2019; arXiv:1902.04779. https://arxiv.org/abs/1902.04779
16 thms3 active usersReviewed
Dynamic ProgrammingMachine LearningOperations Research+1·Captain: mikedeng1

Stable Function Approximation in Dynamic Programming II: In a Nondiscounted MDP with All Policies Proper, Value Iteration Through a Self-Weighted Averager ConvergesResearch Paper

Motivation

Value iteration solves a Markov decision process by repeatedly applying the Bellman backup to a table of state values. When the state space is too large for a table, the values are stored in a function approximator instead: each backup is followed by a fit, and the fitted function is backed up again. This approximate value iteration is the basis of fitted dynamic programming and of much of reinforcement learning, and it was known in the early 1990s to diverge for common approximators such as linear regression and neural networks (Boyan and Moore, 1995, cited in the report as [BM95]).

Gordon's technical report (Stable Function Approximation in Dynamic Programming, CMU-CS-95-103, 1995; conference version at ICML 1995) identified a class of approximators, the averagers (k-nearest-neighbour, kernel averaging, linear and bilinear interpolation on a grid), for which the combination is stable. For discounted problems stability follows from a norm argument. For nondiscounted problems, where the backup contracts only in a weighted norm, that argument fails, and the report proves convergence by a different route: approximate value iteration is exact value iteration on a derived MDP. This mission formalizes that route and its conclusion, Corollary 4.1 (p. 11).

Setting

A finite nondiscounted Markov decision process MMM has non-goal states x=1,…,nx=1,\dots,nx=1,…,n, a finite nonempty action set U(x)U(x)U(x) at each state, an expected one-step cost cxac_{xa}cxa​, and transition probabilities paxy≥0p_{axy}\ge 0paxy​≥0 with ∑ypaxy≤1\sum_y p_{axy}\le 1∑y​paxy​≤1. The missing mass 1−∑ypaxy1-\sum_y p_{axy}1−∑y​paxy​ is the probability of moving to a cost-free absorbing goal state, which the paper calls state 111. A value function is a vector V∈RnV\in\mathbb R^nV∈Rn; the goal's value is 000. The parallel value backup is

(TMV)(x)=min⁡a∈U(x)[cxa+∑ypaxyV(y)],(T_M V)(x)=\min_{a\in U(x)}\Bigl[c_{xa}+\sum_y p_{axy}V(y)\Bigr],(TM​V)(x)=a∈U(x)min​[cxa​+y∑​paxy​V(y)],

and with a discount factor γ\gammaγ the sum is multiplied by γ\gammaγ. A policy μ\muμ chooses an admissible action at each state; it is proper if, from every starting state, the probability of having reached the goal after ttt steps tends to 111.

An averager AAA consists of constants kyk_yky​, nonnegative weights βy\beta_yβy​ and nonnegative weights βyz\beta_{yz}βyz​ (zzz ranging over all states, the goal included) with βy+∑zβyz=1\beta_y+\sum_z\beta_{yz}=1βy​+∑z​βyz​=1. Its mapping is MA(V)(y)=βyky+∑zβyzV(z)M_A(V)(y)=\beta_yk_y+\sum_z\beta_{yz}V(z)MA​(V)(y)=βy​ky​+∑z​βyz​V(z). Two operators MFM_FMF​ and TTT are compatible if (MF∘T)k(V0)(M_F\circ T)^k(V_0)(MF​∘T)k(V0​) converges from every initial guess V0V_0V0​.

The derived MDP M′M'M′ has the same states and actions, transition probabilities paxz′=∑ypaxyβyzp'_{axz}=\sum_y p_{axy}\beta_{yz}paxz′​=∑y​paxy​βyz​ to non-goal states zzz, the rest of the mass going to the goal, and costs cxa′=cxa+γ∑ypaxyβykyc'_{xa}=c_{xa}+\gamma\sum_{y}p_{axy}\beta_yk_ycxa′​=cxa​+γ∑y​paxy​βy​ky​.

The states are layered by distance from the goal: S1={1}S_1=\{1\}S1​={1}, Uk=⋃j<kSjU_k=\bigcup_{j<k}S_jUk​=⋃j<k​Sj​, and SkS_kSk​ is the set of states outside UkU_kUk​ from which every action reaches UkU_kUk​ with positive probability. Write k(x)k(x)k(x) for the index of the layer containing xxx. The averager is self-weighted for MMM if for every state yyy either βy>0\beta_y>0βy​>0 or βyx>0\beta_{yx}>0βyx​>0 for some state xxx with k(x)≤k(y)k(x)\le k(y)k(x)≤k(y).

Formalization targets

Goal: Corollary 4.1 (p. 11)

If every policy of MMM is proper and AAA is self-weighted for MMM, then for every initial guess V0V_0V0​ both

(MA∘TM)k(V0)and(TM∘MA)k(V0)(M_A\circ T_M)^k(V_0)\quad\text{and}\quad(T_M\circ M_A)^k(V_0)(MA​∘TM​)k(V0​)and(TM​∘MA​)k(V0​)

converge as k→∞k\to\inftyk→∞. The first is the page's "TMT_MTM​ and MAM_AMA​ are compatible", the second its "approximate value iteration … will converge".

Milestones

  1. Theorem 4.1 (Derived MDP, p. 7): TM′=TM∘MAT_{M'}=T_M\circ M_ATM′​=TM​∘MA​, for every discount factor and for the nondiscounted backup.
  2. Exhaustiveness (p. 10, after [BT89]): if all policies of MMM are proper, every state lies in some layer SkS_kSk​.
  3. M′M'M′ terminates (p. 10): if all policies of MMM are proper and AAA is self-weighted, there is m>0m>0m>0 such that under every policy of M′M'M′ and from every state the goal is reached within mmm steps with positive probability; in particular every policy of M′M'M′ is proper.
  4. Theorem 2.3 (p. 4), in its all-policies-terminate case: value iteration converges from any initial guess. This is the published, proved item BertsekasDP.ssp_main_theorem.

A further item, Theorem 6.1 (p. 12), says the limit is V∗V^*V∗ when the optimal value function is a fixed point of MAM_AMA​, under self-weighting or under positive costs with k≥0k\ge 0k≥0.

Significance

The corollary gives a checkable, purely combinatorial condition on the approximator and the transition graph under which fitted value iteration on a stochastic shortest path problem cannot diverge. Weight decay (βy>0\beta_y>0βy​>0 everywhere) and any averager that only ever averages a state's value with values no farther from the goal satisfy it. The derived-MDP identity, Theorem 4.1, is the tool the rest of the report builds on (§5, §6.1, Appendix A): it reduces questions about approximate dynamic programming with averagers (convergence, the limit's error, the online Q-learning variant) to questions about an ordinary MDP.

The results are proved in the report, in prose. They have no machine-checked version. The formal development needed here is a finite stochastic shortest path theory (proper policies, the layer partition, termination bounds) on top of the published model BertsekasSSPModel and the proved BertsekasDP.ssp_main_theorem.

Difficulty

The obvious argument fails. If all policies of MMM are proper, TMT_MTM​ contracts in some weighted max norm, and MAM_AMA​ is a nonexpansion in the unweighted max norm, but MAM_AMA​ can expand the weighted norm, so the composition need not contract. Figure 4 of the report gives a three-state chain and an averager, replacing V(2)V(2)V(2) by V(3)V(3)V(3), for which approximate value iteration diverges. The proof therefore has to go through M′M'M′ and show that self-weighting makes M′M'M′ terminate under every policy. That is a probabilistic statement about all, possibly nonstationary, policies of a new process, derived from a layer structure of the old one. Exhaustiveness of the layers itself needs a policy-construction argument.

Formalization scope

The MDP is the published BertsekasSSPModel n C: non-goal states Fin n, a finite action type C with admissible sets M.U i, costs M.g, and transition probabilities M.p whose deficit is the probability of termination. Gordon's state 1 is this implicit termination state: its value is 000 by construction, and where the partition and the averager's goal weight need to name it, it is none : Option (Fin n). This realises the page's two "without loss of generality" steps (state 1 cost-free and absorbing; β1=1\beta_1=1β1​=1, k1=0k_1=0k1​=0). The nondiscounted backup is BertsekasSSPBellmanOp M, the discounted one BertsekasDiscountedBellmanOp M γ.

The averager acts on whole value functions over the state set. An approximator that fits only a sample X0X_0X0​ of states is the special case βyx=0\beta_{yx}=0βyx​=0 for x∉X0x\notin X_0x∈/X0​. "All policies proper" quantifies over stationary policies μ : Fin n → C with admissible actions, as on p. 3. Self-weightedness is stated through layer membership, which agrees with the page's k(x)k(x)k(x) whenever the partition is exhaustive (milestone 2). Theorem 6.1 takes V∗V^*V∗ as a real fixed point of the backup; under either of its cases such a fixed point is unique and optimal. Convergence is in Rn\mathbb R^nRn, which is the same as convergence in max norm.

The goal's hypotheses concern MMM and AAA only. A formalization that assumed properness of the derived MDP, dropped the "every action" quantifier in the layers (making the partition and self-weighting weaker notions), or dropped k(x)≤k(y)k(x)\le k(y)k(x)≤k(y) (making every averager with a positive weight self-weighted) would be a different theorem.

Reusable beyond this mission: the layer partition and its exhaustiveness, and the termination bound for the derived model, are general finite stochastic shortest path facts. Contributions to any milestone are welcome, and so are proofs of the definitions-level lemmas they rely on.

Selected references

  • G. J. Gordon, Stable Function Approximation in Dynamic Programming, Technical Report CMU-CS-95-103, Carnegie Mellon University, 1995. Conference version in Proceedings of the 12th International Conference on Machine Learning (ICML), 1995. https://doi.org/10.1016/B978-1-55860-377-6.50040-2
  • D. P. Bertsekas and J. N. Tsitsiklis, Parallel and Distributed Computation: Numerical Methods, Prentice Hall, 1989. ([BT89] in the report.)
  • D. P. Bertsekas and J. N. Tsitsiklis, An Analysis of Stochastic Shortest Path Problems, Mathematics of Operations Research 16(3), 1991. https://doi.org/10.1287/moor.16.3.580
  • J. A. Boyan and A. W. Moore, Generalization in Reinforcement Learning: Safely Approximating the Value Function, Advances in Neural Information Processing Systems 7, Morgan Kaufmann, 1995. ([BM95] in the report.)
8 thms3 active usersReviewed
Markov ChainOperations Research·Captain: mikedeng1

Nonstationary Reinforcement Learning: The Blessing of (More) Optimism III: Under Uniform One-Step Reachability ζ, the Un-widened Confidence Region Contains an MDP of Diameter at Most 1/ζResearch Paper

Motivation

Reinforcement learning in a changing environment has a difficulty that is absent from a fixed Markov decision process: transition data gathered earlier may describe a different system from the one the decision maker currently faces. A learning algorithm therefore estimates transitions from a recent window of observations. The estimate comes with a confidence region, a set of transition laws consistent with the data at a chosen statistical radius. In the general nonstationary setting studied by Cheung, Simchi-Levi and Zhu, their algorithm widens this region to ensure that it can contain a model whose states remain readily reachable. Such a model is needed for the paper's dynamic regret analysis. Section 7 isolates a structural condition under which widening is unnecessary: every destination is reachable from every state with a uniformly positive one-step probability under a suitable action. Cheung, Simchi-Levi and Zhu, §7.

This mission formalizes Proposition 4 of that paper, the precise claim that the original, unwidened transition region contains a model with a controlled diameter. It is one of three separate missions for the paper. The result supports the paper's no-widening variant of its learning algorithm; it is not a claim that every model in the confidence region has small diameter. Cheung, Simchi-Levi and Zhu, Proposition 4.

Setting

There are finitely many states S\mathcal SS and, for each state sss, a nonempty finite set As\mathcal A_sAs​ of permitted actions. At each time t∈[T]t\in[T]t∈[T], the system has a reward rt(s,a)∈[0,1]r_t(s,a)\in[0,1]rt​(s,a)∈[0,1] and a probability distribution pt(⋅∣s,a)p_t(\cdot\mid s,a)pt​(⋅∣s,a) for the next state. The distribution may change with ttt. A trajectory records the observed state sqs_qsq​, chosen action aqa_qaq​, and successor state sq+1s_{q+1}sq+1​ at each time qqq. These are the model primitives in §2.2. Cheung, Simchi-Levi and Zhu, pp. 6–7.

An episode begins at τ(m)\tau(m)τ(m) and uses a window of length WWW. At time ttt in that episode, Nt(s,a)N_t(s,a)Nt​(s,a) counts how often the pair (s,a)(s,a)(s,a) appears between (τ(m)−W)∨1(\tau(m)-W)\vee1(τ(m)−W)∨1 and t−1t-1t−1; Nt+(s,a)=max⁡{1,Nt(s,a)}N_t^+(s,a)=\max\{1,N_t(s,a)\}Nt+​(s,a)=max{1,Nt​(s,a)}. The empirical row p^t(⋅∣s,a)\hat p_t(\cdot\mid s,a)p^​t​(⋅∣s,a) counts observed successors and divides by Nt+(s,a)N_t^+(s,a)Nt+​(s,a). The corresponding average true row pˉt\bar p_tpˉ​t​ averages the time-varying transition probabilities over the same visits. Both are zero vectors when there are no visits. Cheung, Simchi-Levi and Zhu, equations (3) and (5).

Write SA=∑s∣As∣SA=\sum_s|\mathcal A_s|SA=∑s​∣As​∣, so this is the number of allowed state-action pairs. At confidence level δ\deltaδ, the transition radius is rad⁡p,t(s,a)=22Slog⁡(SAT/δ)/Nt+(s,a)\operatorname{rad}_{p,t}(s,a)=2\sqrt{2S\log(SAT/\delta)/N_t^+(s,a)}radp,t​(s,a)=22Slog(SAT/δ)/Nt+​(s,a)​. The region Hp,t(s,a;η)H_{p,t}(s,a;\eta)Hp,t​(s,a;η) consists of probability vectors within ℓ1\ell_1ℓ1​ distance rad⁡p,t(s,a)+η\operatorname{rad}_{p,t}(s,a)+\etaradp,t​(s,a)+η of p^t\hat p_tp^​t​. Here η=0\eta=0η=0 means no widening. The estimation event EpE_pEp​ bounds the ℓ1\ell_1ℓ1​ distance between pˉt\bar p_tpˉ​t​ and p^t\hat p_tp^​t​ by that radius for each allowed pair. Cheung, Simchi-Levi and Zhu, pp. 12, 14.

For a stationary transition model and policy π\piπ, the hitting time Λ(s′∣π,s)\Lambda(s'\mid\pi,s)Λ(s′∣π,s) counts transitions until the first arrival at s′s's′ after starting at sss. This includes the first return time when s=s′s=s's=s′. Its diameter is D=max⁡s,s′min⁡πE[Λ(s′∣π,s)]D=\max_{s,s'}\min_\pi\mathbb E[\Lambda(s'\mid\pi,s)]D=maxs,s′​minπ​E[Λ(s′∣π,s)]. Infinite expectations are possible in the definition. Cheung, Simchi-Levi and Zhu, Definition 1.

Formalization targets

Goal: Proposition 4

Assumption 2 supplies ζ>0\zeta>0ζ>0 and an allowed action a(s,s′)a_{(s,s')}a(s,s′)​ for every ordered pair of states, fixed across time, such that pt(s′∣s,a(s,s′))≥ζp_t(s'\mid s,a_{(s,s')})\ge\zetapt​(s′∣s,a(s,s′)​)≥ζ for all t∈[T]t\in[T]t∈[T]. Conditional on EpE_pEp​, Proposition 4 says that for every time in the horizon there exists a transition model ppp whose every allowed row belongs to Hp,t(s,a;0)H_{p,t}(s,a;0)Hp,t​(s,a;0) and whose diameter obeys

D(S,A,p)≤Dˉ:=1ζ.D(\mathcal S,\mathcal A,p)\le\bar D:=\frac1\zeta.D(S,A,p)≤Dˉ:=ζ1​.

The target is existential: the region need only contain one such model at each time. The milestone list follows the two cases in the proof of Lemma 13, the lemma's model existence claim, and the expected hitting-time bound in the proof of Proposition 4. Cheung, Simchi-Levi and Zhu, pp. 21, 49–50.

Significance

Proposition 4 identifies a condition under which the algorithm can use η=0\eta=0η=0 while retaining a uniform diameter guarantee for at least one plausible transition model. The paper uses this to analyze a no-widening version of its dynamic regret bound, and later applies that viewpoint to inventory control. Without a bounded-diameter model in the region, the diameter-dependent regret argument does not apply in the same form. Cheung, Simchi-Levi and Zhu, §7.

The proposition and its appendix proof are known results of the paper. This mission asks for a machine-checked account of the exact confidence region, its pathwise estimation event, Lemma 13, and the diameter claim. A general finite MDP with probability-valued transition rows is already available as the published FiniteMDPLearning definition; the paper-specific window estimators and its return-time diameter still need formal proofs. The paper's headline Theorems 1–4 are not posed here because their displayed bounds hide constants in O~(⋅)\widetilde O(\cdot)O(⋅) notation. Cheung, Simchi-Levi and Zhu, p. 6 and Theorems 1–4.

Difficulty

The obvious idea that the true transition law belongs to the confidence region can fail under drift: the region is centered on recent observations, while the law at the current time may differ from the laws that generated those observations. Even the average true row has a special case. At an unvisited pair, equation (5) sets it to the zero vector, which is not a probability distribution and therefore is not a member of the simplex-valued confidence region. The existence claim must cover visited and unvisited pairs while preserving one-step reachability for all targets under a single transition law. Cheung, Simchi-Levi and Zhu, pp. 12, 49–50.

The diameter also uses the paper's first-arrival-after-start convention. A library travel time that is zero when source equals target misses the return-time cases and would weaken the stated conclusion. Cheung, Simchi-Levi and Zhu, Definition 1.

Formalization scope

States and actions are Fin S and Fin A; permitted actions are state-dependent finite sets. Extra MDP rows for disallowed actions are never consulted. The finite MDP type supplies valid probability rows and bounded rewards. Hitting times and the diameter use extended nonnegative reals, so infinite values are represented without a default real value. The diameter ranges over allowed deterministic stationary policies and over all ordered state pairs, including equal pairs. Time is zero-based in Lean: paper time t∈[T]t\in[T]t∈[T] is index t−1<Tt-1<Tt−1<T, and the paper's window becomes the half-open interval [τm-W,t). The paper's N+N^+N+ is at least one, so its estimators never divide by zero. A result at arbitrary ttt with τm≤t<T\tau_m\le t<Tτm​≤t<T covers every episode time without assuming any additional episode schedule property.

The Lean statement makes two domain conditions explicit: S>1S>1S>1 and 0<δ<10<\delta<10<δ<1. These ensure the paper's claim that the radius at an unvisited pair is at least one; it can fail when S=1S=1S=1 and the confidence level is close to one. Assumption 2 is required for every time in the horizon, with ζ>0\zeta>0ζ>0. The event EpE_pEp​ is the ℓ1\ell_1ℓ1​ estimation inequality at the selected time. The paper writes it as membership of pˉt\bar p_tpˉ​t​ in a simplex-valued region for every pair, but that literal wording is false at an unvisited pair because pˉt=0\bar p_t=0pˉ​t​=0 there. At visited pairs, the inequality and membership agree. This convention is disclosed in the definition item and keeps the theorem meaningful on ordinary early trajectories.

The region is centered at the exact empirical p^t\hat p_tp^​t​, uses η=0\eta=0η=0, and constrains every allowed row of the constructed model. The diameter uses its full extended-real value, and ζ\zetaζ is strictly positive; dropping any of these clauses would change the claim. Reusable contributions include finite-state hitting-time estimates and windowed transition estimation identities. Proofs of the four milestones and the goal, as well as small lemmas connecting the published MDP measure to successive transition rows, are welcome.

Selected references

  • W. C. Cheung, D. Simchi-Levi and R. Zhu, Non-Stationary Reinforcement Learning: The Blessing of (More) Optimism, arXiv:1906.02922v4, 2020; published as Nonstationary Reinforcement Learning: The Blessing of (More) Optimism, Management Science, 2023. arXiv
  • T. Jaksch, R. Ortner and P. Auer, Near-optimal Regret Bounds for Reinforcement Learning, Journal of Machine Learning Research 11, 2010. JMLR
8 thms2 active usersReviewed
Machine LearningMarkov ChainOperations Research·Captain: mikedeng1

Nonstationary Reinforcement Learning: The Blessing of (More) Optimism II: Per-Step Dynamic Regret of SWUCRL2-CW When the Widened Confidence Region Contains an MDP of Diameter at Most DResearch Paper

Why changing environments matter

A reinforcement-learning agent chooses actions while learning how those actions affect future states. In a stationary model, observations collected long ago remain relevant to the current transition law. In a nonstationary Markov decision process, rewards and transition probabilities may change at each round. Old observations can then bias an estimate even when the agent has collected many samples. The challenge is to keep learning from recent observations without becoming blind to actions that the agent has not tried recently. Cheung, Simchi-Levi and Zhu study this tension for finite-state average-reward learning and introduce confidence widening in their SWUCRL2-CW algorithm Cheung et al., §4.

The paper's broad regret theorems suppress constants inside asymptotic notation. Proposition 2 gives an explicit one-round inequality that exposes the roles of estimation error, temporal variation, confidence widening, and the diameter of a plausible transition model. This mission targets that proposition and the stated auxiliary results used around it Cheung et al., pp. 14, 38–41.

The finite changing MDP

Let S\mathcal SS be a finite state set. Each state sss has a nonempty finite set As\mathcal A_sAs​ of permitted actions. At round ttt, taking action a∈Asa\in\mathcal A_sa∈As​ in state sss gives expected reward rt(s,a)∈[0,1]r_t(s,a)\in[0,1]rt​(s,a)∈[0,1] and moves to state s′s's′ with probability pt(s′∣s,a)p_t(s'\mid s,a)pt​(s′∣s,a). The one-step variation Br,tB_{r,t}Br,t​ is the greatest change ∣rt+1(s,a)−rt(s,a)∣|r_{t+1}(s,a)-r_t(s,a)|∣rt+1​(s,a)−rt​(s,a)∣ over permitted pairs; Bp,tB_{p,t}Bp,t​ is the corresponding greatest ℓ1\ell_1ℓ1​ distance between transition rows. These definitions make no stationarity assumption Cheung et al., pp. 6, 33.

At the start τ(m)\tau(m)τ(m) of an episode, the algorithm counts visits to each pair in a recent window of length WWW. It divides empirical sums by N+=max⁡{1,N}N^+=\max\{1,N\}N+=max{1,N}, where NNN is the visit count. Thus an unvisited pair has estimated reward and transition vector equal to zero. Reward confidence sets lie in [0,1][0,1][0,1]; transition confidence sets lie in the probability simplex and use an ℓ1\ell_1ℓ1​ radius enlarged by a nonnegative parameter η\etaη. Write rad⁡r,τ(m)(s,a)\operatorname{rad}_{r,\tau(m)}(s,a)radr,τ(m)​(s,a) and rad⁡p,τ(m)(s,a)\operatorname{rad}_{p,\tau(m)}(s,a)radp,τ(m)​(s,a) for their respective radii. The algorithm chooses a stationary policy π~τ(m)\tilde\pi_{\tau(m)}π~τ(m)​ and an optimistic model, gain ρ~τ(m)\tilde\rho_{\tau(m)}ρ~​τ(m)​, and bias γ~τ(m)\tilde\gamma_{\tau(m)}γ~​τ(m)​ from extended value iteration Cheung et al., pp. 11–13.

The diameter of a transition model is the largest, over ordered source and target states, of the smallest expected number of transitions needed to reach the target under a stationary policy. Source equal to target means a return time after at least one transition. The round-ttt optimal gain ρt∗\rho_t^*ρt∗​ is the value of the stationary occupancy-measure linear program for (rt,pt)(r_t,p_t)(rt​,pt​) with only permitted actions. From the window's first round through the round before ttt, let var⁡r,t\operatorname{var}_{r,t}varr,t​ and var⁡p,t\operatorname{var}_{p,t}varp,t​ be the sums of the corresponding one-step variations Cheung et al., pp. 8, 14, 33.

Formalization targets

The main target is Proposition 2. Condition on the local reward and transition estimation events at τ(m)\tau(m)τ(m). Assume that the widened transition confidence sets contain every permitted row of an MDP of diameter at most DDD. For a round in which at=π~τ(m)(st)a_t=\tilde\pi_{\tau(m)}(s_t)at​=π~τ(m)​(st​), the target is

ρt∗−rt(st,at)≤∑s′pt(s′∣st,at)γ~τ(m)(s′)−γ~τ(m)(st)+1τ(m)+2var⁡r,t+4D(var⁡p,t+η)+2rad⁡r,τ(m)(st,at)+4Drad⁡p,τ(m)(st,at).\begin{aligned} \rho_t^*-r_t(s_t,a_t)\le{}&\sum_{s'}p_t(s'\mid s_t,a_t)\tilde\gamma_{\tau(m)}(s')-\tilde\gamma_{\tau(m)}(s_t)+\frac1{\sqrt{\tau(m)}}\\ &+2\operatorname{var}_{r,t}+4D(\operatorname{var}_{p,t}+\eta)\\ &+2\operatorname{rad}_{r,\tau(m)}(s_t,a_t)+4D\operatorname{rad}_{p,\tau(m)}(s_t,a_t). \end{aligned}ρt∗​−rt​(st​,at​)≤​s′∑​pt​(s′∣st​,at​)γ~​τ(m)​(s′)−γ~​τ(m)​(st​)+τ(m)​1​+2varr,t​+4D(varp,t​+η)+2radr,τ(m)​(st​,at​)+4Dradp,τ(m)​(st​,at​).​

The five milestones are the paper's Lemmas 2–5 and displayed inequality (32): a dual-bias span bound, a drift estimate for window averages, bounded optimistic bias, optimism under drift, and a transition-value error bound. Their exact constants are part of the targets Cheung et al., pp. 33, 38–39.

What the result supplies

Proposition 2 separates the per-round change in optimal gain from the cost of the current action. Its first term tracks changes in the optimistic bias along transitions; the other terms identify window drift, reward and transition estimation, and widening. This decomposition can be summed across episodes when analyzing the algorithm. The result has a concrete role even though the later horizon-wide theorem is given in asymptotic notation Cheung et al., pp. 14, 41.

The paper proves these claims mathematically. The mission asks for machine-checked proofs of the explicit statements and for reusable definitions of finite nonstationary MDP variation, window estimators, confidence sets, occupancy gain, and hitting-time diameter. The source's Theorems 1–4 are not posed here: their displayed bounds hide constants in O~(⋅)\widetilde O(\cdot)O(⋅) and, in one case, use an unspecified O(δ)O(\delta)O(δ) failure probability Cheung et al., pp. 14–25. This proposal supplies statements for solvers; it does not claim that these new statements already have machine-checked proofs.

Where the difficulty lies

The current model need not resemble the model that generated every observation in the window. A direct stationary confidence argument cannot control the resulting temporal error. The challenge is especially visible at a pair with no recent visits: its comparison transition vector is zero, although a genuine transition row has total mass one. The paper's Lemma 3, read literally for every pair, fails in that case. The mission states its positive-count condition explicitly while keeping the proposition and the later optimism and transition milestones valid at unvisited pairs Cheung et al., pp. 12, 38–40.

There is a separate issue with the printed dual-bias lemma. Feasibility alone permits an arbitrarily large dual gain and does not force the asserted 2D2D2D span bound. The mission adds ρ≤2\rho\le2ρ≤2 to Lemma 2 and records the change for audit. The EVI output is represented by its selected-model membership, bias normalization, optimism, and near-optimality properties; this is the contract stated for the algorithm's output, rather than a formal execution of extended value iteration Cheung et al., pp. 13, 33, 35–36.

Formalization scope

States and ambient actions are Fin S and Fin A; permitted actions are state-dependent finite subsets. The setup has S>1S>1S>1, 0<δ<10<\delta<10<δ<1, η≥0\eta\ge0η≥0, and a nonempty action set at each state. Time is zero-based in Lean, while the paper's rounds are one-based; in particular its 1/τ(m)1/\sqrt{\tau(m)}1/τ(m)​ is represented by 1/τm+11/\sqrt{\tau_m+1}1/τm​+1​. Counts and confidence sets are evaluated at the episode start. Variations continue up to the target round. The estimation events are assumed at the episode start, which is the only time used by these statements.

Hitting times and diameter take values in extended nonnegative reals, so an unreachable target does not acquire a false finite diameter. The diameter includes return times and minimizes over deterministic stationary policies. The confidence-radius product SASASA counts actual permitted pairs. At an unvisited pair, the comparison averages remain zero and N+=1N^+=1N+=1; the large confidence radii under the stated bounds are essential. The local transition event uses the ℓ1\ell_1ℓ1​ error condition: literal membership of the zero comparison vector in a simplex would make the paper's event fail. The printed coordinatewise maxima in Property 1 imply the standard joint-distribution optimism condition used here. The free (s,a)(s,a)(s,a) printed in the last radius of Proposition 2 means (st,at)(s_t,a_t)(st​,at​), as the proof's context confirms Cheung et al., pp. 12, 14, 36, 40–41.

Two milestones carry a pinned hypothesis because the printed statement is false without it: Lemma 2 assumes the dual gain satisfies ρ≤2\rho\le 2ρ≤2 (an arbitrary feasible ρ\rhoρ can make the bias span exceed 2D2D2D), and Lemma 3 assumes the pair was visited in the episode-start window (at an unvisited pair the comparison averages are zero). Proposition 2 is stated for every round t≥τ(m)t\ge\tau(m)t≥τ(m) before the horizon at which the action is the episode policy's choice, which covers the rounds of episode mmm; the coefficient 4D4D4D of η\etaη is kept as printed.

The witness MDP has genuine probability rows in the widened sets and a diameter bound. The EVI tuple obeys both stated properties, and the chosen action obeys its policy. These conditions prevent an unconstrained bias, a spurious zero diameter, a confidence event at the wrong time, or a reward bound for an unrelated action. The published FiniteMDPLearning model supplies probability rows and rewards in [0,1][0,1][0,1]; its different travel-time convention is not substituted for the paper's diameter. Contributions to the MDP linear program, finite-state hitting times, window-average inequalities, and confidence-region geometry are all useful beyond this mission.

Selected references

  • W. C. Cheung, D. Simchi-Levi and R. Zhu, Non-Stationary Reinforcement Learning: The Blessing of (More) Optimism, arXiv:1906.02922v4, 2020; published as Nonstationary Reinforcement Learning: The Blessing of (More) Optimism, Management Science, 2023. Preprint; journal DOI.
  • T. Jaksch, R. Ortner and P. Auer, Near-optimal regret bounds for reinforcement learning, Journal of Machine Learning Research 11, 2010. Article.
10 thms2 active usersReviewed
Linear OptimizationMarkov ChainOperations Research·Captain: mikedeng1

Nonstationary Reinforcement Learning: The Blessing of (More) Optimism I: No Policy Earns More Than the Sum of Per-Step Optimal Gains Plus 4(D_max+1)√((B_r+2D_max B_p)T)Research Paper

Motivation

Reinforcement learning in a changing environment needs a benchmark that remains meaningful when the transition law and rewards vary from round to round. For a stationary Markov decision process (MDP), the optimal long-run average reward is a standard benchmark. In a nonstationary MDP, summing those stationary optima across rounds is convenient, but it need not equal the best expected reward achievable over the whole horizon: today's action changes tomorrow's state. Cheung, Simchi-Levi and Zhu use Proposition 1 to quantify this gap in their analysis of nonstationary reinforcement learning (preprint, pp. 7–8). This mission formalizes that proposition and the explicit estimates in its proof.

The paper develops algorithms for MDPs with drifting rewards and transitions. Its oracle comparison is useful before any algorithm is chosen: it relates a sum of local, stationary benchmarks to the reward of every non-anticipatory policy, including policies that adapt to the observed trajectory. This separates a property of the environment from the performance of a learning rule. The paper was published in Management Science in 2023; this mission follows the numbered statements and pages of the authors' pinned arXiv preprint (Cheung et al., 2020, pp. 6–8).

Setting

A finite nonstationary MDP has a finite state set S\mathcal SS, a nonempty available-action set As\mathcal A_sAs​ at each state sss, and a horizon of TTT rounds. At round ttt, taking action a∈Asa\in\mathcal A_sa∈As​ in state sss gives a stochastic reward with mean rt(s,a)∈[0,1]r_t(s,a)\in[0,1]rt​(s,a)∈[0,1] and moves to a new state according to the probability distribution pt(⋅∣s,a)p_t(\cdot\mid s,a)pt​(⋅∣s,a). A non-anticipatory policy selects an allowed action using the current state and observations from previous rounds. The target concerns expected sums of the mean rewards, so the distributional shape of the reward noise does not enter its formula (preprint, §2.2, pp. 6–7).

The one-step reward variation Br,tB_{r,t}Br,t​ is the largest value of ∣rt+1(s,a)−rt(s,a)∣|r_{t+1}(s,a)-r_t(s,a)|∣rt+1​(s,a)−rt​(s,a)∣ over allowed state–action pairs. The transition variation Bp,tB_{p,t}Bp,t​ is the largest ℓ1\ell_1ℓ1​ distance between the corresponding transition distributions. Their variation budgets are Br=∑t=1T−1Br,tB_r=\sum_{t=1}^{T-1}B_{r,t}Br​=∑t=1T−1​Br,t​ and Bp=∑t=1T−1Bp,tB_p=\sum_{t=1}^{T-1}B_{p,t}Bp​=∑t=1T−1​Bp,t​, exactly as in equation (1). The budgets are computed from the MDP sequence; they are not independent inputs to the theorem (preprint, p. 6, (1)).

For the stationary MDP at round ttt, ρt∗\rho_t^*ρt∗​ is its optimal long-run average reward. The mission represents it as the optimum of the paper's occupancy linear program (15), whose variables are nonnegative state–action occupancies, satisfy flow balance, and sum to one. A diameter DtD_tDt​ bounds the least expected hitting time between any two states under an allowed stationary policy. The paper's Definition 1 includes equal initial and target states, so this includes a return time. Assumption 1 requires a finite diameter at every round; Dmax⁡D_{\max}Dmax​ is a common bound on those diameters (preprint, pp. 7–8, Definition 1 and Assumption 1; p. 33, (15)).

Formalization targets

Proposition 1: the oracle gap

Write B=Br+2Dmax⁡BpB=B_r+2D_{\max}B_pB=Br​+2Dmax​Bp​. For 0<B≤T0<B\le T0<B≤T and the necessary small-budget condition BT≥1BT\ge1BT≥1, the target is

∑t=1Tρt∗≥EΠ ⁣[∑t=1Trt(st,at)]−4(Dmax⁡+1)BT\sum_{t=1}^{T}\rho_t^*\ge \mathbb E^{\Pi}\!\left[\sum_{t=1}^{T}r_t(s_t,a_t)\right] -4(D_{\max}+1)\sqrt{BT}t=1∑T​ρt∗​≥EΠ[t=1∑T​rt​(st​,at​)]−4(Dmax​+1)BT​

for every initial state and every allowed non-anticipatory policy Π\PiΠ. Quantifying over every policy expresses the paper's maximum over policies without introducing a supremum over an unbounded real-valued function space. The first five targets follow Appendix A.2: a bounded optimal dual potential, the gain-drift inequality (18), the pathwise dual inequality (19), the window inequality (23), and the full-horizon inequality (24). Their constants and index ranges are part of the targets (preprint, pp. 8, 33–34).

Significance

The result gives a finite-horizon comparison between two different benchmarks. The sum of stationary gains is additive over time, while the best expected cumulative reward accounts for how actions alter later states. Proposition 1 says that their difference is controlled by variation and diameter under its hypotheses. This is the paper's justification for using the additive oracle in its dynamic-regret definition; the authors note that the later algorithmic bounds are larger than this comparison term (preprint, p. 8, text after Proposition 1).

The mathematical result is already claimed in the paper. This mission asks for a machine-checked version with explicit finite-horizon distributions, the occupancy LP, the diameter convention, and the drift sums. The new Lean statements currently have placeholders for their proofs; the imported finite-MDP definitions are already published. A completed development would provide reusable code for time-dependent MDP trajectory laws and for comparing stationary LP values as a model drifts. It would also make the precise domain of the square-root bound reviewable independently of the algorithms in the remainder of the paper.

Difficulty

The stationary gain ρt∗\rho_t^*ρt∗​ is not a per-round reward guarantee. An action can collect reward now and put the process in a state whose future reward is poor, so summing stationary optima does not directly bound a nonstationary trajectory. Conversely, treating each round as an independent stationary experiment discards the state dependence that the policy exploits. The diameter controls the cost of that dependence, and variation controls changes between the stationary problems. The proof must connect these objects while preserving the exact factors 2Dmax⁡2D_{\max}2Dmax​, 2W2W2W, and 4TDmax⁡/W4TD_{\max}/W4TDmax​/W in Appendix A.2 (preprint, pp. 33–35).

There is also a small-budget obstruction in the printed Proposition 1. Its stated 0<B≤T0<B\le T0<B≤T permits BT<1BT<1BT<1, where the displayed inequality is false: a two-state, one-action example with a slowly returning state, T=2T=2T=2, and reward drift 10−1210^{-12}10−12 has an oracle sum near 2/112/112/11 while the proposed lower bound on that sum is near 111. The mission therefore adds BT≥1BT\ge1BT≥1 and records the difference from the page. Inequality (24), posed separately, retains the paper's every-integer-window form and needs no such pin.

Formalization scope

States and actions are Fin S and Fin A; available actions form a nonempty Finset at each state, and S>0S>0S>0. The imported FiniteMDPLearning structure supplies reward rows in [0,1][0,1][0,1] and transition probability rows. It has rows for actions unavailable at a particular state; all mathematical maxima, LP constraints, policy restrictions, and drift formulas use only allowed pairs. The source's time t∈{1,…,T}t\in\{1,\ldots,T\}t∈{1,…,T} is stored at Lean index t−1t-1t−1. No value of the MDP sequence after the horizon enters a stated budget or reward sum.

The occupancy LP has a nonempty bounded feasible-value set under the standing MDP assumptions; its real supremum denotes ρ∗\rho^*ρ∗. Hitting times and diameters use extended nonnegative reals to retain infinity, rather than silently converting an infinite hitting time to zero. The diameter includes same-state return times and minimizes over deterministic stationary policies; such policies attain the hitting-time minimum. The policy used for cumulative reward is a history-dependent randomized kernel on state–action histories. Conditioning an action rule that also observes past rewards on that history yields the same state–action trajectory law. The nonstationary measure samples the next state with the current round's transition law and is a probability measure.

The fixed Dmax⁡D_{\max}Dmax​ is constrained to bound every round's diameter; it is not an unrelated parameter. The stated BT≥1BT\ge1BT≥1 pin rules out the false small-budget case. In (23), the paper's last-window drift sum includes B⋅,TB_{\cdot,T}B⋅,T​, which equation (1) does not define; the formal sum retains all defined terms through T−1T-1T−1. The goal and milestones do not weaken ρt∗\rho_t^*ρt∗​, restrict the policy class to a convenient subclass, or omit a time step. Contributions on LP duality, finite-horizon trajectory expectations, hitting-time bounds, and drift inequalities are useful beyond this proposition. The paper's headline Theorems 1–4 are not posed here because their O~\widetilde OO notation hides constants (preprint, p. 6, §2.1).

Selected references

  • W. C. Cheung, D. Simchi-Levi and R. Zhu, Non-Stationary Reinforcement Learning: The Blessing of (More) Optimism, arXiv:1906.02922v4, 2020; published as Nonstationary Reinforcement Learning: The Blessing of (More) Optimism, Management Science, 2023. Preprint; published article.
  • T. Jaksch, R. Ortner and P. Auer, Near-Optimal Regret Bounds for Reinforcement Learning, Journal of Machine Learning Research 11, 2010. Article. The source paper cites its diameter and bias-span results in Definition 1 and Appendix A.1.
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. Book. The source paper cites it for the average-reward occupancy LP on p. 33.
9 thms2 active usersReviewed
Markov ChainOperations ResearchProbability·Captain: mikedeng1

Optimistic Posterior Sampling for Reinforcement Learning: Worst-Case Regret Bounds I: An Extended MDP with δ-Optimistic Samples for Hitting Times Has Diameter at Most D/(1−δ)Research Paper

Motivation

Regret bounds for reinforcement learning in a single, non-episodic Markov decision process (MDP) are stated in terms of the diameter DDD of the MDP: the worst expected time needed to travel between two states when the travel policy is chosen well. UCRL2 (Jaksch, Ortner and Auer, 2010) achieves regret O~(DSAT)\tilde O(DS\sqrt{AT})O~(DSAT​), against a lower bound of Ω(DSAT)\Omega(\sqrt{DSAT})Ω(DSAT​), by planning in an extended MDP, whose action set lets the planner also pick a transition law from a confidence set. Posterior-sampling methods replace the confidence set with random samples from a posterior. Agrawal and Jia (arXiv:1705.07041v3, published in Mathematics of Operations Research, 2023) show that such a method attains a high-probability worst-case regret bound of O~(DSAT)\tilde O(DS\sqrt{AT})O~(DSAT​) for every communicating MDP (their Theorem 1).

Their analysis plans in an extended MDP built from finitely many sampled transition vectors. Optimal-gain policies of that MDP are only useful if it is itself communicating with a diameter comparable to DDD, so the paper needs a deterministic statement: if every state-action pair has a sample that is optimistic about travel times, the diameter of the extended MDP is at most D/(1−δ)D/(1-\delta)D/(1−δ). This mission formalizes that statement, Lemma 5.6 of the paper (p. 12), together with three claims from its proof.

Setting

A finite MDP M\mathcal MM has a finite state set S\mathcal SS of size SSS, a finite action set A\mathcal AA of size AAA, a probability vector Ps,a∈ΔSP_{s,a}\in\Delta^{S}Ps,a​∈ΔS for each state sss and action aaa, and rewards rs,a∈[0,1]r_{s,a}\in[0,1]rs,a​∈[0,1]. A deterministic policy is a map π:S→A\pi:\mathcal S\to\mathcal Aπ:S→A; under π\piπ the state process is the Markov chain with transition rows Ps,π(s)P_{s,\pi(s)}Ps,π(s)​.

For states s′s's′ and sss, Ts′→sπ∈[0,∞]T^{\pi}_{s'\to s}\in[0,\infty]Ts′→sπ​∈[0,∞] is the expected number of steps to reach sss when starting at s′s's′ and following π\piπ. It is 000 when s′=ss'=ss′=s. The diameter is

D(M)=max⁡s≠s′ min⁡π:S→ATs→s′π,D(\mathcal M)=\max_{s\neq s'}\ \min_{\pi:\mathcal S\to\mathcal A} T^{\pi}_{s\to s'},D(M)=s=s′max​ π:S→Amin​Ts→s′π​,

and M\mathcal MM is communicating when D(M)<∞D(\mathcal M)<\inftyD(M)<∞ (Definitions 1–3, p. 3). For a target sss, the vector EsE^{s}Es collects the minimum expected times, Es′s=min⁡πTs′→sπE^{s}_{s'}=\min_{\pi}T^{\pi}_{s'\to s}Es′s​=minπ​Ts′→sπ​, so Ess=0E^{s}_{s}=0Ess​=0.

The extended MDP (§3, p. 5) starts from ψ\psiψ probability vectors Qs,a1,…,Qs,aψQ^{1}_{s,a},\dots,Q^{\psi}_{s,a}Qs,a1​,…,Qs,aψ​ for every pair (s,a)(s,a)(s,a). In the algorithm these are posterior samples, but here they are arbitrary. The extended MDP M~\tilde{\mathcal M}M~ has the same states and, for every action aaa, the actions a1,…,aψa^{1},\dots,a^{\psi}a1,…,aψ. Taking aja^{j}aj in sss gives reward rs,ar_{s,a}rs,a​, and the next state is drawn from Qs,ajQ^{j}_{s,a}Qs,aj​. Its diameter D(M~)D(\tilde{\mathcal M})D(M~) is defined as above, minimizing over policies π~:S→{aj}\tilde\pi:\mathcal S\to\{a^{j}\}π~:S→{aj}.

Formalization targets

Goal: Lemma 5.6

Let δ∈[0,1)\delta\in[0,1)δ∈[0,1). Suppose that for every target state sss, every state s′s's′ and every action aaa there is a sample index jjj with

Qs′,aj⋅Es ≤ Ps′,a⋅Es+δ.(16)Q^{j}_{s',a}\cdot E^{s}\ \le\ P_{s',a}\cdot E^{s}+\delta. \tag{16}Qs′,aj​⋅Es ≤ Ps′,a​⋅Es+δ.(16)

Then

D(M~) ≤ D(M)1−δ.D(\tilde{\mathcal M})\ \le\ \frac{D(\mathcal M)}{1-\delta}.D(M~) ≤ 1−δD(M)​.

Milestones (claims of the proof, p. 13)

  1. In a communicating MDP with at least one action, for every target s2s_2s2​ there is one deterministic policy π\piπ with Ts′→s2π=Es′s2T^{\pi}_{s'\to s_2}=E^{s_2}_{s'}Ts′→s2​π​=Es′s2​​ for every s′s's′.
  2. First-step analysis: for every policy π\piπ and s≠s2s\neq s_2s=s2​,
Ts→s2π=1+∑s′≠s2Ps,π(s)(s′) Ts′→s2π.T^{\pi}_{s\to s_2}=1+\sum_{s'\neq s_2}P_{s,\pi(s)}(s')\,T^{\pi}_{s'\to s_2}.Ts→s2​π​=1+s′=s2​∑​Ps,π(s)​(s′)Ts′→s2​π​.
  1. Comparison (display (17)): if E∈[0,∞]SE\in[0,\infty]^{\mathcal S}E∈[0,∞]S satisfies 1+∑s′≠s2Qs,π~(s)(s′)Es′≤Es+δ1+\sum_{s'\neq s_2}Q_{s,\tilde\pi(s)}(s')E_{s'}\le E_s+\delta1+∑s′=s2​​Qs,π~(s)​(s′)Es′​≤Es​+δ for all s≠s2s\neq s_2s=s2​, then (1−δ) Ts→s2π~≤Es(1-\delta)\,T^{\tilde\pi}_{s\to s_2}\le E_s(1−δ)Ts→s2​π~​≤Es​ for all s≠s2s\neq s_2s=s2​.

Significance

The result. Lemma 5.6 turns a per-pair, one-sided condition on samples into a global bound on the diameter. Agrawal and Jia combine it with their Lemma 5.7, which shows that (16) holds with δ≤1/2\delta\le 1/2δ≤1/2 with high probability for their posterior samples. Together these give D(M~k)≤2DD(\tilde{\mathcal M}^{k})\le 2DD(M~k)≤2D in every epoch, which is what lets the bias span of the sampled MDP enter their regret analysis. The lemma is deterministic and makes no use of how the samples were drawn, so it applies to any optimistic-sampling or perturbation scheme that produces vectors satisfying (16).

Formalizing it. The lemma is proved in the paper; no machine-checked version exists. The paper's proof assumes that every sampled entry is strictly positive ("drawn from Dirichlet distribution") so that the absorbing chain and its fundamental matrix are well defined. That assumption fails for the simple optimistic samples of the same algorithm, which can have zero entries. The statements here drop it, so a formal proof also settles the general case. Milestones 1 and 2 are standard facts about minimum expected hitting times (stochastic shortest paths) that the platform's finite-MDP library does not yet contain. They are reusable for any diameter-based regret analysis.

The main regret bound (Theorem 1) is not posed. Its constants are hidden in O(⋅)O(\cdot)O(⋅), and the algorithm's parameters are given only up to Θ(⋅)\Theta(\cdot)Θ(⋅).

Difficulty

The paper's argument inverts I−Qπ~†I-Q^{\dagger}_{\tilde\pi}I−Qπ~†​ and uses the nonnegativity of the fundamental matrix of an absorbing chain. Without positive entries the policy π~\tilde\piπ~ can have closed classes that avoid the target, so I−Qπ~†I-Q^{\dagger}_{\tilde\pi}I−Qπ~†​ can be singular and the matrix argument does not apply as written. The comparison has to be made with expected travel times that may be infinite.

A second obstacle is that (16) constrains only the minimizing vectors EsE^{s}Es of the true MDP. The bound therefore needs a policy of M\mathcal MM whose travel times equal Es2E^{s_2}Es2​ from every state at once, not merely from the starting state s1s_1s1​. The existence of such a uniformly optimal deterministic policy is not immediate from the definition of the diameter, which minimizes separately for each pair of states.

Finally, the platform's expected travel time is defined through finite-horizon trajectory laws, so first-step analysis is a Markov-property computation on those measures. It does not follow from the definition by unfolding alone.

Formalization scope

  • Library. The mission reuses the published definitions FiniteMDPLearning (namespace BanditAlgorithm): FiniteMDP S A, mdpTravelTime M f src tgt (the expected hitting time minus one, valued in [0,∞][0,\infty][0,∞], equal to Tsrc→tgtfT^{f}_{src\to tgt}Tsrc→tgtf​), and mdpDiameterENN M (Definition 2 verbatim, valued in [0,∞][0,\infty][0,∞]). The mission's own definitions file adds extendedMDP, extendedAction and minTravel (the vector EsE^{s}Es).
  • Indexing. States, actions and samples are 0-based (Fin S, Fin A, Fin ψ). The action aja^{j}aj of the extended MDP is finProdFinEquiv (a, j) : Fin (A * ψ). The epoch index kkk plays no role and is dropped.
  • Extended values. Travel times, diameters, the vectors EsE^{s}Es and the inner products Q⋅EsQ\cdot E^{s}Q⋅Es are computed in [0,∞][0,\infty][0,∞] with 0⋅∞=00\cdot\infty=00⋅∞=0. The bound D/(1−δ)D/(1-\delta)D/(1−δ) is division in [0,∞][0,\infty][0,∞] by the positive real 1−δ1-\delta1−δ, with δ∈[0,1)\delta\in[0,1)δ∈[0,1) as δ : ℝ≥0, δ < 1.
  • Quantifiers of (16). The printed (16) uses the letter sss both for the target of EsE^{s}Es and for the state in Ps,aP_{s,a}Ps,a​. The proof applies it at the current state with a different target, so the goal quantifies the target separately: for every target, state and action there is a sample.
  • Pinned hypotheses. Milestone 1 assumes D(M)<∞D(\mathcal M)<\inftyD(M)<∞ (the paper's "M\mathcal MM has diameter DDD") and A≥1A\ge1A≥1. The goal assumes neither: if D(M)=∞D(\mathcal M)=\inftyD(M)=∞ its bound is trivially true, so it generalizes the paper's statement. No statement assumes positivity of the sampled entries or any distribution of the samples.
  • Ruled-out trivializations. An extended MDP whose transitions ignore jjj or QQQ, an EsE^{s}Es that is not the infimum over policies, a hypothesis comparing QQQ and PPP against different vectors, and a real-valued conclusion through a truncation with junk value 000 for non-communicating MDPs would each make the goal vacuous or different. None is used.
  • Useful existing result. The platform has the proved drift criterion BanditAlgorithm.mdp_travel_time_le_of_lyapunov_drift (a real-valued nonnegative VVV with ∑s′Ps,f(s)(s′)V(s′)+1≤V(s)\sum_{s'}P_{s,f(s)}(s')V(s')+1\le V(s)∑s′​Ps,f(s)​(s′)V(s′)+1≤V(s) off the target bounds the travel time by VVV), which covers the case δ=0\delta=0δ=0 of milestone 3 for finite EEE.
  • Welcome contributions. Proofs of the three milestones and of the goal; a general first-step (Markov property) lemma for mdpMeasure; an existence theorem for uniformly optimal deterministic policies of minimum expected hitting time.

Selected references

  • S. Agrawal and R. Jia, Posterior sampling for reinforcement learning: worst-case regret bounds, arXiv:1705.07041v3, 2020; published as Optimistic posterior sampling for reinforcement learning: worst-case regret bounds, Mathematics of Operations Research, 2023. https://arxiv.org/abs/1705.07041
  • T. Jaksch, R. Ortner and P. Auer, Near-optimal regret bounds for reinforcement learning, Journal of Machine Learning Research 11, 2010. https://www.jmlr.org/papers/v11/jaksch10a.html
  • D. P. Bertsekas and J. N. Tsitsiklis, An analysis of stochastic shortest path problems, Mathematics of Operations Research 16(3), 1991. https://doi.org/10.1287/moor.16.3.580
  • C. M. Grinstead and J. L. Snell, Introduction to Probability, American Mathematical Society, 2nd revised edition, 1997 (Chapter 11, absorbing Markov chains). https://math.dartmouth.edu/~prob/prob/prob.pdf
  • T. Lattimore and C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020 (Chapter 38, MDPs and the diameter). https://tor-lattimore.com/downloads/book/book.pdf
6 thms2 active usersReviewed
Bandit AlgorithmsMachine Learning·Captain: mikedeng1

The Statistical Complexity of Interactive Decision Making V: The Multi-Armed Bandit Has Localized DEC at Least 2⁻⁶·A/γ, via Hard Families of ModelsResearch Paper

Motivation

The Decision-Estimation Coefficient (DEC) of Foster, Kakade, Qian and Rakhlin (arXiv:2112.13487) is a single complexity measure that bounds the minimax regret of interactive decision making (bandits, reinforcement learning, and their structured variants) from above and from below. Its lower bound (Theorem 3.2 of the paper) states that every algorithm suffers expected regret at least a constant times decγ(Mεγ∞(M‾),M‾)⋅T\mathsf{dec}_\gamma(\mathcal{M}^\infty_{\varepsilon_\gamma}(\overline{M}), \overline{M}) \cdot Tdecγ​(Mεγ​∞​(M),M)⋅T, so concrete lower bounds on regret follow from concrete lower bounds on the DEC of localized model classes.

The multi-armed bandit is the first test of this program. Its minimax regret Θ(AT)\Theta(\sqrt{AT})Θ(AT​) is classical (Auer et al., 2002; Audibert and Bubeck, 2010). Section 5.1 of the paper recovers it through the DEC: posterior sampling (Proposition 5.1) and inverse gap weighting (Proposition 5.2) bound the DEC by A/γA/\gammaA/γ from above, and Proposition 5.3 bounds it by 2−6A/γ2^{-6} A/\gamma2−6A/γ from below. The lower bound is proved through a hard family of models (Definition 5.1, Lemma 5.1), the device that the paper reuses for linear, ReLU and gap-dependent lower bounds in §§6–7.

Setting

A decision space Π\PiΠ is a finite set; here Π=[A]={1,…,A}\Pi = [A] = \{1, \dots, A\}Π=[A]={1,…,A}, the arms. A model MMM assigns to every arm π\piπ a distribution M(π)M(\pi)M(π) over rewards in R=[0,1]\mathcal{R} = [0,1]R=[0,1] (observations are trivial). Its mean reward is fM(π)=Er∼M(π)[r]f^M(\pi) = \mathbb{E}_{r \sim M(\pi)}[r]fM(π)=Er∼M(π)​[r], and πM∈arg⁡max⁡πfM(π)\pi_M \in \arg\max_\pi f^M(\pi)πM​∈argmaxπ​fM(π) is an optimal arm. The squared Hellinger distance between distributions P,QP, QP,Q on a finite set is DH2(P,Q)=∑y(P(y)−Q(y))2D^2_{\mathrm{H}}(P, Q) = \sum_y (\sqrt{P(y)} - \sqrt{Q(y)})^2DH2​(P,Q)=∑y​(P(y)​−Q(y)​)2 (no factor 12\tfrac1221​, the paper's (5)).

For a class M\mathcal{M}M of models, a reference model M‾\overline{M}M and γ>0\gamma > 0γ>0, the DEC (2) is

decγ(M,M‾)=inf⁡p∈Δ(Π)sup⁡M∈MEπ∼p[fM(πM)−fM(π)−γ⋅DH2(M(π),M‾(π))].\mathsf{dec}_\gamma(\mathcal{M}, \overline{M}) = \inf_{p \in \Delta(\Pi)} \sup_{M \in \mathcal{M}} \mathbb{E}_{\pi \sim p}\Bigl[ f^M(\pi_M) - f^M(\pi) - \gamma \cdot D^2_{\mathrm{H}}\bigl(M(\pi), \overline{M}(\pi)\bigr) \Bigr].decγ​(M,M)=p∈Δ(Π)inf​M∈Msup​Eπ∼p​[fM(πM​)−fM(π)−γ⋅DH2​(M(π),M(π))].

With gM(π)=fM(πM)−fM(π)g^M(\pi) = f^M(\pi_M) - f^M(\pi)gM(π)=fM(πM​)−fM(π), the L∞L_\inftyL∞​-localized class (12) is Mε∞(M‾)={M∈M:∣gM(π)−gM‾(π)∣≤ε ∀π}\mathcal{M}^\infty_\varepsilon(\overline{M}) = \{ M \in \mathcal{M} : |g^M(\pi) - g^{\overline{M}}(\pi)| \le \varepsilon\ \forall \pi \}Mε∞​(M)={M∈M:∣gM(π)−gM(π)∣≤ε ∀π}.

A reference model M‾∈M\overline{M} \in \mathcal MM∈M and models M1,…,MN∈MM_1, \dots, M_N \in \mathcal MM1​,…,MN​∈M, N≥2N \ge 2N≥2, form an (α,β,δ)(\alpha, \beta, \delta)(α,β,δ)-family (Definition 5.1) if there are ui,vi:Π→[0,1]u_i, v_i : \Pi \to [0,1]ui​,vi​:Π→[0,1] with ∑iui(π)≤N/2\sum_i u_i(\pi) \le N/2∑i​ui​(π)≤N/2, ∑ivi(π)≤1\sum_i v_i(\pi) \le 1∑i​vi​(π)≤1, fMi(πMi)−fMi(π)≥α(1−ui(π))f^{M_i}(\pi_{M_i}) - f^{M_i}(\pi) \ge \alpha(1 - u_i(\pi))fMi​(πMi​​)−fMi​(π)≥α(1−ui​(π)) and DH2(Mi(π),M‾(π))≤βvi(π)+δD^2_{\mathrm{H}}(M_i(\pi), \overline{M}(\pi)) \le \beta v_i(\pi) + \deltaDH2​(Mi​(π),M(π))≤βvi​(π)+δ. Ber(q)\mathrm{Ber}(q)Ber(q) is the Bernoulli distribution with mean qqq.

Formalization targets

Goal: Proposition 5.3

For A≥2A \ge 2A≥2 arms, M‾(π)=Ber(12)\overline{M}(\pi) = \mathrm{Ber}(\tfrac12)M(π)=Ber(21​) and every γ≥A/3\gamma \ge A/3γ≥A/3, with εγ=A12γ\varepsilon_\gamma = \frac{A}{12\gamma}εγ​=12γA​,

decγ(Mεγ∞(M‾),M‾)≥2−6⋅Aγ.\mathsf{dec}_\gamma\bigl(\mathcal{M}^\infty_{\varepsilon_\gamma}(\overline{M}), \overline{M}\bigr) \ge 2^{-6} \cdot \frac{A}{\gamma}.decγ​(Mεγ​∞​(M),M)≥2−6⋅γA​.

Milestones

  1. Lemma A.7: DH2(Ber(p),Ber(q))≤(p−q)2(1p+q+12−p−q)D^2_{\mathrm{H}}(\mathrm{Ber}(p), \mathrm{Ber}(q)) \le (p-q)^2\bigl(\frac{1}{p+q} + \frac{1}{2-p-q}\bigr)DH2​(Ber(p),Ber(q))≤(p−q)2(p+q1​+2−p−q1​), and in particular DH2(Ber(12+Δ),Ber(12))≤3Δ2D^2_{\mathrm{H}}(\mathrm{Ber}(\tfrac12 + \Delta), \mathrm{Ber}(\tfrac12)) \le 3\Delta^2DH2​(Ber(21​+Δ),Ber(21​))≤3Δ2 for Δ∈(0,12)\Delta \in (0, \tfrac12)Δ∈(0,21​).
  2. Lemma 5.1: an (α,β,δ)(\alpha, \beta, \delta)(α,β,δ)-family M′\mathcal{M}'M′ with β≥0\beta \ge 0β≥0 satisfies decγ(M′,M‾)≥α2−γ(βN+δ)\mathsf{dec}_\gamma(\mathcal{M}', \overline{M}) \ge \frac{\alpha}{2} - \gamma(\frac{\beta}{N} + \delta)decγ​(M′,M)≥2α​−γ(Nβ​+δ) for all γ>0\gamma > 0γ>0.
  3. The hard family of the proof: Mi(π)=Ber(12+Δ I{π=i})M_i(\pi) = \mathrm{Ber}(\tfrac12 + \Delta\,\mathbb{I}\{\pi = i\})Mi​(π)=Ber(21​+ΔI{π=i}) is a (Δ,3Δ2,0)(\Delta, 3\Delta^2, 0)(Δ,3Δ2,0)-family around Ber(12)\mathrm{Ber}(\tfrac12)Ber(21​).
  4. Localization: this family lies in MΔ∞(M‾)\mathcal{M}^\infty_\Delta(\overline{M})MΔ∞​(M).

Companions

The mission also states monotonicity of the DEC in the class (the step from the family to the localized class), Proposition 5.1 (posterior sampling bounds the dual square-loss DEC by A/γA/\gammaA/γ), and Proposition 6.7, the gap-dependent variant: for bandits with gap exactly Δ∈(0,18)\Delta \in (0, \tfrac18)Δ∈(0,81​), some M‾\overline{M}M in the class has decγ(MΔ∞(M‾),M‾)≥Δ4I{γ≤A48Δ}\mathsf{dec}_\gamma(\mathcal{M}^\infty_\Delta(\overline{M}), \overline{M}) \ge \frac{\Delta}{4}\mathbb{I}\{\gamma \le \frac{A}{48\Delta}\}decγ​(MΔ∞​(M),M)≥4Δ​I{γ≤48ΔA​}. Proposition 5.2 (inverse gap weighting) and the decoupling step of Proposition 5.1 are already proved on the platform and are included as references.

Significance

Proposition 5.3 is the DEC half of the Ω(AT)\Omega(\sqrt{AT})Ω(AT​) minimax lower bound for multi-armed bandits: combined with Theorem 3.2 and γ≍AT\gamma \asymp \sqrt{AT}γ≍AT​, it shows that the general DEC theory loses nothing in rate on the most basic interactive problem, and that the A/γA/\gammaA/γ upper bounds of Propositions 5.1 and 5.2 are tight up to constants. Lemma 5.1 is reusable: any lower bound on the DEC of a class can be obtained by exhibiting a hard family, and the paper uses it for linear bandits (Proposition 6.2), ReLU bandits (Proposition 6.6) and gap-dependent bounds (Propositions 6.7, 6.8).

The results are proved in the paper. As far as is known, none of them is machine-checked. A formal development provides a verified Bernoulli Hellinger bound, a reusable hard-family lemma for the DEC as published on the platform, and the first verified DEC lower bound for a concrete class.

Difficulty

The DEC is an inf-sup, so a lower bound must hold against every exploration distribution ppp. A natural first attempt picks a single alternative model and compares; this fails because ppp can concentrate on the arm where that alternative differs and then the Hellinger penalty cancels the regret. The family must be spread so that no single ppp is good for all of its members at once, and the constants must balance the regret term against the information term at the chosen Δ\DeltaΔ. In Lean, an additional difficulty is that the DEC is written with real sInf/sSup, which are 000 on empty or unbounded sets: every lower bound requires showing that the relevant sets are nonempty and bounded, and passing from the family to the localized class needs monotonicity of the DEC, which the paper uses without comment.

Formalization scope

  • Finite alphabets. The paper works over measurable spaces; this mission formalizes the finite-alphabet case, as the published FoundationsRL layer does. A model is m : S → Y → ℝ with every m π a probability vector; expectations are finite sums. The DEC is the published FoundationsRL.GeneralDM.decGf, the Hellinger distance hellingerSq, the mean reward fM.
  • Bernoulli subclass. The bandit class is the Bernoulli bandits (Y = Bool, reward 111 on true), a subclass of the paper's all-distributions-on-[0,1][0,1][0,1] class. The DEC is monotone in the class and the localized class shrinks with the class, so the Bernoulli lower bounds imply the paper's.
  • Optimal-arm selector. πM\pi_MπM​ is a parameter piStar with the hypothesis that it picks a maximizer of fMf^MfM; every statement holds for every such selector, so for whichever maximizer the paper meant (the reference Ber(12)\mathrm{Ber}(\tfrac12)Ber(21​) has every arm optimal).
  • Added or dropped hypotheses. Lemma 5.1 makes the page's nonempty decision space explicit; its optimal-arm selector also implies nonemptiness. It adds β≥0\beta \ge 0β≥0, necessary for the printed averaging argument: without it, even identical models can contradict (52). The family definition includes membership of the reference and family models in a probability-model class. The localization claim inherits A≥2A \ge 2A≥2 from Proposition 5.3. Proposition 6.7 states A≥2A \ge 2A≥2, implicit on the page since a gap needs two arms. Proposition 5.1 represents models by their mean vectors and priors as finitely supported (footnote 5).
  • Constants. All constants are the page's: 2−62^{-6}2−6, A/(12γ)A/(12\gamma)A/(12γ), γ≥A/3\gamma \ge A/3γ≥A/3, 3Δ23\Delta^23Δ2, 5Δ25\Delta^25Δ2, Δ/4\Delta/4Δ/4, A/(48Δ)A/(48\Delta)A/(48Δ). The page's proof of Proposition 6.7 names a (Δ,5Δ2,0)(\Delta, 5\Delta^2, 0)(Δ,5Δ2,0)-family but computes with 12Δ212\Delta^212Δ2; the stated proposition is the one its arithmetic supports.
  • No trivialization. A formalization in which the localized class could be empty, or the payoffs unbounded, would make decGf evaluate to the junk value 000; the goal is stated over a class containing M‾\overline{M}M with bounded rewards, so the inequality is the genuine one, and its right side 2−6A/γ2^{-6} A/\gamma2−6A/γ is strictly positive.

Contributions welcome: proofs of the milestones in attack order, sorry-free lemmas on nonemptiness and boundedness of the DEC's inner sets (reusable for every DEC lower bound in this series), and a proof of the gap-dependent companion.

Selected references

  • D. J. Foster, S. M. Kakade, J. Qian, A. Rakhlin, The Statistical Complexity of Interactive Decision Making, arXiv preprint, 2021 (v3, 2023). https://arxiv.org/abs/2112.13487
  • D. J. Foster, A. Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, lecture notes, 2023. https://arxiv.org/abs/2312.16730
  • P. Auer, N. Cesa-Bianchi, Y. Freund, R. E. Schapire, The Nonstochastic Multiarmed Bandit Problem, SIAM Journal on Computing 32(1), 2002. https://doi.org/10.1137/S0097539701398375
  • J.-Y. Audibert, S. Bubeck, Regret Bounds and Minimax Policies under Partial Monitoring, Journal of Machine Learning Research 11, 2010. https://www.jmlr.org/papers/v11/audibert10a.html
  • D. J. Foster, A. Rakhlin, Beyond UCB: Optimal and Efficient Contextual Bandits with Regression Oracles, ICML, 2020. https://arxiv.org/abs/2002.04926
13 thms2 active usersReviewed
Dynamic ProgrammingMachine Learning·Captain: mikedeng1

On the Sample Complexity of Reinforcement Learning III: Non-Stationary Approximate Policy Iteration Is Within 2T Times the Regression Error Averaged over Any Competitor's State-Time DistributionTextbook

Motivation

Approximate dynamic programming replaces the exact value functions of a Markov decision process by approximations, typically produced by a regression algorithm. The classical guarantees for the resulting policies are stated in the max norm: if every state-action value is estimated to within ε\varepsilonε uniformly over the state space, the greedy policy loses at most a multiple of ε\varepsilonε (Williams and Baird 1993; Bertsekas and Tsitsiklis 1996). Regression algorithms, however, control an average error under the distribution on which they are trained, not a worst-case error, so these guarantees rarely apply to the approximations actually computed.

Chapter 5 of S. M. Kakade's PhD thesis (On the Sample Complexity of Reinforcement Learning, UCL 2003, pp. 57–66) identifies the distribution under which the error of an approximate policy iteration algorithm should be measured. For the finite-horizon, non-stationary approximate policy iteration algorithm (NAPI), the loss relative to any competitor policy is bounded by twice the horizon times the regression error averaged under the future state-time distribution of that competitor. Taking the competitor optimal, the relevant "test" distribution is the one visited by an optimal policy, generally not the distribution on which the regressor was trained; the thesis calls this the "mismeasure" of reinforcement learning. The key tool, the performance difference lemma, was proved for the discounted case by Kakade and Langford (ICML 2002) and is used throughout the conservative policy iteration and policy search literature.

Setting

A TTT-epoch MDP has a finite state set SSS, a finite nonempty action set AAA, decision epochs t∈{0,…,T−1}t\in\{0,\dots,T-1\}t∈{0,…,T−1}, a transition kernel P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) and a deterministic reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1]. A policy π\piπ is a sequence of decision rules π(⋅∣s,t)\pi(\cdot\mid s,t)π(⋅∣s,t), distributions on AAA; it may be stochastic and non-stationary. A deterministic policy hhh chooses the action h(s,t)h(s,t)h(s,t).

Values are normalized. The ttt-value is Vπ,t(s)=1TE[∑τ=tT−1r(sτ,aτ)∣st=s]V_{\pi,t}(s)=\frac1T\mathbb E\big[\sum_{\tau=t}^{T-1}r(s_\tau,a_\tau)\mid s_t=s\big]Vπ,t​(s)=T1​E[∑τ=tT−1​r(sτ​,aτ​)∣st​=s], so Vπ,t=0V_{\pi,t}=0Vπ,t​=0 for t≥Tt\ge Tt≥T and

Vπ,t(s)=∑aπ(a∣s,t)(1Tr(s,a)+∑s′P(s′∣s,a)Vπ,t+1(s′)),Vπ=Vπ,0.V_{\pi,t}(s)=\sum_a\pi(a\mid s,t)\Big(\tfrac1T r(s,a)+\sum_{s'}P(s'\mid s,a)V_{\pi,t+1}(s')\Big),\qquad V_\pi=V_{\pi,0}.Vπ,t​(s)=a∑​π(a∣s,t)(T1​r(s,a)+s′∑​P(s′∣s,a)Vπ,t+1​(s′)),Vπ​=Vπ,0​.

The state-action value is Qπ,t(s,a)=1Tr(s,a)+Es′∼P(⋅∣s,a)Vπ,t+1(s′)Q_{\pi,t}(s,a)=\frac1T r(s,a)+\mathbb E_{s'\sim P(\cdot\mid s,a)}V_{\pi,t+1}(s')Qπ,t​(s,a)=T1​r(s,a)+Es′∼P(⋅∣s,a)​Vπ,t+1​(s′), the advantage is Aπ,t=Qπ,t−Vπ,tA_{\pi,t}=Q_{\pi,t}-V_{\pi,t}Aπ,t​=Qπ,t​−Vπ,t​, and the optimal value is V∗(s)=sup⁡πVπ(s)V^*(s)=\sup_\pi V_\pi(s)V∗(s)=supπ​Vπ​(s). The future state-time distribution of π\piπ from s0s_0s0​ is

dπ,s0(s,t)=1TPr⁡(st=s∣π,s0)on S×{0,…,T−1}.d_{\pi,s_0}(s,t)=\tfrac1T\Pr(s_t=s\mid\pi,s_0)\quad\text{on } S\times\{0,\dots,T-1\}.dπ,s0​​(s,t)=T1​Pr(st​=s∣π,s0​)on S×{0,…,T−1}.

NAPI (Algorithm 6) starts from an arbitrary deterministic policy and updates its decision rules backwards, t=T−1,…,0t=T-1,\dots,0t=T−1,…,0: at update ttt a PolicyChooser receives the current policy π\piπ and returns a decision rule hth_tht​, which replaces the rule at time ttt. The output is (h0,…,hT−1)(h_0,\dots,h_{T-1})(h0​,…,hT−1​). With RegressionPolicyChooser (Algorithm 7), a regressor returns an approximation Q~π,t\tilde Q_{\pi,t}Q~​π,t​ of Qπ,tQ_{\pi,t}Qπ,t​ and hth_tht​ is greedy for it. The per state error and per state regression error at update ttt are

εt(s)=max⁡aQπ,t(s,a)−Qπ,t(s,ht(s)),ε~t(s)=max⁡a∣Qπ,t(s,a)−Q~π,t(s,a)∣,\varepsilon_t(s)=\max_aQ_{\pi,t}(s,a)-Q_{\pi,t}(s,h_t(s)),\qquad \tilde\varepsilon_t(s)=\max_a|Q_{\pi,t}(s,a)-\tilde Q_{\pi,t}(s,a)|,εt​(s)=amax​Qπ,t​(s,a)−Qπ,t​(s,ht​(s)),ε~t​(s)=amax​∣Qπ,t​(s,a)−Q~​π,t​(s,a)∣,

both measured against the input policy π\piπ of update ttt.

The discounted companions use the normalized discounted value Vπ,γ=(1−γ)E[∑tγtr(st,at)]V_{\pi,\gamma}=(1-\gamma)\mathbb E[\sum_t\gamma^tr(s_t,a_t)]Vπ,γ​=(1−γ)E[∑t​γtr(st​,at​)], its advantage Aπ,γA_{\pi,\gamma}Aπ,γ​, and the Bellman error BJ=sup⁡s,a∣QJ(s,a)−J(s)∣B_J=\sup_{s,a}|Q_J(s,a)-J(s)|BJ​=sups,a​∣QJ​(s,a)−J(s)∣ of a state vector JJJ, where QJ(s,a)=(1−γ)r(s,a)+γEs′J(s′)Q_J(s,a)=(1-\gamma)r(s,a)+\gamma\mathbb E_{s'}J(s')QJ​(s,a)=(1−γ)r(s,a)+γEs′​J(s′).

Formalization targets

Goal: Theorem 5.3.2 (p. 64)

For the policy π\piπ returned by NAPI with RegressionPolicyChooser, every policy π′\pi'π′ and every state s0s_0s0​,

Vπ(s0) ≥ Vπ′(s0)−2T E(s,t)∼dπ′,s0[ε~t(s)].V_\pi(s_0)\ \ge\ V_{\pi'}(s_0)-2T\,\mathbb E_{(s,t)\sim d_{\pi',s_0}}\big[\tilde\varepsilon_t(s)\big].Vπ​(s0​) ≥ Vπ′​(s0​)−2TE(s,t)∼dπ′,s0​​​[ε~t​(s)].

The regression outputs are arbitrary; the statement holds for every regressor and every tie-breaking rule.

Milestones

  • Lemma 5.2.1, undiscounted (p. 59): Vπ′(s0)−Vπ(s0)=T E(s,t)∼dπ′,s0Ea∼π′(⋅∣s,t)[Aπ,t(s,a)]V_{\pi'}(s_0)-V_\pi(s_0)=T\,\mathbb E_{(s,t)\sim d_{\pi',s_0}}\mathbb E_{a\sim\pi'(\cdot\mid s,t)}[A_{\pi,t}(s,a)]Vπ′​(s0​)−Vπ​(s0​)=TE(s,t)∼dπ′,s0​​​Ea∼π′(⋅∣s,t)​[Aπ,t​(s,a)].
  • Lemma 5.3.1 (p. 63): for NAPI's output π~\tilde\piπ~ and the input policy π\piπ of update ttt, Qπ~,t=Qπ,tQ_{\tilde\pi,t}=Q_{\pi,t}Qπ~,t​=Qπ,t​ and Aπ~,t(s,a)≤εt(s)A_{\tilde\pi,t}(s,a)\le\varepsilon_t(s)Aπ~,t​(s,a)≤εt​(s).
  • Display in the proof of Theorem 5.3.2 (p. 64): εt(s)≤2ε~t(s)\varepsilon_t(s)\le2\tilde\varepsilon_t(s)εt​(s)≤2ε~t​(s) when hth_tht​ is greedy for Q~π,t\tilde Q_{\pi,t}Q~​π,t​.
  • Corollary 5.2.2 (p. 61): Vπ(s0)≥V∗(s0)−T∥Aπ,t∥∞V_\pi(s_0)\ge V^*(s_0)-T\|A_{\pi,t}\|_\inftyVπ​(s0​)≥V∗(s0​)−T∥Aπ,t​∥∞​ and Vπ,γ(s0)≥Vγ∗(s0)−11−γ∥Aπ,γ∥∞V_{\pi,\gamma}(s_0)\ge V^*_\gamma(s_0)-\frac{1}{1-\gamma}\|A_{\pi,\gamma}\|_\inftyVπ,γ​(s0​)≥Vγ∗​(s0​)−1−γ1​∥Aπ,γ​∥∞​.
  • Theorem 5.1.3 (Williams–Baird, p. 59): a policy greedy for QJQ_JQJ​ satisfies Vπ,γ(s)≥Vγ∗(s)−2BJ1−γV_{\pi,\gamma}(s)\ge V^*_\gamma(s)-\frac{2B_J}{1-\gamma}Vπ,γ​(s)≥Vγ∗​(s)−1−γ2BJ​​.

The discounted half of Lemma 5.2.1 is already on the platform as ApproxOptRL.CPI.performance_difference and is referenced, not restated.

Significance

The goal replaces a max-norm hypothesis by an average one, under an explicit distribution. Its consequences: the approximation error only matters on the state-time pairs an optimal (or any good) policy visits; a regressor trained under a distribution μ\muμ over state-times performs well when μ\muμ resembles the state-time distribution of a good policy; and only one factor of the horizon TTT appears, against two factors of 1/(1−γ)1/(1-\gamma)1/(1−γ) in the max-norm bounds for discounted approximate value and policy iteration (Chapter 3 of the thesis). The same chain, Lemma 5.2.1 and Lemma 5.3.1, underlies the μ-policy search analysis of Chapter 6 and, in the discounted case, conservative policy iteration.

All statements are proved in the thesis; none of the finite-horizon ones is formalized on the platform. A related performance difference identity, FoundationsRL.RLBasics.performance_difference, is proved on the platform for episodic MDPs with layer-dependent kernels and unnormalized values, with roll-in by one policy; it is the same mathematics up to the 1/T1/T1/T normalization but a different object, and is not reused. The mission produces a reusable normalized TTT-epoch layer (values, advantages, state-time distributions) and machine-checked proofs of the chapter's results.

Difficulty

The obvious approach to Theorem 5.3.2 compares VπV_\piVπ​ with Vπ′V_{\pi'}Vπ′​ through max-norm contraction arguments, as in the discounted analysis of Chapter 3; that route only yields a bound in terms of max⁡s,tε~t(s)\max_{s,t}\tilde\varepsilon_t(s)maxs,t​ε~t​(s) and loses the averaging under dπ′,s0d_{\pi',s_0}dπ′,s0​​. The averaged bound needs an exact identity between value differences and advantages along the competitor's trajectory distribution, which for non-stationary stochastic competitors requires a careful telescoping over epochs of the state distribution recursion. The second difficulty is bookkeeping in the algorithm: the regression error at update ttt is measured against the input policy of that update, whose decision rules at later times have already been replaced, while the bound concerns the returned policy; relating the two requires showing that later updates do not change Q⋅,tQ_{\cdot,t}Q⋅,t​.

Formalization scope

  • Model. S, A are Fintypes with decidable equality, A nonempty; P s a s' is P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) with IsTransitionKernel P; rewards satisfy 0 ≤ r s a ≤ 1 in every statement (the thesis's standing assumption, p. 22). The thesis also allows infinite state spaces; here S is finite.
  • Epochs and normalization. Epochs are 0-based, t∈{0,…,T−1}t\in\{0,\dots,T-1\}t∈{0,…,T−1}, with 0 < T. All values carry the factor 1/T1/T1/T (discounted: 1−γ1-\gamma1−γ), and dπ,s0d_{\pi,s_0}dπ,s0​​ carries 1/T1/T1/T; the constants TTT and 2T2T2T are right only in this normalization.
  • Policies. A policy is ℕ → S → A → ℝ, valid when every rule at a time t<Tt<Tt<T is a distribution. Deterministic policies ℕ → S → A enter through their indicator policies. V∗V^*V∗ is the supremum over the subtype of valid policies. Discounted statements use the published ApproxOptRL.Shared.Model; Vγ∗V^*_\gammaVγ∗​ is the value of an optimal stationary policy.
  • The NAPI run is an explicit recursion (napiPolicy): the policy after updates T−1,…,tT-1,\dots,tT−1,…,t, so the input of update ttt is the policy at stage t+1t+1t+1 and the output is the policy at stage 000. The printed loop "For t=T−1,…,1t=T-1,\dots,1t=T−1,…,1" omits the update at t=0t=0t=0, which would leave the time-0 rule random and make the theorem false; the loop here runs to t=0t=0t=0, as in the proof and in Algorithms 8–9.
  • Ruled out. A "run" whose returned policy is unconstrained, or regression errors measured against the returned policy instead of the input policy of each update, would trivialize or alter the goal; both are excluded by the explicit recursion. That the two measurements agree is Lemma 5.3.1, a milestone, not a definition.
  • Maxima. Maxima over actions are Finset.sup'; ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ on state-action functions is Mathlib's sup norm on S → A → ℝ. BJB_JBJ​ is a single number, as printed in Definition 5.1.2.

Welcome contributions: proofs of the milestones, general lemmas about the TTT-epoch layer (values in [0,1][0,1][0,1], normalization of dπ,s0d_{\pi,s_0}dπ,s0​​, the path-expectation form of Vπ,tV_{\pi,t}Vπ,t​), and links to the platform's discounted performance difference results.

Selected references

  • S. M. Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, Gatsby Computational Neuroscience Unit, University College London, 2003. https://discovery.ucl.ac.uk/id/eprint/10100726/
  • S. Kakade and J. Langford, Approximately Optimal Approximate Reinforcement Learning, ICML 2002. https://dl.acm.org/doi/10.5555/645531.656005
  • R. J. Williams and L. C. Baird, Tight Performance Bounds on Greedy Policies Based on Imperfect Value Functions, Technical Report NU-CCS-93-14, Northeastern University, 1993.
  • D. P. Bertsekas and J. N. Tsitsiklis, Neuro-Dynamic Programming, Athena Scientific, 1996.
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
16 thms2 active usersReviewed
Dynamic ProgrammingMachine LearningOptimization·Captain: mikedeng1

On the Sample Complexity of Reinforcement Learning V: Exact Conservative Policy Iteration Improves at Every Update and Halts within 8H²/ε² Updates with Future Advantages at Most ε/HTextbook

Motivation

Policy iteration replaces the current policy by the greedy policy with respect to its state-action values. With exact values this improves the policy at every state. When the improvement step is only approximate, or is restricted to a class of policies, a greedy replacement can make the policy worse, and the resulting error bounds are stated in max norm over all states, a quantity that sampling cannot control in large state spaces.

Conservative policy iteration (CPI), introduced by Kakade and Langford (ICML 2002) and developed in Chapter 7 of Kakade's PhD thesis (UCL, 2003), takes a different route. Instead of switching to a new policy, it mixes the current policy with a small amount of a better one, and it measures progress by an average over states visited under the current policy rather than by a maximum over all states. The thesis proves that the exact form of the algorithm improves its objective at every step, halts after a number of updates polynomial in the horizon and the accuracy, and returns a policy whose average advantages against an entire policy class are small. The approach underlies later trust-region and conservative update methods in reinforcement learning.

Setting

A finite Markov decision process has a finite state set SSS, a finite action set AAA, transition probabilities P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) and a deterministic reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1]. A stationary policy π\piπ chooses action aaa in state sss with probability π(a∣s)\pi(a\mid s)π(a∣s). For a discount factor 0≤γ<10\le\gamma<10≤γ<1 the normalized value of π\piπ is

Vπ(s)=(1−γ) E[∑t≥0γtr(st,at) ∣ π, s0=s],V_\pi(s)=(1-\gamma)\,\mathbb E\Big[\sum_{t\ge0}\gamma^t r(s_t,a_t)\,\Big|\,\pi,\ s_0=s\Big],Vπ​(s)=(1−γ)E[t≥0∑​γtr(st​,at​)​π, s0​=s],

which lies in [0,1][0,1][0,1]. The state-action value is Qπ(s,a)=(1−γ)r(s,a)+γ Es′∼P(⋅∣s,a)Vπ(s′)Q_\pi(s,a)=(1-\gamma)r(s,a)+\gamma\,\mathbb E_{s'\sim P(\cdot\mid s,a)}V_\pi(s')Qπ​(s,a)=(1−γ)r(s,a)+γEs′∼P(⋅∣s,a)​Vπ​(s′) and the advantage is Aπ(s,a)=Qπ(s,a)−Vπ(s)A_\pi(s,a)=Q_\pi(s,a)-V_\pi(s)Aπ​(s,a)=Qπ​(s,a)−Vπ​(s). The horizon time is H=1/(1−γ)H=1/(1-\gamma)H=1/(1−γ).

Fix a reset distribution μ\muμ on SSS. The value of μ\muμ is Vπ(μ)=Es∼μVπ(s)V_\pi(\mu)=\mathbb E_{s\sim\mu}V_\pi(s)Vπ​(μ)=Es∼μ​Vπ​(s). The discounted future state distribution is

dπ,μ(s)=(1−γ)∑t≥0γtPr⁡(st=s∣π, s0∼μ),d_{\pi,\mu}(s)=(1-\gamma)\sum_{t\ge0}\gamma^t\Pr(s_t=s\mid\pi,\ s_0\sim\mu),dπ,μ​(s)=(1−γ)t≥0∑​γtPr(st​=s∣π, s0​∼μ),

and dπ,s0d_{\pi,s_0}dπ,s0​​ is the case where μ\muμ is the point mass at s0s_0s0​. For another policy hhh:

  • the advantage under a distribution ν\nuν is Aπ(ν,h)=Es∼νEa∼h(⋅∣s)Aπ(s,a)A_\pi(\nu,h)=\mathbb E_{s\sim\nu}\mathbb E_{a\sim h(\cdot\mid s)}A_\pi(s,a)Aπ​(ν,h)=Es∼ν​Ea∼h(⋅∣s)​Aπ​(s,a);
  • the future state-action value is Qπ(μ,h)=Es∼dπ,μEa∼h(⋅∣s)Qπ(s,a)\mathbb Q_\pi(\mu,h)=\mathbb E_{s\sim d_{\pi,\mu}}\mathbb E_{a\sim h(\cdot\mid s)}Q_\pi(s,a)Qπ​(μ,h)=Es∼dπ,μ​​Ea∼h(⋅∣s)​Qπ​(s,a);
  • the future advantage is Aπ(μ,h)=Es∼dπ,μEa∼h(⋅∣s)Aπ(s,a)\mathbb A_\pi(\mu,h)=\mathbb E_{s\sim d_{\pi,\mu}}\mathbb E_{a\sim h(\cdot\mid s)}A_\pi(s,a)Aπ​(μ,h)=Es∼dπ,μ​​Ea∼h(⋅∣s)​Aπ​(s,a).

The conservative update with mixing weight α∈[0,1]\alpha\in[0,1]α∈[0,1] is πnew=(1−α)π+απ′\pi_{\rm new}=(1-\alpha)\pi+\alpha\pi'πnew​=(1−α)π+απ′.

Exact CPI (Algorithm 11) works with a class Π\PiΠ of stationary policies and an accuracy ε>0\varepsilon>0ε>0. Starting from any stationary policy, it repeats three steps:

  1. The ExactPolicyChooser returns π′∈arg⁡max⁡h∈ΠQπ(μ,h)\pi'\in\arg\max_{h\in\Pi}\mathbb Q_\pi(\mu,h)π′∈argmaxh∈Π​Qπ​(μ,h).
  2. If Aπ(μ,π′)>ε/H\mathbb A_\pi(\mu,\pi')>\varepsilon/HAπ​(μ,π′)>ε/H, the algorithm sets α=Aπ(μ,π′)/(4H)\alpha=\mathbb A_\pi(\mu,\pi')/(4H)α=Aπ​(μ,π′)/(4H) and replaces π\piπ by (1−α)π+απ′(1-\alpha)\pi+\alpha\pi'(1−α)π+απ′.
  3. Otherwise it halts and returns π\piπ.

Formalization targets

Goal: Theorem 7.3.2, explicit-constant form

Every run π0,π1,…\pi_0,\pi_1,\dotsπ0​,π1​,… of Exact CPI has a halting round KKK with

K<8H2ε2,Vπk+1(μ)−Vπk(μ)>ε28H2  (k<K),AπK(μ,h)≤εH  (h∈Π).K<\frac{8H^2}{\varepsilon^2},\qquad V_{\pi_{k+1}}(\mu)-V_{\pi_k}(\mu)>\frac{\varepsilon^2}{8H^2}\ \ (k<K),\qquad \mathbb A_{\pi_K}(\mu,h)\le\frac{\varepsilon}{H}\ \ (h\in\Pi).K<ε28H2​,Vπk+1​​(μ)−Vπk​​(μ)>8H2ε2​  (k<K),AπK​​(μ,h)≤Hε​  (h∈Π).

The returned πK\pi_KπK​ is a stationary policy. The thesis states the halting bound as O(H2/ε2)O(H^2/\varepsilon^2)O(H2/ε2) calls to the chooser. The constant 888 is the one the thesis's own Corollary 7.2.3 supplies, and the mission states it explicitly.

Milestones

  1. Lemma 7.2.2. For every α∈[0,1]\alpha\in[0,1]α∈[0,1], with ϵ∞=max⁡s∣Ea∼π′(⋅∣s)Aπ(s,a)∣\epsilon_\infty=\max_s|\mathbb E_{a\sim\pi'(\cdot\mid s)}A_\pi(s,a)|ϵ∞​=maxs​∣Ea∼π′(⋅∣s)​Aπ​(s,a)∣,
Vπnew(μ)−Vπ(μ)≥α1−γ(Aπ(μ,π′)−2γα1−γ(1−α)ϵ∞).V_{\pi_{\rm new}}(\mu)-V_\pi(\mu)\ge\frac{\alpha}{1-\gamma}\Big(\mathbb A_\pi(\mu,\pi')-\frac{2\gamma\alpha}{1-\gamma(1-\alpha)}\epsilon_\infty\Big).Vπnew​​(μ)−Vπ​(μ)≥1−γα​(Aπ​(μ,π′)−1−γ(1−α)2γα​ϵ∞​).
  1. Corollary 7.2.3. If Aπ(μ,π′)≥0\mathbb A_\pi(\mu,\pi')\ge0Aπ​(μ,π′)≥0, the step α=1−γ4Aπ(μ,π′)\alpha=\frac{1-\gamma}{4}\mathbb A_\pi(\mu,\pi')α=41−γ​Aπ​(μ,π′) gives Vπnew(μ)−Vπ(μ)≥Aπ(μ,π′)2/8V_{\pi_{\rm new}}(\mu)-V_\pi(\mu)\ge\mathbb A_\pi(\mu,\pi')^2/8Vπnew​​(μ)−Vπ​(μ)≥Aπ​(μ,π′)2/8.
  2. Domination of the start distribution (p. 88): dπ,μ≥μ/Hd_{\pi,\mu}\ge\mu/Hdπ,μ​≥μ/H.
  3. Lemma 5.2.1, discounted half: Vπ′(s0)−Vπ(s0)=11−γEs∼dπ′,s0Ea∼π′(⋅∣s)Aπ(s,a)V_{\pi'}(s_0)-V_\pi(s_0)=\frac1{1-\gamma}\mathbb E_{s\sim d_{\pi',s_0}}\mathbb E_{a\sim\pi'(\cdot\mid s)}A_\pi(s,a)Vπ′​(s0​)−Vπ​(s0​)=1−γ1​Es∼dπ′,s0​​​Ea∼π′(⋅∣s)​Aπ​(s,a).
  4. Theorem 7.3.1. If Aπ(ν,h)≤ε/HA_\pi(\nu,h)\le\varepsilon/HAπ​(ν,h)≤ε/H for all h∈Πh\in\Pih∈Π, then for every π′∈Π\pi'\in\Piπ′∈Π and every state s0s_0s0​,
Vπ(s0)≥Vπ′(s0)−ε−H∥dπ′,s0−ν∥1.V_\pi(s_0)\ge V_{\pi'}(s_0)-\varepsilon-H\|d_{\pi',s_0}-\nu\|_1.Vπ​(s0​)≥Vπ′​(s0​)−ε−H∥dπ′,s0​​−ν∥1​.
  1. Example 7.4.1. A two-state MDP on which the bound of Lemma 7.2.2 holds with equality for all α\alphaα and γ\gammaγ.

Milestones 1, 2 and 4 are already stated on the platform from Kakade–Langford (2002), in the same normalized model. They are included here as references and are not posed again.

Significance

The result. Theorem 7.3.2 is the exact-oracle core of CPI's sample-complexity analysis: the sample-based version later in the chapter replaces the exact chooser and the exact future advantage by estimates. The guarantee is stated through future advantages, so it does not depend on a max-norm accuracy over all states. Through Theorem 7.3.1 it translates into a value guarantee against every policy of the class whose future state distribution is close to the measure the algorithm was trained on. The output need not lie in Π\PiΠ: even for a deterministic class the returned policy is in general stochastic.

Formalizing it. All results here are proved in the thesis, and the three referenced statements are proved on the platform. None of the new statements has a machine-checked proof. The mission adds a fully specified Exact CPI run as a Lean object, an explicit constant in place of the O(⋅)O(\cdot)O(⋅), and checked versions of the μ-optimality bound and of the tightness example. Its layer is shared with the Kakade–Langford missions, so later work on sample-based CPI can build on it directly.

Difficulty

The halting bound needs two ingredients that are easy to separate and easy to get wrong. The improvement guarantee of Corollary 7.2.3 holds only for a policy and a mixture weight in [0,1][0,1][0,1], so every iterate of the run must be shown to remain a policy and every step size to stay in range. The count of updates then rests on the normalized values being bounded in [0,1][0,1][0,1], a property of the model rather than of the algorithm. The output condition is stated for every h∈Πh\in\Pih∈Π, while the algorithm only tests the one policy the chooser returned, and the chooser maximizes future state-action values rather than future advantages.

A tempting shortcut is the thesis's remark on p. 88 that Aπ(μ,h)≤ε/H\mathbb A_\pi(\mu,h)\le\varepsilon/HAπ​(μ,h)≤ε/H implies Aπ(μ,h)≤εA_\pi(\mu,h)\le\varepsilonAπ​(μ,h)≤ε. This is false in general: it would need Ea∼hAπ(s,a)≥0\mathbb E_{a\sim h}A_\pi(s,a)\ge0Ea∼h​Aπ​(s,a)≥0 at every state. The mission formalizes only the true ingredient, dπ,μ≥μ/Hd_{\pi,\mu}\ge\mu/Hdπ,μ​≥μ/H.

Formalization scope

The layer is the published normalized model ApproxOptRL.Shared.Model: value, qValue, advantage, futureStateDist, and eta for Vπ(μ)V_\pi(\mu)Vπ​(μ). The future advantage is ApproxOptRL.CPI.policyAdvantage and the conservative update is ApproxOptRL.CPI.mixPolicy. The model makes these commitments:

  • SSS and AAA are finite nonempty types.
  • Policies are maps π:S→A→R\pi:S\to A\to\mathbb Rπ:S→A→R with IsPolicy, and deterministic policies are indicator policies.
  • Values carry the factor 1−γ1-\gamma1−γ, so all constants are the thesis's normalized ones. The thesis's statements for infinite state spaces are taken for finite SSS, where ∥⋅∥1\|\cdot\|_1∥⋅∥1​ is a finite sum.
  • In Lean the policy class is called Pi because Π is reserved.

The run is the explicit predicate IsExactCPIRun: up to the round where the algorithm halts, the chooser output lies in Π\PiΠ and maximizes Qπk(μ,⋅)\mathbb Q_{\pi_k}(\mu,\cdot)Qπk​​(μ,⋅) over Π\PiΠ, and the update uses exactly αk=A/(4H)\alpha_k=\mathbb A/(4H)αk​=A/(4H). The halting round is part of the conclusion, never a hypothesis. A formalization in which the halting test or the step size is a free variable, or in which Π\PiΠ is empty, would make "halts" an assumption or the run hypothesis unsatisfiable; the goal fixes both and requires Π\PiΠ nonempty. The chooser's argmax is assumed to be attained, as in the thesis.

Contributions that would help: bounds 0≤Vπ≤10\le V_\pi\le10≤Vπ​≤1 and ∣Aπ∣≤1|A_\pi|\le1∣Aπ​∣≤1 for the normalized model, summability facts for futureStateDist, and a proof that a mixture of policies is a policy. These are reusable across every mission built on the same model.

Selected references

  • S. M. Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, Gatsby Computational Neuroscience Unit, University College London, 2003, Chapter 7. https://discovery.ucl.ac.uk/id/eprint/10100726/
  • S. Kakade and J. Langford, Approximately Optimal Approximate Reinforcement Learning, Proceedings of the 19th International Conference on Machine Learning (ICML), 2002, pp. 267–274. https://dl.acm.org/doi/10.5555/645531.656005
12 thms2 active usersReviewed
Machine LearningMarkov ChainProbability·Captain: mikedeng1

An Analysis of Temporal-Difference Learning with Function Approximation 2: For Every Sampling Distribution q and 5/6 < α < 1, Off-Line q-Sampled TD(0) Can Diverge in ExpectationResearch Paper

Motivation

Temporal-difference learning estimates the future cost of a system from observed transitions. In a Markov model, a state has a distribution of possible successors and each transition carries a cost. An agent may approximate the future cost with a small number of basis functions rather than store one number per state. This is useful when the state set is large or countably infinite, but the sampling rule then matters: the states used to update the approximation need not arrive in the same proportions as visits to the underlying Markov chain.

Tsitsiklis and Van Roy distinguish sampling along the chain from drawing current states independently from a chosen distribution qqq. Their 1996 LIDS report, §9 constructs an example where the latter version of TD(0) has a mean parameter vector whose norm grows without bound. The example applies to every sampling distribution qqq on a countable state space with at least two states and every discount factor α\alphaα strictly between 5/65/65/6 and 111. The mission formalizes that quantified counterexample, rather than selecting a particular two-state distribution.

Setting

Let SSS be a finite or countably infinite set of states. A transition matrix PPP assigns a probability distribution pijp_{ij}pij​ over next states jjj to each current state iii. A transition cost g(i,j)g(i,j)g(i,j) is incurred when the chain moves from iii to jjj, and 0<α<10<\alpha<10<α<1 discounts later costs. The cost-to-go J∗(i)J^*(i)J∗(i) is the expected sum of discounted costs along a chain started at iii. An invariant distribution π\piπ satisfies πTP=πT\pi^{\mathsf T}P=\pi^{\mathsf T}πTP=πT.

A feature vector ϕ(i)∈RK\phi(i)\in\mathbb R^Kϕ(i)∈RK represents an approximate cost ϕ(i)Tr\phi(i)^{\mathsf T}rϕ(i)Tr, where r∈RKr\in\mathbb R^Kr∈RK is learned. The weighted norm ∥J∥D\|J\|_D∥J∥D​ uses the weights π(i)\pi(i)π(i), and Π\PiΠ projects onto the span of the features in that norm. The one-step operator T(0)T^{(0)}T(0) sends JJJ to the expected immediate cost plus α\alphaα times the next-state value. These are the objects of §§2–4 of the report.

In qqq-sampled TD(0), each current state ItI_tIt​ is drawn independently from a probability distribution qqq; a successor JtJ_tJt​ is then drawn from row P(It,⋅)P(I_t,\cdot)P(It​,⋅). Each new pair is independent of the earlier pairs. The parameter changes by

rt+1=rt+γtϕ(It)[g(It,Jt)+αϕ(Jt)Trt−ϕ(It)Trt].r_{t+1}=r_t+\gamma_t\phi(I_t)\left[g(I_t,J_t)+\alpha\phi(J_t)^{\mathsf T}r_t-\phi(I_t)^{\mathsf T}r_t\right].rt+1​=rt​+γt​ϕ(It​)[g(It​,Jt​)+αϕ(Jt​)Trt​−ϕ(It​)Trt​].

The step sizes γt\gamma_tγt​ satisfy the report's Assumption 4: they are chosen in advance, nonnegative and nonincreasing, their sum diverges, and the sum of their squares converges. Assumption 1 asks for a unique positive invariant law, finite stationary second moment of the transition costs, and finite cost-to-go from each state. Assumption 2 asks for linearly independent features with finite stationary second moments.

Formalization targets

Divergence of the mean

For every qqq and 5/6<α<15/6<\alpha<15/6<α<1, Theorem 3 asserts the existence of PPP, ggg, and a feature map satisfying Assumptions 1 and 2, together with a unique projected fixed-point parameter r∗r^*r∗, such that for every r0≠r∗r_0\ne r^*r0​=r∗,

ΠT(0)(ϕTr)=ϕTr  ⟺  r=r∗,lim⁡t→∞∥E[rt∣r0]∥=∞.\Pi T^{(0)}(\phi^{\mathsf T}r)=\phi^{\mathsf T}r\iff r=r^*, \qquad \lim_{t\to\infty}\bigl\|\mathbb E[r_t\mid r_0]\bigr\|=\infty.ΠT(0)(ϕTr)=ϕTr⟺r=r∗,t→∞lim​​E[rt​∣r0​]​=∞.

The expectation is over the independent state–successor samples. The target is the norm of the mean vector; it does not assert divergence of individual sample paths. The formal goal quantifies over every probability space carrying samples with the stated joint law, so a choice of representation for the random process does not change the theorem.

Supporting statements

The milestones follow the claims in the proof of Theorem 3, pp. 24–25: existence of a full-support transition distribution; the one-feature construction and its assumptions; the general and specialized recurrences for E[rt]\mathbb E[r_t]E[rt​]; a positive lower bound for their coefficient Δ\DeltaΔ; and unbounded growth from that lower bound. The numerical inequality retains the report's threshold 5/(6α)5/(6\alpha)5/(6α) and its explicit positive factor 6αp(s2)−56\alpha p(s_2)-56αp(s2​)−5.

Significance

The theorem identifies a limit of using TD(0) with linear approximation when the current states are sampled according to a distribution unrelated to the chain's invariant law. The constructed Markov chain itself has a well-defined zero cost-to-go, and the approximation uses only one nonzero feature direction. Nevertheless, the mean of the parameter sequence diverges for every nonfixed initialization. Thus the issue is present even without noisy costs or a complicated feature space. The report contrasts this with its convergence result for the on-line algorithm under additional assumptions; the counterexample says that those conclusions cannot be transferred to arbitrary independent state sampling by changing only the sample source. Tsitsiklis and Van Roy, §9.

The report proves Theorem 3 on paper. This mission asks for a machine-checked proof of its full quantifier structure, including countably infinite state spaces and arbitrary qqq. A completed development would supply reusable Lean interfaces for countable Markov kernels, path laws, weighted projections, independent state–successor samples, and expected stochastic recurrences. The proposal currently contains the statements and definitions; the theorem proofs are open.

Difficulty

The apparent simplicity of the one-dimensional example hides two issues. First, the statement is uniform over qqq, including distributions that put zero mass on nearly every state. A proof must choose the two feature states in response to qqq while preserving the strict positivity needed for growth. Second, the recurrence concerns E[rt]\mathbb E[r_t]E[rt​], where rtr_trt​ depends on all earlier random pairs. The step at time ttt uses a fresh pair, and the factorization of its mean requires that temporal independence, plus justified integrability. Writing a positive scalar coefficient alone does not establish divergence of the expected parameter sequence for the sampled process.

Formalization scope

The Lean state space is a countable discrete measurable type with at least two elements. PPP is a Markov kernel, its path law comes from the Ionescu–Tulcea construction, and the cost-to-go is the expectation of the discounted path sum. Weighted L2(S,D)L_2(S,D)L2​(S,D) membership is expressed by summability of π(i)J(i)2\pi(i)J(i)^2π(i)J(i)2. The projection uses the inverse of the weighted Gram matrix under the independence and positive-mass assumptions that make it invertible. Only T(0)T^{(0)}T(0) is needed here. The number KKK of basis functions is existential, like the report's matrix Φ\PhiΦ, but must be at least one: an empty parameter space would leave the universal divergence clause with no nonfixed initializations. The report's own example has K=1K=1K=1.

Assumption 1 includes uniqueness of π\piπ, positive mass at each state, the stationary squared-cost moment, and absolute integrability of the cost-to-go. Assumption 2 includes linear independence and integrability of squared features. Assumption 4 retains square-summability even though the displayed growth argument uses the divergent first-power sum. The general mean recurrence assumes bounded costs and features so its integrals and countable sums are meaningful; the constructed example satisfies those bounds. The goal additionally states finite-time integrability of the parameter vector. The source indexes states by 1 and 2; the formalization uses two distinct states s1,s2s_1,s_2s1​,s2​ and records the proof's ordering 0<q(s1)0<q(s_1)0<q(s1​) and q(s2)≤q(s1)q(s_2)\le q(s_1)q(s2​)≤q(s1​) in the growth milestone. The goal's quantification over probability spaces is restricted to Lean's Type universe.

The general mean recurrence is written with the immediate cost outside the matrix factor multiplying E[rt]\mathbb E[r_t]E[rt​]. This follows the algorithm displayed on p. 24 and corrects two slips in the printed recurrence on p. 25: its next-state subscript and the placement of the mean-cost term. Contributions to the path-law facts, independent-sampling calculations, countable weighted sums, and scalar growth theorem all support the same fixed goal.

Selected references

  • J. N. Tsitsiklis and B. Van Roy, An Analysis of Temporal-Difference Learning with Function Approximation, MIT Laboratory for Information and Decision Systems report LIDS-P-2322, 1996; published in IEEE Transactions on Automatic Control 42(5), 1997. MIT record.
9 thms2 active usersReviewed
Linear algebraMachine LearningMarkov Chain·Captain: mikedeng1

Learning to Predict by the Methods of Temporal Differences: Linear TD(0) Converges in Expected Value to the Ideal Predictions on Absorbing Markov ChainsResearch Paper

Motivation

Temporal-difference (TD) methods learn to predict an eventual outcome from the differences between successive predictions rather than from the difference between each prediction and the final outcome. Sutton's 1988 paper Learning to predict by the methods of temporal differences introduced the TD(λ\lambdaλ) family and gave the first convergence proof for a TD method; before it, as the paper notes (p. 23), "no TD method has ever been proved stable or convergent to the correct predictions". TD learning is now the core of policy evaluation in reinforcement learning, and later analyses (Dayan 1992, Tsitsiklis and Van Roy 1997) start from the setting fixed here.

Timeline:

  • 1960 — Widrow and Hoff introduce the LMS (Widrow–Hoff) rule; its predictions converge in expected value to the ideal predictions for small step sizes (Widrow and Stearns 1985).
  • 1977 — Witten sketches a convergence proof for a TD-like procedure on discounted costs; many steps were left out, and Sutton (footnote 4) writes that it "now appears that the theorem he proposed is not true".
  • 1988 — Sutton proves Theorem 2 (linear TD(0), expected-value convergence on absorbing chains) and Theorem 3 (convergence of batch linear TD(0) to the maximum-likelihood predictions).
  • 1992–1997 — Dayan extends expected convergence to TD(λ\lambdaλ); Tsitsiklis and Van Roy prove almost-sure convergence of linear TD(λ\lambdaλ) under decreasing step sizes.

Setting

An absorbing Markov chain has a finite set NNN of nonterminal states, a finite set TTT of terminal states and transition probabilities pij≥0p_{ij}\ge0pij​≥0 (i∈Ni\in Ni∈N, j∈N∪Tj\in N\cup Tj∈N∪T) with ∑j∈N∪Tpij=1\sum_{j\in N\cup T}p_{ij}=1∑j∈N∪T​pij​=1. Let QQQ be the N×NN\times NN×N matrix [Q]ij=pij[Q]_{ij}=p_{ij}[Q]ij​=pij​. "Absorbing" means that every sequence terminates with probability one; for a finite chain this is Qk→0Q^k\to0Qk→0.

A sequence starts in a nonterminal state drawn from a distribution μ\muμ, follows the chain through nonterminal states q1,…,qmq_1,\dots,q_mq1​,…,qm​ until it enters a terminal state qm+1=jq_{m+1}=jqm+1​=j, and then produces a scalar outcome zzz drawn from a distribution νj\nu_jνj​ with finite mean zˉj\bar z_jzˉj​. Let [h]i=∑j∈Tpijzˉj[h]_i=\sum_{j\in T}p_{ij}\bar z_j[h]i​=∑j∈T​pij​zˉj​. The ideal prediction of state iii is the expected outcome from iii,

E{z∣i}=[∑k≥0Qkh]i=[(I−Q)−1h]i.E\{z\mid i\}=\Bigl[\sum_{k\ge0}Q^kh\Bigr]_i=\bigl[(I-Q)^{-1}h\bigr]_i .E{z∣i}=[k≥0∑​Qkh]i​=[(I−Q)−1h]i​.

The learner does not see states, only an observation vector xi∈RKx_i\in\mathbb R^Kxi​∈RK for each i∈Ni\in Ni∈N, and predicts linearly, Pt=w⊤xqtP_t=w^\top x_{q_t}Pt​=w⊤xqt​​. Linear TD(0) with weight updates after each sequence keeps www fixed during a sequence and then sets, with Pm+1=zP_{m+1}=zPm+1​=z,

w←w+∑t=1mα (Pt+1−Pt) xqt.w\leftarrow w+\sum_{t=1}^m\alpha\,(P_{t+1}-P_t)\,x_{q_t}.w←w+t=1∑m​α(Pt+1​−Pt​)xqt​​.

Sequences are experienced independently; wnw_nwn​ is the weight vector after nnn sequences. Let did_idi​ be the expected number of visits to iii in one sequence, D=diag⁡(d)D=\operatorname{diag}(d)D=diag(d), and XXX the matrix with columns xix_ixi​.

Formalization targets

Goal: Theorem 2

For every absorbing chain, start distribution μ\muμ, outcome laws with finite means and linearly independent {xi}\{x_i\}{xi​}, with every di>0d_i>0di​>0, there is ε>0\varepsilon>0ε>0 such that for 0<α<ε0<\alpha<\varepsilon0<α<ε and every w0w_0w0​,

lim⁡n→∞E{xi⊤wn}=[(I−Q)−1h]i∀i∈N.\lim_{n\to\infty}E\{x_i^\top w_n\}=\bigl[(I-Q)^{-1}h\bigr]_i\qquad\forall i\in N .n→∞lim​E{xi⊤​wn​}=[(I−Q)−1h]i​∀i∈N.

The threshold ε\varepsilonε is existential, as in the paper; no explicit value is fixed.

Milestones on the goal's path

Theorem A.1 (Neumann series under An→0A^n\to0An→0); (5) the ideal predictions; (7) d⊤=μ⊤(I−Q)−1d^\top=\mu^\top(I-Q)^{-1}d⊤=μ⊤(I−Q)−1; the mean recursion wˉn+1=wˉn+αXD(h+QX⊤wˉn−X⊤wˉn)\bar w_{n+1}=\bar w_n+\alpha XD(h+QX^\top\bar w_n-X^\top\bar w_n)wˉn+1​=wˉn​+αXD(h+QX⊤wˉn​−X⊤wˉn​); Theorem A.2 (A⊤AA^\top AA⊤A nonsingular); Theorem A.3 (A≻0  ⟺  A+A⊤≻0A\succ0\iff A+A^\top\succ0A≻0⟺A+A⊤≻0); the Lemma of p. 27; D(I−Q)D(I-Q)D(I−Q) positive definite; the eigenvalues of X⊤XD(I−Q)X^\top XD(I-Q)X⊤XD(I−Q) have positive real parts; and (I−αX⊤XD(I−Q))n→0(I-\alpha X^\top XD(I-Q))^n\to0(I−αX⊤XD(I−Q))n→0 for small α\alphaα.

Further results

Theorem 3: under repeated presentations of a finite training set, batch linear TD(0) converges (deterministically) to the maximum-likelihood predictions [(I−Q^)−1h^]i[(I-\hat Q)^{-1}\hat h]_i[(I−Q^​)−1h^]i​, with its two supporting steps (Q^n→0\hat Q^n\to0Q^​n→0 and d^⊤=μ^⊤(I−Q^)−1\hat d^\top=\hat\mu^\top(I-\hat Q)^{-1}d^⊤=μ^​⊤(I−Q^​)−1). Theorem 1: linear TD(1) and Widrow–Hoff produce the same per-sequence weight changes.

Significance

Theorem 2 shows that a bootstrapping method, which learns from its own earlier predictions, is not biased by them in the limit: in expectation it reaches the same predictions as supervised (Widrow–Hoff) learning. Theorem 3 says more: on a fixed data set, TD(0) converges to the predictions that would be exact if the maximum-likelihood model of the process were correct, which differs from the least-squares answer Widrow–Hoff converges to. Together they are the formal basis for preferring TD to Monte-Carlo targets in multi-step prediction.

The results are proved on paper, and not formalized in Lean. A formalization adds a precise model of the experience (i.i.d. sequences of an absorbing chain with terminal-dependent outcome laws), the integrability facts the paper leaves implicit, and a correct proof of the positive definiteness of D(I−Q)D(I-Q)D(I−Q), whose printed argument has a gap (see below). The matrix lemmas (Neumann series under An→0A^n\to0An→0; real-part positivity of eigenvalues of GMGMGM for G≻0G\succ0G≻0 symmetric and MMM positive definite in the non-symmetric sense; the step-size threshold) are reusable for other linear stochastic-approximation analyses.

Difficulty

The obvious argument writes E{wn+1}E\{w_{n+1}\}E{wn+1​} as a linear function of E{wn}E\{w_n\}E{wn​} and observes that the iteration matrix I−αX⊤XD(I−Q)I-\alpha X^\top XD(I-Q)I−αX⊤XD(I−Q) is a contraction for small α\alphaα. Two steps of this fail as printed. First, the paper proves that D(I−Q)D(I-Q)D(I−Q) is positive definite through the Lemma of p. 27 with a weakened notion of diagonal dominance (weak in every row, strict in one), under which the Lemma is false; with the standard notion, D(I−Q)+(D(I−Q))⊤D(I-Q)+(D(I-Q))^\topD(I−Q)+(D(I−Q))⊤ is in general not strictly diagonally dominant (a row with μi=0\mu_i=0μi​=0 that cannot leave NNN in one step has row sum 000). A correct proof combines weak dominance with reachability of every state from the support of μ\muμ, which is where di>0d_i>0di​>0 enters. Second, X⊤XD(I−Q)X^\top XD(I-Q)X⊤XD(I−Q) is not symmetric, so a small α\alphaα does not make I−αX⊤XD(I−Q)I-\alpha X^\top XD(I-Q)I−αX⊤XD(I−Q) a contraction in the Euclidean norm; the argument goes through its eigenvalues, and turning eigenvalues of modulus below one into (I−αX⊤XD(I−Q))n→0(I-\alpha X^\top XD(I-Q))^n\to0(I−αX⊤XD(I−Q))n→0 is a spectral-radius argument. The probabilistic step is also not free: wnw_nwn​ is a polynomial in nnn random sequences of unbounded length, and its integrability and the factorization E{ηijwn}=dipijE{wn}E\{\eta_{ij}w_n\}=d_ip_{ij}E\{w_n\}E{ηij​wn​}=di​pij​E{wn​} need independence across sequences.

Formalization scope

States are finite types N (nonempty) and T; the chain is the structure AbsorbingChain with blocks pN, pT and the field Qk→0Q^k\to0Qk→0. Observation vectors are x : N → Fin K → ℝ with LinearIndependent ℝ x; XXX is Matrix (Fin K) N ℝ. A sequence is an Episode (list of nonterminal states, terminal state, outcome); IsEpisodeStream states measurability, mutual independence (iIndepFun) and the law P(path=s,term=j,out∈B)=μs1ps1s2⋯psmj νj(B)P(\text{path}=s,\text{term}=j,\text{out}\in B)=\mu_{s_1}p_{s_1s_2}\cdots p_{s_mj}\,\nu_j(B)P(path=s,term=j,out∈B)=μs1​​ps1​s2​​⋯psm​j​νj​(B). Expectations are Bochner integrals, and the goal asserts integrability of xi⊤wnx_i^\top w_nxi⊤​wn​, so a non-integrable junk value 000 cannot satisfy it. did_idi​ is defined as an expectation (a sum over sequences), not as [μ⊤(I−Q)−1]i[\mu^\top(I-Q)^{-1}]_i[μ⊤(I−Q)−1]i​, so (7) is not circular. "Positive definite" is the paper's footnote 6 (y⊤Ay>0y^\top Ay>0y⊤Ay>0 for real y≠0y\ne0y=0, no symmetry), not Mathlib's Matrix.PosDef.

Trivializations ruled out: the hypothesis di>0d_i>0di​>0 is the paper's own discarding of never-visited states (without it the goal is false: an unvisited state's weight never moves); N is nonempty and μ\muμ sums to one, so the hypotheses are satisfiable and the goal is not vacuous; the sequences cannot be arbitrary random variables or a fixed sequence, since their law is pinned to μ\muμ, ppp and ν\nuν; ε\varepsilonε is chosen before α\alphaα, w0w_0w0​ and the probability space; and the update is per sequence, not the intra-sequence variant of §5.

Corrected slips: "For each nonterminal state jjj" (p. 24) means terminal; the diagonal-dominance definition of p. 27 is replaced by the standard one; I−αXD(I−Q)X⊤I-\alpha XD(I-Q)X^\topI−αXD(I−Q)X⊤ (p. 28) means I−αX⊤XD(I−Q)I-\alpha X^\top XD(I-Q)I−αX⊤XD(I−Q). Not formalized: the variance and TD(λ\lambdaλ) conjectures of p. 29, §4.3, and the extension claims of §5.

Related open goals on this platform (different models, credited, not re-posed): SuttonBartoRL.BatchTD.batch_td_converges_to_certainty_equivalence (tabular, discounted analogue of Theorem 3), and SuttonBartoRL.LinearTD.keyMatrix_posDef, posDef_of_row_col_sums, expected_td_update (continuing discounted chain with stationary DDD, where every row sum of D(I−γP)D(I-\gamma P)D(I−γP) is positive). Contributions of any milestone, of general matrix lemmas, and of reusable infrastructure for i.i.d. episode streams are welcome.

Selected references

  • R. S. Sutton, Learning to predict by the methods of temporal differences, Machine Learning 3(1), 9–44, 1988. https://doi.org/10.1023/A:1022633531479
  • B. Widrow and M. E. Hoff, Adaptive switching circuits, IRE WESCON Convention Record, 96–104, 1960.
  • B. Widrow and S. D. Stearns, Adaptive Signal Processing, Prentice-Hall, 1985.
  • J. G. Kemeny and J. L. Snell, Finite Markov Chains, Springer, 1976. https://link.springer.com/book/9780387901923
  • R. S. Varga, Matrix Iterative Analysis, Prentice-Hall, 1962 (2nd ed., Springer, 2000: https://doi.org/10.1007/978-3-642-05156-2).
  • P. Dayan, The convergence of TD(λ) for general λ, Machine Learning 8, 341–362, 1992. https://doi.org/10.1007/BF00992701
  • J. N. Tsitsiklis and B. Van Roy, An analysis of temporal-difference learning with function approximation, IEEE Transactions on Automatic Control 42(5), 674–690, 1997. https://doi.org/10.1109/9.580874
24 thms2 active usersReviewed
Machine LearningOptimization·Captain: mikedeng1

On the Theory of Policy Gradient Methods: Optimality, Approximation, and Distribution Shift 3: Softmax Policy Gradient Ascent with Step Size η ≤ (1−γ)³/8 Converges to the Optimal ValuesResearch Paper

Motivation

Policy gradient methods optimize a parameterized policy of a Markov decision process by gradient ascent on its expected discounted return. They underlie much of modern reinforcement learning (REINFORCE, actor–critic methods, TRPO, PPO), yet the objective θ↦Vπθ(μ)\theta \mapsto V^{\pi_\theta}(\mu)θ↦Vπθ​(μ) is non-concave in the parameters, and until recently even the most basic question was open: does exact gradient ascent, run on a finite MDP with the standard softmax parameterization, reach the optimal values at all?

Agarwal, Kakade, Lee and Mahajan (arXiv:1908.00261v5, JMLR 22(98), 2021) answer this in the affirmative. Their Theorem 5.1 shows that unregularized softmax policy gradient with a small constant step size converges to the optimal value at every state, provided the start distribution used for the gradient puts positive mass on every state. The result is asymptotic: no rate is given. Later work (Mei, Xiao, Szepesvári and Schuurmans, ICML 2020, arXiv:2005.06392) obtained an O(1/t)O(1/t)O(1/t) rate with constants that can be exponentially large, and the same paper by Agarwal et al. gives polynomial rates once a log-barrier regularizer is added (its Corollary 5.1) or once the natural gradient is used (its Theorem 5.3). Theorem 5.1 is the unregularized baseline for all of these.

Setting

A finite MDP consists of finite sets S\mathcal SS of states and A\mathcal AA of actions (A\mathcal AA nonempty), a transition kernel P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a), rewards r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1] and a discount factor γ∈[0,1)\gamma\in[0,1)γ∈[0,1). A policy π\piπ assigns to each state a probability vector π(⋅∣s)\pi(\cdot\mid s)π(⋅∣s) on A\mathcal AA. Its value Vπ(s)V^\pi(s)Vπ(s) is the expected discounted sum of rewards E[∑t≥0γtr(st,at)∣s0=s]\mathbb E[\sum_{t\ge0}\gamma^t r(s_t,a_t)\mid s_0=s]E[∑t≥0​γtr(st​,at​)∣s0​=s] when actions are drawn from π\piπ; its state–action value is Qπ(s,a)=r(s,a)+γ∑s′P(s′∣s,a)Vπ(s′)Q^\pi(s,a)=r(s,a)+\gamma\sum_{s'}P(s'\mid s,a)V^\pi(s')Qπ(s,a)=r(s,a)+γ∑s′​P(s′∣s,a)Vπ(s′) and its advantage is Aπ(s,a)=Qπ(s,a)−Vπ(s)A^\pi(s,a)=Q^\pi(s,a)-V^\pi(s)Aπ(s,a)=Qπ(s,a)−Vπ(s). For a distribution μ\muμ on states, Vπ(μ)=∑sμ(s)Vπ(s)V^\pi(\mu)=\sum_s\mu(s)V^\pi(s)Vπ(μ)=∑s​μ(s)Vπ(s), and the discounted state visitation distribution is dμπ(s)=(1−γ)∑t≥0γtPr⁡π(st=s∣s0∼μ)d^\pi_\mu(s)=(1-\gamma)\sum_{t\ge0}\gamma^t\Pr^\pi(s_t=s\mid s_0\sim\mu)dμπ​(s)=(1−γ)∑t≥0​γtPrπ(st​=s∣s0​∼μ). A policy π⋆\pi^\starπ⋆ is optimal if Vπ(s)≤Vπ⋆(s)V^{\pi}(s)\le V^{\pi^\star}(s)Vπ(s)≤Vπ⋆(s) for every policy π\piπ and every state sss; V⋆=Vπ⋆V^\star=V^{\pi^\star}V⋆=Vπ⋆.

The softmax policy with parameters θ∈R∣S∣∣A∣\theta\in\mathbb R^{|\mathcal S||\mathcal A|}θ∈R∣S∣∣A∣ is

πθ(a∣s)=exp⁡(θs,a)∑a′∈Aexp⁡(θs,a′).\pi_\theta(a\mid s)=\frac{\exp(\theta_{s,a})}{\sum_{a'\in\mathcal A}\exp(\theta_{s,a'})}.πθ​(a∣s)=∑a′∈A​exp(θs,a′​)exp(θs,a​)​.

Softmax policy gradient ascent with step size η\etaη produces, from an arbitrary θ(0)\theta^{(0)}θ(0), the iterates

θ(t+1)=θ(t)+η ∇θV(t)(μ),V(t)=Vπθ(t).\theta^{(t+1)}=\theta^{(t)}+\eta\,\nabla_\theta V^{(t)}(\mu),\qquad V^{(t)}=V^{\pi_{\theta^{(t)}}} .θ(t+1)=θ(t)+η∇θ​V(t)(μ),V(t)=Vπθ(t)​.

The Lean development names these softmaxPolicy, softmaxValue P r γ µ θ =Vπθ(μ)=V^{\pi_\theta}(\mu)=Vπθ​(μ), and IsSoftmaxPGRun P r γ µ η θ for the update rule; PolicyValue, QFunction and IsOptimalPolicy are the published FoundationsML definitions, and valueAt, advantage and visitation are the series' shared layer.

Formalization targets

Goal: Theorem 5.1

If μ(s)>0\mu(s)>0μ(s)>0 for every state and 0<η≤(1−γ)3/80<\eta\le(1-\gamma)^3/80<η≤(1−γ)3/8, then for every state sss

V(t)(s)⟶V⋆(s)(t→∞).V^{(t)}(s)\longrightarrow V^\star(s)\qquad(t\to\infty).V(t)(s)⟶V⋆(s)(t→∞).

Milestones (Appendices C.1 and D)

  1. Lemma C.1, the gradient formula ∂Vπθ(μ)/∂θs,a=11−γdμπθ(s)πθ(a∣s)Aπθ(s,a)\partial V^{\pi_\theta}(\mu)/\partial\theta_{s,a}=\frac1{1-\gamma}d^{\pi_\theta}_\mu(s)\pi_\theta(a\mid s)A^{\pi_\theta}(s,a)∂Vπθ​(μ)/∂θs,a​=1−γ1​dμπθ​​(s)πθ​(a∣s)Aπθ​(s,a).
  2. Lemma D.1, smoothness 5∥c∥∞5\|c\|_\infty5∥c∥∞​ of θs↦∑aπθ(a∣s)ca\theta_s\mapsto\sum_a\pi_\theta(a\mid s)c_aθs​↦∑a​πθ​(a∣s)ca​.
  3. Lemma D.4 at λ=0\lambda=0λ=0, smoothness 8/(1−γ)38/(1-\gamma)^38/(1−γ)3 of θ↦Vπθ(μ)\theta\mapsto V^{\pi_\theta}(\mu)θ↦Vπθ​(μ).
  4. Lemma C.2, pointwise monotone improvement of V(t)(s)V^{(t)}(s)V(t)(s) and Q(t)(s,a)Q^{(t)}(s,a)Q(t)(s,a) for η≤(1−γ)2/5\eta\le(1-\gamma)^2/5η≤(1−γ)2/5.
  5. Lemma C.3, existence of the limits V(∞)V^{(\infty)}V(∞), Q(∞)Q^{(\infty)}Q(∞) and the bound (40).
  6. Lemma C.4, eventual sign separation (41) of the advantages on I+s={a:Q(∞)(s,a)>V(∞)(s)}I^s_+=\{a:Q^{(\infty)}(s,a)>V^{(\infty)}(s)\}I+s​={a:Q(∞)(s,a)>V(∞)(s)} and I−s={a:Q(∞)(s,a)<V(∞)(s)}I^s_-=\{a:Q^{(\infty)}(s,a)<V^{(\infty)}(s)\}I−s​={a:Q(∞)(s,a)<V(∞)(s)}.
  7. Lemma C.5, vanishing gradients, π(t)(a∣s)→0\pi^{(t)}(a\mid s)\to0π(t)(a∣s)→0 off I0s={a:Q(∞)(s,a)=V(∞)(s)}I^s_0=\{a:Q^{(\infty)}(s,a)=V^{(\infty)}(s)\}I0s​={a:Q(∞)(s,a)=V(∞)(s)}, and ∑a∈I0sπ(t)(a∣s)→1\sum_{a\in I^s_0}\pi^{(t)}(a\mid s)\to1∑a∈I0s​​π(t)(a∣s)→1.
  8. Lemma C.6, eventual strict monotonicity of θs,a(t)\theta^{(t)}_{s,a}θs,a(t)​ on I±sI^s_\pmI±s​.
  9. Lemma C.7, divergence of max⁡a∈I0sθs,a(t)\max_{a\in I^s_0}\theta^{(t)}_{s,a}maxa∈I0s​​θs,a(t)​ and min⁡aθs,a(t)\min_a\theta^{(t)}_{s,a}mina​θs,a(t)​ when I+s≠∅I^s_+\neq\emptysetI+s​=∅.
  10. Lemma C.11, lower boundedness of θs,a(t)\theta^{(t)}_{s,a}θs,a(t)​ on I+sI^s_+I+s​ and θs,a(t)→−∞\theta^{(t)}_{s,a}\to-\inftyθs,a(t)​→−∞ on I−sI^s_-I−s​.

The goal states only convergence to the optimal values, with the paper's constants in the step-size bound; no rate is claimed.

Significance

The theorem establishes that the non-concavity of the softmax objective does not trap exact gradient ascent: from any initialization, the values of the iterates converge to V⋆V^\starV⋆ at every state, not only on average under μ\muμ. It is the reference point for the rate results of the same paper (log-barrier regularization, natural policy gradient) and for the subsequent literature on softmax policy gradient rates and lower bounds. It also isolates the role of exploration in the start distribution: Remark 5.1 of the paper leaves open whether μ>0\mu>0μ>0 can be dropped.

The result is proved in the paper; to the knowledge of the mission authors none of it is formalized in Lean or any other proof assistant. A complete development would provide a machine-checked gradient formula for the softmax class, smoothness bounds for discounted values, and a monotone-improvement argument for policy gradient, each reusable for other parameterizations and other policy optimization methods.

Difficulty

The obvious route fails. The gradient domination property of the direct parameterization (Lemma 4.1 of the paper) would conclude from ∇πVπ(μ)→0\nabla_\pi V^\pi(\mu)\to0∇π​Vπ(μ)→0, but under softmax ∂V/∂θs,a=πθ(a∣s) ∂V/∂πθ(a∣s)\partial V/\partial\theta_{s,a}=\pi_\theta(a\mid s)\,\partial V/\partial\pi_\theta(a\mid s)∂V/∂θs,a​=πθ​(a∣s)∂V/∂πθ​(a∣s), so a vanishing θ\thetaθ-gradient says nothing once some action probabilities vanish, and the iterates do drive probabilities to zero while parameters diverge. A smoothness-based argument therefore gives only stationarity in the limit. The asymptotic analysis must instead track which actions keep positive limiting advantage, how the individual parameters θs,a(t)\theta^{(t)}_{s,a}θs,a(t)​ move once the advantage signs are frozen, and why an action with strictly positive limiting advantage cannot coexist with the behaviour of the remaining parameters. Lemmas C.7–C.12 carry that bookkeeping; the limiting sets I0s,I±sI^s_0, I^s_\pmI0s​,I±s​ and the existence of the limits are themselves consequences of the pointwise monotone improvement of Lemma C.2, which needs its own smoothness bound.

Formalization scope

Standing setting of §3: finite types S, A with decidable equality, A nonempty; IsFiniteMDP P r γ (a transition kernel, rewards in [0,1][0,1][0,1], 0≤γ<10\le\gamma<10≤γ<1); IsDist µ. Parameters live in EuclideanSpace ℝ (S × A), so norms are ℓ2\ell_2ℓ2​ and Mathlib's gradient is ∇θ\nabla_\theta∇θ​; the coordinate (s,a)(s,a)(s,a) of the gradient is ∂/∂θs,a\partial/\partial\theta_{s,a}∂/∂θs,a​. Logarithms do not appear. Conventions committed to:

  • V⋆(s)V^\star(s)V⋆(s) is PolicyValue πstar P r γ s for a policy πstar with IsOptimalPolicy πstar P r γ, optimal simultaneously at every state; it is not a real supremum over all functions.
  • The step size satisfies 0<η0<\eta0<η, which "gradient ascent" presupposes and the page does not write; at η=0\eta=0η=0 the theorem is false.
  • μ(s)>0\mu(s)>0μ(s)>0 for every sss is a hypothesis of the goal and of Lemmas C.5–C.11; Lemmas C.1–C.4 are stated without it, and Lemma C.1 for an arbitrary real weighting μ\muμ.
  • In Lemmas C.4–C.11 the limits V(∞)V^{(\infty)}V(∞), Q(∞)Q^{(\infty)}Q(∞) are parameters with the hypotheses that they are the limits of V(t)V^{(t)}V(t), Q(t)Q^{(t)}Q(t). The paper's Δ=min⁡A(∞)(s,a)≠0∣A(∞)(s,a)∣\Delta=\min_{A^{(\infty)}(s,a)\neq0}|A^{(\infty)}(s,a)|Δ=minA(∞)(s,a)=0​∣A(∞)(s,a)∣ is replaced by any Δ>0\Delta>0Δ>0 bounded by every nonzero ∣A(∞)(s,a)∣|A^{(\infty)}(s,a)|∣A(∞)(s,a)∣, which avoids an undefined minimum over an empty set.
  • "→±∞\to\pm\infty→±∞" is Tendsto … atTop atTop / atBot; "strictly increasing for t≥T1t\ge T_1t≥T1​" is StrictMonoOn on Set.Ici T1, with T1T_1T1​ existentially quantified.

The goal theorem does not assume the existence of limits, monotonicity of the iterates, or anything about the sets I0s,I±sI^s_0, I^s_\pmI0s​,I±s​; a formalization that did would assume the substance of the proof. Lemmas C.7 and C.11 (first part) carry the hypothesis I+s≠∅I^s_+\neq\emptysetI+s​=∅ of the paper's proof by contradiction, which no actual run satisfies once Theorem 5.1 is proved; they are steps of that argument.

A full development needs: differentiability of θ↦Vπθ\theta\mapsto V^{\pi_\theta}θ↦Vπθ​ and the policy gradient theorem in the occupancy-measure form, the performance difference lemma, the descent lemma for LLL-smooth functions, and Hessian bounds for the softmax map. Contributions to any of these, to the optional Lemmas C.8–C.10 and C.12 of the paper, or to the final contradiction argument are welcome.

Selected references

  • A. Agarwal, S. M. Kakade, J. D. Lee, G. Mahajan, On the Theory of Policy Gradient Methods: Optimality, Approximation, and Distribution Shift, JMLR 22(98), 2021; arXiv:1908.00261v5. https://arxiv.org/abs/1908.00261
  • J. Mei, C. Xiao, C. Szepesvári, D. Schuurmans, On the Global Convergence Rates of Softmax Policy Gradient Methods, ICML 2020. https://arxiv.org/abs/2005.06392
  • S. Kakade, J. Langford, Approximately Optimal Approximate Reinforcement Learning, ICML 2002. https://dl.acm.org/doi/10.5555/645531.656005
  • R. S. Sutton, D. McAllester, S. Singh, Y. Mansour, Policy Gradient Methods for Reinforcement Learning with Function Approximation, NeurIPS 1999. https://papers.nips.cc/paper/1713-policy-gradient-methods-for-reinforcement-learning-with-function-approximation
21 thms2 active usersReviewed
Markov ChainProbability·Captain: mikedeng1

Linear Least-Squares Algorithms for Temporal Difference Learning II: Probability-One Convergence of LS TD on Ergodic Markov ChainsResearch Paper

Motivation

Temporal-difference (TD) learning estimates the value function of a Markov chain — the expected discounted sum of future rewards from each state — from a single stream of observed transitions, without knowing the transition probabilities. With a linear function approximator the value of state xxx is represented as ϕx′θ\phi_x'\thetaϕx′​θ for a feature vector ϕx\phi_xϕx​ and a parameter θ\thetaθ. Classical TD(λ\lambdaλ) updates θ\thetaθ by stochastic approximation, and its behaviour depends on a step-size schedule that must be tuned.

Bradtke and Barto (Machine Learning 22, 1996) replaced the stochastic-approximation update by a least-squares solve: LS TD (Eq. (11)) recomputes θt\theta_tθt​ at every step as the instrumental-variable least-squares solution of the empirical consistency condition. The method, later generalized as LSTD(λ\lambdaλ) by Boyan (Machine Learning 49, 2002), is the basis of least-squares policy iteration and of the "LSTD" methods in standard reinforcement-learning texts (Sutton and Barto, Reinforcement Learning, 2nd ed., 2018, §9.8). Its appeal is that it has no step size; the question this mission formalizes is whether it nonetheless converges, with probability one, to the true parameter.

Timeline. Sutton (1988) introduced TD(λ\lambdaλ). Watkins and Dayan (1992) and Tsitsiklis (1994) proved probability-one convergence of tabular TD(0) and Q-learning. Bradtke and Barto (1996) proved probability-one convergence of LS TD on absorbing chains (Theorem 1) and on ergodic chains (Theorem 2). Tsitsiklis and Van Roy (IEEE TAC 42, 1997) proved convergence of linear TD(λ\lambdaλ) with general features on ergodic chains.

Setting

A finite Markov chain on a finite nonempty set XXX is a matrix PPP with P(x,y)≥0P(x,y)\ge0P(x,y)≥0 and ∑yP(x,y)=1\sum_yP(x,y)=1∑y​P(x,y)=1. A transition x→yx\to yx→y earns reward R(x,y)R(x,y)R(x,y); the expected reward out of xxx is rˉx=∑yP(x,y)R(x,y)\bar r_x=\sum_yP(x,y)R(x,y)rˉx​=∑y​P(x,y)R(x,y). For a discount factor γ\gammaγ the value function is

V(x)=E{∑k=0∞γkrk ∣ x0=x}=∑k=0∞γk(Pkrˉ)(x).V(x)=E\Big\{\sum_{k=0}^\infty\gamma^kr_k\ \Big|\ x_0=x\Big\}=\sum_{k=0}^\infty\gamma^k(P^k\bar r)(x).V(x)=E{k=0∑∞​γkrk​ ​ x0​=x}=k=0∑∞​γk(Pkrˉ)(x).

The chain is ergodic (Kemeny and Snell) if every state can be reached from every state: for all x,yx,yx,y there is nnn with Pn(x,y)>0P^n(x,y)>0Pn(x,y)>0. An invariant distribution is a probability vector π\piπ with πP=π\pi P=\piπP=π; write Π=diag⁡(π)\Pi=\operatorname{diag}(\pi)Π=diag(π).

Each state has a feature vector ϕx∈Rm\phi_x\in\mathbb R^mϕx​∈Rm; Φ\PhiΦ is the matrix with rows ϕx\phi_xϕx​. The true parameter θ∗\theta^*θ∗ is a vector with V(x)=ϕx′θ∗V(x)=\phi_x'\theta^*V(x)=ϕx′​θ∗ for all xxx.

The algorithm (Figure 3) starts at an arbitrary state x0x_0x0​, lets the chain move x0→x1→⋯x_0\to x_1\to\cdotsx0​→x1​→⋯, and after ttt transitions computes

θt=[1t∑kϕxk(ϕxk−γϕxk+1)′]−1[1t∑kϕxkR(xk,xk+1)],(11)\theta_t=\Big[\frac1t\sum_{k}\phi_{x_k}(\phi_{x_k}-\gamma\phi_{x_{k+1}})'\Big]^{-1}\Big[\frac1t\sum_k\phi_{x_k}R(x_k,x_{k+1})\Big],\tag{11}θt​=[t1​k∑​ϕxk​​(ϕxk​​−γϕxk+1​​)′]−1[t1​k∑​ϕxk​​R(xk​,xk+1​)],(11)

the sums running over the ttt transitions observed so far.

Formalization targets

Goal: Theorem 2 (p. 44)

If PPP is ergodic, (1) {ϕx}\{\phi_x\}{ϕx​} is linearly independent, (2) each ϕx\phi_xϕx​ has dimension ∣X∣|X|∣X∣, and (3) 0<γ<10<\gamma<10<γ<1, then θ∗\theta^*θ∗ is finite and, from any initial law,

θt⟶θ∗with probability 1.\theta_t\longrightarrow\theta^*\qquad\text{with probability }1 .θt​⟶θ∗with probability 1.

The goal leaves the chain, the rewards, the features and the initial law arbitrary.

Milestones, in the order of the proof

  1. Visit frequencies (Proof of Theorem 2, p. 45): an ergodic chain visits every state infinitely often and #{k<t:xk=x}/t→πx\#\{k<t:x_k=x\}/t\to\pi_x#{k<t:xk​=x}/t→πx​ almost surely.
  2. Invertibility (Proof of Theorem 2, p. 45): πx>0\pi_x>0πx​>0 for all xxx, and Φ′Π(I−γP)Φ\Phi'\Pi(I-\gamma P)\PhiΦ′Π(I−γP)Φ is invertible.
  3. The pathwise limit (Proof of Lemma 5, pp. 54–55): along any path whose transition frequencies converge to πxP(x,y)\pi_xP(x,y)πx​P(x,y), θt→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ]\theta_t\to[\Phi'\Pi(I-\gamma P)\Phi]^{-1}[\Phi'\Pi\bar r]θt​→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ].
  4. Lemma 5 (p. 43): for any chain, if almost surely every state is visited infinitely often and in proportion π\piπ, and Φ′Π(I−γP)Φ\Phi'\Pi(I-\gamma P)\PhiΦ′Π(I−γP)Φ is invertible, then θt→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ]\theta_t\to[\Phi'\Pi(I-\gamma P)\Phi]^{-1}[\Phi'\Pi\bar r]θt​→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ] almost surely.
  5. Eq. (12) (p. 44): the value series converges and rˉ=(I−γP)Φθ∗\bar r=(I-\gamma P)\Phi\theta^*rˉ=(I−γP)Φθ∗.

Significance

The result. Theorem 2 shows that an LS TD learner running on one long trajectory recovers the exact value function whenever the features can represent every function on the states, with no step-size schedule. It is the step-size-free counterpart of the tabular TD(0) convergence theorems and the starting point for the later analysis of LSTD with fewer features than states, where the limit is the TD fixed point [Φ′Π(I−γP)Φ]−1Φ′Πrˉ[\Phi'\Pi(I-\gamma P)\Phi]^{-1}\Phi'\Pi\bar r[Φ′Π(I−γP)Φ]−1Φ′Πrˉ rather than θ∗\theta^*θ∗. Lemma 5 is the general identification of that fixed point as the almost-sure limit of LSTD.

Formalizing it. The result is proved in the paper; it has not been machine-checked. A formalization adds three things the paper delegates: the strong law of large numbers for occupation times of a finite irreducible Markov chain, which the paper cites to Kemeny and Snell and which is not in Mathlib; the per-state transition frequencies used in the first sentence of the proof of Lemma 5; and the linear algebra of the limit. The first is reusable well beyond reinforcement learning.

Difficulty

The algebra is short once the empirical averages in (11) are known to converge. The difficulty is probabilistic: the averages are over a dependent sequence, so the ordinary strong law of large numbers does not apply. Two facts are needed: that the fraction of time in each state converges to πx\pi_xπx​ almost surely for any starting law, including periodic chains, where PnP^nPn itself does not converge; and that, among the visits to xxx, the fraction followed by a move to yyy converges to P(x,y)P(x,y)P(x,y), which needs the strong Markov property at successive visit times. Neither follows from convergence of the chain's distribution, and neither holds for a chain started at a fixed state without an argument that every state is reached.

Formalization scope

  • The model is a finite state type X with Fintype, DecidableEq, Nonempty, a row-stochastic matrix P : Matrix X X ℝ (structure Chain), rewards R : X → X → ℝ, features φ : X → Fin m → ℝ. Condition (2) is m = Fintype.card X; condition (1) is LinearIndependent ℝ φ.
  • "Ergodic" is read as irreducible, periodic chains allowed (Kemeny–Snell's aperiodic case is "regular"). "Arbitrary initial state" is read as every initial law ν\nuν, which contains every point mass.
  • The path is any process ZZZ on any probability space whose finite-dimensional distributions are ν(x0)P(x0,x1)⋯P(xn−1,xn)\nu(x_0)P(x_0,x_1)\cdots P(x_{n-1},x_n)ν(x0​)P(x0​,x1​)⋯P(xn−1​,xn​), with measurable events {Zt=x}\{Z_t=x\}{Zt​=x}.
  • VVV is the discounted series, never (I−γP)−1rˉ(I-\gamma P)^{-1}\bar r(I−γP)−1rˉ; Lean's tsum is 000 on a divergent series, so "θ* is finite" is stated as convergence of the series together with existence of θ∗\theta^*θ∗ with V=Φθ∗V=\Phi\theta^*V=Φθ∗. θ∗\theta^*θ∗ is existential, never defined as Lemma 5's limit.
  • (11) uses the transitions k=0,…,t−1k=0,\dots,t-1k=0,…,t−1 (the paper prints k=1,…,tk=1,\dots,tk=1,…,t with ϕt+1\phi_{t+1}ϕt+1​; an index shift), keeps the factors 1/t1/t1/t, and uses Lean's matrix inverse, which is 000 on a singular matrix: the paper notes θt\theta_tθt​ is undefined for small ttt, and finitely many junk values do not affect convergence. No εI\varepsilon IεI regularization, no pseudo-inverse.
  • θLSTD=lim⁡tθt\theta_{\rm LSTD}=\lim_t\theta_tθLSTD​=limt​θt​ is formalized as convergence of θt\theta_tθt​ (existence of the limit is part of the claim).
  • The convergence is almost sure. A formalization that assumes the visit frequencies converge in the goal, starts the chain from π\piπ, or weakens the conclusion to convergence in probability or along a subsequence is a different theorem.

Needed infrastructure: the strong law for occupation times of a finite irreducible chain under an arbitrary initial law (milestone 1), the strong Markov property at visit times, positivity of the invariant distribution of an irreducible chain, and the invertibility of I−γPI-\gamma PI−γP for ∣γ∣<1|\gamma|<1∣γ∣<1. Contributions to any of these, as standalone lemmas, are welcome.

Selected references

  • S. J. Bradtke and A. G. Barto, Linear Least-Squares Algorithms for Temporal Difference Learning, Machine Learning 22, 33–57, 1996. https://doi.org/10.1023/A:1018056104778
  • J. G. Kemeny and J. L. Snell, Finite Markov Chains, Springer, 1976.
  • J. A. Boyan, Technical Update: Least-Squares Temporal Difference Learning, Machine Learning 49, 233–246, 2002. https://doi.org/10.1023/A:1017936530646
  • J. N. Tsitsiklis and B. Van Roy, An Analysis of Temporal-Difference Learning with Function Approximation, IEEE Transactions on Automatic Control 42(5), 674–690, 1997. https://doi.org/10.1109/9.580874
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018. http://incompleteideas.net/book/the-book-2nd.html
8 thms2 active usersReviewed
Machine LearningProbability·Captain: mikedeng1

Minimax Regret Bounds for Reinforcement Learning II: High-Probability Regret Bound for UCBVI with a Bernstein–Freedman BonusResearch Paper

Why finite-horizon reinforcement learning needs a variance-sensitive bound

An agent can learn to act in an unknown environment by repeatedly running a finite episode, observing the states reached after its actions, and updating its model of the environment. The agent must trade off rewards in the current episode against information that may improve later decisions. A regret bound measures the cumulative value lost relative to an optimal policy that knows the true transition probabilities. Its dependence on the number of states, actions, episode steps, and interactions says how much exploration that uncertainty can force.

Azar, Osband, and Munos study this question for a finite-horizon Markov decision process with known, bounded rewards and an unknown, stationary transition kernel. Their UCBVI algorithm estimates action values from observed transitions and adds an exploration bonus. Their second version, UCBVI-BF, uses the empirical variance of the next-state value in that bonus. Their Theorem 2 gives an explicit high-probability regret bound whose leading dependence on the horizon is smaller than the bound they give for the simpler UCBVI-CH bonus. The paper states that, in a sufficiently long-run regime, its leading order matches the cited lower-bound scale up to logarithmic factors. This mission targets the explicit theorem, including its lower-order terms, rather than only that asymptotic comparison.

The MDP, interaction, and algorithm

Let S\mathcal SS and A\mathcal AA be nonempty finite state and action sets with cardinalities SSS and AAA. A stationary transition kernel P(y∣x,a)P(y\mid x,a)P(y∣x,a) is a probability distribution on next states yyy for every current state xxx and action aaa. The reward R(x,a)R(x,a)R(x,a) is deterministic, known to the learner, and lies in [0,1][0,1][0,1]. These are the conditions of Assumption 1 and §2. Episodes have H≥1H\ge1H≥1 steps; KKK episodes comprise T=KHT=KHT=KH interactions.

A policy π\piπ chooses an action for each state and step. Its value Vhπ(x)V_h^\pi(x)Vhπ​(x) is the expected reward from step hhh through the final step when the state at hhh is xxx; the terminal value is VH+1π=0V_{H+1}^\pi=0VH+1π​=0. The optimal value Vh∗(x)=sup⁡πVhπ(x)V_h^*(x)=\sup_\pi V_h^\pi(x)Vh∗​(x)=supπ​Vhπ​(x) ranges over all deterministic policies of this form. At the start of episode kkk, the environment may choose the initial state using the completed episodes. The learner then fixes a policy πk\pi_kπk​, observes transitions during the episode, and updates counts for the next episode. Its regret is

Regret⁡(K)=∑k=1K(V1∗(xk,1)−V1πk(xk,1)).\operatorname{Regret}(K)=\sum_{k=1}^{K}\bigl(V_1^*(x_{k,1})-V_1^{\pi_k}(x_{k,1})\bigr).Regret(K)=k=1∑K​(V1∗​(xk,1​)−V1πk​​(xk,1​)).

For each state-action pair, Nk(x,a,y)N_k(x,a,y)Nk​(x,a,y) counts transitions to yyy in episodes before kkk, and Nk(x,a)=∑yNk(x,a,y)N_k(x,a)=\sum_yN_k(x,a,y)Nk​(x,a)=∑y​Nk​(x,a,y). When the latter is positive, P^k(y∣x,a)=Nk(x,a,y)/Nk(x,a)\widehat P_k(y\mid x,a)=N_k(x,a,y)/N_k(x,a)Pk​(y∣x,a)=Nk​(x,a,y)/Nk​(x,a). The count Nk,h′(y)N'_{k,h}(y)Nk,h′​(y) records previous episodes whose state at step hhh was yyy. Algorithms 2 and 4 compute optimistic Qk,hQ_{k,h}Qk,h​ backward from zero terminal value, take a minimum with the previous episode's QQQ estimate and with HHH, and choose a maximizing action at every state. Previously unseen pairs receive Qk,h=HQ_{k,h}=HQk,h​=H. The Bernstein–Freedman bonus uses the empirical variance of Vk,h+1V_{k,h+1}Vk,h+1​ under P^k\widehat P_kPk​ and an additional term based on Nk,h+1′N'_{k,h+1}Nk,h+1′​; the algorithm uses Lalg=ln⁡(5SAT/δ)L_{\rm alg}=\ln(5SAT/\delta)Lalg​=ln(5SAT/δ).

Formalization targets

The goal is Theorem 2 on p. 5. For any MDP and interaction described above and every δ>0\delta>0δ>0, write L=ln⁡(5HSAT/δ)L=\ln(5HSAT/\delta)L=ln(5HSAT/δ). The target is the exact bad-event form of the printed high-probability bound:

Pr⁡ ⁣{Regret⁡(K)>30HLSAK+2500H2S2AL2+4H3/2KL}≤δ.\Pr\!\left\{\operatorname{Regret}(K)>30HL\sqrt{SAK}+2500H^2S^2AL^2+4H^{3/2}\sqrt{KL}\right\}\le\delta.Pr{Regret(K)>30HLSAK​+2500H2S2AL2+4H3/2KL​}≤δ.

The milestone list contains three empirical-transition deviations from the proof of Lemma 1: Eq. (9) for a value-weighted transition error, the displayed count bound before Eq. (11), and Eq. (12) for the full transition row's ℓ1\ell_1ℓ1​ error. It also contains Lemma 2's variance comparison and Eq. (26), which relates cumulative conditional next-value variance to the variance of an episode return. These are source-indexed targets, with their printed constants retained.

What the result and its formalization supply

The theorem gives a quantitative guarantee for a particular executable decision rule: its regret grows sublinearly in KKK in the leading term, with explicit dependence on SSS, AAA, and HHH. The result lets one compare the horizon dependence of a variance-sensitive bonus with a value-agnostic bonus under the same finite-horizon model. It also fixes which logarithm belongs in the algorithm and which appears in the reported bound; replacing either changes the claim.

A formal proof would connect a fully specified adaptive interaction to its finite probability law, empirical counts, backward value iteration, and the stated high-probability conclusion. The local prior-art search found reusable transition-kernel vocabulary and general concentration tools, but no published formal statement of this exact UCBVI-BF algorithm or theorem. The mission's finite path and variance definitions can also support other episodic reinforcement-learning bounds that use conditional variance.

Where the difficulty lies

The bonus is computed using a value function that itself depends on earlier observations and the same episode's backward recursion. A concentration inequality for a fixed transition row and a fixed test function therefore does not directly control every value estimate encountered by the algorithm. The number of samples in a row is also random and changes with the learner's past actions. The regret compares a policy's value at an environment-chosen initial state with a supremum over all policies, while the learner's greedy action must be defined at states it never visits. These dependencies are the central obstacle to turning local concentration statements into the episode-level bound.

Formalization scope and conventions

The Lean model uses finite sums rather than measure theory. A published predicate supplies the stationary, real-valued transition kernel; a local MDP adds the known deterministic reward. State and action types are finite and nonempty. Policies are deterministic and depend on the step. The supremum defining V∗V^*V∗ ranges over their finite function type. A theorem quantifies over every maximizing tie-breaking rule and every initial-state rule that reads only completed episodes. The probability of an event is constructed as a sum over finite outcome sequences, each weighted by the product of true transition probabilities. Counts use all past transitions and no current or future outcomes. These choices rule out a trivialization that assumes the desired law or optimizes over an unbounded class of arbitrary functions.

Lean indexes the HHH steps from zero, while the paper indexes them from one. The last observed next state is kept because Algorithm 4 counts states at the terminal index H+1H+1H+1. At Nk,h+1′(y)=0N'_{k,h+1}(y)=0Nk,h+1′​(y)=0, Algorithm 4's quotient is interpreted as infinite and the capped term is H2H^2H2; Lean's ordinary division by zero would incorrectly produce zero. The algorithm uses Lalg=ln⁡(5SAT/δ)L_{\rm alg}=\ln(5SAT/\delta)Lalg​=ln(5SAT/δ), while Theorem 2's bound uses L=ln⁡(5HSAT/δ)L=\ln(5HSAT/\delta)L=ln(5HSAT/δ). For Eq. (26), the appendix ends its sums at H−1H-1H−1 under a shifted terminal convention; the local statement includes all HHH reward steps and the terminal value VH+1=0V_{H+1}=0VH+1​=0 used by Algorithm 2. The milestone text remains the printed text. The count milestone is the display before Eq. (11), since Eq. (11) drops a factor of 222 under the square root present in that display.

Theorem 2 retains its printed 2500H2S2AL22500H^2S^2AL^22500H2S2AL2 term. The appendix's displayed Lemma 13 calculation does not reproduce that second-order constant when propagated to Lemma 14; this is a source proof gap, not a hypothesis of the theorem. Work on the probability normalization, random-count concentration, adaptive value estimates, variance identity, and a valid route to the printed explicit constants is welcome. A proof with altered constants or an asymptotic-only conclusion would be a different target.

Selected references

  • M. G. Azar, I. Osband, and R. Munos, Minimax Regret Bounds for Reinforcement Learning, arXiv:1703.05449v2, 2017. Preprint.
13 thms2 active usersReviewed
Machine LearningProbability·Captain: mikedeng1

Minimax Regret Bounds for Reinforcement Learning I: High-Probability Regret Bound for UCBVI with a Chernoff–Hoeffding BonusResearch Paper

Motivation

An agent learning to control an unknown environment must balance rewards it can collect now against information that improves later decisions. In a finite Markov decision process (MDP), every action changes the distribution of the next state, so a mistaken transition estimate can affect decisions many steps later. Regret measures this loss against a policy that already knows the transition probabilities. The paper of Azar, Osband and Munos gives high-probability regret bounds for two variants of upper confidence bound value iteration (UCBVI) in finite-horizon reinforcement learning. This mission targets its Chernoff–Hoeffding variant, UCBVI-CH, whose bonus depends only on the horizon and the visit count. Theorem 1 improves the paper's cited earlier dependence on the number of states from SSS to S\sqrt SS​ in the leading term for sufficiently many interactions. Azar, Osband and Munos, 2017, pp. 2, 4–5.

The paper was released in 2017 alongside work on the attainable dependence of episodic regret on the horizon HHH, state count SSS, action count AAA, and total interaction time TTT. Its second algorithm, UCBVI-BF, uses a variance-dependent bonus and is the subject of the next mission in this series. UCBVI-CH has a simpler bonus and its own explicit bound, making it a distinct mathematical target. Azar, Osband and Munos, 2017, pp. 1–5.

Setting

The state set S\mathcal SS and action set A\mathcal AA are finite and nonempty, with cardinalities SSS and AAA. A stationary transition kernel P(y∣x,a)P(y\mid x,a)P(y∣x,a) gives the probability of moving to state yyy after action aaa in state xxx; each row is nonnegative and sums to one. The known, deterministic reward R(x,a)R(x,a)R(x,a) lies in [0,1][0,1][0,1]. An episode lasts H≥1H\ge1H≥1 steps. The environment chooses its starting state xk,1x_{k,1}xk,1​ before episode kkk and may base that choice on earlier episodes. It cannot see the current episode's future random draws. Azar, Osband and Munos, 2017, §2 and Assumption 1, pp. 2–3.

A policy π\piπ selects an action from the current state and the step number. Its value Vhπ(x)V_h^\pi(x)Vhπ​(x) is the expected sum of rewards from step hhh through step HHH when starting in state xxx. The terminal value is VH+1π=0V_{H+1}^\pi=0VH+1π​=0, and Vh∗(x)V_h^*(x)Vh∗​(x) is the maximum of Vhπ(x)V_h^\pi(x)Vhπ​(x) over all such policies. Since the state, action and step sets are finite, this maximum is over a finite nonempty policy class. The paper's sentence describing H−hH-hH−h rewards uses a shifted terminal convention; this series follows the HHH reward steps of Algorithms 1–2. Azar, Osband and Munos, 2017, pp. 3–4.

At the start of episode kkk, UCBVI-CH forms visit counts Nk(x,a,y)N_k(x,a,y)Nk​(x,a,y) and Nk(x,a)N_k(x,a)Nk​(x,a) from earlier completed transitions. On a visited pair it uses the empirical row P^k(y∣x,a)=Nk(x,a,y)/Nk(x,a)\widehat P_k(y\mid x,a)=N_k(x,a,y)/N_k(x,a)Pk​(y∣x,a)=Nk​(x,a,y)/Nk​(x,a). Algorithm 2 computes values backward from zero at the terminal step. For a visited pair, Qk,h(x,a)Q_{k,h}(x,a)Qk,h​(x,a) is the minimum of the preceding episode's Qk−1,h(x,a)Q_{k-1,h}(x,a)Qk−1,h​(x,a), HHH, and the empirical Bellman value plus Algorithm 3's bonus. For an unvisited pair, Qk,h(x,a)=HQ_{k,h}(x,a)=HQk,h​(x,a)=H. A maximizing action is chosen at every state, including states outside the realized path. Azar, Osband and Munos, 2017, Algorithms 1–3, pp. 3–4.

Formalization targets

Theorem 1: UCBVI-CH regret

For KKK episodes and T=KHT=KHT=KH, regret sums the gap V1∗(xk,1)−V1πk(xk,1)V_1^*(x_{k,1})-V_1^{\pi_k}(x_{k,1})V1∗​(xk,1​)−V1πk​​(xk,1​). The goal is the paper's printed bound, with its constants:

Pr⁡ ⁣{Regret⁡(K)>20H3/2LSAK+250H2S2AL2}≤δ,L=ln⁡(5HSAT/δ),δ>0.\Pr\!\left\{\operatorname{Regret}(K)>20H^{3/2}L\sqrt{SAK}+250H^2S^2AL^2\right\}\le\delta, \qquad L=\ln(5HSAT/\delta),\quad \delta>0.Pr{Regret(K)>20H3/2LSAK​+250H2S2AL2}≤δ,L=ln(5HSAT/δ),δ>0.

Algorithm 3 itself uses Lalg=ln⁡(5SAT/δ)L_{\rm alg}=\ln(5SAT/\delta)Lalg​=ln(5SAT/δ) in its bonus 7HLalg/Nk(x,a)7HL_{\rm alg}/\sqrt{N_k(x,a)}7HLalg​/Nk​(x,a)​. Both logarithms remain as printed. The probability is over the MDP's next-state draws, for every admissible starting-state rule and every way of breaking ties between maximizing actions. Azar, Osband and Munos, 2017, Algorithm 3, p. 4; Theorem 1, p. 5.

Supporting results

Four milestones retain the source's indexed attack path: the Bernstein bound (9) for the empirical value error, the count-deviation display before (11), Lemma 18 on optimism, and the weighted recursion displayed in the proof of Lemma 3. The last milestone preserves the signed weights that appear before the paper's final simplification. Azar, Osband and Munos, 2017, pp. 17, 20–21, 28.

Significance

Theorem 1 gives a finite-sample failure probability with explicit dependence on H,S,A,KH,S,A,KH,S,A,K and δ\deltaδ. It covers a learner whose initial state can change between episodes, a feature that matters in episodic learning where the experimenter does not fix a single starting distribution. For the regime stated after Theorem 1, the leading rate is O~(HSAT)\widetilde O(H\sqrt{SAT})O(HSAT​). This is a result claimed by the paper; the present Lean declarations are open proof targets, not machine-checked proofs of that claim. Azar, Osband and Munos, 2017, p. 5.

Formalizing the result creates reusable finite objects for adaptive interaction: a constructed probability law on complete paths, empirical transition counts pooled across steps, a policy value defined by its expected reward, and confidence events with their domains stated explicitly. The concentration and optimism milestones can then be investigated independently of the final regret bound. The later UCBVI-BF mission uses the same paper's model with a different bonus. Azar, Osband and Munos, 2017, pp. 3–5, 14–17.

Difficulty

The visit count Nk(x,a)N_k(x,a)Nk​(x,a) is random and depends on earlier observations and decisions. A concentration inequality for a predetermined number of samples therefore does not immediately give a statement that holds at every episode start. The algorithm also reuses the previous episode's QQQ estimate through a minimum. Any optimism claim must account for this dependence across episodes as well as the backward dependence across steps. In the regret analysis, the terms called martingale differences can have either sign, so replacing a positive weight by a larger common bound can reverse an inequality. These are concrete obstacles to the printed chain of estimates. Azar, Osband and Munos, 2017, pp. 4, 17, 20–21, 28.

Formalization scope

States, actions, steps, episodes and complete outcome arrays are finite. Probabilities are finite sums of products of transition rows. The transition-row predicate is a published general definition; this mission defines the paper-specific reward-bounded MDP, policies, UCBVI-CH recursion, and path law on top of it. The starting-state rule can inspect only earlier episodes. Greedy tie-breaking is universally quantified. V∗V^*V∗ is a maximum over policies, and the bonus is read only at positive counts. A model that assigns an arbitrary probability law, fixes one starting state, or omits Algorithm 2's minimum does not represent this target. Azar, Osband and Munos, 2017, pp. 2–4.

Lean uses steps 0,…,H−10,\dots,H-10,…,H−1 and terminal index HHH in place of the paper's algorithmic 1,…,H+11,\dots,H+11,…,H+1. The appendix sometimes puts the terminal value at HHH. The weighted recursion therefore runs through the final reward step, rather than ending one step early. Its typical-state threshold is 4H2L4H^2L4H2L, as required by (34)–(36), whereas Appendix B.1 prints 2H2L2H^2L2H2L. The proof's correction term c4c_4c4​ dominates its other terms under A≥2A\ge2A≥2, which is made explicit in that milestone. The printed (11) loses a factor of two from the count display before it; only the preceding display is a milestone. Lemma 18 is stated under the empirical-model part of the confidence event and δ≤1\delta\le1δ≤1, the domain on which its bonus comparison holds. The weighted milestone retains its coefficients because the bracketed martingale terms can be negative. Azar, Osband and Munos, 2017, pp. 14–17, 20–21, 28.

The goal retains Theorem 1's constant 202020. Appendix C.1 cites Lemmas 15 and 18, but the sketch of Lemma 15 does not track that constant explicitly. Formalizing the printed bound may therefore expose a gap in its proof; the mission records the claim without weakening its constants. Contributions establishing or repairing the explicit bound, as well as the four stated milestones and reusable finite concentration results, are within scope. Azar, Osband and Munos, 2017, pp. 5, 27, 29.

Selected references

  • M. G. Azar, I. Osband and R. Munos, Minimax Regret Bounds for Reinforcement Learning, arXiv:1703.05449v2, 2017. Pinned preprint.
9 thms2 active usersReviewed
Dynamical SystemsProbabilityStochastic Systems·Captain: mikedeng1

The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning I: Stability and Almost-Sure Convergence under Tapering StepsizesResearch Paper

Motivation

Stochastic approximation is the family of recursive algorithms that locate a zero of a function observed only through noisy evaluations. It goes back to Robbins and Monro (1951) and today underlies stochastic gradient descent, temporal-difference learning, Q-learning and actor–critic methods in reinforcement learning, and models of learning by boundedly rational agents.

The standard analysis is the O.D.E. method (Ljung 1977; see Kushner and Yin 1997): the interpolated iterates are compared with the solutions of an ordinary differential equation, and convergence of the algorithm follows from the stability of that ODE. The method has one well-known gap. It assumes, rather than proves, that the iterates remain bounded with probability one. In applications this stability hypothesis is often the hardest part: for asynchronous Q-learning and adaptive critic algorithms, almost sure boundedness had been proved only for discounted cost or after adding a projection step (Borkar and Meyn, p. 460).

Borkar and Meyn (SIAM J. Control Optim. 38 (2000)) close this gap with a scaling argument borrowed from the fluid-model approach to the stability of queueing networks (Dai 1995; Dai and Meyn 1995). They show that boundedness itself follows from the asymptotic stability of the origin for a second, "fluid-limit" ODE obtained by rescaling the drift. This mission formalizes that stability theorem for tapering step sizes, and the convergence theorem that follows from it.

Setting

Fix d≥0d\ge 0d≥0 and work in Rd\mathbb R^dRd with the Euclidean norm. Let h:Rd→Rdh:\mathbb R^d\to\mathbb R^dh:Rd→Rd and let {a(n)}n≥0\{a(n)\}_{n\ge0}{a(n)}n≥0​ be a deterministic sequence of positive step sizes. On a probability space (Ω,F,P)(\Omega,\mathcal F,\mathsf P)(Ω,F,P), random vectors X(n)X(n)X(n) and M(n)M(n)M(n) satisfy the stochastic approximation recursion

X(n+1)=X(n)+a(n)[h(X(n))+M(n+1)],n≥0.(1.1)X(n+1) = X(n) + a(n)\big[h(X(n)) + M(n+1)\big], \qquad n\ge0. \tag{1.1}X(n+1)=X(n)+a(n)[h(X(n))+M(n+1)],n≥0.(1.1)

Its mean ODE is x˙=h(x)\dot x = h(x)x˙=h(x) (1.2). For r>0r>0r>0 the scaled field is hr(x)=h(rx)/rh_r(x)=h(rx)/rhr​(x)=h(rx)/r, with the scaled ODE x˙=hr(x)\dot x = h_r(x)x˙=hr​(x) (1.4).

  • (A1) hhh is Lipschitz; hr(x)→h∞(x)h_r(x)\to h_\infty(x)hr​(x)→h∞​(x) as r→∞r\to\inftyr→∞ for every xxx; and the origin is an asymptotically stable equilibrium of the fluid-limit ODE x˙=h∞(x)\dot x = h_\infty(x)x˙=h∞​(x) (1.5).
  • (A2) With Fn\mathcal F_nFn​ the history of the iterates up to time nnn, {M(n)}\{M(n)\}{M(n)} is a martingale difference sequence, E[M(n+1)∣Fn]=0\mathsf E[M(n+1)\mid\mathcal F_n]=0E[M(n+1)∣Fn​]=0, and for some constant C0<∞C_0<\inftyC0​<∞, E[∥M(n+1)∥2∣Fn]≤C0(1+∥X(n)∥2)\mathsf E[\|M(n+1)\|^2\mid\mathcal F_n]\le C_0(1+\|X(n)\|^2)E[∥M(n+1)∥2∣Fn​]≤C0​(1+∥X(n)∥2).
  • (TS) Tapering step sizes: 0<a(n)≤10<a(n)\le10<a(n)≤1, ∑na(n)=∞\sum_n a(n)=\infty∑n​a(n)=∞, ∑na(n)2<∞\sum_n a(n)^2<\infty∑n​a(n)2<∞.

A point x∗x^*x∗ is globally asymptotically stable for x˙=h(x)\dot x = h(x)x˙=h(x) if it is a Lyapunov-stable equilibrium and every solution converges to it.

Formalization targets

Goal: Theorem 2.2 (almost sure convergence)

Under (A1), (A2) and (TS), if x˙=h(x)\dot x=h(x)x˙=h(x) has a unique globally asymptotically stable equilibrium x∗x^*x∗, then for every initial condition X(0)∈RdX(0)\in\mathbb R^dX(0)∈Rd,

X(n)⟶x∗almost surely.X(n)\longrightarrow x^* \qquad \text{almost surely.}X(n)⟶x∗almost surely.

The goal contains no constants and no rates, only the qualitative conclusion.

Milestone: Theorem 2.1 (i) (almost sure boundedness)

Under (A1), (A2) and (TS), for every initial condition,

sup⁡n∥X(n)∥<∞almost surely.\sup_n \|X(n)\| < \infty \qquad \text{almost surely.}nsup​∥X(n)∥<∞almost surely.

Milestones: the lemmas of Section 4.1

  • Lemma 4.1: the fluid-limit ODE is globally exponentially asymptotically stable.
  • Lemma 4.2: the piecewise ODE solutions ϕ^\hat\phiϕ^​, ϕ∞\phi^\inftyϕ∞ used for comparison are bounded by a constant independent of the initial condition.
  • Lemma 4.3 (i), (ii): two discrete Bellman–Gronwall inequalities.
  • Lemma 4.4: for large scale rrr, every solution of x˙=hr(x)\dot x = h_r(x)x˙=hr​(x) from the unit ball is ϵ\epsilonϵ-small on a window [T,T+1][T,T+1][T,T+1].
  • Lemma 4.5: the rescaled iterates have uniformly bounded second moments, and the rescaled noise sum ξ\xiξ is an L2L^2L2-bounded martingale.
  • Lemma 4.6: almost surely the rescaled interpolated iterates ϕ\phiϕ track ϕ^\hat\phiϕ^​ and stay bounded.

Significance

The result. Theorem 2.1 (i) turns the stability hypothesis of the O.D.E. method into a checkable condition on a deterministic ODE. Theorem 2.2 then gives convergence to x∗x^*x∗ with no a priori boundedness assumption. The paper applies this to reinforcement learning, obtaining the first convergence proof for asynchronous Q-learning and adaptive critic algorithms for average-cost Markov decision processes (the asynchronous extension, Theorem 2.5, is sketched in the paper and is not part of this mission). The same fluid-limit criterion is now a textbook tool; see Borkar, Stochastic Approximation: A Dynamical Systems Viewpoint (2008), Chapter 3.

Formalizing it. The theorems are proved in the paper, and the proofs are short but rely on several standard facts stated informally: uniform convergence of hrh_rhr​ to h∞h_\inftyh∞​ on compact sets, continuous dependence of ODE solutions on initial data and on the vector field, and the martingale convergence theorem. No machine-checked version of the O.D.E. method or of this stability criterion is known to exist. A formal development would give a verified link between discrete-time stochastic recursions, martingale convergence in Mathlib, and the stability theory of Lipschitz ODEs.

Difficulty

The obvious approach is to compare the iterates with solutions of x˙=h(x)\dot x = h(x)x˙=h(x) over windows of fixed ODE time and to control the accumulated noise by martingale convergence. This fails without boundedness: the noise bound in (A2) grows with ∥X(n)∥\|X(n)\|∥X(n)∥, so the deviation from the ODE can only be controlled relative to the current size of the iterate, and nothing prevents the iterates from escaping to infinity.

A second difficulty is that the hypothesis (A1) concerns only the fluid limit h∞h_\inftyh∞​, which describes the drift at infinite scale. It says nothing directly about hhh at any finite state, and nothing about the noise. Any argument therefore has to transfer information from the limit r→∞r\to\inftyr→∞ to the recursion at random, path-dependent scales, uniformly over those scales, while the noise is controlled only relative to the current size of the iterate. In Lean this involves ODE comparison and Gronwall estimates on a random partition of the time axis, conditional second-moment estimates for a rescaled recursion, and a vector-valued L2L^2L2 martingale convergence argument, none of which is available off the shelf for this setting.

Formalization scope

The state space is EuclideanSpace ℝ (Fin d). An ODE solution is a forward solution on [0,∞)[0,\infty)[0,∞): the derivative is taken within [0,∞)[0,\infty)[0,∞) at each t≥0t\ge0t≥0, which makes solutions continuous there. Stability notions are the standard ones (Lyapunov stability; asymptotic, global asymptotic and global exponential stability, the last in the form ∥x(t)−x∗∥≤be−δt∥x(0)−x∗∥\|x(t)-x^*\|\le b e^{-\delta t}\|x(0)-x^*\|∥x(t)−x∗∥≤be−δt∥x(0)−x∗∥). All vector fields in the mission are Lipschitz, so forward solutions exist and are unique, and quantifying over "every solution" is meaningful.

The filtration in (A2) is the natural filtration of the iterates. Because a(n)>0a(n)>0a(n)>0, it carries the same information as the paper's σ(X(i),M(i),i≤n)\sigma(X(i),M(i),i\le n)σ(X(i),M(i),i≤n). (A2) includes integrability of M(n+1)M(n+1)M(n+1) and ∥M(n+1)∥2\|M(n+1)\|^2∥M(n+1)∥2, so that the conditional expectations are meaningful. The theorems quantify over every probability space and every noise process satisfying (A2); the goal and Theorem 2.1 (i) take a deterministic initial condition, as the paper does. Stating the goal for a particular noise model (no noise, or i.i.d. noise) would be a different and much weaker theorem, and is ruled out. "sup⁡n∥X(n)∥<∞\sup_n\|X(n)\|<\inftysupn​∥X(n)∥<∞" is boundedness above of the set of norms, not a real supremum, which Lean sets to 000 on unbounded sets. Second-moment suprema in Lemma 4.5 are taken in [0,∞][0,\infty][0,∞].

The proof objects of Section 4.1 (time grid t(n)t(n)t(n), blocks m(j)m(j)m(j) and T(j)T(j)T(j), scales r(j)r(j)r(j), the interpolation ϕ\phiϕ, the rescaled iterates and noise sum) are separate definitions built from the step sizes and the sample path, as on the page. The piecewise ODE solutions ϕ^\hat\phiϕ^​ and ϕ∞\phi^\inftyϕ∞ are characterized by a predicate, and the lemmas hold for every function satisfying it.

Useful infrastructure, reusable beyond this mission: Lipschitz ODE comparison and continuous-dependence estimates in Mathlib's ODE library, uniform convergence of hrh_rhr​ on compact sets, the discrete Gronwall lemmas, and L2L^2L2-bounded vector-valued martingale convergence. Contributions are welcome on any milestone. The two Gronwall lemmas and Lemma 4.1 are self-contained entry points.

Selected references

  • V. S. Borkar and S. P. Meyn, The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning, SIAM J. Control Optim. 38(2):447–469, 2000. https://doi.org/10.1137/S0363012997331639
  • H. Robbins and S. Monro, A Stochastic Approximation Method, Ann. Math. Statist. 22(3):400–407, 1951. https://doi.org/10.1214/aoms/1177729586
  • L. Ljung, Analysis of Recursive Stochastic Algorithms, IEEE Trans. Automat. Control 22(4):551–575, 1977. https://doi.org/10.1109/TAC.1977.1101561
  • H. J. Kushner and G. G. Yin, Stochastic Approximation Algorithms and Applications, Springer, 1997. https://doi.org/10.1007/978-1-4899-2696-8
  • J. G. Dai, On Positive Harris Recurrence of Multiclass Queueing Networks: A Unified Approach via Fluid Limit Models, Ann. Appl. Probab. 5(1):49–77, 1995. https://doi.org/10.1214/aoap/1177004828
  • J. G. Dai and S. P. Meyn, Stability and Convergence of Moments for Multiclass Queueing Networks via Fluid Limit Models, IEEE Trans. Automat. Control 40(11):1889–1904, 1995. https://doi.org/10.1109/9.471210
  • V. S. Borkar, Stochastic Approximation: A Dynamical Systems Viewpoint, Cambridge University Press / Hindustan Book Agency, 2008. https://doi.org/10.1007/978-93-86279-38-5
17 thms2 active usersReviewed
Machine LearningStatistics·Captain: mikedeng1

Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model 3: Plug-In Policy Evaluation Is ε-Accurate w.p. 1−δ Once N ≥ c₀log(|S|log(e/(1−γ))/δ)/((1−γ)³ε²)Research Paper

Motivation

Policy evaluation asks for the value of a fixed decision rule in a Markov decision process whose transition probabilities are unknown. It is the inner loop of policy iteration, the subroutine behind actor-critic methods, and the question an operator faces before deploying a policy in an inventory, queueing or routing system that can only be simulated. The simplest estimator is the plug-in (model-based) one: sample transitions from a simulator, build the empirical transition kernel, and compute the value of the policy in the resulting empirical MDP.

How many samples this estimator needs has a short history. Azar, Munos and Kappen (Machine Learning, 2013) introduced the total-variance argument that yields the (1−γ)−3(1-\gamma)^{-3}(1−γ)−3 dependence for planning with a generative model. Agarwal, Kakade and Yang (COLT 2020) proved minimax-optimal guarantees for model-based planning, but only when the sample size per state-action pair exceeds roughly (1−γ)−2(1-\gamma)^{-2}(1−γ)−2. Pananjady and Wainwright (IEEE Trans. Inf. Theory, 2021) gave instance-dependent policy-evaluation bounds and a minimax lower bound, again under a sample-size requirement of order (1−γ)−2(1-\gamma)^{-2}(1−γ)−2. Li, Wei, Chi and Chen (arXiv:2005.12900v8; Operations Research, 2024) removed this barrier: their Theorem 3 shows that the plug-in estimate is accurate across the whole accuracy range once the sample size exceeds (1−γ)−1(1-\gamma)^{-1}(1−γ)−1 up to logarithmic factors. This mission formalizes that theorem and the lemmas its proof rests on.

Setting

A discounted Markov decision process consists of a finite state set S\mathcal SS, a finite action set A\mathcal AA, a transition kernel PPP (for each pair (s,a)(s,a)(s,a), P(⋅∣s,a)P(\cdot\mid s,a)P(⋅∣s,a) is a probability vector over S\mathcal SS), a reward r:S×A→[0,1]r:\mathcal S\times\mathcal A\to[0,1]r:S×A→[0,1] and a discount factor 0<γ<10<\gamma<10<γ<1. A deterministic policy is a map π:S→A\pi:\mathcal S\to\mathcal Aπ:S→A. Its value function is

Vπ(s)=E[∑t=0∞γtr(st,at) ∣ s0=s],at=π(st),st+1∼P(⋅∣st,at).V^\pi(s)=\mathbb E\Big[\sum_{t=0}^\infty\gamma^t r(s^t,a^t)\,\Big|\,s^0=s\Big],\qquad a^t=\pi(s^t),\quad s^{t+1}\sim P(\cdot\mid s^t,a^t).Vπ(s)=E[t=0∑∞​γtr(st,at)​s0=s],at=π(st),st+1∼P(⋅∣st,at).

Write Pπ(s,s′)=P(s′∣s,π(s))P_\pi(s,s')=P(s'\mid s,\pi(s))Pπ​(s,s′)=P(s′∣s,π(s)) for the state transition matrix of π\piπ and rπ(s)=r(s,π(s))r_\pi(s)=r(s,\pi(s))rπ​(s)=r(s,π(s)) for its reward vector, so that Vπ=(I−γPπ)−1rπV^\pi=(I-\gamma P_\pi)^{-1}r_\piVπ=(I−γPπ​)−1rπ​. For a vector V∈RSV\in\mathbb R^{\mathcal S}V∈RS, VarPπ(V)(s)=∑s′Pπ(s,s′)V(s′)2−(∑s′Pπ(s,s′)V(s′))2\mathrm{Var}_{P_\pi}(V)(s)=\sum_{s'}P_\pi(s,s')V(s')^2-\big(\sum_{s'}P_\pi(s,s')V(s')\big)^2VarPπ​​(V)(s)=∑s′​Pπ​(s,s′)V(s′)2−(∑s′​Pπ​(s,s′)V(s′))2 is the one-step variance of VVV under the chain.

The generative model returns, for every pair (s,a)(s,a)(s,a), NNN independent next states ss,a1,…,ss,aN∼P(⋅∣s,a)s^1_{s,a},\dots,s^N_{s,a}\sim P(\cdot\mid s,a)ss,a1​,…,ss,aN​∼P(⋅∣s,a). The empirical kernel is P^(s′∣s,a)=1N∑i=1N1{ss,ai=s′}\widehat P(s'\mid s,a)=\frac1N\sum_{i=1}^N\mathbb 1\{s^i_{s,a}=s'\}P(s′∣s,a)=N1​∑i=1N​1{ss,ai​=s′}, and for a policy π\piπ chosen independently of the data the plug-in estimate V^π\widehat V^\piVπ is the value function of π\piπ in the empirical MDP (S,A,P^,r,γ)(\mathcal S,\mathcal A,\widehat P,r,\gamma)(S,A,P,r,γ), that is, V^π=(I−γP^π)−1rπ\widehat V^\pi=(I-\gamma\widehat P_\pi)^{-1}r_\piVπ=(I−γPπ​)−1rπ​. Norms ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ are maxima of absolute entries; e=exp⁡(1)e=\exp(1)e=exp(1) and log⁡\loglog is natural.

Formalization targets

Goal: Theorem 3 (p. 9)

There is a universal constant c0>0c_0>0c0​>0 such that for every MDP as above, every fixed policy π\piπ, every 0<δ<10<\delta<10<δ<1 and every 0<ε≤11−γ0<\varepsilon\le\frac1{1-\gamma}0<ε≤1−γ1​,

N≥c0 log⁡(∣S∣log⁡e1−γ/δ)(1−γ)3ε2⟹P(max⁡s∣V^π(s)−Vπ(s)∣≤ε)≥1−δ.N\ge c_0\,\frac{\log\big(|\mathcal S|\log\frac{e}{1-\gamma}/\delta\big)}{(1-\gamma)^3\varepsilon^2} \quad\Longrightarrow\quad \mathbb P\Big(\max_{s}\big|\widehat V^\pi(s)-V^\pi(s)\big|\le\varepsilon\Big)\ge1-\delta .N≥c0​(1−γ)3ε2log(∣S∣log1−γe​/δ)​⟹P(smax​​Vπ(s)−Vπ(s)​≤ε)≥1−δ.

The constant c0c_0c0​ is not specified, so the goal survives any later improvement of the constants.

Milestones

In attack order: Lemma 10 (elementary facts on (I−γPπ)−1(I-\gamma P_\pi)^{-1}(I−γPπ​)−1, p. 23); the matrix form (27) of VπV^\piVπ (p. 12); Lemma 11, ∥(I−γPπ)−1VarPπ(V)∥∞≤4γ1−γ∥V∥∞\|(I-\gamma P_\pi)^{-1}\sqrt{\mathrm{Var}_{P_\pi}(V)}\|_\infty\le\frac{4}{\gamma\sqrt{1-\gamma}}\|V\|_\infty∥(I−γPπ​)−1VarPπ​​(V)​∥∞​≤γ1−γ​4​∥V∥∞​ for V=(I−γPπ)−1rπV=(I-\gamma P_\pi)^{-1}r_\piV=(I−γPπ​)−1rπ​ with rπ≥0r_\pi\ge0rπ​≥0 (p. 24); the total-variance bound (70) of Azar et al. (p. 24); the deterministic instance-dependent bound (80) under a Bernstein-type condition (pp. 25–26); Lemma 2, the worst-case bound ∥V^π−Vπ∥∞≤61−γβ1N(1−γ)\|\widehat V^\pi-V^\pi\|_\infty\le\frac{6}{1-\gamma}\sqrt{\frac{\beta_1}{N(1-\gamma)}}∥Vπ−Vπ∥∞​≤1−γ6​N(1−γ)β1​​​ under the same condition (p. 15); the high-probability Bernstein bound (82) for a fixed policy (p. 27); and Lemma 1, the explicit-constant version of the goal with an instance-dependent refinement (p. 13):

∥V^π−Vπ∥∞≤4γ2LN∥(I−γPπ)−1VarPπ[Vπ]∥∞+2γL(1−γ)N∥Vπ∥∞≤62LN(1−γ)3,\big\|\widehat V^\pi-V^\pi\big\|_\infty\le 4\gamma\sqrt{\tfrac{2L}{N}}\Big\|(I-\gamma P_\pi)^{-1}\sqrt{\mathrm{Var}_{P_\pi}[V^\pi]}\Big\|_\infty+\tfrac{2\gamma L}{(1-\gamma)N}\|V^\pi\|_\infty\le 6\sqrt{\tfrac{2L}{N(1-\gamma)^3}},​Vπ−Vπ​∞​≤4γN2L​​​(I−γPπ​)−1VarPπ​​[Vπ]​​∞​+(1−γ)N2γL​∥Vπ∥∞​≤6N(1−γ)32L​​,

with L=log⁡(4∣S∣log⁡e1−γ/δ)L=\log\big(4|\mathcal S|\log\frac{e}{1-\gamma}/\delta\big)L=log(4∣S∣log1−γe​/δ) and N≥32e21−γLN\ge\frac{32e^2}{1-\gamma}LN≥1−γ32e2​L.

Significance

The theorem says that the plug-in estimate of a fixed policy's value beats a random guess as soon as NNN exceeds 11−γ\frac1{1-\gamma}1−γ1​ up to logarithmic factors, and that its sample size matches the minimax lower bound of Pananjady and Wainwright (2019, Theorem 2(b)) up to a log⁡log⁡11−γ\log\log\frac1{1-\gamma}loglog1−γ1​ factor over the full range ε∈(0,11−γ]\varepsilon\in(0,\frac1{1-\gamma}]ε∈(0,1−γ1​]. Lemma 2, which does not require the policy to be independent of the data, is the step the paper reuses to analyze the data-dependent optimal policy of the empirical MDP (Theorems 1 and 2, posed in sibling missions of this series).

The result is proved in the paper; none of it is formalized. The mission produces a machine-checked account of the variance-aware analysis of tabular MDPs: the resolvent calculus of Lemma 10, the total-variance bounds (70) and Lemma 11, which recur across the reinforcement-learning sample-complexity literature, and a high-order expansion argument that turns a Bernstein-type condition into an error bound. A formal proof of (70), which the paper quotes without proof, would itself be a reusable result.

Difficulty

The obvious argument writes V^π−Vπ=γ(I−γP^π)−1(P^π−Pπ)Vπ\widehat V^\pi-V^\pi=\gamma(I-\gamma\widehat P_\pi)^{-1}(\widehat P_\pi-P_\pi)V^\piVπ−Vπ=γ(I−γPπ​)−1(Pπ​−Pπ​)Vπ and bounds the two factors separately. The resolvent of the empirical chain is correlated with the deviation (P^π−Pπ)Vπ(\widehat P_\pi-P_\pi)V^\pi(Pπ​−Pπ​)Vπ, and bounding (I−γP^π)−1(I-\gamma\widehat P_\pi)^{-1}(I−γPπ​)−1 crudely by its row sums 11−γ\frac1{1-\gamma}1−γ1​ loses a factor that forces N≳(1−γ)−2N\gtrsim(1-\gamma)^{-2}N≳(1−γ)−2; this is exactly the barrier in earlier work. Removing it requires controlling a whole sequence of auxiliary vectors V(l)V^{(l)}V(l), each defined through the variance of the previous one, up to a logarithmic depth, and showing that their norms do not blow up (Lemma 11). The Bernstein step must also use the variance, not the range, of V(l)V^{(l)}V(l); a Hoeffding bound gives the wrong power of 1−γ1-\gamma1−γ.

Formalization scope

States and actions are finite types; the kernel is P : S → A → S → ℝ with P s a s' =P(s′∣s,a)=P(s'\mid s,a)=P(s′∣s,a), a probability vector for each (s, a) (the published IsTransitionKernel). The standing setting is the predicate IsDiscountedMDP P r γ: a kernel, r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1], 0<γ<10<\gamma<10<γ<1, and nonempty state and action sets (S={1,…,∣S∣}\mathcal S=\{1,\dots,|\mathcal S|\}S={1,…,∣S∣}, A={1,…,∣A∣}\mathcal A=\{1,\dots,|\mathcal A|\}A={1,…,∣A∣}, p. 5). Policies are deterministic maps S → A; the value function is the published series PolicyValue of the induced point-mass policy. Vector norms are Mathlib's sup norm on finite function types, matching ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​; vector inequalities and square roots are entrywise.

The data set is the finite type of arrays of NNN next states per pair, its law is the product of the kernel probabilities, and P\mathbb PP of an event is a finite sum. "With probability at least 1−δ1-\delta1−δ, EEE" is stated as P(not E)≤δ\mathbb P(\text{not }E)\le\deltaP(not E)≤δ. The goal assumes N>0N>0N>0, the standing assumption of the empirical kernel (3), which is implied by the sample-size condition since S\mathcal SS is nonempty. Index ranges "0≤l≤log⁡e1−γ0\le l\le\log\frac{e}{1-\gamma}0≤l≤log1−γe​" range over the integers in that interval. The deterministic milestones (80) and Lemma 2 are stated for an arbitrary transition kernel P^\widehat PP, which is what their proofs use.

Three formalizations would trivialize the goal and are ruled out: computing V^π\widehat V^\piVπ from the true kernel PPP instead of the empirical one; letting π\piπ be chosen after the data are seen; and letting c0c_0c0​ depend on S\mathcal SS, A\mathcal AA, γ\gammaγ, PPP, rrr or π\piπ (the existential over c0c_0c0​ precedes all of them).

A complete development needs: the matrix form of the value function, Neumann series and nonnegativity of (I−γPπ)−1(I-\gamma P_\pi)^{-1}(I−γPπ​)−1; variance identities for finite distributions; a Bernstein inequality for i.i.d. bounded categorical samples with a union bound over states and indices; and the algebra of the recursive expansion. The resolvent and total-variance lemmas are reusable for any tabular discounted MDP. Proofs of individual milestones are welcome independently; (70) is a standalone classical result.

Selected references

  • G. Li, Y. Wei, Y. Chi, Y. Chen, Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model, Operations Research, 2024; arXiv:2005.12900v8, 2023. https://arxiv.org/abs/2005.12900
  • M. G. Azar, R. Munos, H. J. Kappen, Minimax PAC bounds on the sample complexity of reinforcement learning with a generative model, Machine Learning 91(3), 2013. https://doi.org/10.1007/s10994-013-5368-1
  • A. Agarwal, S. Kakade, L. F. Yang, Model-Based Reinforcement Learning with a Generative Model is Minimax Optimal, COLT 2020. https://arxiv.org/abs/1906.03804
  • A. Pananjady, M. J. Wainwright, Instance-Dependent ℓ∞-Bounds for Policy Evaluation in Tabular Reinforcement Learning, IEEE Transactions on Information Theory 67(1), 2021. https://arxiv.org/abs/1909.08749
17 thms1 active userReviewed
Machine LearningStatistics·Captain: mikedeng1

Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model 1: The Perturbed Model-Based Planner Is ε-Optimal w.p. 1−δ Once N ≥ c₀log(|S||A|/((1−γ)εδ))/((1−γ)³ε²)Research Paper

Motivation

A generative model lets a planner request independent next-state samples for any state-action pair. This is a useful idealization for studying how many simulator calls are needed before a policy computed from an estimated model performs well in the true environment. Li, Wei, Chi, and Chen show that a small independent perturbation of the rewards lets a model-based planner meet a sample-size bound with cubic dependence on the effective horizon 1/(1−γ)1/(1-\gamma)1/(1−γ), while providing guarantees for both values and action values (Li et al., 2024). This mission isolates their perturbed-planning result and the source lemmas that support it.

Setting

A finite discounted Markov decision process consists of a state set SSS, an action set AAA, a transition probability P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a), an immediate reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1], and a discount factor γ∈(0,1)\gamma\in(0,1)γ∈(0,1). A deterministic policy π:S→A\pi:S\to Aπ:S→A chooses an action at each state. Its value Vπ(s)V^\pi(s)Vπ(s) is the expected sum of rewards, discounted by γt\gamma^tγt, from state sss. Its action value Qπ(s,a)Q^\pi(s,a)Qπ(s,a) takes action aaa first and follows π\piπ thereafter. The optimal values V⋆V^\starV⋆ and Q⋆Q^\starQ⋆ are those of an optimal deterministic policy; equivalently, Q⋆(s,a)=r(s,a)+γ∑s′P(s′∣s,a)V⋆(s′)Q^\star(s,a)=r(s,a)+\gamma\sum_{s'}P(s'\mid s,a)V^\star(s')Q⋆(s,a)=r(s,a)+γ∑s′​P(s′∣s,a)V⋆(s′).

For each (s,a)(s,a)(s,a), draw NNN independent next states from P(⋅∣s,a)P(\cdot\mid s,a)P(⋅∣s,a), independently across pairs. The empirical kernel P^\widehat PP is their frequency table. Independently draw one reward perturbation ζ(s,a)∼Unif⁡(0,ξ)\zeta(s,a)\sim\operatorname{Unif}(0,\xi)ζ(s,a)∼Unif(0,ξ) per pair and set rp=r+ζr_p=r+\zetarp​=r+ζ. The planner returns an optimal deterministic policy π^p⋆\widehat\pi_p^\starπp⋆​ for the empirical MDP (S,A,P^,rp,γ)(S,A,\widehat P,r_p,\gamma)(S,A,P,rp​,γ). The performance claim evaluates this policy under the original PPP and rrr, so the perturbation changes policy selection but not the evaluation target.

Formalization targets

Perturbed model-based planning

Theorem 1 of Li et al. asserts that absolute constants c0,c1>0c_0,c_1>0c0​,c1​>0 can be chosen before SSS, AAA, PPP, rrr, γ\gammaγ, ε\varepsilonε, and δ\deltaδ. For δ>0\delta>0δ>0, 0<ε≤1/(1−γ)0<\varepsilon\le1/(1-\gamma)0<ε≤1/(1−γ), and ξ=c1(1−γ)ε/(∣S∣5∣A∣5)\xi=c_1(1-\gamma)\varepsilon/(|S|^5|A|^5)ξ=c1​(1−γ)ε/(∣S∣5∣A∣5), the sample-size condition is

N≥c0log⁡ ⁣(∣S∣∣A∣/((1−γ)εδ))(1−γ)3ε2.N\ge\frac{c_0\log\!\bigl(|S||A|/((1-\gamma)\varepsilon\delta)\bigr)}{(1-\gamma)^3\varepsilon^2}.N≥(1−γ)3ε2c0​log(∣S∣∣A∣/((1−γ)εδ))​.

With probability at least 1−δ1-\delta1−δ over both the samples and the perturbation, every optimal policy of the perturbed empirical MDP simultaneously satisfies

Vπ^p⋆(s)≥V⋆(s)−ε,Qπ^p⋆(s,a)≥Q⋆(s,a)−γεfor all (s,a).V^{\widehat\pi_p^\star}(s)\ge V^\star(s)-\varepsilon,\qquad Q^{\widehat\pi_p^\star}(s,a)\ge Q^\star(s,a)-\gamma\varepsilon\quad\text{for all }(s,a).Vπp⋆​(s)≥V⋆(s)−ε,Qπp⋆​(s,a)≥Q⋆(s,a)−γεfor all (s,a).

The milestone list follows the paper's numbered statements: fixed-policy and Bernstein-condition value bounds (Lemmas 1–2), calibrated state-action absorbing models and their finite reward grid (Lemma 3, (88), Lemma 4), planning under a separated optimum (Lemma 5), separation induced by random rewards (Lemma 6), and the reward-change bound before (49). The paper's additional claim about iteration counts for empirical QVI and PI is outside this target.

Significance

The theorem gives a policy guarantee from a finite number of calls to a generative model. It bounds the true value of the selected policy at every state and its true action value at every state-action pair, rather than only the empirical objective used to select the policy. Its NNN is the number of samples per pair; the total number of transitions observed is N∣S∣∣A∣N|S||A|N∣S∣∣A∣. The statement is a theorem proved in the cited paper, not an open mathematical conjecture (Li et al., Theorem 1).

The formalization work is to turn the paper's probability experiment, policy choice, and linked inequalities into machine-checked statements and eventually machine-checked proofs. The published FoundationsML transition kernel and policy-value definitions provide reusable base objects. This mission adds a finite generative-sample law, the reward-perturbation law, and an absorbing-MDP interface. Those objects can support later formalizations of empirical planning and policy evaluation beyond this theorem. The goal and milestone proofs remain open in the present draft.

Difficulty

A fixed policy can be evaluated against an empirical transition kernel using concentration at that policy. The planner's policy depends on the same sampled kernel, so a fixed-policy bound cannot simply be applied to it. Small changes in transition frequencies may also switch the chosen optimal action when actions have nearly equal values. The paper's intermediate results specify the needed value-control and separation properties; a Lean proof must track their constants and their probability events without silently assuming that the data-dependent policy was fixed before sampling (Li et al., §§6.2–6.3).

Formalization scope

The Lean state and action types are finite, and both are nonempty where cardinalities occur in denominators. A transition kernel is a probability vector at each state-action pair. Policies are deterministic functions S→AS\to AS→A, embedded as point-mass stochastic policies for the published value definitions. V⋆V^\starV⋆ is the maximum over the finite set of deterministic policies; Q⋆Q^\starQ⋆ is r+γPV⋆r+\gamma PV^\starr+γPV⋆. Function norms are supremum norms. The empirical kernel is the frequency table of a finite array of samples, with N>0N>0N>0 in the goal because its formula divides by NNN. The independent perturbation is the uniform measure on the cube [0,ξ]S×A[0,\xi]^{S\times A}[0,ξ]S×A.

Probability claims bound the failure event. The data law is a finite product, and the auxiliary continuous draw is measured section by section. This formulation allows an outer measure for a section whose measurability is not already known; it does not let a nonmeasurable success event satisfy the result for free. The main theorem quantifies over every optimal policy of the empirical perturbed model, and its universal constants do not depend on the instance. These choices rule out treating the selected policy as arbitrary, fixing the perturbation in advance, or choosing constants after seeing the MDP.

The absorbing-MDP construction changes one transition row and one reward. The reward at that row may leave [0,1][0,1][0,1], so the underlying value function accepts arbitrary real rewards even though the main MDP has normalized rewards. Lemma 5 is stated with normalized rewards as printed. Reusable contributions include basic properties of the sampling law, optimal-policy existence, the absorbing construction, and quantitative value stability; the milestone statements themselves are the intended proof targets.

Selected references

  • G. Li, Y. Wei, Y. Chi, and Y. Chen, Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model, Operations Research, 2024; arXiv:2005.12900v8.
15 thms1 active userReviewed
Dynamic ProgrammingOperations ResearchOptimization·Captain: mikedeng1

A First-Order Approach to Accelerated Value Iteration 4: Safe Accelerated Value Iteration Converges to v* at Rate O(λ′^s) for Every λ′ ∈ [λ, 1)Research Paper

Motivation

Value iteration (VI) is the standard method for computing the optimal value function of a discounted Markov decision process (MDP). It applies the Bellman operator repeatedly, and because that operator is a λ\lambdaλ-contraction in the sup norm, the error after sss steps is at most λs\lambda^sλs times the initial error. When the discount factor λ\lambdaλ is close to 111, as in long-horizon planning, this rate is slow.

Goyal and Grand-Clément (arXiv:1905.09963, Operations Research 2023) read value iteration as a gradient-type method and transfer momentum schemes from convex optimization (Nesterov acceleration, heavy-ball momentum) to the Bellman operator. On reversible policy chains these accelerated schemes provably converge faster than VI. On general MDPs, however, the accelerated iterates need not converge at all: the paper exhibits instances on which Accelerated Value Iteration (A-VI) oscillates or diverges. Section 7 of the paper resolves this tension with Safe Accelerated Value Iteration (S-AVI, Algorithm 1), which tries an accelerated step at every period and keeps it only when it makes enough progress on the Bellman equation v=T(v)v = T(v)v=T(v). This mission formalizes the convergence guarantee of S-AVI, Theorem 7.1.

Setting

Let S\mathbb SS be a finite set of states and A\mathbb AA a nonempty finite set of actions. A discounted MDP is given by a transition kernel PPP, with Piaj≥0P_{iaj}\ge 0Piaj​≥0 the probability of moving from state iii to state jjj under action aaa and ∑jPiaj=1\sum_j P_{iaj} = 1∑j​Piaj​=1; a reward ria∈Rr_{ia}\in\mathbb Rria​∈R for each state-action pair; and a discount factor λ∈(0,1)\lambda \in (0,1)λ∈(0,1). The Bellman operator T:RS→RST : \mathbb R^{\mathbb S} \to \mathbb R^{\mathbb S}T:RS→RS is

T(v)i=max⁡a∈A{ria+λ∑jPiaj vj}.T(v)_i = \max_{a\in\mathbb A}\Big\{ r_{ia} + \lambda \sum_{j} P_{iaj}\, v_j \Big\}.T(v)i​=a∈Amax​{ria​+λj∑​Piaj​vj​}.

The sup norm is ∥v∥∞=max⁡i∣vi∣\|v\|_\infty = \max_i |v_i|∥v∥∞​=maxi​∣vi​∣. The optimal value function v∗v^*v∗ is the unique fixed point of TTT. For a vector vvv, the quantity ∥v−T(v)∥∞\|v - T(v)\|_\infty∥v−T(v)∥∞​ is its Bellman residual.

S-AVI (Algorithm 1) takes a scalar λ′∈[λ,1)\lambda' \in [\lambda, 1)λ′∈[λ,1), step sizes α,γ>0\alpha, \gamma > 0α,γ>0 and any starting vector v0v_0v0​. It sets v1=T(v0)v_1 = T(v_0)v1​=T(v0​), and at each period s≥1s \ge 1s≥1 forms

hs=vs+γ (vs−vs−1),vs+1/2=hs−α (hs−T(hs)).h_s = v_s + \gamma\,(v_s - v_{s-1}), \qquad v_{s+1/2} = h_s - \alpha\,\big(h_s - T(h_s)\big).hs​=vs​+γ(vs​−vs−1​),vs+1/2​=hs​−α(hs​−T(hs​)).

If ∥vs+1/2−T(vs+1/2)∥∞≤λ′ s+1 ∥v0−T(v0)∥∞\|v_{s+1/2} - T(v_{s+1/2})\|_\infty \le \lambda'^{\,s+1}\,\|v_0 - T(v_0)\|_\infty∥vs+1/2​−T(vs+1/2​)∥∞​≤λ′s+1∥v0​−T(v0​)∥∞​, the accelerated candidate is accepted, vs+1=vs+1/2v_{s+1} = v_{s+1/2}vs+1​=vs+1/2​; otherwise the algorithm takes a value-iteration step, vs+1=T(vs)v_{s+1} = T(v_s)vs+1​=T(vs​). In the Lean development the MDP is AccelVI.SafeAVI.MDP with validity predicate MDP.Valid, the operator is bellman M, and the iterates are savi M lam' α γ v0 : ℕ → (S → ℝ).

Formalization targets

Goal: Theorem 7.1

For a valid MDP, any λ′∈[λ,1)\lambda' \in [\lambda, 1)λ′∈[λ,1), any α,γ>0\alpha, \gamma > 0α,γ>0 and any v0v_0v0​, the S-AVI iterates converge to v∗v^*v∗, and

vs=v∗+O(λ′ s),∀s≥0,v_s = v^* + O(\lambda'^{\,s}), \quad \forall s \ge 0,vs​=v∗+O(λ′s),∀s≥0,

that is, there is a constant CCC with ∥vs−v∗∥∞≤C λ′ s\|v_s - v^*\|_\infty \le C\,\lambda'^{\,s}∥vs​−v∗∥∞​≤Cλ′s for every s≥0s \ge 0s≥0. The constant is left unspecified, as in the paper.

Milestones

  1. TTT is a λ\lambdaλ-contraction: ∥T(v)−T(w)∥∞≤λ∥v−w∥∞\|T(v) - T(w)\|_\infty \le \lambda\|v - w\|_\infty∥T(v)−T(w)∥∞​≤λ∥v−w∥∞​ (§2, p. 3).
  2. The first period: ∥v1−T(v1)∥∞≤λ∥v0−T(v0)∥∞≤λ′∥v0−T(v0)∥∞\|v_1 - T(v_1)\|_\infty \le \lambda\|v_0 - T(v_0)\|_\infty \le \lambda'\|v_0 - T(v_0)\|_\infty∥v1​−T(v1​)∥∞​≤λ∥v0​−T(v0​)∥∞​≤λ′∥v0​−T(v0​)∥∞​ (p. 13).
  3. Geometric decay of the residual: ∥vs−T(vs)∥∞≤λ′ s∥v0−T(v0)∥∞\|v_s - T(v_s)\|_\infty \le \lambda'^{\,s}\|v_0 - T(v_0)\|_\infty∥vs​−T(vs​)∥∞​≤λ′s∥v0​−T(v0​)∥∞​ for all sss (p. 14).
  4. The residual controls the error: ∥v−v∗∥∞≤(1−λ)−1∥v−T(v)∥∞\|v - v^*\|_\infty \le (1-\lambda)^{-1}\|v - T(v)\|_\infty∥v−v∗∥∞​≤(1−λ)−1∥v−T(v)∥∞​ for every vvv (p. 14).

Significance

The result. Theorem 7.1 says that the safeguard costs nothing in the worst case: S-AVI converges on every MDP at rate λ′\lambda'λ′, and with λ′=λ\lambda' = \lambdaλ′=λ it matches the rate of value iteration, which Theorem 6.3 of the same paper shows cannot be beaten by any first-order method uniformly over MDPs. At the same time it accepts accelerated steps whenever they reduce the residual fast enough, so it keeps the empirical speed-ups of A-VI. Remark 7.2 of the paper describes the role of λ′\lambda'λ′: values closer to 111 admit more accelerated steps. The guarantee also gives a computable stopping rule, since the residual bounds the distance to v∗v^*v∗.

Formalizing it. The result is proved in the paper; to our knowledge it has not been machine-checked. This mission produces a Lean statement of the finite discounted MDP layer, the Bellman operator and Algorithm 1 itself (including its two-step recursion and its data-dependent branch), and a formal proof that the safeguarded iteration converges. The contraction property of TTT and the residual-to-error bound are reusable for any later value-iteration development on the platform. Three sibling missions of this series pose the paper's other main results: the rate of Accelerated Value Computation on reversible chains (Theorem 5.1), the rate of Momentum Value Computation (Theorem 5.5), and the first-order lower bound (Theorem 6.3).

Difficulty

The accelerated candidate vs+1/2v_{s+1/2}vs+1/2​ is built from two past iterates through a momentum step, and on a general MDP nothing controls it: A-VI is not a descent method, and its iterates may diverge. The natural first attempt, proving that A-VI steps contract the error, therefore fails. The difficulty in the formal setting lies elsewhere: the iterates are defined by a two-step recursion with a branch on a real inequality, so any argument must handle both branches at every period and keep the paper's indexing straight (the threshold at period sss is λ′ s+1\lambda'^{\,s+1}λ′s+1 and it compares with the residual of v0v_0v0​, not of vsv_svs​). Existence and uniqueness of v∗v^*v∗ and the contraction property of a max of affine maps also need to be established for the specific operator, from the stochasticity of PPP.

Formalization scope

States and actions are finite types, [Fintype S], [Fintype A], and [Nonempty A] so that the maximum in TTT exists. Vectors are functions S → ℝ with Mathlib's sup norm, which is ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​. Rewards are arbitrary reals. The discount factor is M.lam with 0<λ<10 < \lambda < 10<λ<1 inside MDP.Valid; the initial distribution p0p_0p0​ of the paper's tuple is omitted because no statement uses it. The optimal value function enters each statement as a vector vstar with bellman M vstar = vstar; this is not vacuous, since a valid MDP has exactly one such vector. The scalar λ′\lambda'λ′ ranges over the closed interval [λ,1)[\lambda, 1)[λ,1), and α,γ>0\alpha, \gamma > 0α,γ>0 as in Algorithm 1, although the convergence argument does not need the step sizes to be positive. The sequence savi is indexed as the paper's vsv_svs​: its recursive case s + 2 is the paper's period s+1s+1s+1, with threshold lam' ^ (s + 2). "vs=v∗+O(λ′s)v_s = v^* + O(\lambda'^s)vs​=v∗+O(λ′s) for all s≥0s \ge 0s≥0" is encoded as a single constant valid for every sss, which is stronger than an eventual big-O.

A formalization that replaced the test by the per-step condition (7.2) of Remark 7.3, used the residual of vsv_svs​ instead of v0v_0v0​, fell back to T(vs+1/2)T(v_{s+1/2})T(vs+1/2​), or allowed λ≥1\lambda \ge 1λ≥1 would be a different theorem; none of these is posed. Remark 7.4's extension to arbitrary contractions is not posed either.

The development needs the contraction property of TTT, the Banach fixed-point bound relating error and residual, and an induction over the iterates. Proofs of the milestones as separate lemmas are welcome, as are general statements about safeguarded fixed-point iterations for λ\lambdaλ-contractions that specialize to this one.

Selected references

  • V. Goyal and J. Grand-Clément, A First-Order Approach to Accelerated Value Iteration, Operations Research, 2023; preprint arXiv:1905.09963v7, 2021. https://arxiv.org/abs/1905.09963
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994, reprinted 2014 (Chapter 6.3, value iteration). https://doi.org/10.1002/9780470316887
  • Y. Nesterov, A method for solving the convex programming problem with convergence rate O(1/k²), Soviet Mathematics Doklady 27, 1983.
8 thms1 active userReviewed
Dynamic ProgrammingOperations ResearchOptimization·Captain: mikedeng1

A First-Order Approach to Accelerated Value Iteration 3: On the n-State Chain MDP, Every First-Order Method Has ‖v_s − v*‖∞ ≥ λ^s/(1+λ) for s = 1, …, n − 1Research Paper

Motivation

Value iteration (VI) is the basic algorithm for computing the optimal value function of a discounted Markov decision process (MDP). Its error contracts by the discount factor λ\lambdaλ per step, so it needs on the order of (1−λ)−1log⁡(1/ϵ)(1-\lambda)^{-1}\log(1/\epsilon)(1−λ)−1log(1/ϵ) iterations, which is slow when λ\lambdaλ is close to 111, the regime of interest in long-horizon planning and reinforcement learning. Goyal and Grand-Clément (arXiv:1905.09963, Operations Research 2023) read VI as gradient descent on the residual map v↦v−T(v)v \mapsto v - T(v)v↦v−T(v) and import Nesterov's acceleration and heavy-ball momentum from convex optimization. In convex optimization the corresponding lower bounds of Nesterov (2004/2013) show that acceleration is optimal among first-order methods. The question this mission formalizes is the MDP counterpart: can any method that only combines past iterates and their Bellman images beat the rate λ\lambdaλ of plain VI on every MDP? Theorem 6.3 of the paper answers no.

Setting

A finite MDP consists of a state set SSS with ∣S∣=n|S| = n∣S∣=n, a finite nonempty action set AAA, transition probabilities Piaj≥0P_{iaj} \ge 0Piaj​≥0 with ∑jPiaj=1\sum_j P_{iaj} = 1∑j​Piaj​=1, rewards ria∈Rr_{ia} \in \mathbb{R}ria​∈R, and a discount factor λ∈(0,1)\lambda \in (0,1)λ∈(0,1). Its Bellman operator T:Rn→RnT : \mathbb{R}^n \to \mathbb{R}^nT:Rn→Rn is

T(v)i=max⁡a∈A{ria+λ∑jPiajvj},i∈S,T(v)_i = \max_{a \in A}\Big\{ r_{ia} + \lambda \sum_{j} P_{iaj} v_j \Big\}, \qquad i \in S,T(v)i​=a∈Amax​{ria​+λj∑​Piaj​vj​},i∈S,

a λ\lambdaλ-contraction for the sup norm ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​. Its unique fixed point v∗v^*v∗ is the optimal value function.

A sequence (vs)s≥0(v_s)_{s \ge 0}(vs​)s≥0​ in Rn\mathbb{R}^nRn is a first-order sequence for TTT if

v0=0,vs+1∈span⁡{v0,…,vs,T(v0),…,T(vs)},s≥0.v_0 = 0, \qquad v_{s+1} \in \operatorname{span}\{v_0, \dots, v_s, T(v_0), \dots, T(v_s)\}, \quad s \ge 0 .v0​=0,vs+1​∈span{v0​,…,vs​,T(v0​),…,T(vs​)},s≥0.

VI from v0=0v_0 = 0v0​=0 (vs+1=T(vs)v_{s+1} = T(v_s)vs+1​=T(vs​)) and relaxed VI (vs+1=vs−αs(vs−T(vs))v_{s+1} = v_s - \alpha_s(v_s - T(v_s))vs+1​=vs​−αs​(vs​−T(vs​))) from 000 produce such sequences.

The chain MDP of Figure 1 has nnn states and a single action. State 111 is absorbing with reward r1=1r_1 = 1r1​=1; every state i≥2i \ge 2i≥2 moves deterministically to i−1i - 1i−1 and earns nothing. In Lean (namespace AccelVI.LowerBound) the MDP is MDP, validity is MDP.Valid, TTT is bellman, the chain is chainMDP n lam, and the first-order condition is IsFirstOrder T v.

Formalization targets

Goal: Theorem 6.3 (p. 12)

For every nnn, every λ∈(0,1)\lambda \in (0,1)λ∈(0,1), the fixed point v∗v^*v∗ of the Bellman operator TTT of the nnn-state chain, every first-order sequence (vs)(v_s)(vs​) for TTT, and every s∈{1,…,n−1}s \in \{1, \dots, n-1\}s∈{1,…,n−1},

∥vs−v∗∥∞≥λs1+λ.\|v_s - v^*\|_\infty \ge \frac{\lambda^s}{1+\lambda}.∥vs​−v∗∥∞​≥1+λλs​.

Milestones

  1. TTT is a λ\lambdaλ-contraction: ∥T(v)−T(w)∥∞≤λ∥v−w∥∞\|T(v) - T(w)\|_\infty \le \lambda\|v - w\|_\infty∥T(v)−T(w)∥∞​≤λ∥v−w∥∞​ (§2, p. 3).
  2. (3.5): (1−λ)∥v−w∥∞≤∥(I−T)(v)−(I−T)(w)∥∞(1-\lambda)\|v - w\|_\infty \le \|(I-T)(v) - (I-T)(w)\|_\infty(1−λ)∥v−w∥∞​≤∥(I−T)(v)−(I−T)(w)∥∞​ (p. 6).
  3. (3.6): ∥(I−T)(v)−(I−T)(w)∥∞≤(1+λ)∥v−w∥∞\|(I-T)(v) - (I-T)(w)\|_\infty \le (1+\lambda)\|v - w\|_\infty∥(I−T)(v)−(I−T)(w)∥∞​≤(1+λ)∥v−w∥∞​ (p. 6).
  4. On the chain, the value function is vi∗=λi−1/(1−λ)v^*_i = \lambda^{i-1}/(1-\lambda)vi∗​=λi−1/(1−λ), and it is the only fixed point of TTT (p. 12).
  5. On the chain, every first-order sequence satisfies vs,i=0v_{s,i} = 0vs,i​=0 for i≥s+1i \ge s+1i≥s+1 (p. 12).
  6. (6.2)–(6.4): on the chain, ∥vs−T(vs)∥∞≥λs\|v_s - T(v_s)\|_\infty \ge \lambda^s∥vs​−T(vs​)∥∞​≥λs for 1≤s≤n−11 \le s \le n-11≤s≤n−1 (p. 12).

Significance

The result. Theorem 6.3 shows that, measured by the number of Bellman evaluations, no first-order method improves on the worst-case rate λ\lambdaλ of value iteration uniformly over MDPs, as long as the number of steps is below the number of states. In convex optimization the analogous class admits acceleration from 1−μ/L1 - \mu/L1−μ/L to 1−μ/L1 - \sqrt{\mu/L}1−μ/L​; with μ=1−λ\mu = 1-\lambdaμ=1−λ, L=1+λL = 1+\lambdaL=1+λ, the analogue for MDPs would be a rate of about 1−1−λ1 - \sqrt{1-\lambda}1−1−λ​, and this theorem rules it out. It is the reason the paper's accelerated schemes are analysed under extra structure, such as reversible policy-evaluation chains, or are safeguarded.

Formalizing it. The result is proved in the paper; no machine-checked version exists. The mission produces a checked lower bound for fixed-point iterations of Bellman operators, the contraction inequalities (3.5)–(3.6) for a general finite MDP, and an explicit value function for a hard instance. The paper's other main results, Theorems 5.1, 5.5 and 7.1, are posed as the sibling missions 1, 2 and 4.

Difficulty

The obvious argument that the error is at least the contribution of states never reached fails without control of the span: the first-order class allows arbitrary real coefficients, including ones that change with sss and depend on all past iterates, so one has to show that no such combination puts mass on states beyond index sss. The support claim has to be carried through the nonlinear max in TTT, which is benign here only because the chain has a single action. The second ingredient converts a bound on a few coordinates of vs−v∗v_s - v^*vs​−v∗ into a bound in sup norm with the exact constant 1/(1+λ)1/(1+\lambda)1/(1+λ), which requires the two-sided inequalities (3.5)–(3.6) for I−TI - TI−T and the explicit value vs+1∗=λs/(1−λ)v^*_{s+1} = \lambda^s/(1-\lambda)vs+1∗​=λs/(1−λ).

Formalization scope

  • States are Fin n and are 0-based: the paper's state iii is index i−1i - 1i−1, so vi∗=λi−1/(1−λ)v^*_i = \lambda^{i-1}/(1-\lambda)vi∗​=λi−1/(1−λ) is lam ^ k / (1 - lam) at index kkk and "i≥s+1i \ge s+1i≥s+1" is s≤ks \le ks≤k. The action set of the chain is Unit.
  • ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ is Mathlib's sup norm on Fin n → ℝ. "span" is the real linear span Submodule.span ℝ, with both lists running to index sss inclusive.
  • v∗v^*v∗ enters the goal through its defining equation T(v∗)=v∗T(v^*) = v^*T(v∗)=v∗; it is not replaced by the explicit vector. The initial distribution p0p_0p0​ of the paper's MDP tuple is omitted, since no result here uses it.
  • Pinned quantifiers. As printed, Theorem 6.3 asserts that there exists an MDP instance, with nnn its own number of states; read literally, an instance with n=1n = 1n=1 has no admissible sss. The proof fixes an arbitrary nnn and λ∈(0,1)\lambda \in (0,1)λ∈(0,1) and uses the chain. The goal states that claim for every nnn and λ\lambdaλ on the explicit chain, which implies the printed form.
  • n−1n - 1n−1 is natural-number subtraction, so the goal has content exactly when n≥2n \ge 2n≥2.
  • The goal's constant is λs/(1+λ)\lambda^s/(1+\lambda)λs/(1+λ) as printed; the sharper bound λs/(1−λ)\lambda^s/(1-\lambda)λs/(1−λ), which the proof's chain also gives, is not the target.
  • The Bellman operator and the kernel condition are the published platform definitions FoundationsML_ReinforcementLearning_BellmanOperator and FoundationsML_ReinforcementLearning_IsTransitionKernel.
  • A trivializing formalization would take an unsatisfiable fixed-point hypothesis or an empty first-order class. Both are satisfiable: the explicit vector is a fixed point (milestone 4), and VI from 000 is first-order.

Contributions welcome: proofs of the contraction inequalities for general finite MDPs (reusable by every Bellman-operator mission), of the support recursion, and of the final chain of inequalities.

Selected references

  • V. Goyal and J. Grand-Clément, A First-Order Approach to Accelerated Value Iteration, Operations Research 71(2), 2023; preprint arXiv:1905.09963v7, 2021. https://arxiv.org/abs/1905.09963
  • Yu. Nesterov, Introductory Lectures on Convex Optimization: A Basic Course, Springer, 2004. https://doi.org/10.1007/978-1-4419-8853-9
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994/2014. https://doi.org/10.1002/9780470316887
10 thms1 active userReviewed
Machine LearningStatistics·Captain: mikedeng1

Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model 4: Finite-Horizon Model-Based Planning Is ε-Optimal w.p. 1−δ Once N ≥ c₀H³log(H|S||A|/δ)/ε²Research Paper

Motivation

Reinforcement learning with a generative model (a simulator) is a basic way to measure how many samples planning needs. A learner may query, for any state sss, action aaa and step hhh, a fresh next state drawn from the unknown transition law Ph(⋅∣s,a)P_h(\cdot\mid s,a)Ph​(⋅∣s,a), and must output a near-optimal policy. Model-based planning is the simplest approach: estimate each transition law by empirical frequencies, then solve the estimated model exactly by dynamic programming. It is widely used, and its sample complexity is the reference point for model-free methods.

G. Li, Y. Wei, Y. Chi and Y. Chen (arXiv:2005.12900v8; Operations Research, 2024) show that model-based planning is minimax optimal over the full range of accuracies, for discounted MDPs (Theorems 1–3) and for time-inhomogeneous finite-horizon MDPs (Theorem 4). This mission covers the finite-horizon case. Earlier model-based analyses of the finite-horizon setting, such as Yin et al. (2021), required N≳H2N\gtrsim H^2N≳H2 samples per triple (s,a,h)(s,a,h)(s,a,h) up to logarithmic factors before any guarantee applied; Theorem 4 needs only N≳HN\gtrsim HN≳H.

Setting

A finite-horizon MDP M=(S,A,{Ph}h=1H,{rh}h=1H,H)\mathcal M=(\mathcal S,\mathcal A,\{P_h\}_{h=1}^H,\{r_h\}_{h=1}^H,H)M=(S,A,{Ph​}h=1H​,{rh​}h=1H​,H) has a finite state space S\mathcal SS, a finite nonempty action space A\mathcal AA, a horizon HHH, and for every step h∈[H]={1,…,H}h\in[H]=\{1,\dots,H\}h∈[H]={1,…,H} a transition kernel Ph(s′∣s,a)P_h(s'\mid s,a)Ph​(s′∣s,a) and a reward rh(s,a)∈[0,1]r_h(s,a)\in[0,1]rh​(s,a)∈[0,1]. The kernels may differ across steps (time inhomogeneity).

A deterministic nonstationary policy π={πh}\pi=\{\pi_h\}π={πh​} chooses action πh(s)\pi_h(s)πh​(s) at step hhh in state sss. Its value and Q-function satisfy the backward Bellman equations

VH+1π=0,Qhπ(s,a)=rh(s,a)+∑s′Ph(s′∣s,a)Vh+1π(s′),Vhπ(s)=Qhπ(s,πh(s)),V^\pi_{H+1}=0,\qquad Q^\pi_h(s,a)=r_h(s,a)+\sum_{s'}P_h(s'\mid s,a)V^\pi_{h+1}(s'),\qquad V^\pi_h(s)=Q^\pi_h(s,\pi_h(s)),VH+1π​=0,Qhπ​(s,a)=rh​(s,a)+s′∑​Ph​(s′∣s,a)Vh+1π​(s′),Vhπ​(s)=Qhπ​(s,πh​(s)),

so Vhπ(s)V^\pi_h(s)Vhπ​(s) is the expected sum of rewards from step hhh to HHH started at sss, and lies in [0,H][0,H][0,H]. The optimal values are Vh⋆(s)=max⁡πVhπ(s)V^\star_h(s)=\max_\pi V^\pi_h(s)Vh⋆​(s)=maxπ​Vhπ​(s) and Qh⋆(s,a)=rh(s,a)+∑s′Ph(s′∣s,a)Vh+1⋆(s′)Q^\star_h(s,a)=r_h(s,a)+\sum_{s'}P_h(s'\mid s,a)V^\star_{h+1}(s')Qh⋆​(s,a)=rh​(s,a)+∑s′​Ph​(s′∣s,a)Vh+1⋆​(s′).

The generative model returns, for every triple (s,a,h)(s,a,h)(s,a,h), NNN independent samples shi(s,a)∼Ph(⋅∣s,a)s^i_h(s,a)\sim P_h(\cdot\mid s,a)shi​(s,a)∼Ph​(⋅∣s,a), all samples independent. The empirical kernel is

P^h(s′∣s,a)=1N∑i=1N1{shi(s,a)=s′},\widehat P_h(s'\mid s,a)=\frac1N\sum_{i=1}^N\mathbb 1\{s^i_h(s,a)=s'\},Ph​(s′∣s,a)=N1​i=1∑N​1{shi​(s,a)=s′},

and the empirical MDP M^\widehat{\mathcal M}M replaces every PhP_hPh​ by P^h\widehat P_hPh​, keeping the rewards. Model-based planning returns the policy π^⋆\widehat\pi^\starπ⋆ obtained by backward dynamic programming on M^\widehat{\mathcal M}M: at each step, π^h⋆(s)\widehat\pi^\star_h(s)πh⋆​(s) maximizes the empirical optimal Q-function Q^h⋆(s,⋅)\widehat Q^\star_h(s,\cdot)Q​h⋆​(s,⋅). So π^h⋆\widehat\pi^\star_hπh⋆​ depends only on P^h,…,P^H\widehat P_h,\dots,\widehat P_HPh​,…,PH​.

Formalization targets

Goal: Theorem 4 (p. 10)

There is a universal constant c0>0c_0>0c0​>0 such that for every finite-horizon MDP, every δ>0\delta>0δ>0 and every 0<ε≤H0<\varepsilon\le H0<ε≤H: if

N≥c0H3log⁡(H∣S∣∣A∣/δ)ε2,N\ge\frac{c_0H^3\log\big(H|\mathcal S||\mathcal A|/\delta\big)}{\varepsilon^2},N≥ε2c0​H3log(H∣S∣∣A∣/δ)​,

then with probability at least 1−δ1-\delta1−δ,

∀(s,a,h)∈S×A×[H]:Vhπ^⋆(s)≥Vh⋆(s)−ε,Qhπ^⋆(s,a)≥Qh⋆(s,a)−ε.\forall(s,a,h)\in\mathcal S\times\mathcal A\times[H]:\qquad V^{\widehat\pi^\star}_h(s)\ge V^\star_h(s)-\varepsilon,\qquad Q^{\widehat\pi^\star}_h(s,a)\ge Q^\star_h(s,a)-\varepsilon.∀(s,a,h)∈S×A×[H]:Vhπ⋆​(s)≥Vh⋆​(s)−ε,Qhπ⋆​(s,a)≥Qh⋆​(s,a)−ε.

The constant c0c_0c0​ is not specified, so the goal survives any improvement of constants.

Milestones

  1. Lemma 12 (p. 34): the auxiliary vectors Vh(l)V^{(l)}_hVh(l)​ of (62), obtained by propagating square roots of one-step variances, obey ∥Vh(l)∥∞≤(3H)lH\|V^{(l)}_h\|_\infty\le(\sqrt{3H})^lH∥Vh(l)​∥∞​≤(3H​)lH.
  2. Lemma 9 (p. 21): if the one-step errors (P^h,π−Ph,π)Vh+1(l)(\widehat P_{h,\pi}-P_{h,\pi})V^{(l)}_{h+1}(Ph,π​−Ph,π​)Vh+1(l)​ satisfy a Bernstein-type bound (63) with parameter β1\beta_1β1​ for 0≤l≤log⁡2H0\le l\le\log_2H0≤l≤log2​H, and N>12Hβ1N>12H\beta_1N>12Hβ1​, then ∥V^hπ−Vhπ∥∞≤6H3β1H/N\|\widehat V^\pi_h-V^\pi_h\|_\infty\le6H\sqrt{3\beta_1H/N}∥Vhπ​−Vhπ​∥∞​≤6H3β1​H/N​.
  3. (66)–(67) (p. 21): for a fixed policy, the Bernstein-type bound holds for all (s,a)(s,a)(s,a) with probability at least 1−δ1-\delta1−δ, with β1=4log⁡(H∣S∣∣A∣/δ)\beta_1=4\log(H|\mathcal S||\mathcal A|/\delta)β1​=4log(H∣S∣∣A∣/δ).
  4. §7.3, second bullet (pp. 21–22): the same accuracy ∥V^hπ^⋆−Vhπ^⋆∥∞≤6H12Hlog⁡(H∣S∣∣A∣/δ)/N\|\widehat V^{\widehat\pi^\star}_h-V^{\widehat\pi^\star}_h\|_\infty\le6H\sqrt{12H\log(H|\mathcal S||\mathcal A|/\delta)/N}∥Vhπ⋆​−Vhπ⋆​∥∞​≤6H12Hlog(H∣S∣∣A∣/δ)/N​ holds for the data-dependent planner's policy.
  5. (65) (p. 21): Vh⋆−Vhπ^⋆≤(V^hπ^⋆−Vhπ^⋆)+(Vhπ⋆−V^hπ⋆)V^\star_h-V^{\widehat\pi^\star}_h\le(\widehat V^{\widehat\pi^\star}_h-V^{\widehat\pi^\star}_h)+(V^{\pi^\star}_h-\widehat V^{\pi^\star}_h)Vh⋆​−Vhπ⋆​≤(Vhπ⋆​−Vhπ⋆​)+(Vhπ⋆​−Vhπ⋆​).
  6. (68) (p. 22): 0≤Vh⋆−Vhπ^⋆≤12H12Hlog⁡(H∣S∣∣A∣/δ)/N0\le V^\star_h-V^{\widehat\pi^\star}_h\le12H\sqrt{12H\log(H|\mathcal S||\mathcal A|/\delta)/N}0≤Vh⋆​−Vhπ⋆​≤12H12Hlog(H∣S∣∣A∣/δ)/N​ with probability at least 1−2δ1-2\delta1−2δ when N≥48Hlog⁡(H∣S∣∣A∣/δ)N\ge48H\log(H|\mathcal S||\mathcal A|/\delta)N≥48Hlog(H∣S∣∣A∣/δ).

Significance

The result. The total number of samples is NH∣S∣∣A∣NH|\mathcal S||\mathcal A|NH∣S∣∣A∣, so Theorem 4 gives ε\varepsilonε-optimal policies from O~(∣S∣∣A∣H4/ε2)\widetilde O(|\mathcal S||\mathcal A|H^4/\varepsilon^2)O(∣S∣∣A∣H4/ε2) samples, which matches the known lower bound up to logarithmic factors, for every ε∈(0,H]\varepsilon\in(0,H]ε∈(0,H]. The extra factor of HHH compared with the discounted case is the price of time inhomogeneity: each step has its own kernel to estimate. The guarantee holds from N≳HN\gtrsim HN≳H samples per triple on, instead of N≳H2N\gtrsim H^2N≳H2. Unlike the paper's discounted results, no reward perturbation or conservative action selection is needed. The step-by-step independence of the data makes the plain planner analyzable.

Formalizing it. The theorem is proved in the paper; nothing here is open mathematically, and no machine-checked proof of it is known. A formalization checks the details the paper leaves implicit: the index ranges of the backward recursions, the use of log⁡2H\log_2Hlog2​H as an integer, the sample-size condition of Lemma 9 when it is applied to the planner's policy, and the independence argument that lets a data-dependent policy enjoy fixed-policy concentration. The finite-horizon layer here (time-inhomogeneous kernels, backward propagation, the DP planner, the empirical kernel and the finite law of the data) is reusable by other finite-horizon sample-complexity results.

Difficulty

The planner's policy π^⋆\widehat\pi^\starπ⋆ is built from the same data that define M^\widehat{\mathcal M}M, so the obvious route, applying a concentration inequality to (P^h−Ph)Vh+1π^⋆(\widehat P_h-P_h)V^{\widehat\pi^\star}_{h+1}(Ph​−Ph​)Vh+1π⋆​ as if Vh+1π^⋆V^{\widehat\pi^\star}_{h+1}Vh+1π⋆​ were fixed, is not justified by itself. The argument has to use the backward structure: the step-hhh quantities depend only on the data of later steps, which are independent of P^h\widehat P_hPh​.

A second difficulty is the sample-size range. A Hoeffding-type bound on each one-step error, summed over HHH steps, gives an accuracy that only becomes meaningful when N≳H2N\gtrsim H^2N≳H2. Reaching N≳HN\gtrsim HN≳H requires Bernstein-type bounds and the control of a whole sequence of auxiliary value vectors V(l)V^{(l)}V(l), of which Lemma 12 bounds the size. Lemma 9 then has to close the recursion in lll after about log⁡2H\log_2Hlog2​H levels.

Formalization scope

  • Steps are Fin H, 0-based: the paper's step hhh is Lean's h−1h-1h−1. Backward propagation returns 000 at every index ≥H\ge H≥H, which encodes VH+1=0V_{H+1}=0VH+1​=0. The paper's ranges 1≤h≤H−11\le h\le H-11≤h≤H−1 in (63) and (66) are written h.val + 1 < H.
  • Values are defined by the backward Bellman recursion (equal to the trajectory expectation of p. 6 for deterministic policies), Vh⋆V^\star_hVh⋆​ as a maximum over the finitely many deterministic nonstationary policies, and Qh⋆:=rh+PhVh+1⋆Q^\star_h:=r_h+P_hV^\star_{h+1}Qh⋆​:=rh​+Ph​Vh+1⋆​.
  • The planner takes a tie-breaking rule sel (any argmax rule), fixed before the data and quantified outside the probability. Empirical Q-values tie with positive probability, and the proof needs π^⋆\widehat\pi^\starπ⋆ to be a fixed function of the empirical kernels.
  • Probability. A data set is an element of the finite type [H]×S×A×[N]→S[H]\times\mathcal S\times\mathcal A\times[N]\to\mathcal S[H]×S×A×[N]→S; its law is the product of the kernels, and probabilities are finite sums. "With probability at least 1−δ1-\delta1−δ" is written as a bound ≤δ\le\delta≤δ on the probability of the failure event. N>0N>0N>0 is assumed throughout, as in (6).
  • Constants. c0c_0c0​ is quantified before the spaces, the horizon and the MDP. The page names "universal constants c0,c1>0c_0,c_1>0c0​,c1​>0", but c1c_1c1​ does not occur in Theorem 4; only c0c_0c0​ is quantified.
  • Generalizations disclosed in the items. Lemma 9 and (65) are stated for any family of transition kernels P^h\widehat P_hPh​, and (66)–(67) for any data-independent policy instead of only π⋆\pi^\starπ⋆. The second bullet of §7.3 carries the condition N≥48Hlog⁡(H∣S∣∣A∣/δ)N\ge48H\log(H|\mathcal S||\mathcal A|/\delta)N≥48Hlog(H∣S∣∣A∣/δ), which the page leaves implicit there and states with (68).

Trivializing formalizations are ruled out: the planner is computed from the empirical kernels, not from the true PhP_hPh​; the model is time-inhomogeneous, with one kernel per step; and c0c_0c0​ cannot depend on HHH, S\mathcal SS, A\mathcal AA or the MDP.

The only external definition is the published FoundationsML.ReinforcementLearning.IsTransitionKernel. A complete development needs Bernstein's inequality for bounded i.i.d. averages (on finite product laws), a union bound, and the independence of the per-step data. Contributions are welcome on all six milestones and on general lemmas about the finite law of the data, such as independence across steps and the distribution of P^h\widehat P_hPh​.

Selected references

  • G. Li, Y. Wei, Y. Chi, Y. Chen, Breaking the Sample Size Barrier in Model-Based Reinforcement Learning with a Generative Model, arXiv:2005.12900v8, 2023; Operations Research, 2024. https://arxiv.org/abs/2005.12900
  • M. G. Azar, R. Munos, H. J. Kappen, Minimax PAC bounds on the sample complexity of reinforcement learning with a generative model, Machine Learning 91(3):325–349, 2013. https://doi.org/10.1007/s10994-013-5368-1
  • A. Agarwal, S. Kakade, L. F. Yang, Model-Based Reinforcement Learning with a Generative Model is Minimax Optimal, COLT 2020. https://arxiv.org/abs/1906.03804
  • M. Yin, Y. Bai, Y.-X. Wang, Near-optimal provable uniform convergence in offline policy evaluation for reinforcement learning, AISTATS 2021, PMLR 130:1567–1575. https://proceedings.mlr.press/v130/yin21a.html
  • D. P. Bertsekas, Dynamic Programming and Optimal Control, 4th ed., Athena Scientific, 2017.
10 thms1 active userReviewed
Machine LearningProbabilityStatistics·Captain: mikedeng1

Optimistic Posterior Sampling for Reinforcement Learning: Worst-Case Regret Bounds II: Along Any h, the Empirical Transition Vector Is within 2√(log(n/ρ)Σγᵢcᵢ²/n) + 3D log(2/ρ)/n of the TruthResearch Paper

Motivation

Model-based reinforcement learning algorithms for Markov decision processes estimate each transition distribution Ps,aP_{s,a}Ps,a​ from the transitions they have observed out of the state–action pair (s,a)(s,a)(s,a). Their regret analyses then need to know how far the empirical distribution p^\hat pp^​ can be from the true one ppp. The standard tool is an ℓ1\ell_1ℓ1​ bound on p^−p\hat p-pp^​−p, as in UCRL2 (Jaksch, Ortner and Auer, 2010), which costs a factor of order S\sqrt SS​ in the number of states SSS. What the analysis actually uses, however, is the deviation along one direction: the projection (p^−p)Th(\hat p-p)^Th(p^​−p)Th onto a bias (or value) vector hhh whose entries differ by at most the MDP's diameter DDD.

S. Agrawal and R. Jia (arXiv:1705.07041v3, published in Mathematics of Operations Research, 2023, as Optimistic Posterior Sampling for Reinforcement Learning: Worst-Case Regret Bounds) prove a worst-case regret bound of order O~(DSAT)\tilde O(D\sqrt{SAT})O~(DSAT​) for an optimistic variant of posterior sampling. One ingredient of that analysis is their Proposition 5.2: a Bernstein-type bound on (p^−p)Th(\hat p-p)^Th(p^​−p)Th whose leading term is governed by a variance of hhh under ppp, written in stick-breaking form. This mission formalizes that proposition and the steps of its proof.

Setting

Fix a number of states SSS and order them 1,…,S1,\dots,S1,…,S. A probability vector p∈ΔSp\in\Delta^Sp∈ΔS has pi≥0p_i\ge0pi​≥0 and ∑ipi=1\sum_ip_i=1∑i​pi​=1. A multinoulli trial with parameter ppp is a random state XXX with P(X=i)=pi\mathbb P(X=i)=p_iP(X=i)=pi​. Draw nnn independent trials X1,…,XnX_1,\dots,X_nX1​,…,Xn​ and let

p^i=#{t:Xt=i}n\hat p_i=\frac{\#\{t: X_t=i\}}{n}p^​i​=n#{t:Xt​=i}​

be the empirical probability vector, the average of the one-hot outcomes. For ppp and a vector h∈RSh\in\mathbb R^Sh∈RS define the stick-breaking quantities

γi=pi(pi+1+⋯+pS)pi+⋯+pS,Hi+1=1∑j=i+1Spj∑j=i+1Shjpj,ci=hi−Hi+1.\gamma_i=\frac{p_i(p_{i+1}+\cdots+p_S)}{p_i+\cdots+p_S},\qquad H_{i+1}=\frac{1}{\sum_{j=i+1}^Sp_j}\sum_{j=i+1}^Sh_jp_j,\qquad c_i=h_i-H_{i+1}.γi​=pi​+⋯+pS​pi​(pi+1​+⋯+pS​)​,Hi+1​=∑j=i+1S​pj​1​j=i+1∑S​hj​pj​,ci​=hi​−Hi+1​.

Thus Hi+1H_{i+1}Hi+1​ is the mean of hhh under ppp conditioned on the states after iii, and cic_ici​ compares hih_ihi​ with it. The sum ∑i<Sγici2\sum_{i<S}\gamma_ic_i^2∑i<S​γi​ci2​ equals the variance of h(X)h(X)h(X) for X∼pX\sim pX∼p. In Lean these objects are gammaCoef p i, Hnext p h i, cCoef p h i, phat ω i, the law of one trial is cat p and the law of nnn trials is trialsLaw n p, all in the namespace OptimisticPSRL.Concentration.

Formalization targets

Goal: Proposition 5.2 (p. 9)

Let h∈RSh\in\mathbb R^Sh∈RS satisfy ∣hi−hi′∣≤D|h_i-h_{i'}|\le D∣hi​−hi′​∣≤D for all i,i′i,i'i,i′, let n≥96n\ge96n≥96 and ρ∈(0,1)\rho\in(0,1)ρ∈(0,1). Then, with probability at least 1−ρ1-\rho1−ρ,

∣(p^−p)Th∣≤2log⁡(n/ρ)∑i<Sγici2n+3D log⁡(2/ρ)n.\big|(\hat p-p)^Th\big|\le2\sqrt{\log(n/\rho)\sum_{i<S}\frac{\gamma_ic_i^2}{n}}+3D\,\frac{\log(2/\rho)}{n}.​(p^​−p)Th​≤2log(n/ρ)i<S∑​nγi​ci2​​​+3Dnlog(2/ρ)​.

Milestones

  1. Fact 1 (p. 17), a deterministic identity: for probability vectors p~,pˉ\tilde p,\bar pp~​,pˉ​ with stick-breaking ratios y~i=p~i/(p~i+⋯+p~S)\tilde y_i=\tilde p_i/(\tilde p_i+\cdots+\tilde p_S)y~​i​=p~​i​/(p~​i​+⋯+p~​S​) and yˉi\bar y_iyˉ​i​,
(p~−pˉ)Th=∑i(y~i−yˉi)(hi−H~i+1)(pˉi+⋯+pˉS)=∑i(y~i−yˉi)(hi−Hˉi+1)(p~i+⋯+p~S).(\tilde p-\bar p)^Th=\sum_i(\tilde y_i-\bar y_i)(h_i-\tilde H_{i+1})(\bar p_i+\cdots+\bar p_S)=\sum_i(\tilde y_i-\bar y_i)(h_i-\bar H_{i+1})(\tilde p_i+\cdots+\tilde p_S).(p~​−pˉ​)Th=i∑​(y~​i​−yˉ​i​)(hi​−H~i+1​)(pˉ​i​+⋯+pˉ​S​)=i∑​(y~​i​−yˉ​i​)(hi​−Hˉi+1​)(p~​i​+⋯+p~​S​).
  1. The projection as a sum of martingale differences (proof, p. 21): with Zt,i=ci1(Xt=i)−cipipi+⋯+pS1(Xt≥i)Z_{t,i}=c_i\mathbb 1(X_t=i)-c_i\frac{p_i}{p_i+\cdots+p_S}\mathbb 1(X_t\ge i)Zt,i​=ci​1(Xt​=i)−ci​pi​+⋯+pS​pi​​1(Xt​≥i) and Zt=∑iZt,iZ_t=\sum_iZ_{t,i}Zt​=∑i​Zt,i​,
1n∑t=1nZt=(p^−p)Th,\frac1n\sum_{t=1}^nZ_t=(\hat p-p)^Th,n1​t=1∑n​Zt​=(p^​−p)Th,

together with the two intermediate expressions of the page. 3. Uncorrelated coordinates (proof, p. 21): E[Zt,iZt,j]=0\mathbb E[Z_{t,i}Z_{t,j}]=0E[Zt,i​Zt,j​]=0 for i≠ji\ne ji=j. 4. The predictable variance (proof, p. 21): ∑t=1nE[Zt2]=∑ici2 n γi\sum_{t=1}^n\mathbb E[Z_t^2]=\sum_ic_i^2\,n\,\gamma_i∑t=1n​E[Zt2​]=∑i​ci2​nγi​. 5. Corollary B.1 (p. 26), Bernstein's inequality for bounded martingale differences with random predictable variance VnV_nVn​: for n≥96n\ge96n≥96, δ∈(0,1)\delta\in(0,1)δ∈(0,1), with probability greater than 1−δ1-\delta1−δ,

∣Mn∣≤2Vnln⁡(n/δ)+3Kln⁡(n/δ).|M_n|\le2\sqrt{V_n\ln(n/\delta)}+3K\ln(n/\delta).∣Mn​∣≤2Vn​ln(n/δ)​+3Kln(n/δ).

Significance

The result. Proposition 5.2 is the concentration half of the optimism step of the paper (Lemma 5.3): combined with an anti-concentration bound for Dirichlet samples along the same direction (Proposition 5.1), it shows that some posterior sample is optimistic along hhh with constant probability. Because the bound is stated along a single direction and is weighted by the variance of hhh rather than by DDD alone, it avoids the S\sqrt SS​ loss that an ℓ1\ell_1ℓ1​ bound would incur, which is part of how the paper's regret bound improves on UCRL2's O~(DSAT)\tilde O(DS\sqrt{AT})O~(DSAT​). The stick-breaking form of the variance is what lets the same quantity appear on both sides of the optimism argument, in the Dirichlet bound and in the empirical bound.

Formalizing it. The proposition and its proof steps are proved on paper; none of them has a machine-checked proof. The regret theorem of the paper (Theorem 1) is not posed: its constants are hidden in O(⋅)O(\cdot)O(⋅) and its algorithm's parameters are given as Θ(⋅)\Theta(\cdot)Θ(⋅). Proposition 5.2, by contrast, is fully explicit. Corollary B.1 is a reusable martingale inequality with explicit constants. The predictable-variance identity and Fact 1 are exact identities about stick-breaking coordinates that recur in analyses of Dirichlet and categorical models.

Difficulty

Two steps resist the obvious approach. First, the statement carries the variance in stick-breaking form, not as Varp(h)\mathrm{Var}_p(h)Varp​(h); linking the two needs the decomposition of Fact 1 and the identity for the predictable variance, which are exact algebraic identities whose bookkeeping of tails and empty tails is error-prone. Second, the paper's own route goes through Corollary B.1, a martingale Bernstein inequality with a random variance, which rests on a peeling argument over a grid of variance levels (Seldin et al., 2012); Mathlib has neither this inequality nor a Bernstein inequality with explicit constants for bounded variables.

A known subtlety: the paper's proof, through Corollary B.1, yields the second term 3Dlog⁡(n/ρ)/n3D\log(n/\rho)/n3Dlog(n/ρ)/n, while the statement prints the smaller 3Dlog⁡(2/ρ)/n3D\log(2/\rho)/n3Dlog(2/ρ)/n. The printed statement is still true for nnn iid trials (the classical Bernstein inequality gives a bound below it), so the goal is posed as printed. The paper's own proof therefore does not establish the printed constant.

Formalization scope

  • States are Fin S with its natural order, 0-based; the paper's range i<Si<Si<S is every state but the last (belowLast S). Fact 1 holds for every ordering; the natural order covers this since states are labels.
  • Probability vectors are p : Fin S → ℝ with IsProbVec p (nonnegative, summing to one). Zero entries are allowed. A ratio whose denominator is zero evaluates to 000 (Lean's convention), which gives the values the identities need; no positivity of ppp is assumed.
  • One trial has law cat p =∑ipiδi=\sum_ip_i\delta_i=∑i​pi​δi​; nnn trials have the product law trialsLaw n p === Measure.pi. The empirical vector phat ω is computed from the sample ω : Fin n → Fin S. "With probability 1−ρ1-\rho1−ρ" is ENNReal.ofReal (1 - ρ) ≤ trialsLaw n p {good event}; Corollary B.1's "greater than 1−δ1-\delta1−δ" is strict. log⁡\loglog is Real.log.
  • The proof displays (milestones 2–4) are stated in the iid reading of the proposition: the paper writes them for transitions of an MDP out of a fixed (s,a)(s,a)(s,a), with an indicator 1(st−1=s,at−1=a)\mathbb 1(s_{t-1}=s,a_{t-1}=a)1(st−1​=s,at−1​=a) and a random count τ\tauτ; here the indicator is one and τ=n\tau=nτ=n, and the conditional expectations are expectations under one draw of law ppp. Milestone 2 assumes every drawn state has positive probability (true almost surely), which the page's intermediate sum over i≤S−1i\le S-1i≤S−1 needs.
  • Corollary B.1 is posed for a general filtered probability space, with ZiZ_iZi​ Fi\mathcal F_iFi​-measurable, ∣Zi∣≤K|Z_i|\le K∣Zi​∣≤K almost surely and E[Zi∣Fi−1]=0\mathbb E[Z_i\mid\mathcal F_{i-1}]=0E[Zi​∣Fi−1​]=0.

The goal cannot be satisfied by a degenerate reading: p^\hat pp^​ is built from the sample, the measure is the nnn-fold product of the categorical law ppp, the event is the good event itself (not a complement bound), and the variance term is not identically zero (for S=2S=2S=2, p=(12,12)p=(\tfrac12,\tfrac12)p=(21​,21​) it equals (h1−h2)2/4(h_1-h_2)^2/4(h1​−h2​)2/4).

Needed infrastructure: finite-sum manipulations over tails of Fin S; a Bernstein or Freedman inequality with explicit constants (for iid bounded variables for the goal, for martingale differences for Corollary B.1). Contributions of either inequality are reusable well beyond this mission and are welcome, as are alternative proofs of the goal that bypass Corollary B.1.

Selected references

  • S. Agrawal and R. Jia, Posterior sampling for reinforcement learning: worst-case regret bounds, arXiv:1705.07041v3, 2020; published as Optimistic Posterior Sampling for Reinforcement Learning: Worst-Case Regret Bounds, Mathematics of Operations Research, 2023. https://arxiv.org/abs/1705.07041
  • T. Jaksch, R. Ortner and P. Auer, Near-optimal regret bounds for reinforcement learning, Journal of Machine Learning Research 11, 2010. https://www.jmlr.org/papers/v11/jaksch10a.html
  • Y. Seldin, F. Laviolette, N. Cesa-Bianchi, J. Shawe-Taylor and P. Auer, PAC-Bayesian inequalities for martingales, IEEE Transactions on Information Theory 58(12), 2012. https://doi.org/10.1109/TIT.2012.2211334
7 thms1 active userReviewed
Machine LearningOptimization·Captain: mikedeng1

Structural Estimation of Markov Decision Processes in High-Dimensional State Space with Finite-Time Guarantees: Single-Loop ML-IRL Policy and Reward Iterates Converge at Explicit Finite-Time RatesResearch Paper

Motivation

Structural estimation of Markov decision processes recovers the parameters of an agent's reward from observed behavior, under the hypothesis that the agent acts optimally in a known dynamic environment. In econometrics this is the dynamic discrete choice model of Rust (Rust 1987); in artificial intelligence it is maximum-likelihood inverse reinforcement learning (ML-IRL). With Gumbel-distributed choice shocks the two coincide: the agent behaves like the optimal policy of an entropy-regularized MDP, and the reward parameter is estimated by maximizing the likelihood of the observed trajectories.

The classical estimators are nested: every evaluation of the likelihood solves the inner dynamic program to optimality (Rust's nested fixed-point algorithm), which is expensive when the state space is large. Zeng, Hong and Garcia (arXiv:2210.01282, Operations Research 2025) replace the nested loop by a single loop that alternates one approximate soft policy-iteration step with one stochastic gradient step on the reward parameter, and prove a finite-time guarantee for it. That guarantee, Theorem 1 of the paper, is the subject of this mission.

Setting

Let S\mathcal SS and A\mathcal AA be finite nonempty sets of states and actions, P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) a transition kernel, ρ\rhoρ an initial distribution on S\mathcal SS and γ∈[0,1)\gamma\in[0,1)γ∈[0,1) a discount factor. The reward r(s,a;θ)r(s,a;\theta)r(s,a;θ) depends on a parameter θ∈Rp\theta\in\mathbb R^pθ∈Rp. A policy π(a∣s)\pi(a\mid s)π(a∣s) is a distribution over actions at each state, with entropy H(π(⋅∣s))=−∑aπ(a∣s)log⁡π(a∣s)\mathcal H(\pi(\cdot\mid s))=-\sum_a\pi(a\mid s)\log\pi(a\mid s)H(π(⋅∣s))=−∑a​π(a∣s)logπ(a∣s).

The soft Q-function of a pair (θ,π)(\theta,\pi)(θ,π) is Q(s,a)=r(s,a;θ)+γ Es′∼P(⋅∣s,a)[V(s′)]Q(s,a)=r(s,a;\theta)+\gamma\,\mathbb E_{s'\sim P(\cdot\mid s,a)}[V(s')]Q(s,a)=r(s,a;θ)+γEs′∼P(⋅∣s,a)​[V(s′)], where V(s)V(s)V(s) is the expected discounted sum of r(st,at;θ)+H(π(⋅∣st))r(s_t,a_t;\theta)+\mathcal H(\pi(\cdot\mid s_t))r(st​,at​;θ)+H(π(⋅∣st​)) along the trajectory of π\piπ from sss. The soft-optimal Q-function QθQ_\thetaQθ​ is the fixed point of the soft-Bellman operator ΛθQ(s,a)=r(s,a;θ)+γ∑s′P(s′∣s,a)log⁡∑beQ(s′,b)\Lambda_\theta Q(s,a)=r(s,a;\theta)+\gamma\sum_{s'}P(s'\mid s,a)\log\sum_b e^{Q(s',b)}Λθ​Q(s,a)=r(s,a;θ)+γ∑s′​P(s′∣s,a)log∑b​eQ(s′,b); the soft-optimal policy is πθ(a∣s)∝eQθ(s,a)\pi_\theta(a\mid s)\propto e^{Q_\theta(s,a)}πθ​(a∣s)∝eQθ​(s,a) and Vθ(s)=log⁡∑aeQθ(s,a)V_\theta(s)=\log\sum_a e^{Q_\theta(s,a)}Vθ​(s)=log∑a​eQθ​(s,a).

Given a finite dataset D\mathcal DD of expert trajectories, the surrogate likelihood is

L^(θ;D)=Eτ∼D[∑t≥0γtr(st,at;θ)]−Es0∼ρ[Vθ(s0)].\widehat L(\theta;\mathcal D)=\mathbb E_{\tau\sim\mathcal D}\Big[\sum_{t\ge0}\gamma^tr(s_t,a_t;\theta)\Big]-\mathbb E_{s_0\sim\rho}[V_\theta(s_0)].L(θ;D)=Eτ∼D​[t≥0∑​γtr(st​,at​;θ)]−Es0​∼ρ​[Vθ​(s0​)].

Algorithm 1 (ML-IRL). Starting from (θ0,π0)(\theta_0,\pi_0)(θ0​,π0​) and for k=0,…,K−1k=0,\dots,K-1k=0,…,K−1: estimate the soft Q-function QkQ_kQk​ of (θk,πk)(\theta_k,\pi_k)(θk​,πk​) by Q^k\widehat Q_kQ​k​ with ∥Q^k−Qk∥∞≤ε\|\widehat Q_k-Q_k\|_\infty\le\varepsilon∥Q​k​−Qk​∥∞​≤ε; set πk+1(a∣s)∝eQ^k(s,a)\pi_{k+1}(a\mid s)\propto e^{\widehat Q_k(s,a)}πk+1​(a∣s)∝eQ​k​(s,a); sample an expert trajectory τkE\tau^E_kτkE​ from D\mathcal DD and an agent trajectory τkA\tau^A_kτkA​ from πk+1\pi_{k+1}πk+1​; set θk+1=θk+α(h(θk;τkE)−h(θk;τkA))\theta_{k+1}=\theta_k+\alpha\big(h(\theta_k;\tau^E_k)-h(\theta_k;\tau^A_k)\big)θk+1​=θk​+α(h(θk​;τkE​)−h(θk​;τkA​)) with h(θ;τ)=∑tγt∇θr(st,at;θ)h(\theta;\tau)=\sum_t\gamma^t\nabla_\theta r(s_t,a_t;\theta)h(θ;τ)=∑t​γt∇θ​r(st​,at​;θ).

The assumptions are: (1) 0≤r≤Cr0\le r\le C_r0≤r≤Cr​; (2) under every policy the state chain mixes geometrically in total variation; (3) ∥∇θr∥≤Lr\|\nabla_\theta r\|\le L_r∥∇θ​r∥≤Lr​ and ∇θr\nabla_\theta r∇θ​r is LgL_gLg​-Lipschitz in θ\thetaθ.

Formalization targets

Goal: Theorem 1, explicit form

Write Lq=Lr/(1−γ)L_q=L_r/(1-\gamma)Lq​=Lr​/(1−γ), Lc=2LqLrCd∣S∣∣A∣/(1−γ)+2Lg/(1−γ)L_c=2L_qL_rC_d\sqrt{|\mathcal S||\mathcal A|}/(1-\gamma)+2L_g/(1-\gamma)Lc​=2Lq​Lr​Cd​∣S∣∣A∣​/(1−γ)+2Lg​/(1−γ), C1=4CdLq2∣S∣∣A∣C_1=4C_dL_q^2\sqrt{|\mathcal S||\mathcal A|}C1​=4Cd​Lq2​∣S∣∣A∣​, C0=∥Q0−Qθ0∥∞C_0=\|Q_0-Q_{\theta_0}\|_\inftyC0​=∥Q0​−Qθ0​​∥∞​ and

B=C0K(1−γ)+2γε(1−γ)2+4Lq21−γα.B=\frac{C_0}{K(1-\gamma)}+\frac{2\gamma\varepsilon}{(1-\gamma)^2}+\frac{4L_q^2}{1-\gamma}\alpha .B=K(1−γ)C0​​+(1−γ)22γε​+1−γ4Lq2​​α.

There is Cd>0C_d>0Cd​>0 depending only on (P,ρ,γ)(P,\rho,\gamma)(P,ρ,γ) such that every run with K≥1K\ge1K≥1 and α=α0/Kσ\alpha=\alpha_0/K^\sigmaα=α0​/Kσ, α0>0\alpha_0>0α0​>0, σ∈(0,1)\sigma\in(0,1)σ∈(0,1), satisfies, for every realization,

1K∑k=0K−1∥log⁡πk+1−log⁡πθk∥∞≤2ε+2B,\frac1K\sum_{k=0}^{K-1}\|\log\pi_{k+1}-\log\pi_{\theta_k}\|_\infty\le2\varepsilon+2B,K1​k=0∑K−1​∥logπk+1​−logπθk​​∥∞​≤2ε+2B,

and in expectation

1K∑k=0K−1E∥∇θL^(θk;D)∥2≤2LcLq2α+C1(B+ε)+E[L^(θK;D)−L^(θ0;D)]Kα.\frac1K\sum_{k=0}^{K-1}\mathbb E\|\nabla_\theta\widehat L(\theta_k;\mathcal D)\|^2\le2L_cL_q^2\alpha+C_1(B+\varepsilon)+\frac{\mathbb E[\widehat L(\theta_K;\mathcal D)-\widehat L(\theta_0;\mathcal D)]}{K\alpha}.K1​k=0∑K−1​E∥∇θ​L(θk​;D)∥2≤2Lc​Lq2​α+C1​(B+ε)+KαE[L(θK​;D)−L(θ0​;D)]​.

The printed Theorem 1 states only the rates O(K−1)+O(K−σ)+O(ε)O(K^{-1})+O(K^{-\sigma})+O(\varepsilon)O(K−1)+O(K−σ)+O(ε) and O(K−σ)+O(K−1+σ)+O(K−1)+O(ε)O(K^{-\sigma})+O(K^{-1+\sigma})+O(K^{-1})+O(\varepsilon)O(K−σ)+O(K−1+σ)+O(K−1)+O(ε); the goal is the explicit pair of inequalities its proof derives, from which those rates follow because L^\widehat LL is bounded.

Milestones

Lemma 2 (the gradient of L^\widehat LL), Lemma 5 (Lipschitz visitation measures), Lemma 3 (Lipschitz QθQ_\thetaQθ​ and smooth L^\widehat LL), Lemma 6 and Lemma 7 (approximate soft policy iteration), and the proof's displays (35), (40), (41), the averaged tracking bound after (44) and the averaged gradient bound on p. 24. The bias bound (48) is a further item of the mission without being a milestone.

Significance

The result. Theorem 1 is a finite-time guarantee for a single-loop structural estimator: with σ=1/2\sigma=1/2σ=1/2 both the policy-tracking error and the squared gradient of the surrogate likelihood decay as O(K−1/2)+O(ε)O(K^{-1/2})+O(\varepsilon)O(K−1/2)+O(ε). It shows that the inner dynamic program need not be solved to optimality at each likelihood evaluation, and it quantifies the price of approximate policy evaluation through ε\varepsilonε. The paper reports it as the first finite-time result for an algorithm for either the dynamic discrete choice problem or ML-IRL.

Formalizing it. The result is proved on paper; no part of it is machine-checked. A complete development would put on the platform an entropy-regularized MDP layer (soft values, the soft-Bellman fixed point, the soft-optimal policy), its Lipschitz dependence on a reward parameter, the gradient of a soft-optimal value through its fixed point, and a two-timescale analysis with a biased stochastic gradient. Each of these is reusable by later soft-RL, IRL and structural-estimation formalizations.

Difficulty

Neither iterate converges on its own. The policy πk+1\pi_{k+1}πk+1​ chases a target πθk\pi_{\theta_k}πθk​​ that moves whenever θ\thetaθ moves, so the standard linear convergence of soft policy iteration for a fixed reward does not apply directly. The stochastic gradient gkg_kgk​ samples from πk+1\pi_{k+1}πk+1​ rather than from πθk\pi_{\theta_k}πθk​​, so it is biased, and the standard analysis of unbiased stochastic gradient ascent does not apply either. The analysis must show that the tracking error contracts faster than the reward drifts, and bound the bias by the tracking error through the dependence of the state-action visitation measure on the policy. The gradient formula itself requires differentiating a soft-optimal value through a fixed point.

Formalization scope

The Lean development works with finite S\mathcal SS and A\mathcal AA (both nonempty), policies as functions S→A→R\mathcal S\to\mathcal A\to\mathbb RS→A→R, θ∈\theta\inθ∈ EuclideanSpace ℝ (Fin p), and discounted expectations as tsums over the occupation distribution of the published FoundationsML.ReinforcementLearning layer. ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ is the maximum over (s,a)(s,a)(s,a); Lemma 5's ∥w−w′∥\|w-w'\|∥w−w′∥ is the Frobenius norm; total variation is half the ℓ1\ell_1ℓ1​ distance. QθQ_\thetaQθ​ is chosen by Classical.epsilon among fixed points of Λθ\Lambda_\thetaΛθ​, which exist and are unique because Λθ\Lambda_\thetaΛθ​ is a γ\gammaγ-contraction.

Disclosed deviations from the page: Assumption 3 is a hypothesis of the goal (Theorem 1 prints "Assumptions 1 - 2" but its proof uses Assumption 3); S\mathcal SS is finite, as the proof's ∣S∣∣A∣\sqrt{|\mathcal S||\mathcal A|}∣S∣∣A∣​ requires, although the title speaks of high-dimensional state spaces; Assumption 3 includes differentiability of rrr, which the page uses implicitly; ε≥0\varepsilon\ge0ε≥0 (the page writes ϵapp>0\epsilon_{\rm app}>0ϵapp​>0); Assumption 2 is stated as the mixing bound the paper derives from irreducibility and aperiodicity; and Algorithm 1's sampling is represented by the conditional means of the sampled gradients given the past, measurable with respect to a filtration, which is the only way the proof uses it.

The statement admits no trivializing reading: the run structure is inhabited (a sorry-free check exhibits a run), CdC_dCd​ is fixed before the reward, the data and the run, every expectation is of a bounded measurable function, the gradient is that of a differentiable function (Lemma 2), and the Frobenius norm is used where the page uses it rather than Lean's sup norm on function types.

Welcome contributions: the existence and uniqueness of the soft-Bellman fixed point, the performance-difference and Gibbs-variational facts behind Lemma 7, the visitation-measure Lipschitz bound of Lemma 5, and the fixed-point differentiation behind Lemma 2.

Selected references

  • S. Zeng, M. Hong, A. Garcia, Structural Estimation of Markov Decision Processes in High-Dimensional State Space with Finite-Time Guarantees, Operations Research, 2025; arXiv:2210.01282v3, 2024. https://arxiv.org/abs/2210.01282
  • J. Rust, Optimal Replacement of GMC Bus Engines: An Empirical Model of Harold Zurcher, Econometrica 55(5), 1987. https://doi.org/10.2307/1911259
  • B. D. Ziebart, A. Maas, J. A. Bagnell, A. K. Dey, Maximum Entropy Inverse Reinforcement Learning, AAAI 2008. https://cdn.aaai.org/AAAI/2008/AAAI08-227.pdf
  • T. Haarnoja, H. Tang, P. Abbeel, S. Levine, Reinforcement Learning with Deep Energy-Based Policies, ICML 2017. https://arxiv.org/abs/1702.08165
18 thms1 active userReviewed
Dynamic ProgrammingMachine LearningOperations Research·Captain: mikedeng1

The Role of Lookahead and Approximate Policy Evaluation in Reinforcement Learning with Linear Value Function Approximation: Error Bound for Least-Squares Policy Iteration with LookaheadResearch Paper

Motivation

Approximate policy iteration is the template behind most practical reinforcement-learning systems for large state spaces: alternate between choosing a policy that looks good under the current value estimate and estimating the value of that policy, with errors in both steps. Game-playing systems such as AlphaZero add two ingredients to this template: a multi-step lookahead (tree search) when choosing the policy, and a linear or neural value-function approximation fitted from a few evaluated states. Classical error bounds for approximate policy iteration (Bertsekas and Tsitsiklis, 1996) assume that each evaluation error is bounded by a fixed δ\deltaδ; Efroni, Dalal, Scherrer and Mannor (2019) extended them to HHH-step lookahead policies. Neither analysis asks whether a fitted value function actually meets such a bound.

Winnicki, Lubars, Livesay and Srikant (arXiv:2109.13419, Operations Research, 2025) show that it need not: with least-squares fitting on a subset of states, the iterates of approximate policy iteration can diverge (their Section 3.2). They then prove that sufficient lookahead HHH and rollout length mmm restore convergence, with an explicit finite-time error bound. This mission formalizes that bound.

Setting

A Markov decision process (S,A,P,r,α)(\mathcal S,\mathcal A,P,r,\alpha)(S,A,P,r,α) has a finite set of states S\mathcal SS, a finite set of actions A\mathcal AA, transition probabilities Pij(a)P_{ij}(a)Pij​(a) of moving from state iii to state jjj under action aaa, mean rewards r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1], and a discount factor α∈(0,1)\alpha\in(0,1)α∈(0,1). A deterministic policy is a map μ:S→A\mu:\mathcal S\to\mathcal Aμ:S→A. Its value is the expected discounted reward

Jμ(s)=E[∑k≥0αkr(sk,μ(sk)) ∣ s0=s],J^\mu(s)=E\Big[\sum_{k\ge0}\alpha^k r(s_k,\mu(s_k))\,\Big|\,s_0=s\Big],Jμ(s)=E[k≥0∑​αkr(sk​,μ(sk​))​s0​=s],

and the optimal reward-to-go is J∗(s)=max⁡μJμ(s)J^*(s)=\max_\mu J^\mu(s)J∗(s)=maxμ​Jμ(s). Vectors J∈R∣S∣J\in\mathbb R^{|\mathcal S|}J∈R∣S∣ are compared in the sup norm ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​. The policy operator and the Bellman operator are

(TμJ)(s)=r(s,μ(s))+α∑jPsj(μ(s))J(j),(TJ)(s)=max⁡a{r(s,a)+α∑jPsj(a)J(j)}.(T_\mu J)(s)=r(s,\mu(s))+\alpha\sum_jP_{sj}(\mu(s))J(j),\qquad (TJ)(s)=\max_{a}\Big\{r(s,a)+\alpha\sum_jP_{sj}(a)J(j)\Big\}.(Tμ​J)(s)=r(s,μ(s))+αj∑​Psj​(μ(s))J(j),(TJ)(s)=amax​{r(s,a)+αj∑​Psj​(a)J(j)}.

Each state iii has a feature vector ϕ(i)∈Rd\phi(i)\in\mathbb R^dϕ(i)∈Rd; Φ\PhiΦ is the matrix with rows ϕ(i)\phi(i)ϕ(i). For a set of states D\mathcal DD, ΦD\Phi_{\mathcal D}ΦD​ keeps the rows indexed by D\mathcal DD and PD\mathcal P_{\mathcal D}PD​ selects the entries of a vector indexed by D\mathcal DD.

Algorithm 2 starts from an arbitrary J0J_0J0​ and, at iteration kkk, (i) picks a policy μk+1\mu_{k+1}μk+1​ with ∥THJk−Tμk+1TH−1Jk∥∞≤εLA\|T^HJ_k-T_{\mu_{k+1}}T^{H-1}J_k\|_\infty\le\varepsilon_{LA}∥THJk​−Tμk+1​​TH−1Jk​∥∞​≤εLA​ (an inexact HHH-step lookahead); (ii) forms the noisy return J^μk+1(i)=Tμk+1mTH−1Jk(i)+wk+1(i)\hat J^{\mu_{k+1}}(i)=T^m_{\mu_{k+1}}T^{H-1}J_k(i)+w_{k+1}(i)J^μk+1​(i)=Tμk+1​m​TH−1Jk​(i)+wk+1​(i) on an evaluation set Dk\mathcal D_kDk​; (iii) fits θk+1\theta_{k+1}θk+1​ by least squares on Dk\mathcal D_kDk​ and sets Jk+1=Φθk+1J_{k+1}=\Phi\theta_{k+1}Jk+1​=Φθk+1​. Assumption 1 asks that the features of Dk\mathcal D_kDk​ have rank ddd for every kkk and that ∥wk∥∞≤εPE\|w_k\|_\infty\le\varepsilon_{PE}∥wk​∥∞​≤εPE​. Under it the fit is linear, Jk+1=Mk+1J^μk+1J_{k+1}=\mathcal M_{k+1}\hat J^{\mu_{k+1}}Jk+1​=Mk+1​J^μk+1​ with M=Φ(ΦD⊤ΦD)−1ΦD⊤PD\mathcal M=\Phi(\Phi_{\mathcal D}^\top\Phi_{\mathcal D})^{-1}\Phi_{\mathcal D}^\top\mathcal P_{\mathcal D}M=Φ(ΦD⊤​ΦD​)−1ΦD⊤​PD​, and the paper defines

δFV=sup⁡k∥Mk∥∞,δapp=sup⁡k,μ∥MkJμ−Jμ∥∞,β=αm+H−1δFV,τ=αm+αm+H−11−αδFV+δapp+δFVεPE.\delta_{FV}=\sup_k\|\mathcal M_k\|_\infty,\qquad \delta_{app}=\sup_{k,\mu}\|\mathcal M_kJ^\mu-J^\mu\|_\infty,\qquad \beta=\alpha^{m+H-1}\delta_{FV},\qquad \tau=\frac{\alpha^m+\alpha^{m+H-1}}{1-\alpha}\delta_{FV}+\delta_{app}+\delta_{FV}\varepsilon_{PE}.δFV​=ksup​∥Mk​∥∞​,δapp​=k,μsup​∥Mk​Jμ−Jμ∥∞​,β=αm+H−1δFV​,τ=1−ααm+αm+H−1​δFV​+δapp​+δFV​εPE​.

Formalization targets

Goal: Theorem 1 (p. 14, eq. (10))

If m+H−1>log⁡(δFV)/log⁡(1/α)m+H-1>\log(\delta_{FV})/\log(1/\alpha)m+H−1>log(δFV​)/log(1/α), then under Assumption 1 every run of Algorithm 2 satisfies, for every k≥0k\ge0k≥0,

∥Jμk−J∗∥∞≤αkH1−α+2αH∥Jμ0−J0∥∞1−α kmax⁡(αH,β)k−1+2αHτ1−β+εLA(1−αH)(1−α).\|J^{\mu_k}-J^*\|_\infty\le\frac{\alpha^{kH}}{1-\alpha}+\frac{2\alpha^H\|J^{\mu_0}-J_0\|_\infty}{1-\alpha}\,k\max(\alpha^H,\beta)^{k-1}+\frac{2\alpha^H\frac{\tau}{1-\beta}+\varepsilon_{LA}}{(1-\alpha^H)(1-\alpha)}.∥Jμk​−J∗∥∞​≤1−ααkH​+1−α2αH∥Jμ0​−J0​∥∞​​kmax(αH,β)k−1+(1−αH)(1−α)2αH1−βτ​+εLA​​.

Milestones

In the order the proof uses them:

  1. Section 2: the Bellman equations Jμ=TμJμJ^\mu=T_\mu J^\muJμ=Tμ​Jμ (unique solution) and J∗=TJ∗J^*=TJ^*J∗=TJ∗ (eq. (2)); the contraction ∥TJ−J∗∥∞≤α∥J−J∗∥∞\|TJ-J^*\|_\infty\le\alpha\|J-J^*\|_\infty∥TJ−J∗∥∞​≤α∥J−J∗∥∞​; shift and monotonicity of TTT, TμT_\muTμ​ (eqs. (3)–(4)).
  2. Section 3.1, eq. (6): the closed form Jk+1=Mk+1J^μk+1J_{k+1}=\mathcal M_{k+1}\hat J^{\mu_{k+1}}Jk+1​=Mk+1​J^μk+1​ of the least-squares step.
  3. Appendix A, eq. (15): one lookahead step with evaluation error δk\delta_kδk​,
∥Jμk+1−J∗∥∞≤αH∥Jμk−J∗∥∞+2αHδk+εLA1−α.\|J^{\mu_{k+1}}-J^*\|_\infty\le\alpha^H\|J^{\mu_k}-J^*\|_\infty+\frac{2\alpha^H\delta_k+\varepsilon_{LA}}{1-\alpha}.∥Jμk+1​−J∗∥∞​≤αH∥Jμk​−J∗∥∞​+1−α2αHδk​+εLA​​.
  1. Proposition 1 (p. 13): the bound for Algorithm 3, an abstract scheme whose evaluation error at step kkk is at most δk\delta_kδk​, in three displays: the general bound, the bound under δk≤βkδ0+μ\delta_k\le\beta^k\delta_0+\muδk​≤βkδ0​+μ, and its limsup.
  2. Appendix B, eq. (19): for Algorithm 2, δk=∥Jk−Jμk∥∞\delta_k=\|J_k-J^{\mu_k}\|_\inftyδk​=∥Jk​−Jμk​∥∞​ satisfies δk≤βδk−1+τ\delta_k\le\beta\delta_{k-1}+\tauδk​≤βδk−1​+τ and, if β<1\beta<1β<1, δk≤βkδ0+τ/(1−β)\delta_k\le\beta^k\delta_0+\tau/(1-\beta)δk​≤βkδ0​+τ/(1−β).

Significance

Theorem 1 states a sufficient condition for convergence that does not depend on the size of the state space: lookahead plus rollout depth must exceed log⁡δFV/log⁡(1/α)\log\delta_{FV}/\log(1/\alpha)logδFV​/log(1/α), where δFV\delta_{FV}δFV​ depends only on the features and the evaluation sets. Paired with the divergence example of Section 3.2, it shows that lookahead is not merely a heuristic improvement but can be what makes approximate policy iteration with linear function approximation stable. Proposition 1 is a reusable interface: any policy-evaluation scheme whose errors satisfy a geometric-plus-floor bound inherits the same convergence guarantee; the paper's gradient-descent variant is obtained this way.

The result is proved on paper; it has not been machine-checked. The Prove2Me platform has the finite-MDP layer used here (transition kernels, policy values as discounted series, the Bellman optimality operator), exact modified policy iteration, and a one-step bound for greedy approximate policy iteration with QQQ-functions (H=1H=1H=1, no lookahead error). It has no lookahead bound, no least-squares value-function fit, and no finite-time bound for approximate policy iteration with function approximation. A complete development would add the Bellman equations for deterministic policies, the lookahead step (15), the least-squares projection identity, and the error recursion, all of which are reusable for other analyses of approximate dynamic programming.

Difficulty

The obvious argument fails at the evaluation step. Classical analyses treat ∥Jk−Jμk∥∞≤δ\|J_k-J^{\mu_k}\|_\infty\le\delta∥Jk​−Jμk​∥∞​≤δ as given; here the error is produced by the algorithm and fed back: the fitted JkJ_kJk​ is the input of the next lookahead, and the least-squares operator can amplify sup-norm errors by a factor δFV\delta_{FV}δFV​, which is at least 111 whenever d≥1d\ge1d≥1. The error recursion therefore contracts only when αm+H−1δFV<1\alpha^{m+H-1}\delta_{FV}<1αm+H−1δFV​<1. A second point is the lookahead step (15), which must hold for an arbitrary previous policy and an inexact lookahead, and rests on the increase of TnJμT^nJ^\muTnJμ in nnn rather than on contraction alone. Finally, combining the geometric decay of the evaluation errors with the αH\alpha^HαH-contraction of (15) requires a convolution estimate that yields the factor kmax⁡(αH,β)k−1k\max(\alpha^H,\beta)^{k-1}kmax(αH,β)k−1.

Formalization scope

States and actions are finite nonempty types; the transition kernel is the published IsTransitionKernel, JμJ^\muJμ is the published PolicyValue (a discounted series of expected rewards, not a fixed point of TμT_\muTμ​) of the point-mass policy at μ\muμ, TTT is the published BellmanOperator, and J∗J^*J∗ is the maximum of JμJ^\muJμ over the finitely many deterministic policies. Rewards enter only through their means r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1]. Vectors are functions S→R\mathcal S\to\mathbb RS→R with the sup norm; matrix norms are Mathlib's ℓ∞\ell^\inftyℓ∞ operator norm (maximum absolute row sum). The rank condition of Assumption 1 is det⁡(ΦDk⊤ΦDk)≠0\det(\Phi_{\mathcal D_k}^\top\Phi_{\mathcal D_k})\ne0det(ΦDk​⊤​ΦDk​​)=0 for every kkk; Lean's matrix inverse is zero on singular matrices, so no statement relies on it without this hypothesis.

Conventions fixed where the page is loose: Algorithms 2 and 3 are predicates on whole runs, quantified over every admissible lookahead policy, noise and minimiser. μ0\mu_0μ0​, which Algorithm 2 never produces, is free, so every bound holds for every deterministic μ0\mu_0μ0​. Mk\mathcal M_kMk​ is the operator of Dk\mathcal D_kDk​ (eq. (6) calls it Mk+1\mathcal M_{k+1}Mk+1​; the suprema agree). δapp\delta_{app}δapp​ is the supremum over all kkk and all deterministic policies. Algorithm 3 is stated with ∥Jk−Jμk∥∞≤δk\|J_k-J^{\mu_k}\|_\infty\le\delta_k∥Jk​−Jμk​∥∞​≤δk​, the index of (15) and Appendix B, and without the representation Jk=ΦθkJ_k=\Phi\theta_kJk​=Φθk​, which Proposition 1 does not use. Proposition 1's first display divides by 1−αH−11-\alpha^{H-1}1−αH−1 and is stated for H≥2H\ge2H≥2; the other results take H≥1H\ge1H≥1. The noise bound ∥wk∥∞≤εPE\|w_k\|_\infty\le\varepsilon_{PE}∥wk​∥∞​≤εPE​ is imposed on the whole vector instead of setting wk(i)=0w_k(i)=0wk​(i)=0 off Dk\mathcal D_kDk​; off Dk\mathcal D_kDk​ it constrains only entries the run never reads. The limsup is stated as "for every ε>0\varepsilon>0ε>0, eventually ≤\le≤ bound +ε+\varepsilon+ε". The hypothesis of Theorem 1 is kept with the real logarithm as printed; for δFV>0\delta_{FV}>0δFV​>0 it is equivalent to β<1\beta<1β<1, and when δFV=0\delta_{FV}=0δFV​=0 (possible only if d=0d=0d=0) it reads m+H−1>0m+H-1>0m+H−1>0.

A formalization that fixes the lookahead policy to an exact argmax, the noise to zero, or μ0\mu_0μ0​ to a convenient policy proves a special case and is ruled out; so is defining JμJ^\muJμ or J∗J^*J∗ as a fixed point, which would make eq. (2) definitional.

Contributions welcome: proofs of the Section 2 milestones from the series definition of JμJ^\muJμ, the least-squares identity (6), the lookahead step (15), and the recursions of Proposition 1 and Appendix B. Theorem 2 of the paper (gradient-descent fitting) is not part of this mission: its Assumption 2 places no lower bound on the step size, and the statement fails for negative step sizes.

Selected references

  • A. Winnicki, J. Lubars, M. Livesay, R. Srikant, The Role of Lookahead and Approximate Policy Evaluation in Reinforcement Learning with Linear Value Function Approximation, Operations Research, 2025; arXiv:2109.13419v7. https://arxiv.org/abs/2109.13419
  • Y. Efroni, G. Dalal, B. Scherrer, S. Mannor, How to Combine Tree-Search Methods in Reinforcement Learning, AAAI, 2019. https://arxiv.org/abs/1809.01843
  • D. P. Bertsekas, J. N. Tsitsiklis, Neuro-Dynamic Programming, Athena Scientific, 1996.
  • D. P. Bertsekas, Reinforcement Learning and Optimal Control, Athena Scientific, 2019.
  • M. G. Lagoudakis, R. Parr, Least-Squares Policy Iteration, Journal of Machine Learning Research 4, 2003. https://www.jmlr.org/papers/v4/lagoudakis03a.html
16 thms1 active userReviewed
PreviousPage 1 of 3Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me