Abstract
Standard value function approximators (VFAs) in reinforcement learning (RL) are typically conditioned only on states (and actions), leading to a "forgetting" problem where value estimates for previous policies are lost when the policy is updated. We introduce the Policy-extended Value Function Approximator (PeVFA), which incorporates an explicit policy representation as input. This allows for value generalization among policies, enabling the model to provide accurate "warm start" value estimates for new policies along the improvement path. Our framework includes novel policy representation learning methods and a modified Generalized Policy Iteration (GPI) loop. Empirically, PeVFA-enhanced PPO achieves a 40% performance improvement over vanilla PPO in continuous control tasks.
Introduction
In the paradigm of Generalized Policy Iteration (GPI), an agent alternates between policy evaluation and policy improvement. A significant bottleneck in this process is that standard VFAs must re-learn the value function from scratch (or a high-error state) every time the policy changes. This sample inefficiency stems from the VFA's inability to generalize across the policy space. We propose PeVFA to address this by making the value function a mapping from both states and policies to values: $V(s, \pi)$.
Policy-extended Value Function Approximator (PeVFA)
The core idea of PeVFA is to define the value function as $V(s, \chi_\pi)$, where $\chi_\pi$ is a compact embedding of the policy $\pi$. By training on a buffer of historical policies, the PeVFA learns the underlying relationship between policy structure/behavior and expected returns. This enables local generalization: when a policy $\pi_t$ is updated to $\pi_{t+1}$, the PeVFA can immediately estimate $V^{\pi_{t+1}}$ with lower initial error than a standard VFA.
Policy Representation Learning
To effectively embed a policy $\pi$, we explore two primary data sources:
- Origin Policy Representation (OPR): Uses the raw parameters of the policy network. To handle permutation invariance, we apply specialized transformations.
- Surface Policy Representation (SPR): Uses the "behavioral" signature of the policy, specifically state-action pairs $(s, a)$ generated by $\pi$.
These representations are trained using three distinct objectives: End-to-End (E2E) for direct value error minimization, Contrastive Learning (CL) to cluster similar policies, and Auxiliary Tasks (AUX) like action reconstruction.
Generalized Policy Iteration with PeVFA
Integrating PeVFA into the RL loop modifies the standard GPI. Instead of discarding old value estimates, the PeVFA maintains a history of policies and their values.
As shown in Figure 1, while standard GPI relies on approximation from the previous value function, PeVFA leverages "Generalization" to provide a better starting point for the next evaluation phase. Theoretical analysis confirms that this generalized estimate is closer to the true value of the successive policy, effectively "shortening the distance" for the optimizer.
Experimental Results
We evaluated PeVFA on OpenAI Gym benchmarks, including MuJoCo and Box2D environments. A re-implementation of Proximal Policy Optimization (PPO) using the PeVFA paradigm (PPO-PeVFA) was compared against vanilla PPO.
Key Findings
- Performance Gain: PPO-PeVFA achieved approximately 40% higher average returns than vanilla PPO across most tasks.
- Sample Efficiency: The "warm start" provided by value generalization allowed agents to reach peak performance significantly faster.
- Lower Approximation Error: As illustrated in Figure 4(b), the PeVFA loss (blue) remains consistently lower than the standard VFA loss (red) during the critical phases of training, directly translating to more stable policy improvements.
- Representation Effectiveness: OPR combined with Contrastive Learning (CL) emerged as the most robust method for policy embedding.
Conclusion
PeVFA addresses a fundamental limitation in RL by enabling value generalization across policies. By treating the policy as an input rather than a static context, we can leverage historical data to accelerate the evaluation of new policies. This approach is not only theoretically grounded but also provides substantial empirical gains in complex continuous control environments.
Summary updated