Recomposing the Reinforcement Learning Building Blocks with Hypernetworks

Shai Keynan, Elad Sarafian, Sarit Kraus
6/12/2021
48 citations
cs.LGcs.AI
rl

Official code: keynans/HypeRL (27 stars, Python, last commit 2021-06-09).

Abstract

The Reinforcement Learning (RL) building blocks, i.e. Q-functions and policy networks, usually take elements from the cartesian product of two domains as input.

Show full abstract

In particular, the input of the Q-function is both the state and the action, and in multi-task problems (Meta-RL) the policy can take a state and a context. Standard architectures tend to ignore these variables' underlying interpretations and simply concatenate their features into a single vector. In this work, we argue that this choice may lead to poor gradient estimation in actor-critic algorithms and high variance learning steps in Meta-RL algorithms. To consider the interaction between the input variables, we suggest using a Hypernetwork architecture where a primary network determines the weights of a conditional dynamic network. We show that this approach improves the gradient approximation and reduces the learning step variance, which both accelerates learning and improves the final performance. We demonstrate a consistent improvement across different locomotion tasks and different algorithms both in RL (TD3 and SAC) and in Meta-RL (MAML and PEARL).

View on arXivView PDF

Code Implementations(1)

keynans/HypeRLOfficial100%

Authors' PyTorch implementation of 'Recomposing the Reinforcement Learning Building-Blocks with Hypernetworks' (HypeRL)

274PythonJun 9, 20215 years ago

Similar Papers

Cite this paper

@article{keynan2021recomposing,
  title  = {Recomposing the Reinforcement Learning Building Blocks with Hypernetworks},
  author = {Shai Keynan and Elad Sarafian and Sarit Kraus},
  year   = {2021},
  eprint = {2106.06842},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.06842}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.06842.svg)](https://codeofpaper.com/paper/2106.06842)

Discussion