Code Monkey home page Code Monkey logo

is-high-variance-unavoidable-in-rl-'s Introduction

Is High Variance Unavoidable in RL? A Case Study in Continuous Control -- ICLR 2022

Johan Bjorck, Carla Gomes, Kilian Weinberger

[paper]

Overview

Reinforcement learning (RL) experiments have notoriously high variance. We demonstrate that one can optimize directly for lower variance, without hurting average performance. Specifically, using a few simple methods, we decrease the variance by a factor ~3x (over 21 DMC tasks) for the competitive actor-critic agent DRQv2 without decreasing the average reward. This repo contains minimal modifications on top of the DRQv2 code base to reproduce our results.

Installation

Simply use the conda environment:

conda env create -f conda_env.yml
conda activate drqv2

Usage

  1. To run without any tricks enabled, simply run:
python train.py task=cheetah_run
  1. To use all all tricks, run:
python train.py task=cheetah_run  agent.pnorm_critic=True agent.pnorm_actor=True agent.asymmetric_clip=True agent.action_penalty=0.0001 agent.cpc_until=10000

Note that the number of frames where CPC is used and the parameter for the action penalty are explicitly set.

  1. Our proposed methods can be independently toggled with

    Method Flags
    pnorm for critic agent.pnorm_critic=True
    pnorm for actor agent.pnorm_actor
    assymetric clip agent.asymmetric_clip=True
    action penalty agent.action_penalty=0.0001
    contrastive learning agent.cpc_until=10000

Citation

For citation, please use:

@article{bjorck2021high,
  title={Is High Variance Unavoidable in RL? A Case Study in Continuous Control},
  author={Bjorck, Johan and Gomes, Carla P and Weinberger, Kilian Q},
  journal={arXiv preprint arXiv:2110.11222},
  year={2021}
}

and for DRQv2:

@article{yarats2021drqv2,
  title={Mastering Visual Continuous Control: Improved Data-Augmented Reinforcement Learning},
  author={Denis Yarats and Rob Fergus and Alessandro Lazaric and Lerrel Pinto},
  journal={arXiv preprint arXiv:2107.09645},
  year={2021}
}

Acknowledgements

Our experiments are built on top of the open-sourced code for DRQv2.

is-high-variance-unavoidable-in-rl-'s People

Contributors

nilsjohanbjorck avatar

Stargazers

Jeff Carpenter avatar Aleksei Petrenko avatar Yingdong Hu avatar Rui avatar Johannes Ackermann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.