Motivation
Model-based reinforcement learning agents learn a model of their environment, a reward function r~ and a transition kernel p~, and plan with it. The usual practice fits the model to observed transitions, for example by maximum likelihood, without regard to how the model will be used. Grimm, Barreto, Singh and Silver (2020) propose instead to judge a model only by its effect on the computations a planner performs. Two models are value equivalent with respect to a set of policies Π and a set of functions V if their Bellman operators agree on every π∈Π and v∈V.
The paper studies how the set M(Π,V) of models value equivalent to the true model depends on Π and V. It shrinks as Π and V grow, it depends only on their (pointwise) linear spans, and its dimension drops multiplicatively in the number of policies and functions. This mission formalizes those results for finite Markov decision processes, together with the paper's statements comparing value equivalence with maximum likelihood and with value iteration.
Setting
The state space S and action space A are finite and 0≤γ<1 is a discount factor. A model m=(r,p) is an expected reward r(s,a) and a transition kernel p(s′∣s,a). For a policy π and a function v:S→R, the Bellman operator induced by m is
Tπm[v](s)=a∑π(a∣s)(r(s,a)+γs′∑p(s′∣s,a)v(s′)).
Models m,m~ are value equivalent with respect to Π and V if Tπmv=Tπm~v for all π∈Π, v∈V (Definition 1). For a set M of models and the true model m∗, M(Π,V) is the set of models in M value equivalent to m∗ (Definition 2). The pointwise span of a set of policies collects all π with π(⋅∣s)∈span{πi(⋅∣s)} at every state s.
When the reward is known, P(Π,V) is the set of transition kernels p~ for which (r∗,p~) is value equivalent to m∗. Its size is measured by dim[X], the least dimension of a linear subspace that contains a translate of X.
Formalization targets
Goal: the dimension of the value-equivalent models (Proposition 2)
Let π1,…,πm be policies that are linearly independent at every state, and v1,…,vk linearly independent functions. Then, for γ>0,
dim[P({πi},{vj})]≤∣S∣(∣S∣∣A∣−mk).
The statement is the one the paper's proof establishes; see Formalization scope.
Milestones
- Property 3: if Π′⊆Π and V′⊆V, then M(Π,V)⊆M(Π′,V′).
- Property 2: M(Π,V), for all policies and all functions, either contains m∗ or is empty (for γ>0).
- Proposition 1: for finite Π and V, M(Π,V)=M(p-span(Π)∩Π,span(V)), for models sharing the true reward.
- Remark 1: if Π⊆p-span(Π) and span(V)=V, then M(Π,V) is {m∗} or empty (for γ>0 and models sharing the true reward).
- Lemma 1: for matrices A∈Rk×n, C∈Rm×ℓ, the space {B:ABC=0} has dimension nm−rank(A)rank(C).
- Proposition 3: the maximum-likelihood estimate of p∗ in a model class may lie outside a nonempty set of value-equivalent kernels in that class.
- Proposition 4: if V′=span(V) is closed under all true Bellman operators and p-span(Π)⊇Π, then every model in M(Π,V) that shares the true reward produces the same value-iteration iterates from any v′∈V′, and the same optimal value function, as m∗.
Significance
Value equivalence gives a theoretical account of models trained only to predict values or Bellman updates, as in Value Iteration Networks, the Predictron, Value Prediction Networks, TreeQN and MuZero. Proposition 1 says that a value-equivalent model only needs to be checked on a basis of the functions the agent can represent, for example the features of a linear value-function approximator (Remark 2). Proposition 2 quantifies how much each added policy or function constrains the model.
Formalizing the results exposed missing hypotheses in the printed statements. The Bellman operator is affine in v, not linear, so Propositions 1 and 4 and Remark 1 fail, for every γ∈[0,1), for models whose reward differs from the true reward; the true-reward hypothesis added to these three results is a repair, not an assumption the paper makes for them. Proposition 2 fails for policies that are only pointwise linearly independent. Property 2, Remark 1 and Proposition 2 fail for γ=0. The statements here carry the hypotheses under which the paper's proofs go through.
Difficulty
- Lemma 1: the dimension of the kernel of B↦ABC, which is the rank of a Kronecker product. Mathlib has Kronecker products and ranks of matrices but not this identity in this form.
- Proposition 2: combines Lemma 1 with the translation invariance and monotonicity of dim[⋅] (the paper's Lemmas 2–4) and a rank computation for the stacked policy matrix.
- Proposition 4: an induction on value-iteration steps plus uniqueness of fixed points of a γ-contraction in the sup norm.
- Proposition 3: an explicit example; the work is computing a maximum-likelihood minimiser in the extended reals.
- Properties 2, 3, Proposition 1, Remark 1: short linear-algebra arguments from the definitions.
Formalization scope
- Finite MDPs: states and actions are finite types; functions are S→R, policies S→A→R with values in the probability simplex, kernels S→A→S→R. The paper's general-space statements are formalized in this finite setting, the setting of its Section 3.2.
- Models: a model is a reward and a transition kernel. Statements where the paper's proof needs the reward to be the true one carry the hypothesis that every model in M has the true reward, and are titled "(as proved)".
- Discount: 0≤γ<1 everywhere; γ>0 in Property 2, Remark 1 and Proposition 2.
- Pointwise span: defined by the paper's equivalent pointwise characterisation; "discrete" sets in Proposition 1 are finite sets.
- Dimension: dim[⋅] is the paper's definition with subspaces of the finite-dimensional ambient space. Integer arithmetic is used for the bounds.
- Proposition 3: stated as the existence of an instance in which every maximum-likelihood minimiser lies outside a nonempty value-equivalent set.
Not included:
- Properties 1 and 4: immediate from Definitions 1 and 2.
- Lemmas 2, 3 and 4 (translation invariance, agreement with Hamel dimension on subspaces, monotonicity of dim[⋅]): routine steps used only inside the proof of Proposition 2.
- Remark 2: a direct consequence of Proposition 1 and Property 3 with V the features of a linear approximator.
- The worked examples of Appendix A.1.2 and the experiments of Sections 5–6: illustrations, not stated results.
- The empirical loss (7) and the claim around it: an estimator, with no stated property.
Selected references
- C. Grimm, A. Barreto, S. Singh and D. Silver, The Value Equivalence Principle for Model-Based Reinforcement Learning, NeurIPS 2020, arXiv:2011.03506. https://arxiv.org/abs/2011.03506
- M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
- A. M. Farahmand, A. Barreto and D. Nikovski, Value-Aware Loss Function for Model-based Reinforcement Learning, AISTATS 2017. https://proceedings.mlr.press/v54/farahmand17a.html
- J. Schrittwieser et al., Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model, Nature 588 (2020). https://arxiv.org/abs/1911.08265