[Paper Review] Revisit Policy Optimization in Matrix Form
This paper proposes a matrix-formulation of policy optimization that disentangles the policy from environment dynamics, enabling more efficient and interpretable optimization. By reformulating value functions and policy gradients using decoupled transition matrices and policy vectors, the approach provides a unified framework for policy gradient and TRPO, with theoretical guarantees on gradient accuracy and potential extensions to model-based RL.
In tabular case, when the reward and environment dynamics are known, policy evaluation can be written as $\bm{V}_{\bmπ} = (I - γP_{\bmπ})^{-1} \bm{r}_{\bmπ}$, where $P_{\bmπ}$ is the state transition matrix given policy ${\bmπ}$ and $\bm{r}_{\bmπ}$ is the reward signal given ${\bmπ}$. What annoys us is that $P_{\bmπ}$ and $\bm{r}_{\bmπ}$ are both mixed with ${\bmπ}$, which means every time when we update ${\bmπ}$, they will change together. In this paper, we leverage the notation from \cite{wang2007dual} to disentangle ${\bmπ}$ and environment dynamics which makes optimization over policy more straightforward. We show that policy gradient theorem \cite{sutton2018reinforcement} and TRPO \cite{schulman2015trust} can be put into a more general framework and such notation has good potential to be extended to model-based reinforcement learning.
Motivation & Objective
- To address the challenge that policy-dependent transition and reward matrices complicate policy optimization in tabular MDPs.
- To develop a matrix-based notation that separates policy from environment dynamics, allowing explicit dependence of value functions on policy parameters.
- To reformulate policy gradient and TRPO within this framework for clearer optimization and theoretical analysis.
- To enable potential extensions to model-based reinforcement learning by estimating environment dynamics independently of the policy.
Proposed method
- Introduces a matrix formulation where the transition matrix $P$ is decoupled from the policy $\bm{\pi}$, with $P \in \mathbb{R}^{|S||A| \times |S|}$ and $\bm{\pi} \in \mathbb{R}^{|S||A| \times 1}$.
- Represents the state-action value function as $\bm{V}_{\bm{\pi}} = (I - \gamma P\Pi)^{-1}\bm{r}_{\bm{\pi}}$, where $\Pi$ is a diagonal matrix encoding the policy.
- Derives policy gradient via trace-based differentiation of the value function, yielding $\nabla_\theta \eta(\bm{\pi}_\theta) = \text{trace}(\bm{A}_{\bm{\pi}} \bm{\rho}_0^T \frac{\partial \Pi_\theta}{\partial \theta})$.
- Proposes approximation functions $L^2$, $L^3$, and $L^4$ to decompose the true policy gradient, with $L^2 + L^3$ matching the true gradient to first order.
- Uses the identity $\nabla_\theta \eta(\bm{\pi}_\theta) = \nabla_\theta L^2 + \nabla_\theta L^3$ to enable stable policy updates.
- Establishes error bounds between approximations and the true objective, showing $\|\eta(\tilde{\bm{\pi}}) - L^3(\tilde{\bm{\pi}})\| \leq \frac{\gamma \sqrt{2D_{KL}(\bm{\pi}, \tilde{\bm{\pi}})} \|\bm{A}_{\bm{\pi}}\|}{1 - \gamma}$.
Experimental results
Research questions
- RQ1Can policy optimization be reformulated in matrix form to decouple policy from environment dynamics?
- RQ2Does this reformulation enable a more direct and efficient optimization of the policy objective?
- RQ3Can the policy gradient theorem and TRPO be unified under this new matrix framework?
- RQ4How accurate are the gradient approximations derived from this formulation?
- RQ5What are the theoretical error bounds between the approximated and true policy objectives?
Key findings
- The matrix formulation successfully decouples the policy $\bm{\pi}$ from environment dynamics $P$, enabling explicit dependence of $\bm{V}_{\bm{\pi}}$ on $\bm{\pi}$ via $\bm{V}_{\bm{\pi}} = (I - \gamma P\Pi)^{-1}\bm{r}_{\bm{\pi}}$.
- The policy gradient is derived as $\nabla_\theta \eta(\bm{\pi}_\theta) = \text{trace}(\bm{A}_{\bm{\pi}} \bm{\rho}_0^T \frac{\partial \Pi_\theta}{\partial \theta})$, which is exact and computable.
- The gradient decomposition $\nabla_\theta L^2 + \nabla_\theta L^3 = \nabla_\theta \eta(\bm{\pi}_\theta)$ ensures first-order accuracy of the approximation.
- The approximation $L^3$ has a bounded error: $\|\eta(\tilde{\bm{\pi}}) - L^3(\tilde{\bm{\pi}})\| \leq \frac{\gamma \sqrt{2D_{KL}(\bm{\pi}, \tilde{\bm{\pi}})} \|\bm{A}_{\bm{\pi}}\|}{1 - \gamma}$.
- The approximation $L^4$ has a quadratic error bound: $\|\eta(\tilde{\bm{\pi}}) - L^4(\tilde{\bm{\pi}})\| \leq \frac{2\gamma D_{KL}(\bm{\pi}, \tilde{\bm{\pi}}) \|\bm{A}_{\bm{\pi}}\|}{(1 - \gamma)^2}$.
- The framework supports model-based RL by allowing independent estimation of $P$, with value function updates based on estimated dynamics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.