Code Monkey home page Code Monkey logo

rewardshifting's Introduction

πŸ™‹ How To Design A Reward Function For Your Reinforcement Learning Task (In Value-Based RL)?

  • To boost exploration, you should use negative rewards, such that the agent will visit more unvisited state-action pairs.
  • To boost exploitation, you should use positive rewards, such that the agent will repeatedly visit previously visited state-action pairs.

Our paper provides a detailed analysis of how reward design affects the learning process.

This repo is related to the topic of

  • Reward Design in Deep RL
  • Reward Design for Better Exploration
  • Ensemble in Deep Reinforcement Learning
  • Diversity Boosting in Q-Value Network Ensemble
  • Offline-RL (conservation via reward shifting)
  • Value-Based Deep-RL

πŸš€ Let us Exploit Reward Shifting in Value-Based Deep-RL!

🌐 Project Page

Key Insight: A positive reward shifting leads to conservative exploitation, and a negative reward shifting leads to curiosity-driven exploration.

πŸ‹οΈ Reproduction & Basic Usage:

To reproduce our results, please follow instructions in each folder. Actually, the easiest way of reproduction is to play with reward shifting!

πŸ§‘πŸ»β€πŸ’» In your tasks with value-based DRL, please just try to add a line right after the line of interaction with your environment, e.g.,

next_s, r, done, info = env.step(a)

r = r + args.shifting_constant

❕Don't forget to remove such a shift in evaluating your policy :)

πŸ’‘ Potential Ideas

Here are several potential extensions of our work:

  • Theoretically, the guidance of choosing shifting constant values.
  • Methodologically, the choice of ensemble bias values
  • Empirically, combining upper and lower bound (as non-linear combination) with Thompson Sampling for better exploration.
  • Other linear reward shaping, e.g., with non-trivial scaling factor k.

πŸ“ BibTex

@article{sun2022exploit,
  title={Exploit Reward Shifting in Value-Based Deep-RL: Optimistic Curiosity-Based Exploration and Conservative Exploitation via Linear Reward Shaping},
  author={Sun, Hao and Han, Lei and Yang, Rui and Ma, Xiaoteng and Guo, Jian and Zhou, Bolei},
  journal={Advances in Neural Information Processing Systems},
  volume={35},
  pages={37719--37734},
  year={2022}
}

rewardshifting's People

Contributors

holarissun 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

Watchers

 avatar  avatar  avatar

Forkers

moguizhizi

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.