Meta-Gradient Reinforcement Learning with an Objective Discovered Online

Zhongwen Xu, Hado Philip van Hasselt, Matteo Hessel, Junhyuk Oh, Satinder Singh, David Silver

Introduction

Deep reinforcement learning (RL) algorithms typically rely on handcrafted objectives designed by human experts, such as Q-learning or Temporal Difference (TD) learning. These objectives define how an agent updates its internal representations based on experience. However, a "one-size-fits-all" objective might not be optimal for every task or every stage of an agent's training.

While previous meta-learning research has attempted to learn these rules, it usually requires training across thousands of different tasks or multiple "lifetimes" to find a generalized rule. This paper introduces FRODO (Flexible Reinforcement Objective Discovered Online), an agent that asks a more ambitious question: Can an agent learn how to learn online, on a single task, starting entirely from scratch?

The FRODO Architecture

Instead of using a fixed mathematical formula for the update target (the value the agent tries to predict), FRODO parameterizes the target using a separate neural network called a meta-network. The system operates in two continuous loops:

  1. Inner Loop: The agent interacts with the environment and updates its primary parameters to match the targets produced by the meta-network.
  2. Outer Loop: The meta-network itself is updated using meta-gradients. It evaluates how the agent's performance changed after a sequence of inner updates and adjusts its own parameters to produce targets that will lead to better future performance.

To make this dual-loop system work at scale, the authors introduce a consistency loss. This heuristic encourages the learned targets to be "self-consistent" over time (e.g., the value today should roughly equal the reward today plus the discounted value tomorrow), which significantly stabilizes and accelerates the learning process.

Experimental Environments

The researchers evaluated FRODO across environments of varying complexity to test specific RL challenges:

  • "Catch": A simple 6x11 grid world used to test if the agent can discover "bootstrapping" (predicting future rewards from short trajectories).
  • Non-stationary Random Walk: A 5-state environment where rewards change over time, testing the agent's ability to adapt to shifting goals.
  • Atari 57: The standard benchmark of 57 classic games from the Arcade Learning Environment (ALE), used to test large-scale performance and generalization.
Illustrations of the Catch and 5-state random walk toy environments used to test bootstrapping and non-stationarity.

Key Insights

A major insight from the study is that it is much more stable to meta-learn the update target rather than the loss function directly. Learning a target keeps the agent moving toward a specific, grounded value, whereas learning a loss function can easily lead to mathematical instabilities and divergence.

Furthermore, because FRODO learns its objective while it plays, it naturally handles non-stationarity. If the environment's rules change halfway through training, FRODO can discover a new objective that accounts for that change faster than a fixed algorithm could. In the "Catch" experiment, the agent was only given very short trajectories of experience. To solve the game, it was forced to invent its own version of TD-learning (bootstrapping) because it was the only way to succeed.

Results and Performance

FRODO demonstrates a remarkable ability to adapt and improve its learning efficiency over time. On the Atari 57 benchmark, FRODO eventually surpassed the median human-normalized score of IMPALA, a very strong actor-critic baseline. While it starts slower—because it must first "learn how to learn"—its learning curve eventually becomes steeper and reaches a higher asymptote.

FRODO's learning curve demonstrating its ability to surpass baseline look-ahead strategies over time.

The consistency loss proved vital to this success; without it, performance on complex games dropped significantly. Interestingly, the researchers found that FRODO discovered different objectives for different games. In "Pong," it stayed close to standard human-designed targets, but in other games, it developed highly specialized objectives that varied significantly over the course of training.

Limitations and Future Work

While promising, FRODO has limitations. Meta-gradient methods are computationally expensive because they require differentiating through the learning process itself. Additionally, FRODO still requires a "naive" outer loss (like REINFORCE) to provide the initial meta-gradient signal, meaning it is still partially tethered to human-designed heuristics. Finally, the consistency loss introduces a new hyperparameter that requires tuning.

Future work will likely explore more flexible meta-network architectures and methods to reduce the computational overhead of meta-gradient calculations, pushing the boundaries of fully autonomous learning agents.

Summary updated

BibTeX
@inproceedings{xu2020meta,
  author = {Zhongwen Xu and Hado Philip van Hasselt and Matteo Hessel and Junhyuk Oh and Satinder Singh and David Silver},
  title = {{Meta-Gradient Reinforcement Learning with an Objective Discovered Online}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=ak3XfaSevnJ},
}
Figure