negative rewards "stair stepping pattern" [help-wanted]
I'm having a tough time training this agent and I've noticed this reoccurring negative stair-stepping pattern in the rewards, it looks like it's learning to fail and not get positive rewards, if I trained this for 10M steps it probably wouldn't help, right?
Should I increase the positive reward it gets by a little? Its a quadruped walking agent and it mostly flails around before falling
The entropy should normally decrease during learning. -> you should change the beta. Look here for the documentation: https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Training-PPO.md
Your negative reward might be to large. I have better learning behavior when i give the agent more rewards instead of punishing him for bad things (i normally just reset him when he is doing something bad and give a -0.5f or -1f reward)
It would be helpful to give us more information. It might help you to read some of the tips i gave other issues: https://github.com/Unity-Technologies/ml-agents/issues/600 https://github.com/Unity-Technologies/ml-agents/issues/608 https://github.com/Unity-Technologies/ml-agents/issues/588
@Hengoo hey thanks ,
The agent is based on the Crawler example , my agent is based on an actual robot so it's smaller in scale and has more mass then the Crawler example. I realized it would require more torque to move since it was heavier so I decreased the torque penalty by a factor of 10 and it seems to be doing better now , but still not good, it's basically flailing around and falling even 800k steps in
I think I'll try your suggestion and decrease the beta,
please ignore those straight lines I hadn't properly resumed the last session
For anyone else out there:
In my case giving the crawler more torque and decreasing the beta helped with the training and its doing fine now, I decreased the beta by one exponent but I think probably half as much would have been better I think its probably dropping too fast now but the training is working
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.