Abstract
Many reinforcement learning algorithms use value functions to guide the search for better policies. These methods estimate the value of a single policy while generalizing across many states. The core idea of this paper is to flip this convention and estimate the value of many policies, for a single set of states. This approach opens up the possibility of performing direct gradient ascent in policy space without seeing any new data. The main challenge for this approach is finding a way to represent complex policies that facilitates learning and generalization. To address this problem, we introduce a scalable, differentiable fingerprinting mechanism that retains essential policy information in a concise embedding. Our empirical results demonstrate that combining these three elements (learned Policy Evaluation Network, policy fingerprints, gradient ascent) can produce policies that outperform those that generated the training data, in zero-shot manner.
1. Introduction
In standard Reinforcement Learning (RL), value functions ($V$ or $Q$) are typically tied to a specific policy. When the policy changes, the value function must "catch up" through new environment interactions. This creates a "two-timescale" problem that can lead to instability and data inefficiency. Standard value functions generalize across states, but they lack the ability to generalize across policies.
This paper introduces Policy Evaluation Networks (PVNs), which learn to predict the expected return of many different policies from a single starting distribution. By making the value function a differentiable model of the policy itself, we can optimize policies via direct gradient ascent through the PVN, potentially achieving superior performance without additional environment interactions.
2. Methodology
The proposed framework consists of three primary components: the PVN architecture, a novel fingerprinting mechanism, and a gradient-based optimization loop.
2.1 Policy Evaluation Network (PVN)
The PVN is a neural network $\psi$ trained via supervised learning to map a policy description to a distribution of expected returns. Rather than simple regression, the authors treat this as a classification problem—predicting discrete "buckets" of returns—which serves as a helpful regularizer during training.
2.2 Differentiable Policy Fingerprinting
To process a policy (often a deep neural network with thousands of weights) as an input to the PVN, raw weight flattening is insufficient. Instead, the authors utilize Network Fingerprinting. A set of probing states $\phi$ is passed through the policy $\pi_\theta$, and the resulting action distributions are concatenated to form a "fingerprint" or embedding of the policy. This representation is agnostic to the policy's internal architecture and is fully differentiable, allowing probing states to be learned via backpropagation.
2.3 Zero-Shot Gradient Ascent
Because the entire pipeline (Probing States $\to$ Policy $\to$ PVN) is differentiable, the gradient of the predicted return with respect to the policy parameters $\theta$ can be computed directly. This allows for "zero-shot" policy improvement: climbing the value landscape defined by the PVN to find better policies without taking new steps in the actual environment.
3. Empirical Evaluation
The approach was evaluated across three environments: a toy 2-state MDP, CartPole-v0, and the Swimmer-v2 continuous control task.
3.1 Toy MDP and Gradient Alignment
In a simple 2-state MDP, the authors verified that the PVN could accurately reconstruct the value landscape. As shown in Figure 2, the learned gradients (vector fields) align closely with the true gradients of the environment, confirming that the PVN provides a reliable signal for optimization.
3.2 Scaling to Complex Policies
On CartPole-v0, fingerprinting allowed the PVN to successfully guide gradient ascent for Multi-Layer Perceptrons (MLPs), a task where raw weight-based embeddings failed to generalize. In the Swimmer-v2 environment, policies optimized through a PVN achieved returns of approximately 250, significantly outperforming standard model-free baselines like DDPG, SAC, and TD3, which often struggle with the environment's long-term dependencies.
4. Discussion and Future Work
PVNs represent a powerful conceptual pivot in RL, treating policy optimization as a supervised optimization problem. Key advantages include the ability to optimize for true undiscounted objectives and the flexibility to improve policies offline.
However, challenges remain regarding the initial data requirements for training the PVN and potential out-of-distribution (OOD) issues during gradient ascent. Future research into state-dependent extensions ($V(s, \pi)$) could enable zero-shot policy evaluation for actor-critic methods, potentially revolutionizing real-time value function updates.
Summary updated