-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The performance of the SAC algorithm in the project is significantly worse than the performance of SAC in the stable baseline3. #26
Comments
Hi! Thanks for raising this issue! |
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. |
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 (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 |
Hi @ynulihao , may I know the code you are running to get |
The performance of the SAC algorithm in the project is significantly worse than the performance of SAC in the stable baseline. The training of the slide cabinet subtask in the kitchen environment using the SAC algorithm in this project fails to converge, while the loss function tends to exponentially explode. I have carefully examined the code of the project and the SAC in stable baseline3 and found no reason for this anomaly.
https://github.com/clvrai/spirl/blob/master/spirl/rl/agents/ac_agent.py
https://github.com/DLR-RM/stable-baselines3/blob/master/stable_baselines3/sac/sac.py
The text was updated successfully, but these errors were encountered: