What about Inputting Policy in Value Function: Policy Representation and Policy-Extended Value Function Approximator

Hongyao Tang, Zhaopeng Meng, Jianye Hao, Chen Chen, Daniel Graves, Dong Li, Changmin Yu, Hangyu Mao, Wulong Liu, Yaodong Yang, Wenyuan Tao, Li Wang

Introduction

Reinforcement Learning (RL) typically relies on the Generalized Policy Iteration (GPI) framework, alternating between policy evaluation and policy improvement. A significant bottleneck in this process is the "policy-blind" nature of standard Value Function Approximators (VFAs). Conventional VFAs only take the state as input, meaning they must be retrained from scratch or significantly updated whenever the policy changes. This leads to sample inefficiency and the "overwriting" of previously learned knowledge. This paper, presented at AAAI-22, introduces the Policy-extended Value Function Approximator (PeVFA), a novel architecture that explicitly incorporates a representation of the policy into the value function input.

The PeVFA Framework and Local Generalization

The core innovation is defining the value function as $V(s, \chi_\pi)$, where $s$ represents the state and $\chi_\pi$ is a learned embedding of the current policy $\pi$. By making the value function aware of the policy it is evaluating, the model can exploit the mathematical relationships between successive policies in the optimization path.

Local and Global Generalization in Value Space

As illustrated in the figure above, PeVFA enables "local generalization." Since policies typically change incrementally during training, their corresponding value functions are closely related. PeVFA captures this continuity, allowing the agent to provide a high-quality "warm start" for value estimation of a new policy based on its knowledge of previous ones. This contrasts with standard VFAs that often suffer from catastrophic forgetting when the target distribution shifts.

Policy Representation Learning

A critical challenge in implementing PeVFA is transforming a high-dimensional neural network policy into a compact, meaningful vector $\chi_\pi$. The authors explore two primary data sources for this representation:

  1. Origin Policy Representation (OPR): This approach uses the raw weights and biases of the policy network. To manage the high dimensionality and ensure robustness, permutation-invariant (PI) transformations are employed.
  2. Surface Policy Representation (SPR): This method characterizes the policy by its behavior, using state-action pairs (trajectories) as input to the encoder.
PeVFA Architecture and Training Pipeline

The architecture utilizes a Policy Encoder to generate the embedding $\chi_\pi$. This embedding is then used by the PeVFA alongside the state $s$. To ensure the quality of these embeddings, the authors propose three training strategies: End-to-End (E2E) optimization, an Auxiliary (AUX) policy reconstruction task, and Contrastive Learning (CL) to structure the embedding space such that similar policies are clustered together.

Empirical Results

The proposed method was evaluated on standard continuous control benchmarks, including MuJoCo and Box2D environments. The integration of PeVFA into Proximal Policy Optimization (PPO-PeVFA) yielded substantial improvements:

  • Performance Leap: PPO-PeVFA achieved approximately 40% higher average returns compared to vanilla PPO across most MuJoCo tasks.
  • Lower Error: Empirical analysis confirmed that PeVFA consistently starts each policy evaluation phase with a significantly lower approximation error compared to conventional VFAs.
  • Robustness and Scalability: The framework proved robust even for large policy networks with over 10,000 parameters, demonstrating the effectiveness of the OPR approach in handling high-dimensional blueprints of policy logic.

Conclusion

By shifting the value function from a policy-blind observer to a policy-aware approximator, PeVFA addresses a fundamental inefficiency in Generalized Policy Iteration. The ability to generalize value estimates across policy space not only accelerates learning but also provides a more stable foundation for policy improvement. Future research may further explore the "Manifold Hypothesis" in policy space to find even more efficient low-dimensional representations for complex behaviors.

Summary updated

BibTeX
@inproceedings{tang2022what,
  author = {Hongyao Tang and Zhaopeng Meng and Jianye Hao and Chen Chen and Daniel Graves and Dong Li and Changmin Yu and Hangyu Mao and Wulong Liu and Yaodong Yang and Wenyuan Tao and Li Wang},
  title = {{What about Inputting Policy in Value Function: Policy Representation and Policy-Extended Value Function Approximator}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20820},
}
Figure