GithubHelp home page GithubHelp logo

yyzharry / sv-rl Goto Github PK

View Code? Open in Web Editor NEW
34.0 4.0 6.0 1.5 MB

[ICLR 2020, Oral] Harnessing Structures for Value-Based Planning and Reinforcement Learning

Home Page: http://svrl.csail.mit.edu

License: MIT License

Python 83.80% Julia 7.32% Jupyter Notebook 8.88%
reinforcement-learning low-rank planning controls deep-reinforcement-learning value-iteration matrix-completion value-function iclr iclr2020

sv-rl's Introduction

Harnessing Structures for Value-Based Planning and Reinforcement Learning

This repository contains the implementation code for paper Harnessing Structures for Value-Based Planning and Reinforcement Learning (ICLR 2020, Oral).

This work proposes a generic framework that allows for exploiting the underlying low-rank structures of the state-action value function (Q function), in both planning and deep reinforcement learning. We verify empirically the wide existence of low-rank Q functions in the context of control and deep RL tasks. Specifically, we propose (1) Structured Value-based Planning (SVP), for classical stochastic control and planning tasks, and (2) Structured Value-based Deep Reinforcement Learning (SV-RL), applicable for any value-based techniques to improve performance on deep RL tasks.

Installation

Prerequisites

The current code has been tested on Ubuntu 16.04, for both SVP and SV-RL.

  • SVP: The SVP part is mainly implemented in Julia (and a small part in Python) for several classical stochastic control tasks. We use Julia version of v0.7.0, which can be downloaded here.
  • SV-RL: We provide a PyTorch implementation of SV-RL for deep reinforcement learning tasks.

Note: We test SVP implementation on Julia v0.7.0, which is not the latest version (and is unmaintained now). You may choose to use later verion of Julia if needed, but we didn't test on other versions.

Dependencies for SVP

After installing Julia, just use the package manager within Julia to install the following dependencies:

using Pkg
Pkg.add("IJulia")
Pkg.add("PGFPlots")
Pkg.add("GridInterpolations")
Pkg.add("PyCall")
Pkg.add("ImageMagick")

Dependencies for SV-RL

You can install the dependencies for SV-RL using

pip install -r requirements.txt

Experiments

Acknowledgements

We use the implemetation in the fancyimpute package for part of our matrix estimation algorithms. The implementation of SVP is partly based on this work.

Citation

If you find the idea or code useful for your research, please cite our paper:

@inproceedings{
  yang2020harnessing,
  title={Harnessing Structures for Value-Based Planning and Reinforcement Learning},
  author={Yuzhe Yang and Guo Zhang and Zhi Xu and Dina Katabi},
  booktitle={International Conference on Learning Representations},
  year={2020},
  url={https://openreview.net/forum?id=rklHqRVKvH}
}

sv-rl's People

Contributors

yyzharry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.