Upside Down Reinforcement Learning with Policy Generators

Jacopo Di Ventura, Dylan R. Ashley, Vincent Herrmann, Francesco Faccio, Jürgen Schmidhuber

TL;DR

Upside Down Reinforcement Learning with Policy Generators (UDRLPG) turns reinforcement learning into a direct supervised regression task over entire neural network parameter spaces. By conditioning a single hypernetwork on desired return targets, UDRLPG discards the critic/evaluator network used in prior parameter-space methods while generating policies that achieve requested returns zero-shot.

What Problem Does This Paper Address?

Traditional reinforcement learning optimizes policies via trial-and-error policy gradients or value estimation (critics), which often suffer from optimization instability and high sample variance. Upside Down Reinforcement Learning (UDRL) flips this dynamic: instead of maximizing reward, the model is treated as a supervised learning system that learns to map a command (a target return) and a current state directly to actions using past hindsight experiences.

Recent extensions like GoGePo lifted UDRL from action space into parameter space—using a neural network (a hypernetwork or Fast Weight Programmer) to output the complete weights of a policy network conditioned on a target return. However, GoGePo relies on a complex generator–evaluator (actor–critic) setup where a separate critic network must be jointly trained to evaluate generated policy weights.

The authors set out to answer: Can we eliminate the evaluator entirely and train a policy generator purely using hindsight supervised learning in weight space?

Methods

UDRLPG introduces a simplified, single-model architecture that operates directly in policy weight space:

  • Hypernetwork Policy Generator ($G_\rho$): A differentiable generator decodes a scalar return command $c \in \mathbb{R}$ into policy network parameters $\theta \in \Theta$.
  • Parameter-Space Exploration: To explore, the generator adds Gaussian noise to the output weights: $\theta = G_\rho(c) + \epsilon$, where $\epsilon \sim \mathcal{N}(0, \sigma^2 I)$.
  • Pure Hindsight Supervised Learning: A generated policy $\pi_\theta$ is rolled out for an episode to observe its real return $r$. The pair $(r, \theta)$ is stored in a replay buffer. The hypernetwork is then updated via standard MSE loss to reproduce past successful parameters given their achieved return: $$\mathcal{L}_G(\rho) = \mathbb{E}_{(c, \theta_c) \sim \mathcal{D}}\left[ \|G_\rho(c) - \theta_c\|^2 \right]$$ No value functions, critics, or evaluator networks are involved.

  • Performance-Based Bucketed Buffer: Without an evaluator, training can easily become unstable or biased toward densely populated, mediocre return bands. To counteract this, the replay buffer divides policies into return-based buckets and uses decoupled, weighted sampling to maintain balanced representations across the full return spectrum.

Datasets

The authors evaluate the approach on standard continuous-control benchmark environments from the OpenAI Gym suite (MuJoCo):

  • InvertedPendulum-v4
  • Swimmer-v4
  • Hopper-v4

No new benchmarks or datasets were introduced; evaluation focuses on comparisons against existing baselines in standard simulated physical control tasks.

Key Insights and Ideas

  • Critics are not strictly necessary in parameter space: Prior work assumed an evaluator network was required to steer policy generators. UDRLPG proves that simple hindsight supervised regression directly on parameter vectors suffices.
  • The weight-space multimodality surprise: A fundamental danger of fitting parameters with regression is multimodality: if two completely different policies achieve the same return $c$, an MSE loss could force the generator to predict their average—which typically results in a broken policy. The authors observe that this rarely occurs in practice. They hypothesize that network weight initialization acts as an inductive bias, locking the generator into a single canonical neuron permutation/scale configuration and restricting exploration to local variations around it.
  • Buffer bucketing is essential: Ablation studies showed that without organizing the buffer into performance buckets with weighted sampling, training collapses or stagnates because average-performance policies vastly outnumber high-performing ones.

Key Results

UDRLPG was benchmarked against GoGePo (generator–evaluator) and DDPG (standard continuous RL):

  • InvertedPendulum-v4: UDRLPG consistently reaches the maximum possible reward of 1,000, converging to the same ceiling as GoGePo and DDPG, though at a slightly slower initial rate.
  • Swimmer-v4: Achieves a mean final return of ~300 (close to GoGePo's ~320, significantly outperforming DDPG at ~130).
  • Hopper-v4 (most complex environment tested): Matches GoGePo with a mean final return of ~2,070, exploring wider parameter regions and attaining higher upper return bounds than the baselines.
  • Controllable Command Following: When conditioned on a spectrum of return targets at test time, the generator displays near-ideal identity curves (e.g., asking for a return of 500 yields an observed return of ~500), proving true zero-shot command generalization.

Limitations and Future Work

  • Higher Variance Across Runs: Lacking an explicit evaluator network introduces higher variance in final performance across evaluation seeds compared to GoGePo.
  • Slower Convergence Speed: On simpler tasks like InvertedPendulum, learning takes more timesteps to reach maximum performance than critic-assisted baselines.
  • Scalability to Larger Policy Architectures: Generating full weight matrices via hypernetworks scales with the number of target policy parameters; applying this to large transformer-based policies or high-dimensional visual agents remains an open hurdle.

Summary updated

BibTeX
@inproceedings{ventura2025upside,
  author = {Jacopo Di Ventura and Dylan R. Ashley and Vincent Herrmann and Francesco Faccio and Jürgen Schmidhuber},
  title = {{Upside Down Reinforcement Learning with Policy Generators}},
  booktitle = {EWRL},
  year = {2025},
  url = {https://openreview.net/forum?id=9a996bWtNV},
}
Figure