Code Monkey home page Code Monkey logo

Comments (4)

kpertsch avatar kpertsch commented on August 17, 2024

Hi! Thanks for raising this issue!
I have not run this comparison before so I can't tell you why exactly you are observing such different outcomes. Generally, small implementation details can have outsized effects for RL algorithms. From a glance it eg seems that StableBaselines uses observation normalization by default while we do not. Similarly other small differences might cause the performance differences, eg in the architecture (network size, choice of normalization, ...) or the learning algorithm (eg target entropy value, multiple experience collection workers vs single worker, ...).
When I implemented SAC for this repo I verified that we can roughly match the performance of other SAC repos on a few standard OpenAI gym envs, but it is possible that other implementation choices work better on the sparser kitchen tasks you mentioned.

from spirl.

ynulihao avatar ynulihao commented on August 17, 2024

Thanks for your reply, I experimented on KitchenAllTasksV0 environment using the SAC algorithm from your project. The training process is in wanai. One of the strange phenomena is that q_target, policy_loss, and critic_loss all increase exponentially, which is not found in other SAC implementations. What could be the reason for this.

from spirl.

kpertsch avatar kpertsch commented on August 17, 2024

I am not sure why this is happening. Two things you could check:

(1) did you use Q-target clipping during training? Using this clipping can stabilize training by avoiding very large Q-errors. (you can use the existing flag clip_q_target = True)

(2) from the WandB plots it seems that the alpha-value is increasing a lot (which can explain why the Q-values grow too) -- you could try running with a fixed alpha value instead (you would need to sweep a couple different values to find a good one that balances the reward and entropy objectives --> you can use the existing flag fixed_alpha) -- I have sometimes found fixed alpha values to work better in the kitchen environment (maybe because it is sparse?)

from spirl.

gunnxx avatar gunnxx commented on August 17, 2024

Hi @ynulihao , may I know the code you are running to get stable-baselines3 baseline?

from spirl.

Related Issues (20)

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.