Massively Scaling Explicit Policy-conditioned Value Functions

Nico Bohlinger, Jan PetersarXiv 2025 · DOI

Abstract

Explicit Policy-Conditioned Value Functions (EPVFs) represent a paradigm shift in reinforcement learning, where a value function $V(\theta)$ is learned to map policy parameters $\theta$ directly to expected returns. This formulation enables policy updates via simple gradient ascent on the value function. Despite their theoretical appeal for offline learning and multi-task exploration, EPVFs have historically struggled with high-dimensional control tasks. This paper demonstrates that the "missing ingredient" for EPVFs is massive scaling. By leveraging JAX-based parallelization and essential regularizations like weight clipping and scaled perturbations, we show that EPVFs can solve complex continuous-control tasks like MuJoCo Ant, achieving performance competitive with established baselines like PPO and SAC.

Introduction

In standard Deep Reinforcement Learning (DRL), agents typically optimize policies using action-value functions $Q(s,a)$. EPVFs offer an alternative: learning a function $V(\theta)$ that evaluates the policy's parameters directly. This approach is highly promising because $V(\theta)$ can, in theory, evaluate any policy in the parameter space, facilitating efficient offline optimization.

However, the input dimensionality of $V(\theta)$ is equal to the number of weights in the policy network, leading to a massive search space. Previous attempts to use EPVFs were largely confined to simple environments like Cartpole. This work investigates the algorithmic and computational requirements to scale EPVFs to high-dimensional continuous control.

Methods

The core of the approach is an actor-critic framework where the critic is conditioned on the policy parameters. The algorithm alternates between collecting returns for various perturbed policies and updating the value function and the policy.

Algorithm 1: Actor-Critic with Explicit Policy-conditioned Value Function

Massive Parallelization

To provide the value function with sufficient data to resolve the high-dimensional gradient, the authors utilize MJX (a JAX-based MuJoCo implementation). This allows for running up to 4,096 parallel environments on a single GPU, generating millions of experience steps per second (up to 3 million steps/second).

Regularization and Exploration

Two key modifications were found to be essential for stability:

  1. Weight Clipping: Policy parameters $\theta$ are strictly clipped to a narrow range (e.g., $[-0.1, 0.1]$) to prevent unrestricted growth during gradient ascent. Without this, the value function cannot stabilize.
  2. Scaled Perturbations: Instead of standard Gaussian noise, the algorithm uses uniform noise scaled to the magnitude of each parameter, ensuring effective exploration across the policy parameter space.

Architectures

The study explores several ways to represent the policy $\theta$ as an input to $V$:

  • MLP: Raw concatenation of all policy weights.
  • Probing: Using the policy's actions on a fixed set of "probing" states as a lower-dimensional proxy.
  • Universal Neural Functionals (UNFs): Specialized architectures designed to process neural network weights by exploiting permutation symmetries.

Experimental Results

The proposed method was evaluated on Gymnasium Cartpole and a custom MuJoCo Ant environment. While Cartpole served for initial scaling tests, the Ant environment (34-dimensional state space) provided the primary challenge for massive scaling.

Performance of EPVFs on the Ant environment across scaling, ablations, and architectural choices.

The Impact of Scaling

As shown in the scaling results (top-left), performance on the Ant task is highly dependent on the number of parallel environments. While 16 or 64 environments fail to make progress, scaling to 2,048 and 4,096 environments allows the agent to reach returns of ~900, making them highly competitive with standard PPO and SAC baselines.

Ablation Studies

Ablation experiments (top-right) confirm that weight clipping and scaled noise are non-negotiable. Removing weight clipping or using standard Gaussian noise leads to total failure in the Ant environment, highlighting the fragility of parameter-space exploration without proper regularization.

Architectural Comparisons

Surprisingly, the simplest approach—feeding raw parameters into an MLP—remains the most robust. While UNFs show promise by matching MLP performance and learning slightly faster, they do not yet provide a definitive advantage. Probing-based representations, despite reducing dimensionality, significantly underperformed on the complex Ant task.

Conclusion

This work demonstrates that EPVFs are a viable and competitive class of RL algorithms when provided with sufficient scale and appropriate regularization. The success on MuJoCo Ant marks a significant step forward from previous toy-problem limitations. Future research will focus on refining weight-space architectures like UNFs to better handle even larger policy networks and more diverse task distributions.

Summary updated

BibTeX
@misc{bohlinger2025massively,
  author = {Nico Bohlinger and Jan Peters},
  title = {{Massively Scaling Explicit Policy-conditioned Value Functions}},
  year = {2025},
  eprint = {2502.11949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.11949},
}
Figure