Curated summary
Evolved Policy Gradients
Reinforcement LearningPpoPolicy GradientEvolution StrategiesEvolved Policy GradientsMetalearningLoss Function Design
Evolved Policy Gradients: Learning the Loss Function Instead of the Policy
OpenAI's Evolved Policy Gradients (EPG) is an experimental metalearning method that evolves the loss function used by learning agents rather than a policy or a reward function. Once evolved, the learned loss lets agents learn quickly on novel tasks and generalize beyond their training distribution, such as walking to a target on the opposite side of an arena from anything seen in training. EPG can also train agents faster than PPO, though the learned losses are currently narrow and do not transfer to very different kinds of tasks.
Encoding Prior Knowledge as a Loss
- Most RL agents start from a blank slate and depend entirely on external rewards, which is why they learn simple skills far more slowly than humans.
- EPG instead encodes prior knowledge as a learned loss function, parameterized as a temporal-convolutional neural network, that tells the agent what counts as making progress.
- The method is related to earlier work on evolving reward functions, but it goes further by evolving a complete loss, so the loss must effectively encode an RL algorithm internally.
Two-Loop Optimization
- Inner loop: An agent learns a task from scratch using stochastic gradient descent, optimizing its policy against the loss proposed by the outer loop. Tasks come from a family, such as "move gripper to target location [x, y]."
- Outer loop: Evolution Strategies (ES) evaluate the returns achieved after inner-loop learning and adjust the loss parameters to produce higher returns.
- Because ES optimizes final trained-policy performance rather than short-term returns, and the loss can adapt to the environment and the agent's history, the approach offers advantages over standard RL losses.
Why Learn a Loss Instead of a Policy
- Recurrent meta-learned policies tend to overfit the tasks they were trained on, and learned policy initializations offer limited help with exploration.
- Loss functions are expected to generalize better across substantially different tasks, as hand-designed losses like PPO's already do across Atari and robotics.
Generalization Experiment
- Researchers evolved an EPG loss so that simulated "ants" learned to walk to random targets on the right half of an arena.
- With the loss frozen, the ants were given targets on the left half. They learned to walk left, a case outside the training distribution.
- RL², a baseline metalearning method that directly learns an adaptive policy, succeeded on the right-side targets but kept walking right when given left-side targets, which suggests it overfit to its training tasks.
Limitations
- An EPG loss is currently effective only for one small family of tasks at a time. It is unlikely to work on a very different task, such as Space Invaders.
- Standard RL losses are general enough to learn a wide range of skills, so EPG trades generality for performance.
- Metalearning methods that both outperform standard RL and retain its generality remain a long-term goal.
Related reading
Continue with another curated summary.