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

BatchEnsemble and mini-batches #188

Closed
andresmasegosa opened this issue Oct 7, 2020 · 2 comments
Closed

BatchEnsemble and mini-batches #188

andresmasegosa opened this issue Oct 7, 2020 · 2 comments

Comments

@andresmasegosa
Copy link

Hi guys,

When reading the BatchEnsemble paper, I get the impression that each model of the ensemble is trained with a different part of the mini-batch:

Section 3.1: "To match the input and the ensemble weight, we can divide the input mini-batch into M sub-batches and each sub-batch receives ensemble weight"

Appendix B: "Also note that the scheme that each ensemble member is trained with different sub-batch of input can encourage diversity as well"

However, in the current implementation, each model of the ensemble is trained on the same mini-batch because the mini-batch is replicated before send it to the BatchEnsemble model:

images = tf.tile(images, [FLAGS.ensemble_size, 1, 1, 1])
labels = tf.tile(labels, [FLAGS.ensemble_size])

Could you please clarify? Have you tried both approaches?

Thanks,

@dustinvtran
Copy link
Member

@ywen666 can clarify. TLDR is that we initially tried different sub-batches per ensemble member, but later that tiling to duplicate the same sub-batch typically worked a tad better.

@andresmasegosa
Copy link
Author

Thanks!

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

2 participants