Skip to content
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

t_max = 32 #7

Open
etienne87 opened this issue Jul 28, 2016 · 6 comments
Open

t_max = 32 #7

etienne87 opened this issue Jul 28, 2016 · 6 comments

Comments

@etienne87
Copy link

Hello,

In the A3C paper they state t_max = 5, is there any reason you set it to 32?

Actually I don't really understand why the batch size should be so small, why shouldn't we use traditional batch sizes of 128 or more frames, shouldn't this make learning stronger?

@ppwwyyxx
Copy link

ppwwyyxx commented Aug 5, 2016

I used a larger batch size (128) in my a3c implementation instead of 5 and it works quite well. I don't think there is any reason the batch size should be small. But that doesn't mean t_max should be large.
With a large t_max, the training gets less stable in my experiments.

@etienne87
Copy link
Author

I don't understand how the batch can be large and t-max small? You need to accumulate frames during t-max steps before doing a backprop right?

@ppwwyyxx
Copy link

ppwwyyxx commented Aug 5, 2016

In one backprop you can accumulate more frames from different simulators, but each simulator still only produces a 5-step temporal difference every time. Having a larger batch size should theoretically stabilize training.

@etienne87
Copy link
Author

Ah! Agreed. So like we should share a common replay memory to all threads and we recompute forward before large batch update?

@ppwwyyxx
Copy link

ppwwyyxx commented Aug 5, 2016

The forward part doesn't really need to be recomputed. A delay in the target value is acceptable, similar to the idea of target network in DQN.

@LinZichuan
Copy link

How can you run the project normally? I tried to run it but come out an error #12 . @ppwwyyxx @etienne87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants