Coder Social home page Coder Social logo

huanzhang12 / sa_ppo Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 4.0 19.78 MB

[NeurIPS 2020 Spotlight] State-adversarial PPO for robust deep reinforcement learning

Home Page: https://arxiv.org/pdf/2003.08938

Shell 3.60% Python 96.40%
adversarial-attacks adversarial-machine-learning adversarial-reinforcement-learning reinforcement-learning reinforcement-learning-algorithms robustness sa-mdp

sa_ppo's People

Contributors

huanzhang12 avatar

Stargazers

 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

sa_ppo's Issues

Version mismatch?

When I run the code I have an error.
In your code, env.reset() is expected to return one array, but it actually returns a tuple. Is it a gym version mismatch?
What gym version where you using?

Undocumented implementation of SGLD

You provide an implementation of SGLD that is substantially different from what you describe in the article. The main differences are:

  • the scaling factor of the random noise is not consistent with the article. To my understanding, it should be np.sqrt(2 * beta / step_eps) instead of np.sqrt(2 * step_eps * beta)
  • the scheduling of the temperature by a factor 1/(i+2)^2 looks arbitrary and not explained anywhere in the code or the article.
  • the use of the sign of the gradient instead of its actual value. I guess this design choice is inspired from PGD (aka. multi-iteration FGSM), but it is not motivated anywhere. Your algorithm is should rather be called PGD-SGLD than plain SGLD.
  • the initialization of the perturbation is not zero, which is critical because it avoids the saddle point issue completely. The critical advantage of doing so has been discussed here. So I think the SGLD gradient is not even relevant anymore. Sadly, you do not motivate the choice of the initialization either.

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.