NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Goal-Conditioned Generators of Deep Policies

Francesco Faccio, Vincent Herrmann, Aditya Ramesh, Louis Kirsch, Jürgen Schmidhuber

Abstract

Goal-conditioned Reinforcement Learning (RL) aims at learning optimal policies, given goals encoded in special command inputs. Here we study goal-conditioned neural nets (NNs) that learn to generate deep NN policies in form of context-specific weight matrices, similar to Fast Weight Programmers and other methods from the 1990s. Using context commands of the form "generate a policy that achieves a desired expected return," our NN generators combine powerful exploration of parameter space with generalization across commands to iteratively find better and better policies. A form of weight-sharing HyperNetworks and policy embeddings scales our method to generate deep NNs. Experiments show how a single learned policy generator can produce policies that achieve any return seen during training. Finally, we evaluate our algorithm on a set of continuous control tasks where it exhibits competitive performance.

Introduction

Traditional Reinforcement Learning (RL) typically relies on estimating value functions or calculating policy gradients. These methods, while powerful, often suffer from high variance and instability during training. A promising alternative is Upside-Down RL (UDRL), which reformulates RL as a supervised learning problem by mapping desired rewards directly to actions. However, UDRL frequently struggles in complex environments due to multi-modality: multiple distinct action sequences can lead to the same reward. Attempting to map a single reward command to a specific action often results in the model "averaging" these behaviors, leading to sub-optimal performance.

To address this, we propose GoGePo (Goal-Conditioned Generators of Deep Policies). GoGePo shifts the learning process from the action space to the parameter space. Instead of predicting individual actions, the system learns to generate the entire set of weights for a policy network that will achieve a specific goal.

Methodology

The GoGePo framework consists of two primary components: a Generator and an Evaluator.

The Generator (HyperNetwork)

Based on the concept of "Fast Weight Programmers," the generator is a HyperNetwork that takes a "desired return" command (e.g., "generate a policy that scores 500 points") and outputs the weight matrices for a separate policy network. To scale this to deep networks with thousands of parameters, we employ a weight-sharing scheme where the generator produces small "slices" of the target matrices, which are then concatenated to form the full policy.

The Evaluator and Policy Fingerprinting

To train the generator, the system requires a mechanism to evaluate the quality of generated policies. Directly analyzing raw weights is ineffective due to neural network symmetries, where different weight configurations can produce identical behaviors. Instead, we use policy fingerprinting. We feed a fixed set of "probing states" into the generated policy and use the resulting "probing actions" as a unique signature of the policy's behavior.

GoGePo architecture overview

The Training Loop

The system operates in an iterative loop:

  1. Act: The generator creates a policy based on a command; this policy is then executed in the environment.
  2. Evaluate: An evaluator network is trained via supervised learning to predict the actual return of a policy based on its fingerprint.
  3. Optimize: The generator is updated to produce weights that the evaluator predicts will meet the commanded return.

Experiments and Results

We evaluated GoGePo on several standard continuous control benchmarks from the MuJoCo physics engine suite, including Swimmer-v3, Hopper-v3, InvertedPendulum-v2, and MountainCarContinuous-v0.

Performance on Hopper-v3

Key findings from our experiments include:

  • Competitive Performance: GoGePo matched or outperformed strong baselines like Augmented Random Search (ARS) and Deep Deterministic Policy Gradient (DDPG) in terms of sample efficiency and final score, particularly on the Swimmer and Hopper tasks.
  • Controllability and Generalization: The generator successfully learned to produce policies across a spectrum of performance levels. It could "interpolate" between rewards, generating effective policies for return targets it had not explicitly seen during training.
  • Zero-Shot Generation: Once the generator is trained, it can produce a policy for a specific return target instantly, requiring no further interaction with the environment.

Discussion and Future Work

GoGePo demonstrates that learning in parameter space can bypass the noisy gradient problems of traditional RL. By focusing on what a policy does (fingerprinting) rather than what it is (raw weights), the model effectively captures the relationship between parameters and performance.

However, challenges remain. In certain environments, a randomly initialized generator may produce "stiff" policies that hinder initial exploration. Future work will explore more complex goal commands beyond simple returns and the use of latent variable models to capture a more diverse set of successful behaviors for a single goal.

Summary updated

BibTeX
@inproceedings{faccio2023goal,
  author = {Francesco Faccio and Vincent Herrmann and Aditya Ramesh and Louis Kirsch and Jürgen Schmidhuber},
  title = {{Goal-Conditioned Generators of Deep Policies}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25912},
}
Figure