Repository navigation
[find_and_avoid] DDPG convergence issue #15
Replies: 7 comments
|
Hello @NatePolizogo Of course there is not a single solution in your question. Indeed find-and-avoid example has some issues in convergence. From our experience, DDPG has convergence issues in generally contrary to others such as PPO. However, those issues comes form the continues nature of DDPG. Additionally, find target and avoid obstacle is not a simple task since has a big, continues observation space and continues actions. In this end, I suggest to experiment with the followings:
Regarding to our implementation, I am pretty sure that there is a lot of space for improvements and we are constantly working in this direction. Any help will be appreciated. BTW in which OpenAI gym problem did you use DDPG? I have to close this issue since it's off topic but we can keep with thread to discuss any possible solution and even re-open in future if we come up with a solution. My colleague @tsampazk might offer some suggestions as well. Cheers |
|
Thank you very much for the instant reply. I'll try to implement PPO and SAC too and then I'll return to this discussion, I didn't knew that DDPG has convergence problems but I observed at all training I've done so far that I reached a maximum and then the performance was descending. Finally, I would be happy to help with anything, and I'll share any results and improvements, if any, with you. |
|
Issue re-opened with a more general title if anyone wants to offer some ideas |
|
Hey @NatePolizogo, first of all thank you for interest in deepbots! I would like to add some general thoughts on this discussion that might or might not help:
|
In most of the case convergence issues came from our poor understanding not from the algorithm. DDPG performs greatly in some cases and poorly in others. This might be a result of the chosen hyper parameters. Just for the record, I refer to you the "The problem with DDPG: understanding failures in deterministic environments with sparse rewards" paper
That is a common issue and it have been observed in our implementation as well. DDPG uses Ornstein-Uhlenbec process to generate noise in order to perform exploration. Tuning their hyper-parameters and decreasing the noise while training goes on+ might improves the model's performance (here is the implementation). As @tsampazk mentioned penalize model's output through reward is great place to start with (if you didn't). Another issues we faced in this example was the poorly initialization. You can take a look in our DDPG implementation, original paper, xevier and he initialization. |
|
Thanks a lot, that a wide chunk of info, I'll make further investigation on these and try other algos too. As I expected we use the exact same code for the noise. |
|
In case you meet a lot of difficulties with DDPG, you can try a continuous version of PPO. Generally, we found that PPO is a more beginner-friendly algorithm, that works well for many tasks. Here you can find a minimal implementation of the continuous PPO algorithm with, using pytorch for the neural network backend, but this can easily be switched to your preferred backend. I have used it before and it works really well. Here is an interesting article regarding PPO implementation details and here you can find a great paper that i cannot recommend enough, that studies how various settings affect the agent and convergence and provides helpful recommendations. |
Uh oh!
There was an error while loading. Please reload this page.
Hello, this is a more general Issue related to a robotics problem and not to this software directly. I just need help and I thought you might help. So my thesis is about obstacle avoidance and/or autonomous driving with RL. I have implemented DDPG and simple QL algorithms on webots but non of them seems to work. I also tried your ready to run example find and avoid but it did not seem to learn properly. Can you help me on how to train these algos ? cause I've tried them on Open AI Gym and they work fine.
If you want to communicate more efficiently with me this is my linked in and fb account. I am from Greece as two of the contributors are.
https://www.facebook.com/nathan.polizogo/
https://www.linkedin.com/in/athanassios-polizogopoulos-4839841b7/
All reactions